From 861a094380759de69ca4465861d4fe514151a732 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Mon, 24 Nov 2025 22:58:38 -0800 Subject: [PATCH 01/14] Add emitterPackageJsonPath to tsp-location.yml --- sdk/purview/Azure.Analytics.Purview.DataMap/tsp-location.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tsp-location.yaml b/sdk/purview/Azure.Analytics.Purview.DataMap/tsp-location.yaml index ab6e1d2f4661..9374e760b504 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tsp-location.yaml +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tsp-location.yaml @@ -1,3 +1,4 @@ repo: Azure/azure-rest-api-specs commit: 6267b64842af3d744c5b092a3f3beef49729ad6d directory: specification/purview/Azure.Analytics.Purview.DataMap +emitterPackageJsonPath: "eng/azure-typespec-http-client-csharp-emitter-package.json" \ No newline at end of file From acdfd1b36f8c73f378e412ecf8692379e5a3183f Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Mon, 24 Nov 2025 22:59:51 -0800 Subject: [PATCH 02/14] dotnet build /t:GenerateCode --- .../Configuration.json | 12 + .../AnalyticsPurviewDataMapModelFactory.cs | 667 - .../AtlasAttributeDef.Serialization.cs | 171 +- .../src/Generated/AtlasAttributeDef.cs | 51 +- .../AtlasBusinessMetadataDef.Serialization.cs | 177 +- .../src/Generated/AtlasBusinessMetadataDef.cs | 53 +- .../AtlasClassification.Serialization.cs | 138 +- .../src/Generated/AtlasClassification.cs | 70 +- .../AtlasClassificationDef.Serialization.cs | 243 +- .../src/Generated/AtlasClassificationDef.cs | 84 +- .../AtlasClassifications.Serialization.cs | 129 +- .../src/Generated/AtlasClassifications.cs | 71 +- .../AtlasConstraintDef.Serialization.cs | 107 +- .../src/Generated/AtlasConstraintDef.cs | 67 +- .../AtlasDateFormat.Serialization.cs | 155 +- .../src/Generated/AtlasDateFormat.cs | 47 +- .../AtlasEntitiesWithExtInfo.Serialization.cs | 111 +- .../src/Generated/AtlasEntitiesWithExtInfo.cs | 40 +- .../Generated/AtlasEntity.Serialization.cs | 277 +- .../src/Generated/AtlasEntity.cs | 133 +- .../Generated/AtlasEntityDef.Serialization.cs | 229 +- .../src/Generated/AtlasEntityDef.cs | 56 +- .../AtlasEntityHeader.Serialization.cs | 213 +- .../src/Generated/AtlasEntityHeader.cs | 75 +- .../AtlasEntityHeaders.Serialization.cs | 96 +- .../src/Generated/AtlasEntityHeaders.cs | 39 +- .../AtlasEntityWithExtInfo.Serialization.cs | 109 +- .../src/Generated/AtlasEntityWithExtInfo.cs | 40 +- .../Generated/AtlasEnumDef.Serialization.cs | 181 +- .../src/Generated/AtlasEnumDef.cs | 54 +- .../AtlasEnumElementDef.Serialization.cs | 99 +- .../src/Generated/AtlasEnumElementDef.cs | 41 +- .../Generated/AtlasGlossary.Serialization.cs | 168 +- .../src/Generated/AtlasGlossary.cs | 53 +- .../AtlasGlossaryCategory.Serialization.cs | 172 +- .../src/Generated/AtlasGlossaryCategory.cs | 53 +- .../AtlasGlossaryExtInfo.Serialization.cs | 189 +- .../src/Generated/AtlasGlossaryExtInfo.cs | 65 +- .../AtlasGlossaryHeader.Serialization.cs | 97 +- .../src/Generated/AtlasGlossaryHeader.cs | 41 +- .../AtlasGlossaryTerm.Serialization.cs | 378 +- .../src/Generated/AtlasGlossaryTerm.cs | 124 +- .../AtlasLineageInfo.Serialization.cs | 171 +- .../src/Generated/AtlasLineageInfo.cs | 80 +- .../AtlasNumberFormat.Serialization.cs | 183 +- .../src/Generated/AtlasNumberFormat.cs | 52 +- .../Generated/AtlasObjectId.Serialization.cs | 109 +- .../src/Generated/AtlasObjectId.cs | 66 +- ...tlasRelatedCategoryHeader.Serialization.cs | 105 +- .../Generated/AtlasRelatedCategoryHeader.cs | 43 +- .../AtlasRelatedObjectId.Serialization.cs | 144 +- .../src/Generated/AtlasRelatedObjectId.cs | 72 +- .../AtlasRelatedTermHeader.Serialization.cs | 115 +- .../src/Generated/AtlasRelatedTermHeader.cs | 45 +- .../AtlasRelationship.Serialization.cs | 178 +- .../src/Generated/AtlasRelationship.cs | 78 +- ...sRelationshipAttributeDef.Serialization.cs | 186 +- .../AtlasRelationshipAttributeDef.cs | 53 +- .../AtlasRelationshipDef.Serialization.cs | 238 +- .../src/Generated/AtlasRelationshipDef.cs | 85 +- .../AtlasRelationshipEndDef.Serialization.cs | 124 +- .../src/Generated/AtlasRelationshipEndDef.cs | 46 +- ...asRelationshipWithExtInfo.Serialization.cs | 103 +- .../Generated/AtlasRelationshipWithExtInfo.cs | 42 +- .../src/Generated/AtlasSortType.cs | 41 +- .../Generated/AtlasStruct.Serialization.cs | 112 +- .../src/Generated/AtlasStruct.cs | 66 +- .../Generated/AtlasStructDef.Serialization.cs | 177 +- .../src/Generated/AtlasStructDef.cs | 53 +- ...AtlasTermAssignmentHeader.Serialization.cs | 129 +- .../Generated/AtlasTermAssignmentHeader.cs | 47 +- .../Generated/AtlasTermAssignmentStatus.cs | 55 +- ...sTermCategorizationHeader.Serialization.cs | 111 +- .../AtlasTermCategorizationHeader.cs | 43 +- .../Generated/AtlasTermRelationshipStatus.cs | 49 +- .../Generated/AtlasTimeZone.Serialization.cs | 133 +- .../src/Generated/AtlasTimeZone.cs | 44 +- .../Generated/AtlasTypeDef.Serialization.cs | 299 +- .../src/Generated/AtlasTypeDef.cs | 125 +- .../AtlasTypeDefHeader.Serialization.cs | 99 +- .../src/Generated/AtlasTypeDefHeader.cs | 41 +- .../Generated/AtlasTypesDef.Serialization.cs | 148 +- .../src/Generated/AtlasTypesDef.cs | 45 +- .../AutoCompleteConfig.Serialization.cs | 108 +- .../src/Generated/AutoCompleteConfig.cs | 66 +- .../AutoCompleteResult.Serialization.cs | 97 +- .../src/Generated/AutoCompleteResult.cs | 41 +- .../AutoCompleteResultValue.Serialization.cs | 93 +- .../src/Generated/AutoCompleteResultValue.cs | 40 +- .../BulkImportResult.Serialization.cs | 107 +- .../src/Generated/BulkImportResult.cs | 44 +- .../BusinessAttributeUpdateBehavior.cs | 41 +- .../BusinessMetadataOptions.Serialization.cs | 125 +- .../src/Generated/BusinessMetadataOptions.cs | 72 +- .../src/Generated/CardinalityValue.cs | 41 +- ...sificationAssociateConfig.Serialization.cs | 116 +- .../ClassificationAssociateConfig.cs | 40 +- .../Generated/ContactInfo.Serialization.cs | 93 +- .../src/Generated/ContactInfo.cs | 40 +- .../ContactSearchResultValue.Serialization.cs | 97 +- .../src/Generated/ContactSearchResultValue.cs | 41 +- .../src/Generated/DataMapClient.RestClient.cs | 14 + .../src/Generated/DataMapClient.cs | 77 +- .../src/Generated/DataMapClientOptions.cs | 24 +- .../src/Generated/Discovery.RestClient.cs | 71 + .../src/Generated/Discovery.cs | 318 +- .../src/Generated/Docs/Discovery.xml | 4329 - .../src/Generated/Docs/Entity.xml | 3251 - .../src/Generated/Docs/Glossary.xml | 2597 - .../src/Generated/Docs/Lineage.xml | 155 - .../src/Generated/Docs/Relationship.xml | 393 - .../src/Generated/Docs/TypeDefinition.xml | 2017 - .../src/Generated/Entity.RestClient.cs | 733 + .../src/Generated/Entity.cs | 4399 +- .../EntityMutationResult.Serialization.cs | 137 +- .../src/Generated/EntityMutationResult.cs | 47 +- .../src/Generated/EntityStatus.cs | 37 +- .../src/Generated/Glossary.RestClient.cs | 663 + .../src/Generated/Glossary.cs | 3571 +- .../src/Generated/ImportInfo.Serialization.cs | 103 +- .../src/Generated/ImportInfo.cs | 42 +- .../src/Generated/ImportStatus.cs | 37 +- .../src/Generated/Internal/Argument.cs | 75 +- ...ontentHelper.cs => BinaryContentHelper.cs} | 30 +- .../Internal/CancellationTokenExtensions.cs | 17 + .../Internal/ChangeTrackingDictionary.cs | 24 +- .../Generated/Internal/ChangeTrackingList.cs | 17 +- .../Internal/ClientPipelineExtensions.cs | 72 + .../Internal/CodeGenMemberAttribute.cs | 20 + .../Internal/CodeGenSerializationAttribute.cs | 48 + .../Internal/CodeGenSuppressAttribute.cs | 29 + .../Internal/CodeGenTypeAttribute.cs | 24 + .../src/Generated/Internal/ErrorResult.cs | 32 + .../Internal/ModelSerializationExtensions.cs | 173 +- ...t.cs => MultiPartFormDataBinaryContent.cs} | 111 +- .../src/Generated/Internal/Optional.cs | 12 +- .../RawRequestUriBuilderExtensions.cs | 23 + .../Internal/RequestContextExtensions.cs | 26 + .../Generated/Internal/SerializationFormat.cs | 49 + .../src/Generated/Internal/TypeFormatters.cs | 180 + .../Internal/Utf8JsonRequestContent.cs | 8 +- .../src/Generated/Lineage.RestClient.cs | 90 + .../src/Generated/Lineage.cs | 501 +- .../src/Generated/LineageDirection.cs | 41 +- .../LineageRelation.Serialization.cs | 97 +- .../src/Generated/LineageRelation.cs | 41 +- .../AzureAnalyticsPurviewDataMapContext.cs | 2 +- .../MoveEntitiesConfig.Serialization.cs | 110 +- .../src/Generated/MoveEntitiesConfig.cs | 39 +- .../Generated/ParentRelation.Serialization.cs | 97 +- .../src/Generated/ParentRelation.cs | 41 +- ... PurviewDataMapClientBuilderExtensions.cs} | 21 +- .../Generated/PurviewDataMapModelFactory.cs | 2004 + .../PurviewObjectId.Serialization.cs | 141 +- .../src/Generated/PurviewObjectId.cs | 95 +- .../Generated/QueryConfig.Serialization.cs | 144 +- .../src/Generated/QueryConfig.cs | 96 +- .../Generated/QueryResult.Serialization.cs | 119 +- .../src/Generated/QueryResult.cs | 45 +- .../src/Generated/Relationship.RestClient.cs | 88 + .../src/Generated/Relationship.cs | 416 +- .../src/Generated/RelationshipCategory.cs | 41 +- .../Generated/ResourceLink.Serialization.cs | 93 +- .../src/Generated/ResourceLink.cs | 40 +- .../src/Generated/RoundingMode.cs | 57 +- .../SearchFacetItem.Serialization.cs | 101 +- .../src/Generated/SearchFacetItem.cs | 41 +- .../SearchFacetItemValue.Serialization.cs | 95 +- .../src/Generated/SearchFacetItemValue.cs | 40 +- .../SearchFacetResultValue.Serialization.cs | 189 +- .../src/Generated/SearchFacetResultValue.cs | 68 +- .../SearchFacetSort.Serialization.cs | 97 +- .../src/Generated/SearchFacetSort.cs | 40 +- .../SearchHighlights.Serialization.cs | 210 +- .../src/Generated/SearchHighlights.cs | 53 +- .../SearchResultValue.Serialization.cs | 293 +- .../src/Generated/SearchResultValue.cs | 74 +- .../src/Generated/SearchSortOrder.cs | 37 +- .../SearchTaxonomySetting.Serialization.cs | 113 +- .../src/Generated/SearchTaxonomySetting.cs | 40 +- .../src/Generated/StatusAtlasRelationship.cs | 37 +- .../Generated/SuggestConfig.Serialization.cs | 108 +- .../src/Generated/SuggestConfig.cs | 66 +- .../Generated/SuggestResult.Serialization.cs | 97 +- .../src/Generated/SuggestResult.cs | 41 +- .../SuggestResultValue.Serialization.cs | 291 +- .../src/Generated/SuggestResultValue.cs | 74 +- .../TermSearchResultValue.Serialization.cs | 97 +- .../src/Generated/TermSearchResultValue.cs | 41 +- .../src/Generated/TermStatus.cs | 45 +- .../TermTemplateDef.Serialization.cs | 177 +- .../src/Generated/TermTemplateDef.cs | 53 +- .../Generated/TimeBoundary.Serialization.cs | 97 +- .../src/Generated/TimeBoundary.cs | 41 +- .../src/Generated/TypeCategory.cs | 61 +- .../Generated/TypeDefinition.RestClient.cs | 384 + .../src/Generated/TypeDefinition.cs | 2300 +- .../tspCodeModel.json | 75154 ++++++++++++++++ 198 files changed, 90958 insertions(+), 28953 deletions(-) create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.RestClient.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.RestClient.cs delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Glossary.xml delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Lineage.xml delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/TypeDefinition.xml create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.RestClient.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.RestClient.cs rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/{RequestContentHelper.cs => BinaryContentHelper.cs} (84%) create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CancellationTokenExtensions.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ClientPipelineExtensions.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenMemberAttribute.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSerializationAttribute.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSuppressAttribute.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenTypeAttribute.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ErrorResult.cs rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/{MultipartFormDataRequestContent.cs => MultiPartFormDataBinaryContent.cs} (61%) create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RawRequestUriBuilderExtensions.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContextExtensions.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/SerializationFormat.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/TypeFormatters.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.RestClient.cs rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{AnalyticsPurviewDataMapClientBuilderExtensions.cs => PurviewDataMapClientBuilderExtensions.cs} (53%) create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.RestClient.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.RestClient.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json b/sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json new file mode 100644 index 000000000000..ede811efdd93 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json @@ -0,0 +1,12 @@ +{ + "package-name": "Azure.Analytics.Purview.DataMap", + "namespace": "Azure.Analytics.Purview.DataMap", + "model-namespace": false, + "license": { + "name": "MIT License", + "company": "Microsoft Corporation", + "link": "https://mit-license.org", + "header": "Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License.", + "description": "Copyright (c) Microsoft Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE." + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs deleted file mode 100644 index 6e05cd9ada71..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs +++ /dev/null @@ -1,667 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Analytics.Purview.DataMap -{ - /// Model factory for models. - public static partial class AnalyticsPurviewDataMapModelFactory - { - /// Initializes a new instance of . - /// The attributes of the struct. - /// The name of the type. - /// ETag for concurrency control. - /// Business attributes. - /// An array of classifications. - /// The created time of the record. - /// The user who created the record. - /// Custom Attribute. - /// The GUID of the entity. - /// The home ID of the entity. - /// The collection ID of the entity. - /// Whether it is a shell entity. - /// labels. - /// An array of term assignment headers indicating the meanings of the entity. - /// Used to record the provenance of an instance of an entity or relationship. - /// Determines if there's a proxy. - /// The attributes of relationship. - /// - /// Status of the entity - can be active or deleted. Deleted entities are not - /// removed. - /// - /// The update time of the record. - /// The user who updated the record. - /// The version of the entity. - /// The dictionary of contacts for entities. Key could be Expert or Owner. - /// A new instance for mocking. - public static AtlasEntity AtlasEntity(IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, IDictionary businessAttributes = null, IEnumerable classifications = null, long? createTime = null, string createdBy = null, IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = null, IEnumerable labels = null, IEnumerable meanings = null, int? provenanceType = null, bool? proxy = null, IDictionary relationshipAttributes = null, EntityStatus? status = null, long? updateTime = null, string updatedBy = null, long? version = null, IDictionary> contacts = null) - { - attributes ??= new Dictionary(); - businessAttributes ??= new Dictionary(); - classifications ??= new List(); - customAttributes ??= new Dictionary(); - labels ??= new List(); - meanings ??= new List(); - relationshipAttributes ??= new Dictionary(); - contacts ??= new Dictionary>(); - - return new AtlasEntity( - attributes, - typeName, - lastModifiedTS, - businessAttributes, - classifications?.ToList(), - createTime, - createdBy, - customAttributes, - guid, - homeId, - collectionId, - isIncomplete, - labels?.ToList(), - meanings?.ToList(), - provenanceType, - proxy, - relationshipAttributes, - status, - updateTime, - updatedBy, - version, - contacts, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// A map of GUID assignments with entities. - /// The entity headers of mutated entities. - /// An array of entity headers that partially updated. - /// A new instance for mocking. - public static EntityMutationResult EntityMutationResult(IReadOnlyDictionary guidAssignments = null, IReadOnlyDictionary> mutatedEntities = null, IEnumerable partialUpdatedEntities = null) - { - guidAssignments ??= new Dictionary(); - mutatedEntities ??= new Dictionary>(); - partialUpdatedEntities ??= new List(); - - return new EntityMutationResult(guidAssignments, mutatedEntities, partialUpdatedEntities?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// An array of objects. - /// The size of the page. - /// The sorted by field. - /// to specify whether the result should be sorted? If yes, whether asc or desc. - /// The start index of the page. - /// The total count of items. - /// A new instance for mocking. - public static AtlasClassifications AtlasClassifications(IEnumerable list = null, int? pageSize = null, string sortBy = null, AtlasSortType? sortType = null, int? startIndex = null, int? totalCount = null) - { - list ??= new List(); - - return new AtlasClassifications( - list?.ToList(), - pageSize, - sortBy, - sortType, - startIndex, - totalCount, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// failed importInfoList. - /// successful importInfoList. - /// A new instance for mocking. - public static BulkImportResult BulkImportResult(IEnumerable failedImportInfoList = null, IEnumerable successImportInfoList = null) - { - failedImportInfoList ??= new List(); - successImportInfoList ??= new List(); - - return new BulkImportResult(failedImportInfoList?.ToList(), successImportInfoList?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// childObjectName. - /// importStatus. - /// parentObjectName. - /// remarks. - /// A new instance for mocking. - public static ImportInfo ImportInfo(string childObjectName = null, ImportStatus? importStatus = null, string parentObjectName = null, string remarks = null) - { - return new ImportInfo(childObjectName, importStatus, parentObjectName, remarks, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of the object. - /// An array of classifications. - /// The long version description. - /// The name of the glossary object. - /// The qualified name of the glossary object. - /// The short version of description. - /// ETag for concurrency control. - /// The created time of the record. - /// The user who created the record. - /// The update time of the record. - /// The user who updated the record. - /// An array of categories. - /// The language of the glossary. - /// An array of related term headers. - /// The usage of the glossary. - /// The glossary category information. - /// The glossary term information. - /// A new instance for mocking. - public static AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = null, string createdBy = null, long? updateTime = null, string updatedBy = null, IEnumerable categories = null, string language = null, IEnumerable terms = null, string usage = null, IReadOnlyDictionary categoryInfo = null, IReadOnlyDictionary termInfo = null) - { - classifications ??= new List(); - categories ??= new List(); - terms ??= new List(); - categoryInfo ??= new Dictionary(); - termInfo ??= new Dictionary(); - - return new AtlasGlossaryExtInfo( - guid, - classifications?.ToList(), - longDescription, - name, - qualifiedName, - shortDescription, - lastModifiedTS, - createTime, - createdBy, - updateTime, - updatedBy, - categories?.ToList(), - language, - terms?.ToList(), - usage, - categoryInfo, - termInfo, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// The total number of search results (not the number of documents in a single - /// page). - /// - /// 'True' if the '@search.count' is an approximate value and vise versa. - /// The token used to get next batch of data. Absent if there's no more data. - /// - /// A facet list that consists of index fields assetType ,classification, - /// contactId, and label. When the facet is specified in the request, the value of - /// the facet is returned as an element of @search.facets. - /// - /// Search result value. - /// A new instance for mocking. - public static QueryResult QueryResult(int? searchCount = null, bool? searchCountApproximate = null, string continuationToken = null, SearchFacetResultValue searchFacets = null, IEnumerable value = null) - { - value ??= new List(); - - return new QueryResult( - searchCount, - searchCountApproximate, - continuationToken, - searchFacets, - value?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Entity type. - /// Asset type. - /// Classification. - /// Term. - /// Contact id. - /// Contact type. - /// Label. - /// Glossary type. - /// Term status. - /// Term template. - /// A new instance for mocking. - public static SearchFacetResultValue SearchFacetResultValue(IEnumerable entityType = null, IEnumerable assetType = null, IEnumerable classification = null, IEnumerable term = null, IEnumerable contactId = null, IEnumerable contactType = null, IEnumerable label = null, IEnumerable glossaryType = null, IEnumerable termStatus = null, IEnumerable termTemplate = null) - { - entityType ??= new List(); - assetType ??= new List(); - classification ??= new List(); - term ??= new List(); - contactId ??= new List(); - contactType ??= new List(); - label ??= new List(); - glossaryType ??= new List(); - termStatus ??= new List(); - termTemplate ??= new List(); - - return new SearchFacetResultValue( - entityType?.ToList(), - assetType?.ToList(), - classification?.ToList(), - term?.ToList(), - contactId?.ToList(), - contactType?.ToList(), - label?.ToList(), - glossaryType?.ToList(), - termStatus?.ToList(), - termTemplate?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The count of the facet item. - /// The name of the facet item. - /// A new instance for mocking. - public static SearchFacetItemValue SearchFacetItemValue(int? count = null, string value = null) - { - return new SearchFacetItemValue(count, value, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// The search score calculated by the search engine. The results are ordered by - /// search score by default. - /// - /// - /// 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. - /// - /// - /// The object type of the record. Object type is the top-level property to - /// distinguish whether a record is an asset or a term. - /// - /// The create time of the record. The Unix epoch format. - /// The last update time of the record. The Unix epoch format. - /// The GUID of the record. - /// The name of the record. - /// The qualified name of the record. - /// The type name of the asset. - /// The description of the asset. - /// The endorsement of the asset. - /// The owner of the record. - /// The classifications of the record. - /// The labels of the asset. - /// The terms assigned to the asset. - /// The contacts of the asset. - /// The asset types of the asset. - /// - /// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or - /// AtlasGlossaryCategory. - /// - /// The glossary name of the term. - /// The status of the term. - /// The term template names used by the term. - /// The definition of the term. - /// A new instance for mocking. - public static SearchResultValue SearchResultValue(float? searchScore = null, SearchHighlights searchHighlights = null, string objectType = null, long? createTime = null, long? updateTime = null, string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, IEnumerable endorsement = null, string owner = null, IEnumerable classification = null, IEnumerable label = null, IEnumerable term = null, IEnumerable contact = null, IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, IEnumerable termTemplate = null, string longDescription = null) - { - endorsement ??= new List(); - classification ??= new List(); - label ??= new List(); - term ??= new List(); - contact ??= new List(); - assetType ??= new List(); - termTemplate ??= new List(); - - return new SearchResultValue( - searchScore, - searchHighlights, - objectType, - createTime, - updateTime, - id, - name, - qualifiedName, - entityType, - description, - endorsement?.ToList(), - owner, - classification?.ToList(), - label?.ToList(), - term?.ToList(), - contact?.ToList(), - assetType?.ToList(), - glossaryType, - glossary, - termStatus, - termTemplate?.ToList(), - longDescription, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Id. - /// Qualified name. - /// Name. - /// Description. - /// Entity type. - /// A new instance for mocking. - public static SearchHighlights SearchHighlights(IEnumerable id = null, IEnumerable qualifiedName = null, IEnumerable name = null, IEnumerable description = null, IEnumerable entityType = null) - { - id ??= new List(); - qualifiedName ??= new List(); - name ??= new List(); - description ??= new List(); - entityType ??= new List(); - - return new SearchHighlights( - id?.ToList(), - qualifiedName?.ToList(), - name?.ToList(), - description?.ToList(), - entityType?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The name of the term. - /// The name of the glossary which contains the term. - /// The GUID of the term. - /// A new instance for mocking. - public static TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) - { - return new TermSearchResultValue(name, glossaryName, guid, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of the contact. - /// The description of the contact. - /// - /// The type of the contact. It can be Expert or Owner for an entity. It can be - /// Expert or Steward for a glossary term. - /// - /// A new instance for mocking. - public static ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) - { - return new ContactSearchResultValue(id, info, contactType, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The result value. - /// A new instance for mocking. - public static SuggestResult SuggestResult(IEnumerable value = null) - { - value ??= new List(); - - return new SuggestResult(value?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// The search score calculated by the search engine. The results are ordered by - /// search score by default. - /// - /// - /// The target text that contains the keyword as prefix. The keyword is wrapped - /// with emphasis mark. - /// - /// - /// The object type of the record. Object type is the top-level property to - /// distinguish whether a record is an asset or a term. - /// - /// The create time of the record. The Unix epoch format. - /// The last update time of the record. The Unix epoch format. - /// The GUID of the record. - /// The name of the record. - /// The qualified name of the record. - /// The type name of the asset. - /// The description of the asset. - /// The endorsement of the asset. - /// The owner of the record. - /// The classifications of the record. - /// The labels of the asset. - /// The terms assigned to the asset. - /// The contacts of the asset. - /// The asset types of the asset. - /// - /// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or - /// AtlasGlossaryCategory. - /// - /// The glossary name of the term. - /// The status of the term. - /// The term template names used by the term. - /// The definition of the term. - /// A new instance for mocking. - public static SuggestResultValue SuggestResultValue(float? searchScore = null, string searchText = null, string objectType = null, long? createTime = null, long? updateTime = null, string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, IEnumerable endorsement = null, string owner = null, IEnumerable classification = null, IEnumerable label = null, IEnumerable term = null, IEnumerable contact = null, IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, IEnumerable termTemplate = null, string longDescription = null) - { - endorsement ??= new List(); - classification ??= new List(); - label ??= new List(); - term ??= new List(); - contact ??= new List(); - assetType ??= new List(); - termTemplate ??= new List(); - - return new SuggestResultValue( - searchScore, - searchText, - objectType, - createTime, - updateTime, - id, - name, - qualifiedName, - entityType, - description, - endorsement?.ToList(), - owner, - classification?.ToList(), - label?.ToList(), - term?.ToList(), - contact?.ToList(), - assetType?.ToList(), - glossaryType, - glossary, - termStatus, - termTemplate?.ToList(), - longDescription, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The result value. - /// A new instance for mocking. - public static AutoCompleteResult AutoCompleteResult(IEnumerable value = null) - { - value ??= new List(); - - return new AutoCompleteResult(value?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The completed term or phrase. - /// The completed search query text. - /// A new instance for mocking. - public static AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) - { - return new AutoCompleteResultValue(text, queryPlusText, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of the base entity. - /// The GUID entity map. - /// The entity count in specific direction. - /// The depth of lineage. - /// The width of lineage. - /// The number of children node. - /// The enum of lineage direction. - /// An array of parentRelations relations. - /// An array of lineage relations. - /// A new instance for mocking. - public static AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, IReadOnlyDictionary guidEntityMap = null, IReadOnlyDictionary> widthCounts = null, int? lineageDepth = null, int? lineageWidth = null, int? childrenCount = null, LineageDirection? lineageDirection = null, IEnumerable parentRelations = null, IEnumerable relations = null) - { - guidEntityMap ??= new Dictionary(); - widthCounts ??= new Dictionary>(); - parentRelations ??= new List(); - relations ??= new List(); - - return new AtlasLineageInfo( - baseEntityGuid, - guidEntityMap, - widthCounts, - lineageDepth, - lineageWidth, - childrenCount, - lineageDirection, - parentRelations?.ToList(), - relations?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of child entity. - /// The GUID of relationship. - /// The GUID of parent entity. - /// A new instance for mocking. - public static ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) - { - return new ParentRelation(childEntityId, relationshipId, parentEntityId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The GUID of from-entity. - /// The GUID of relationship. - /// The GUID of to-entity. - /// A new instance for mocking. - public static LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) - { - return new LineageRelation(fromEntityId, relationshipId, toEntityId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The referred entity header. - /// Atlas relationship instance. - /// A new instance for mocking. - public static AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(IReadOnlyDictionary referredEntities = null, AtlasRelationship relationship = null) - { - referredEntities ??= new Dictionary(); - - return new AtlasRelationshipWithExtInfo(referredEntities, relationship, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The enum of type category. - /// The created time of the record. - /// The user who created the record. - /// The date format. - /// The description of the type definition. - /// The GUID of the type definition. - /// The name of the type definition. - /// The options for the type definition. - /// The service type. - /// The version of the type. - /// The update time of the record. - /// The user who updated the record. - /// The version of the record. - /// ETag for concurrency control. - /// - /// Specifying a list of entityType names in the classificationDef, ensures that - /// classifications can - /// only be applied to those entityTypes. - /// - /// Any subtypes of the entity types inherit the restriction. - /// - /// Any classificationDef subtypes inherit the parents entityTypes restrictions. - /// - /// Any classificationDef subtypes can further restrict the parents entityTypes - /// restrictions by specifying a subset of the entityTypes. - /// - /// An empty entityTypes list when there are no parent restrictions means there are no - /// restrictions. - /// - /// An empty entityTypes list when there are parent - /// restrictions means that the subtype picks up the parents - /// restrictions. - /// - /// If a list of entityTypes are supplied, where one inherits - /// from another, this will be rejected. This should encourage cleaner - /// classificationsDefs. - /// - /// - /// An array of sub types. - /// An array of super types. - /// An array of relationship attributes. - /// The default value. - /// An array of enum element definitions. - /// - /// The relationshipEndDef represents an end of the relationship. The end of the - /// relationship is defined by a type, an - /// attribute name, cardinality and whether - /// it is the container end of the relationship. - /// - /// - /// The relationshipEndDef represents an end of the relationship. The end of the - /// relationship is defined by a type, an - /// attribute name, cardinality and whether - /// it is the container end of the relationship. - /// - /// - /// The Relationship category determines the style of relationship around - /// containment and lifecycle. - /// UML terminology is used for the values. - /// - /// ASSOCIATION is a relationship with no containment. - /// COMPOSITION and AGGREGATION are containment relationships. - /// - /// 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. - /// - /// The label of the relationship. - /// An array of attribute definitions. - /// A new instance for mocking. - public static AtlasTypeDef AtlasTypeDef(TypeCategory? category = null, long? createTime = null, string createdBy = null, AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, IReadOnlyDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = null, string updatedBy = null, long? version = null, string lastModifiedTS = null, IEnumerable entityTypes = null, IEnumerable subTypes = null, IEnumerable superTypes = null, IEnumerable relationshipAttributeDefs = null, string defaultValue = null, IEnumerable elementDefs = null, AtlasRelationshipEndDef endDef1 = null, AtlasRelationshipEndDef endDef2 = null, RelationshipCategory? relationshipCategory = null, string relationshipLabel = null, IEnumerable attributeDefs = null) - { - options ??= new Dictionary(); - entityTypes ??= new List(); - subTypes ??= new List(); - superTypes ??= new List(); - relationshipAttributeDefs ??= new List(); - elementDefs ??= new List(); - attributeDefs ??= new List(); - - return new AtlasTypeDef( - category, - createTime, - createdBy, - dateFormatter, - description, - guid, - name, - options, - serviceType, - typeVersion, - updateTime, - updatedBy, - version, - lastModifiedTS, - entityTypes?.ToList(), - subTypes?.ToList(), - superTypes?.ToList(), - relationshipAttributeDefs?.ToList(), - defaultValue, - elementDefs?.ToList(), - endDef1, - endDef2, - relationshipCategory, - relationshipLabel, - attributeDefs?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The enum of type category. - /// The GUID of the type definition. - /// The name of the type definition. - /// A new instance for mocking. - public static AtlasTypeDefHeader AtlasTypeDefHeader(TypeCategory? category = null, string guid = null, string name = null) - { - return new AtlasTypeDefHeader(category, guid, name, serializedAdditionalRawData: null); - } - } -} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.Serialization.cs index 3f6529aecd69..663927a2dd7b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasAttributeDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of a struct-attribute. + public partial class AtlasAttributeDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasAttributeDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Cardinality)) { writer.WritePropertyName("cardinality"u8); @@ -43,7 +42,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("constraints"u8); writer.WriteStartArray(); - foreach (var item in Constraints) + foreach (AtlasConstraintDef item in Constraints) { writer.WriteObjectValue(item, options); } @@ -91,6 +90,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -110,15 +114,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("valuesMinCount"u8); writer.WriteNumberValue(ValuesMinCount.Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -127,22 +131,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasAttributeDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasAttributeDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasAttributeDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasAttributeDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasAttributeDef(document.RootElement, options); } - internal static AtlasAttributeDef DeserializeAtlasAttributeDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasAttributeDef DeserializeAtlasAttributeDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -160,127 +169,132 @@ internal static AtlasAttributeDef DeserializeAtlasAttributeDef(JsonElement eleme string typeName = default; int? valuesMaxCount = default; int? valuesMinCount = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("cardinality"u8)) + if (prop.NameEquals("cardinality"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - cardinality = new CardinalityValue(property.Value.GetString()); + cardinality = new CardinalityValue(prop.Value.GetString()); continue; } - if (property.NameEquals("constraints"u8)) + if (prop.NameEquals("constraints"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasConstraintDef.DeserializeAtlasConstraintDef(item, options)); } constraints = array; continue; } - if (property.NameEquals("defaultValue"u8)) + if (prop.NameEquals("defaultValue"u8)) { - defaultValue = property.Value.GetString(); + defaultValue = prop.Value.GetString(); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("includeInNotification"u8)) + if (prop.NameEquals("includeInNotification"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - includeInNotification = property.Value.GetBoolean(); + includeInNotification = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isIndexable"u8)) + if (prop.NameEquals("isIndexable"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isIndexable = property.Value.GetBoolean(); + isIndexable = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isOptional"u8)) + if (prop.NameEquals("isOptional"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isOptional = property.Value.GetBoolean(); + isOptional = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isUnique"u8)) + if (prop.NameEquals("isUnique"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isUnique = property.Value.GetBoolean(); + isUnique = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("valuesMaxCount"u8)) + if (prop.NameEquals("valuesMaxCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - valuesMaxCount = property.Value.GetInt32(); + valuesMaxCount = prop.Value.GetInt32(); continue; } - if (property.NameEquals("valuesMinCount"u8)) + if (prop.NameEquals("valuesMinCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - valuesMinCount = property.Value.GetInt32(); + valuesMinCount = prop.Value.GetInt32(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasAttributeDef( cardinality, constraints ?? new ChangeTrackingList(), @@ -295,13 +309,16 @@ internal static AtlasAttributeDef DeserializeAtlasAttributeDef(JsonElement eleme typeName, valuesMaxCount, valuesMinCount, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -311,15 +328,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions o } } - AtlasAttributeDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasAttributeDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasAttributeDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasAttributeDef(document.RootElement, options); } default: @@ -327,22 +349,7 @@ AtlasAttributeDef IPersistableModel.Create(BinaryData data, M } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasAttributeDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasAttributeDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.cs index 8de1c04ddf5a..bc5e65f70672 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of a struct-attribute. public partial class AtlasAttributeDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasAttributeDef() @@ -66,8 +37,8 @@ public AtlasAttributeDef() /// The name of the type. /// The maximum count of the values. /// The minimum count of the values. - /// Keeps track of any properties unknown to the library. - internal AtlasAttributeDef(CardinalityValue? cardinality, IList constraints, string defaultValue, string description, bool? includeInNotification, bool? isIndexable, bool? isOptional, bool? isUnique, string name, IDictionary options, string typeName, int? valuesMaxCount, int? valuesMinCount, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasAttributeDef(CardinalityValue? cardinality, IList constraints, string defaultValue, string description, bool? includeInNotification, bool? isIndexable, bool? isOptional, bool? isUnique, string name, IDictionary options, string typeName, int? valuesMaxCount, int? valuesMinCount, IDictionary additionalBinaryDataProperties) { Cardinality = cardinality; Constraints = constraints; @@ -82,33 +53,45 @@ internal AtlasAttributeDef(CardinalityValue? cardinality, IList single-valued attribute or multi-valued attribute. public CardinalityValue? Cardinality { get; set; } + /// An array of constraints. public IList Constraints { get; } + /// The default value of the attribute. public string DefaultValue { get; set; } + /// The description of the attribute. public string Description { get; set; } + /// Determines if it is included in notification. public bool? IncludeInNotification { get; set; } + /// Determines if it is indexable. public bool? IsIndexable { get; set; } + /// Determines if it is optional. public bool? IsOptional { get; set; } + /// Determines if it unique. public bool? IsUnique { get; set; } + /// The name of the attribute. public string Name { get; set; } + /// The options for the attribute. public IDictionary Options { get; } + /// The name of the type. public string TypeName { get; set; } + /// The maximum count of the values. public int? ValuesMaxCount { get; set; } + /// The minimum count of the values. public int? ValuesMinCount { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.Serialization.cs index 25c959f82150..84155f6af705 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasBusinessMetadataDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of a struct-type. + public partial class AtlasBusinessMetadataDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRead /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasBusinessMetadataDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,21 +119,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -137,22 +142,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasBusinessMetadataDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasBusinessMetadataDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasBusinessMetadataDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasBusinessMetadataDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasBusinessMetadataDef(document.RootElement, options); } - internal static AtlasBusinessMetadataDef DeserializeAtlasBusinessMetadataDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasBusinessMetadataDef DeserializeAtlasBusinessMetadataDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -172,117 +182,123 @@ internal static AtlasBusinessMetadataDef DeserializeAtlasBusinessMetadataDef(Jso long? version = default; string lastModifiedTS = default; IList attributeDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } @@ -291,10 +307,9 @@ internal static AtlasBusinessMetadataDef DeserializeAtlasBusinessMetadataDef(Jso } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasBusinessMetadataDef( category, createTime, @@ -311,13 +326,16 @@ internal static AtlasBusinessMetadataDef DeserializeAtlasBusinessMetadataDef(Jso version, lastModifiedTS, attributeDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -327,15 +345,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOp } } - AtlasBusinessMetadataDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasBusinessMetadataDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasBusinessMetadataDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasBusinessMetadataDef(document.RootElement, options); } default: @@ -343,22 +366,14 @@ AtlasBusinessMetadataDef IPersistableModel.Create(Bina } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasBusinessMetadataDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasBusinessMetadataDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasBusinessMetadataDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasBusinessMetadataDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.cs index 3f178b20df67..7a9132671f26 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of a struct-type. public partial class AtlasBusinessMetadataDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasBusinessMetadataDef() @@ -68,8 +39,8 @@ public AtlasBusinessMetadataDef() /// The version of the record. /// ETag for concurrency control. /// An array of attribute definitions. - /// Keeps track of any properties unknown to the library. - internal AtlasBusinessMetadataDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasBusinessMetadataDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -86,37 +57,51 @@ internal AtlasBusinessMetadataDef(TypeCategory? category, long? createTime, stri Version = version; LastModifiedTS = lastModifiedTS; AttributeDefs = attributeDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of attribute definitions. public IList AttributeDefs { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.Serialization.cs index 935342611d25..7d712926495d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.Serialization.cs @@ -9,14 +9,18 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasClassification : IUtf8JsonSerializable, IJsonModel + /// + /// An instance of a classification; it doesn't have an identity, this object + /// exists only when associated with an entity. + /// + public partial class AtlasClassification : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +32,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasClassification)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Attributes)) { writer.WritePropertyName("attributes"u8); @@ -47,9 +50,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -86,21 +89,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("validityPeriods"u8); writer.WriteStartArray(); - foreach (var item in ValidityPeriods) + foreach (TimeBoundary item in ValidityPeriods) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -109,22 +112,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasClassification IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasClassification IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasClassification JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasClassification)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasClassification(document.RootElement, options); } - internal static AtlasClassification DeserializeAtlasClassification(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasClassification DeserializeAtlasClassification(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -136,72 +144,71 @@ internal static AtlasClassification DeserializeAtlasClassification(JsonElement e EntityStatus? entityStatus = default; bool? removePropagationsOnEntityDelete = default; IList validityPeriods = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("attributes"u8)) + if (prop.NameEquals("attributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } attributes = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("entityGuid"u8)) + if (prop.NameEquals("entityGuid"u8)) { - entityGuid = property.Value.GetString(); + entityGuid = prop.Value.GetString(); continue; } - if (property.NameEquals("entityStatus"u8)) + if (prop.NameEquals("entityStatus"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - entityStatus = new EntityStatus(property.Value.GetString()); + entityStatus = new EntityStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("removePropagationsOnEntityDelete"u8)) + if (prop.NameEquals("removePropagationsOnEntityDelete"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - removePropagationsOnEntityDelete = property.Value.GetBoolean(); + removePropagationsOnEntityDelete = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("validityPeriods"u8)) + if (prop.NameEquals("validityPeriods"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(TimeBoundary.DeserializeTimeBoundary(item, options)); } @@ -210,10 +217,9 @@ internal static AtlasClassification DeserializeAtlasClassification(JsonElement e } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasClassification( attributes ?? new ChangeTrackingDictionary(), typeName, @@ -222,13 +228,16 @@ internal static AtlasClassification DeserializeAtlasClassification(JsonElement e entityStatus, removePropagationsOnEntityDelete, validityPeriods ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -238,15 +247,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AtlasClassification IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasClassification IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasClassification PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasClassification(document.RootElement, options); } default: @@ -254,22 +268,14 @@ AtlasClassification IPersistableModel.Create(BinaryData dat } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasClassification FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasClassification(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasClassification(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasClassification(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.cs index 4da3563c7e9c..72ab6282c8ec 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { @@ -16,37 +17,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasClassification { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasClassification() @@ -66,8 +38,8 @@ public AtlasClassification() /// /// Determines if propagations will be removed on entity deletion. /// An array of time boundaries indicating validity periods. - /// Keeps track of any properties unknown to the library. - internal AtlasClassification(IDictionary attributes, string typeName, string lastModifiedTS, string entityGuid, EntityStatus? entityStatus, bool? removePropagationsOnEntityDelete, IList validityPeriods, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasClassification(IDictionary attributes, string typeName, string lastModifiedTS, string entityGuid, EntityStatus? entityStatus, bool? removePropagationsOnEntityDelete, IList validityPeriods, IDictionary additionalBinaryDataProperties) { Attributes = attributes; TypeName = typeName; @@ -76,53 +48,55 @@ internal AtlasClassification(IDictionary attributes, string EntityStatus = entityStatus; RemovePropagationsOnEntityDelete = removePropagationsOnEntityDelete; ValidityPeriods = validityPeriods; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// The attributes of the struct. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary Attributes { get; } + /// The name of the type. public string TypeName { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// The GUID of the entity. public string EntityGuid { get; set; } + /// /// Status of the entity - can be active or deleted. Deleted entities are not /// removed. /// public EntityStatus? EntityStatus { get; set; } + /// Determines if propagations will be removed on entity deletion. public bool? RemovePropagationsOnEntityDelete { get; set; } + /// An array of time boundaries indicating validity periods. public IList ValidityPeriods { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.Serialization.cs index 466c693b1954..29801b8dc11d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasClassificationDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of a classification-type. + public partial class AtlasClassificationDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasClassificationDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,7 +119,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } @@ -124,8 +129,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("entityTypes"u8); writer.WriteStartArray(); - foreach (var item in EntityTypes) + foreach (string item in EntityTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -134,8 +144,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("subTypes"u8); writer.WriteStartArray(); - foreach (var item in SubTypes) + foreach (string item in SubTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -144,21 +159,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("superTypes"u8); writer.WriteStartArray(); - foreach (var item in SuperTypes) + foreach (string item in SuperTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -167,22 +187,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasClassificationDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasClassificationDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasClassificationDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasClassificationDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasClassificationDef(document.RootElement, options); } - internal static AtlasClassificationDef DeserializeAtlasClassificationDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasClassificationDef DeserializeAtlasClassificationDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -205,171 +230,197 @@ internal static AtlasClassificationDef DeserializeAtlasClassificationDef(JsonEle IList entityTypes = default; IList subTypes = default; IList superTypes = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } attributeDefs = array; continue; } - if (property.NameEquals("entityTypes"u8)) + if (prop.NameEquals("entityTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } entityTypes = array; continue; } - if (property.NameEquals("subTypes"u8)) + if (prop.NameEquals("subTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } subTypes = array; continue; } - if (property.NameEquals("superTypes"u8)) + if (prop.NameEquals("superTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } superTypes = array; continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasClassificationDef( category, createTime, @@ -389,13 +440,16 @@ internal static AtlasClassificationDef DeserializeAtlasClassificationDef(JsonEle entityTypes ?? new ChangeTrackingList(), subTypes ?? new ChangeTrackingList(), superTypes ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -405,15 +459,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpti } } - AtlasClassificationDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasClassificationDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasClassificationDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasClassificationDef(document.RootElement, options); } default: @@ -421,22 +480,14 @@ AtlasClassificationDef IPersistableModel.Create(BinaryDa } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasClassificationDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasClassificationDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasClassificationDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasClassificationDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.cs index 6fe5e3fdc67e..f426b540773a 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of a classification-type. public partial class AtlasClassificationDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasClassificationDef() @@ -75,30 +46,30 @@ public AtlasClassificationDef() /// Specifying a list of entityType names in the classificationDef, ensures that /// classifications can /// only be applied to those entityTypes. - /// + /// /// Any subtypes of the entity types inherit the restriction. - /// + /// /// Any classificationDef subtypes inherit the parents entityTypes restrictions. - /// + /// /// Any classificationDef subtypes can further restrict the parents entityTypes /// restrictions by specifying a subset of the entityTypes. - /// + /// /// An empty entityTypes list when there are no parent restrictions means there are no /// restrictions. - /// + /// /// An empty entityTypes list when there are parent /// restrictions means that the subtype picks up the parents /// restrictions. - /// + /// /// If a list of entityTypes are supplied, where one inherits /// from another, this will be rejected. This should encourage cleaner /// classificationsDefs. - /// + /// /// /// An array of sub types. /// An array of super types. - /// Keeps track of any properties unknown to the library. - internal AtlasClassificationDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IList entityTypes, IList subTypes, IList superTypes, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasClassificationDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IList entityTypes, IList subTypes, IList superTypes, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -118,66 +89,83 @@ internal AtlasClassificationDef(TypeCategory? category, long? createTime, string EntityTypes = entityTypes; SubTypes = subTypes; SuperTypes = superTypes; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of attribute definitions. public IList AttributeDefs { get; } + /// /// Specifying a list of entityType names in the classificationDef, ensures that /// classifications can /// only be applied to those entityTypes. - /// + /// /// Any subtypes of the entity types inherit the restriction. - /// + /// /// Any classificationDef subtypes inherit the parents entityTypes restrictions. - /// + /// /// Any classificationDef subtypes can further restrict the parents entityTypes /// restrictions by specifying a subset of the entityTypes. - /// + /// /// An empty entityTypes list when there are no parent restrictions means there are no /// restrictions. - /// + /// /// An empty entityTypes list when there are parent /// restrictions means that the subtype picks up the parents /// restrictions. - /// + /// /// If a list of entityTypes are supplied, where one inherits /// from another, this will be rejected. This should encourage cleaner /// classificationsDefs. - /// + /// /// public IList EntityTypes { get; } + /// An array of sub types. public IList SubTypes { get; } + /// An array of super types. public IList SuperTypes { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.Serialization.cs index 11e750dbb210..392170442026 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasClassifications : IUtf8JsonSerializable, IJsonModel + /// REST serialization friendly list. + public partial class AtlasClassifications : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,17 +29,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasClassifications)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(List)) { writer.WritePropertyName("list"u8); writer.WriteStartArray(); - foreach (var item in List) + foreach (BinaryData item in List) { if (item == null) { @@ -46,9 +46,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item); + writer.WriteRawValue(item); #else - using (JsonDocument document = JsonDocument.Parse(item, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -81,15 +81,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("totalCount"u8); writer.WriteNumberValue(TotalCount.Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -98,44 +98,48 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasClassifications IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasClassifications IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasClassifications JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasClassifications)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasClassifications(document.RootElement, options); } - internal static AtlasClassifications DeserializeAtlasClassifications(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasClassifications DeserializeAtlasClassifications(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList list = default; + IList list = default; int? pageSize = default; string sortBy = default; AtlasSortType? sortType = default; int? startIndex = default; int? totalCount = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("list"u8)) + if (prop.NameEquals("list"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { @@ -149,53 +153,52 @@ internal static AtlasClassifications DeserializeAtlasClassifications(JsonElement list = array; continue; } - if (property.NameEquals("pageSize"u8)) + if (prop.NameEquals("pageSize"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - pageSize = property.Value.GetInt32(); + pageSize = prop.Value.GetInt32(); continue; } - if (property.NameEquals("sortBy"u8)) + if (prop.NameEquals("sortBy"u8)) { - sortBy = property.Value.GetString(); + sortBy = prop.Value.GetString(); continue; } - if (property.NameEquals("sortType"u8)) + if (prop.NameEquals("sortType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - sortType = new AtlasSortType(property.Value.GetString()); + sortType = new AtlasSortType(prop.Value.GetString()); continue; } - if (property.NameEquals("startIndex"u8)) + if (prop.NameEquals("startIndex"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - startIndex = property.Value.GetInt32(); + startIndex = prop.Value.GetInt32(); continue; } - if (property.NameEquals("totalCount"u8)) + if (prop.NameEquals("totalCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - totalCount = property.Value.GetInt32(); + totalCount = prop.Value.GetInt32(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasClassifications( list ?? new ChangeTrackingList(), pageSize, @@ -203,13 +206,16 @@ internal static AtlasClassifications DeserializeAtlasClassifications(JsonElement sortType, startIndex, totalCount, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -219,15 +225,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption } } - AtlasClassifications IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasClassifications IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasClassifications PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasClassifications(document.RootElement, options); } default: @@ -235,22 +246,14 @@ AtlasClassifications IPersistableModel.Create(BinaryData d } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasClassifications FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasClassifications(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasClassifications(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasClassifications(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.cs index 838cc4146449..b4e854b37ba1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// REST serialization friendly list. public partial class AtlasClassifications { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AtlasClassifications() @@ -58,8 +30,8 @@ internal AtlasClassifications() /// to specify whether the result should be sorted? If yes, whether asc or desc. /// The start index of the page. /// The total count of items. - /// Keeps track of any properties unknown to the library. - internal AtlasClassifications(IReadOnlyList list, int? pageSize, string sortBy, AtlasSortType? sortType, int? startIndex, int? totalCount, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasClassifications(IList list, int? pageSize, string sortBy, AtlasSortType? sortType, int? startIndex, int? totalCount, IDictionary additionalBinaryDataProperties) { List = list; PageSize = pageSize; @@ -67,48 +39,49 @@ internal AtlasClassifications(IReadOnlyList list, int? pageSize, str SortType = sortType; StartIndex = startIndex; TotalCount = totalCount; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// An array of objects. - /// - /// To assign an object to the element of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the element of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// - public IReadOnlyList List { get; } + public IList List { get; } + /// The size of the page. public int? PageSize { get; } + /// The sorted by field. public string SortBy { get; } + /// to specify whether the result should be sorted? If yes, whether asc or desc. public AtlasSortType? SortType { get; } + /// The start index of the page. public int? StartIndex { get; } + /// The total count of items. public int? TotalCount { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.Serialization.cs index 1980a5ed638e..f00cb86930b6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasConstraintDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of a constraint. + public partial class AtlasConstraintDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasConstraintDef)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Params)) { writer.WritePropertyName("params"u8); @@ -47,9 +46,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -62,15 +61,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -79,71 +78,77 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasConstraintDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasConstraintDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasConstraintDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasConstraintDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasConstraintDef(document.RootElement, options); } - internal static AtlasConstraintDef DeserializeAtlasConstraintDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasConstraintDef DeserializeAtlasConstraintDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } IDictionary @params = default; - string type = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + string @type = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("params"u8)) + if (prop.NameEquals("params"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } @params = dictionary; continue; } - if (property.NameEquals("type"u8)) + if (prop.NameEquals("type"u8)) { - type = property.Value.GetString(); + @type = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasConstraintDef(@params ?? new ChangeTrackingDictionary(), type, serializedAdditionalRawData); + return new AtlasConstraintDef(@params ?? new ChangeTrackingDictionary(), @type, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -153,15 +158,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AtlasConstraintDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasConstraintDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasConstraintDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasConstraintDef(document.RootElement, options); } default: @@ -169,22 +179,7 @@ AtlasConstraintDef IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasConstraintDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasConstraintDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.cs index de9c27b69437..13983a52ee31 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// class that captures details of a constraint. public partial class AtlasConstraintDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasConstraintDef() @@ -54,45 +26,42 @@ public AtlasConstraintDef() /// Initializes a new instance of . /// The parameters of the constraint definition. /// The type of the constraint. - /// Keeps track of any properties unknown to the library. - internal AtlasConstraintDef(IDictionary @params, string type, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasConstraintDef(IDictionary @params, string @type, IDictionary additionalBinaryDataProperties) { Params = @params; - Type = type; - _serializedAdditionalRawData = serializedAdditionalRawData; + Type = @type; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// The parameters of the constraint definition. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary Params { get; } + /// The type of the constraint. public string Type { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.Serialization.cs index 669e92919670..4bc35f645bd7 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasDateFormat : IUtf8JsonSerializable, IJsonModel + /// The date format. + public partial class AtlasDateFormat : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,18 +28,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasDateFormat)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(AvailableLocales)) { writer.WritePropertyName("availableLocales"u8); writer.WriteStartArray(); - foreach (var item in AvailableLocales) + foreach (string item in AvailableLocales) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -84,15 +88,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timeZone"u8); writer.WriteObjectValue(TimeZone, options); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -101,22 +105,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasDateFormat IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasDateFormat IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasDateFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasDateFormat)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasDateFormat(document.RootElement, options); } - internal static AtlasDateFormat DeserializeAtlasDateFormat(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasDateFormat DeserializeAtlasDateFormat(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -130,102 +139,107 @@ internal static AtlasDateFormat DeserializeAtlasDateFormat(JsonElement element, AtlasNumberFormat numberFormat = default; AtlasDateFormat timeInstance = default; AtlasTimeZone timeZone = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("availableLocales"u8)) + if (prop.NameEquals("availableLocales"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } availableLocales = array; continue; } - if (property.NameEquals("calendar"u8)) + if (prop.NameEquals("calendar"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - calendar = property.Value.GetSingle(); + calendar = prop.Value.GetSingle(); continue; } - if (property.NameEquals("dateInstance"u8)) + if (prop.NameEquals("dateInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateInstance = DeserializeAtlasDateFormat(property.Value, options); + dateInstance = DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("dateTimeInstance"u8)) + if (prop.NameEquals("dateTimeInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateTimeInstance = DeserializeAtlasDateFormat(property.Value, options); + dateTimeInstance = DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("instance"u8)) + if (prop.NameEquals("instance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - instance = DeserializeAtlasDateFormat(property.Value, options); + instance = DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("lenient"u8)) + if (prop.NameEquals("lenient"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - lenient = property.Value.GetBoolean(); + lenient = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("numberFormat"u8)) + if (prop.NameEquals("numberFormat"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - numberFormat = AtlasNumberFormat.DeserializeAtlasNumberFormat(property.Value, options); + numberFormat = AtlasNumberFormat.DeserializeAtlasNumberFormat(prop.Value, options); continue; } - if (property.NameEquals("timeInstance"u8)) + if (prop.NameEquals("timeInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - timeInstance = DeserializeAtlasDateFormat(property.Value, options); + timeInstance = DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("timeZone"u8)) + if (prop.NameEquals("timeZone"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - timeZone = AtlasTimeZone.DeserializeAtlasTimeZone(property.Value, options); + timeZone = AtlasTimeZone.DeserializeAtlasTimeZone(prop.Value, options); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasDateFormat( availableLocales ?? new ChangeTrackingList(), calendar, @@ -236,13 +250,16 @@ internal static AtlasDateFormat DeserializeAtlasDateFormat(JsonElement element, numberFormat, timeInstance, timeZone, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -252,15 +269,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opt } } - AtlasDateFormat IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasDateFormat IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasDateFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasDateFormat(document.RootElement, options); } default: @@ -268,22 +290,7 @@ AtlasDateFormat IPersistableModel.Create(BinaryData data, Model } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasDateFormat FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasDateFormat(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.cs index 46a56f7d45fd..3919cb390586 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The date format. public partial class AtlasDateFormat { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasDateFormat() @@ -61,8 +32,8 @@ public AtlasDateFormat() /// The number format. /// The date format. /// The timezone information. - /// Keeps track of any properties unknown to the library. - internal AtlasDateFormat(IList availableLocales, float? calendar, AtlasDateFormat dateInstance, AtlasDateFormat dateTimeInstance, AtlasDateFormat instance, bool? lenient, AtlasNumberFormat numberFormat, AtlasDateFormat timeInstance, AtlasTimeZone timeZone, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasDateFormat(IList availableLocales, float? calendar, AtlasDateFormat dateInstance, AtlasDateFormat dateTimeInstance, AtlasDateFormat instance, bool? lenient, AtlasNumberFormat numberFormat, AtlasDateFormat timeInstance, AtlasTimeZone timeZone, IDictionary additionalBinaryDataProperties) { AvailableLocales = availableLocales; Calendar = calendar; @@ -73,25 +44,33 @@ internal AtlasDateFormat(IList availableLocales, float? calendar, AtlasD NumberFormat = numberFormat; TimeInstance = timeInstance; TimeZone = timeZone; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// An array of available locales. public IList AvailableLocales { get; } + /// Calendar. public float? Calendar { get; set; } + /// The date format. public AtlasDateFormat DateInstance { get; set; } + /// The date format. public AtlasDateFormat DateTimeInstance { get; set; } + /// The date format. public AtlasDateFormat Instance { get; set; } + /// Determines the leniency of the date format. public bool? Lenient { get; set; } + /// The number format. public AtlasNumberFormat NumberFormat { get; set; } + /// The date format. public AtlasDateFormat TimeInstance { get; set; } + /// The timezone information. public AtlasTimeZone TimeZone { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.Serialization.cs index 395fcb38734b..b392d9a2bf07 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.Serialization.cs @@ -9,14 +9,19 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEntitiesWithExtInfo : IUtf8JsonSerializable, IJsonModel + /// + /// An instance of an entity along with extended info - like hive_table, + /// hive_database. + /// + public partial class AtlasEntitiesWithExtInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +33,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRead /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntitiesWithExtInfo)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(ReferredEntities)) { writer.WritePropertyName("referredEntities"u8); @@ -49,21 +53,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("entities"u8); writer.WriteStartArray(); - foreach (var item in Entities) + foreach (AtlasEntity item in Entities) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -72,54 +76,58 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEntitiesWithExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEntitiesWithExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEntitiesWithExtInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntitiesWithExtInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEntitiesWithExtInfo(document.RootElement, options); } - internal static AtlasEntitiesWithExtInfo DeserializeAtlasEntitiesWithExtInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEntitiesWithExtInfo DeserializeAtlasEntitiesWithExtInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } IDictionary referredEntities = default; IList entities = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("referredEntities"u8)) + if (prop.NameEquals("referredEntities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasEntity.DeserializeAtlasEntity(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasEntity.DeserializeAtlasEntity(prop0.Value, options)); } referredEntities = dictionary; continue; } - if (property.NameEquals("entities"u8)) + if (prop.NameEquals("entities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasEntity.DeserializeAtlasEntity(item, options)); } @@ -128,17 +136,19 @@ internal static AtlasEntitiesWithExtInfo DeserializeAtlasEntitiesWithExtInfo(Jso } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasEntitiesWithExtInfo(referredEntities ?? new ChangeTrackingDictionary(), entities ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new AtlasEntitiesWithExtInfo(referredEntities ?? new ChangeTrackingDictionary(), entities ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -148,15 +158,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOp } } - AtlasEntitiesWithExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEntitiesWithExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEntitiesWithExtInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEntitiesWithExtInfo(document.RootElement, options); } default: @@ -164,22 +179,26 @@ AtlasEntitiesWithExtInfo IPersistableModel.Create(Bina } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEntitiesWithExtInfo FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEntitiesWithExtInfo(document.RootElement); + if (atlasEntitiesWithExtInfo == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasEntitiesWithExtInfo, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasEntitiesWithExtInfo(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasEntitiesWithExtInfo(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.cs index cabc61e0a28b..1216a2930353 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.cs @@ -16,37 +16,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasEntitiesWithExtInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEntitiesWithExtInfo() @@ -58,16 +29,17 @@ public AtlasEntitiesWithExtInfo() /// Initializes a new instance of . /// The referred entities. /// An array of entities. - /// Keeps track of any properties unknown to the library. - internal AtlasEntitiesWithExtInfo(IDictionary referredEntities, IList entities, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEntitiesWithExtInfo(IDictionary referredEntities, IList entities, IDictionary additionalBinaryDataProperties) { ReferredEntities = referredEntities; Entities = entities; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The referred entities. public IDictionary ReferredEntities { get; } + /// An array of entities. public IList Entities { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.Serialization.cs index 6f1ce89db2f2..8e2ee98e7b29 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEntity : IUtf8JsonSerializable, IJsonModel + /// An instance of an entity - like hive_table, hive_database. + public partial class AtlasEntity : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptio /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntity)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Attributes)) { writer.WritePropertyName("attributes"u8); @@ -47,9 +46,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -80,9 +79,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -94,7 +93,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifications"u8); writer.WriteStartArray(); - foreach (var item in Classifications) + foreach (AtlasClassification item in Classifications) { writer.WriteObjectValue(item, options); } @@ -117,6 +116,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in CustomAttributes) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -145,8 +149,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("labels"u8); writer.WriteStartArray(); - foreach (var item in Labels) + foreach (string item in Labels) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -155,7 +164,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("meanings"u8); writer.WriteStartArray(); - foreach (var item in Meanings) + foreach (AtlasTermAssignmentHeader item in Meanings) { writer.WriteObjectValue(item, options); } @@ -184,9 +193,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -227,7 +236,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } writer.WriteStartArray(); - foreach (var item0 in item.Value) + foreach (ContactInfo item0 in item.Value) { writer.WriteObjectValue(item0, options); } @@ -235,15 +244,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -252,22 +261,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEntity IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEntity IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEntity JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntity)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEntity(document.RootElement, options); } - internal static AtlasEntity DeserializeAtlasEntity(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEntity DeserializeAtlasEntity(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -294,248 +308,261 @@ internal static AtlasEntity DeserializeAtlasEntity(JsonElement element, ModelRea string updatedBy = default; long? version = default; IDictionary> contacts = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("attributes"u8)) + if (prop.NameEquals("attributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } attributes = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("businessAttributes"u8)) + if (prop.NameEquals("businessAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } businessAttributes = dictionary; continue; } - if (property.NameEquals("classifications"u8)) + if (prop.NameEquals("classifications"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassification.DeserializeAtlasClassification(item, options)); } classifications = array; continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("customAttributes"u8)) + if (prop.NameEquals("customAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } customAttributes = dictionary; continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("homeId"u8)) + if (prop.NameEquals("homeId"u8)) { - homeId = property.Value.GetString(); + homeId = prop.Value.GetString(); continue; } - if (property.NameEquals("collectionId"u8)) + if (prop.NameEquals("collectionId"u8)) { - collectionId = property.Value.GetString(); + collectionId = prop.Value.GetString(); continue; } - if (property.NameEquals("isIncomplete"u8)) + if (prop.NameEquals("isIncomplete"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isIncomplete = property.Value.GetBoolean(); + isIncomplete = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("labels"u8)) + if (prop.NameEquals("labels"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } labels = array; continue; } - if (property.NameEquals("meanings"u8)) + if (prop.NameEquals("meanings"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasTermAssignmentHeader.DeserializeAtlasTermAssignmentHeader(item, options)); } meanings = array; continue; } - if (property.NameEquals("provenanceType"u8)) + if (prop.NameEquals("provenanceType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - provenanceType = property.Value.GetInt32(); + provenanceType = prop.Value.GetInt32(); continue; } - if (property.NameEquals("proxy"u8)) + if (prop.NameEquals("proxy"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - proxy = property.Value.GetBoolean(); + proxy = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("relationshipAttributes"u8)) + if (prop.NameEquals("relationshipAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } relationshipAttributes = dictionary; continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new EntityStatus(property.Value.GetString()); + status = new EntityStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("contacts"u8)) + if (prop.NameEquals("contacts"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) + foreach (var item in prop0.Value.EnumerateArray()) { array.Add(ContactInfo.DeserializeContactInfo(item, options)); } - dictionary.Add(property0.Name, array); + dictionary.Add(prop0.Name, array); } } contacts = dictionary; @@ -543,10 +570,9 @@ internal static AtlasEntity DeserializeAtlasEntity(JsonElement element, ModelRea } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasEntity( attributes ?? new ChangeTrackingDictionary(), typeName, @@ -570,13 +596,16 @@ internal static AtlasEntity DeserializeAtlasEntity(JsonElement element, ModelRea updatedBy, version, contacts ?? new ChangeTrackingDictionary>(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -586,15 +615,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options } } - AtlasEntity IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEntity IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEntity PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEntity(document.RootElement, options); } default: @@ -602,22 +636,7 @@ AtlasEntity IPersistableModel.Create(BinaryData data, ModelReaderWr } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEntity FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEntity(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.cs index a41db5fc10fa..9c082dbbd61b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// An instance of an entity - like hive_table, hive_database. public partial class AtlasEntity { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEntity() @@ -84,8 +56,8 @@ public AtlasEntity() /// The user who updated the record. /// The version of the entity. /// The dictionary of contacts for entities. Key could be Expert or Owner. - /// Keeps track of any properties unknown to the library. - internal AtlasEntity(IDictionary attributes, string typeName, string lastModifiedTS, IDictionary businessAttributes, IList classifications, long? createTime, string createdBy, IDictionary customAttributes, string guid, string homeId, string collectionId, bool? isIncomplete, IList labels, IList meanings, int? provenanceType, bool? proxy, IDictionary relationshipAttributes, EntityStatus? status, long? updateTime, string updatedBy, long? version, IDictionary> contacts, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEntity(IDictionary attributes, string typeName, string lastModifiedTS, IDictionary businessAttributes, IList classifications, long? createTime, string createdBy, IDictionary customAttributes, string guid, string homeId, string collectionId, bool? isIncomplete, IList labels, IList meanings, int? provenanceType, bool? proxy, IDictionary relationshipAttributes, EntityStatus? status, long? updateTime, string updatedBy, long? version, IDictionary> contacts, IDictionary additionalBinaryDataProperties) { Attributes = attributes; TypeName = typeName; @@ -109,141 +81,150 @@ internal AtlasEntity(IDictionary attributes, string typeName UpdatedBy = updatedBy; Version = version; Contacts = contacts; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// The attributes of the struct. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary Attributes { get; } + /// The name of the type. public string TypeName { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// /// Business attributes - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary BusinessAttributes { get; } + /// An array of classifications. public IList Classifications { get; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// Custom Attribute. public IDictionary CustomAttributes { get; } + /// The GUID of the entity. public string Guid { get; set; } + /// The home ID of the entity. public string HomeId { get; set; } + /// The collection ID of the entity. public string CollectionId { get; } + /// Whether it is a shell entity. public bool? IsIncomplete { get; set; } + /// labels. public IList Labels { get; } + /// An array of term assignment headers indicating the meanings of the entity. public IList Meanings { get; } + /// Used to record the provenance of an instance of an entity or relationship. public int? ProvenanceType { get; set; } + /// Determines if there's a proxy. public bool? Proxy { get; set; } + /// /// The attributes of relationship. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary RelationshipAttributes { get; } + /// /// Status of the entity - can be active or deleted. Deleted entities are not /// removed. /// public EntityStatus? Status { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the entity. public long? Version { get; set; } + /// The dictionary of contacts for entities. Key could be Expert or Owner. public IDictionary> Contacts { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.Serialization.cs index 668a88a1320a..bec5c0aa27ec 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEntityDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of a entity-type. + public partial class AtlasEntityDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOp /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,7 +119,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } @@ -124,8 +129,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("subTypes"u8); writer.WriteStartArray(); - foreach (var item in SubTypes) + foreach (string item in SubTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -134,8 +144,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("superTypes"u8); writer.WriteStartArray(); - foreach (var item in SuperTypes) + foreach (string item in SuperTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -144,21 +159,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("relationshipAttributeDefs"u8); writer.WriteStartArray(); - foreach (var item in RelationshipAttributeDefs) + foreach (AtlasRelationshipAttributeDef item in RelationshipAttributeDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -167,22 +182,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEntityDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEntityDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEntityDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEntityDef(document.RootElement, options); } - internal static AtlasEntityDef DeserializeAtlasEntityDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEntityDef DeserializeAtlasEntityDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -205,159 +225,179 @@ internal static AtlasEntityDef DeserializeAtlasEntityDef(JsonElement element, Mo IList subTypes = default; IList superTypes = default; IList relationshipAttributeDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } attributeDefs = array; continue; } - if (property.NameEquals("subTypes"u8)) + if (prop.NameEquals("subTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } subTypes = array; continue; } - if (property.NameEquals("superTypes"u8)) + if (prop.NameEquals("superTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } superTypes = array; continue; } - if (property.NameEquals("relationshipAttributeDefs"u8)) + if (prop.NameEquals("relationshipAttributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelationshipAttributeDef.DeserializeAtlasRelationshipAttributeDef(item, options)); } @@ -366,10 +406,9 @@ internal static AtlasEntityDef DeserializeAtlasEntityDef(JsonElement element, Mo } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasEntityDef( category, createTime, @@ -389,13 +428,16 @@ internal static AtlasEntityDef DeserializeAtlasEntityDef(JsonElement element, Mo subTypes ?? new ChangeTrackingList(), superTypes ?? new ChangeTrackingList(), relationshipAttributeDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -405,15 +447,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opti } } - AtlasEntityDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEntityDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEntityDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEntityDef(document.RootElement, options); } default: @@ -421,22 +468,14 @@ AtlasEntityDef IPersistableModel.Create(BinaryData data, ModelRe } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEntityDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEntityDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasEntityDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasEntityDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.cs index ee9ba4613225..9165e3b7ce56 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of a entity-type. public partial class AtlasEntityDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEntityDef() @@ -74,8 +45,8 @@ public AtlasEntityDef() /// An array of sub types. /// An array of super types. /// An array of relationship attributes. - /// Keeps track of any properties unknown to the library. - internal AtlasEntityDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IList subTypes, IList superTypes, IList relationshipAttributeDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEntityDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IList subTypes, IList superTypes, IList relationshipAttributeDefs, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -95,43 +66,60 @@ internal AtlasEntityDef(TypeCategory? category, long? createTime, string created SubTypes = subTypes; SuperTypes = superTypes; RelationshipAttributeDefs = relationshipAttributeDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of attribute definitions. public IList AttributeDefs { get; } + /// An array of sub types. public IList SubTypes { get; } + /// An array of super types. public IList SuperTypes { get; } + /// An array of relationship attributes. public IList RelationshipAttributeDefs { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.Serialization.cs index dce9bf4e1142..9dc5520888a6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEntityHeader : IUtf8JsonSerializable, IJsonModel + /// An instance of an entity - like hive_table, hive_database. + public partial class AtlasEntityHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityHeader)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Attributes)) { writer.WritePropertyName("attributes"u8); @@ -47,9 +47,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -71,8 +71,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classificationNames"u8); writer.WriteStartArray(); - foreach (var item in ClassificationNames) + foreach (string item in ClassificationNames) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -81,7 +86,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifications"u8); writer.WriteStartArray(); - foreach (var item in Classifications) + foreach (AtlasClassification item in Classifications) { writer.WriteObjectValue(item, options); } @@ -106,8 +111,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("labels"u8); writer.WriteStartArray(); - foreach (var item in Labels) + foreach (string item in Labels) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -116,8 +126,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("meaningNames"u8); writer.WriteStartArray(); - foreach (var item in MeaningNames) + foreach (string item in MeaningNames) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -126,7 +141,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("meanings"u8); writer.WriteStartArray(); - foreach (var item in Meanings) + foreach (AtlasTermAssignmentHeader item in Meanings) { writer.WriteObjectValue(item, options); } @@ -137,15 +152,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.Value.ToString()); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -154,22 +169,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEntityHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEntityHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEntityHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEntityHeader(document.RootElement, options); } - internal static AtlasEntityHeader DeserializeAtlasEntityHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEntityHeader DeserializeAtlasEntityHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -186,145 +206,164 @@ internal static AtlasEntityHeader DeserializeAtlasEntityHeader(JsonElement eleme IList meaningNames = default; IList meanings = default; EntityStatus? status = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("attributes"u8)) + if (prop.NameEquals("attributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } attributes = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("classificationNames"u8)) + if (prop.NameEquals("classificationNames"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } classificationNames = array; continue; } - if (property.NameEquals("classifications"u8)) + if (prop.NameEquals("classifications"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassification.DeserializeAtlasClassification(item, options)); } classifications = array; continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("isIncomplete"u8)) + if (prop.NameEquals("isIncomplete"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isIncomplete = property.Value.GetBoolean(); + isIncomplete = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("labels"u8)) + if (prop.NameEquals("labels"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } labels = array; continue; } - if (property.NameEquals("meaningNames"u8)) + if (prop.NameEquals("meaningNames"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } meaningNames = array; continue; } - if (property.NameEquals("meanings"u8)) + if (prop.NameEquals("meanings"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasTermAssignmentHeader.DeserializeAtlasTermAssignmentHeader(item, options)); } meanings = array; continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new EntityStatus(property.Value.GetString()); + status = new EntityStatus(prop.Value.GetString()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasEntityHeader( attributes ?? new ChangeTrackingDictionary(), typeName, @@ -338,13 +377,16 @@ internal static AtlasEntityHeader DeserializeAtlasEntityHeader(JsonElement eleme meaningNames ?? new ChangeTrackingList(), meanings ?? new ChangeTrackingList(), status, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -354,15 +396,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions o } } - AtlasEntityHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEntityHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEntityHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEntityHeader(document.RootElement, options); } default: @@ -370,22 +417,14 @@ AtlasEntityHeader IPersistableModel.Create(BinaryData data, M } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEntityHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEntityHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasEntityHeader(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasEntityHeader(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.cs index a0bb9fe8683f..af3558399a35 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// An instance of an entity - like hive_table, hive_database. public partial class AtlasEntityHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEntityHeader() @@ -72,8 +44,8 @@ public AtlasEntityHeader() /// Status of the entity - can be active or deleted. Deleted entities are not /// removed. /// - /// Keeps track of any properties unknown to the library. - internal AtlasEntityHeader(IDictionary attributes, string typeName, string lastModifiedTS, IList classificationNames, IList classifications, string displayText, string guid, bool? isIncomplete, IList labels, IList meaningNames, IList meanings, EntityStatus? status, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEntityHeader(IDictionary attributes, string typeName, string lastModifiedTS, IList classificationNames, IList classifications, string displayText, string guid, bool? isIncomplete, IList labels, IList meaningNames, IList meanings, EntityStatus? status, IDictionary additionalBinaryDataProperties) { Attributes = attributes; TypeName = typeName; @@ -87,60 +59,67 @@ internal AtlasEntityHeader(IDictionary attributes, string ty MeaningNames = meaningNames; Meanings = meanings; Status = status; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// The attributes of the struct. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary Attributes { get; } + /// The name of the type. public string TypeName { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of classification names. public IList ClassificationNames { get; } + /// An array of classifications. public IList Classifications { get; } + /// The display text. public string DisplayText { get; set; } + /// The GUID of the record. public string Guid { get; set; } + /// Whether it is a shell entity. public bool? IsIncomplete { get; set; } + /// labels. public IList Labels { get; } + /// An array of meanings. public IList MeaningNames { get; } + /// An array of term assignment headers. public IList Meanings { get; } + /// /// Status of the entity - can be active or deleted. Deleted entities are not /// removed. diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.Serialization.cs index c0fd53f97322..d64507de11ce 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.Serialization.cs @@ -13,10 +13,11 @@ namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEntityHeaders : IUtf8JsonSerializable, IJsonModel + /// An instance of an entity header map. + public partial class AtlasEntityHeaders : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityHeaders)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(GuidHeaderMap)) { writer.WritePropertyName("guidHeaderMap"u8); @@ -45,15 +45,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -62,58 +62,64 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEntityHeaders IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEntityHeaders IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEntityHeaders JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityHeaders)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEntityHeaders(document.RootElement, options); } - internal static AtlasEntityHeaders DeserializeAtlasEntityHeaders(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEntityHeaders DeserializeAtlasEntityHeaders(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } IDictionary guidHeaderMap = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guidHeaderMap"u8)) + if (prop.NameEquals("guidHeaderMap"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasEntityHeader.DeserializeAtlasEntityHeader(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasEntityHeader.DeserializeAtlasEntityHeader(prop0.Value, options)); } guidHeaderMap = dictionary; continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasEntityHeaders(guidHeaderMap ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + return new AtlasEntityHeaders(guidHeaderMap ?? new ChangeTrackingDictionary(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -123,15 +129,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AtlasEntityHeaders IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEntityHeaders IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEntityHeaders PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEntityHeaders(document.RootElement, options); } default: @@ -139,21 +150,18 @@ AtlasEntityHeaders IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEntityHeaders FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasEntityHeaders atlasEntityHeaders) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEntityHeaders(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + if (atlasEntityHeaders == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasEntityHeaders, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.cs index 7ce217b78f61..173b80a1ab74 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// An instance of an entity header map. public partial class AtlasEntityHeaders { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEntityHeaders() @@ -53,11 +24,11 @@ public AtlasEntityHeaders() /// Initializes a new instance of . /// The description of the guid header map,. - /// Keeps track of any properties unknown to the library. - internal AtlasEntityHeaders(IDictionary guidHeaderMap, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEntityHeaders(IDictionary guidHeaderMap, IDictionary additionalBinaryDataProperties) { GuidHeaderMap = guidHeaderMap; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The description of the guid header map,. diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.Serialization.cs index 6ad77ca39905..e23c1d97400d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.Serialization.cs @@ -9,14 +9,19 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEntityWithExtInfo : IUtf8JsonSerializable, IJsonModel + /// + /// An instance of an entity along with extended info - like hive_table, + /// hive_database. + /// + public partial class AtlasEntityWithExtInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +33,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityWithExtInfo)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(ReferredEntities)) { writer.WritePropertyName("referredEntities"u8); @@ -50,15 +54,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("entity"u8); writer.WriteObjectValue(Entity, options); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -67,68 +71,74 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEntityWithExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEntityWithExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEntityWithExtInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEntityWithExtInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEntityWithExtInfo(document.RootElement, options); } - internal static AtlasEntityWithExtInfo DeserializeAtlasEntityWithExtInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEntityWithExtInfo DeserializeAtlasEntityWithExtInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } IDictionary referredEntities = default; AtlasEntity entity = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("referredEntities"u8)) + if (prop.NameEquals("referredEntities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasEntity.DeserializeAtlasEntity(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasEntity.DeserializeAtlasEntity(prop0.Value, options)); } referredEntities = dictionary; continue; } - if (property.NameEquals("entity"u8)) + if (prop.NameEquals("entity"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - entity = AtlasEntity.DeserializeAtlasEntity(property.Value, options); + entity = AtlasEntity.DeserializeAtlasEntity(prop.Value, options); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasEntityWithExtInfo(referredEntities ?? new ChangeTrackingDictionary(), entity, serializedAdditionalRawData); + return new AtlasEntityWithExtInfo(referredEntities ?? new ChangeTrackingDictionary(), entity, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -138,15 +148,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpti } } - AtlasEntityWithExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEntityWithExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEntityWithExtInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEntityWithExtInfo(document.RootElement, options); } default: @@ -154,22 +169,26 @@ AtlasEntityWithExtInfo IPersistableModel.Create(BinaryDa } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEntityWithExtInfo FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasEntityWithExtInfo atlasEntityWithExtInfo) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEntityWithExtInfo(document.RootElement); + if (atlasEntityWithExtInfo == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasEntityWithExtInfo, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasEntityWithExtInfo(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasEntityWithExtInfo(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.cs index 565fd8bcea7d..0102fa7ec1f6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.cs @@ -16,37 +16,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasEntityWithExtInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEntityWithExtInfo() @@ -57,16 +28,17 @@ public AtlasEntityWithExtInfo() /// Initializes a new instance of . /// The referred entities. /// An instance of an entity - like hive_table, hive_database. - /// Keeps track of any properties unknown to the library. - internal AtlasEntityWithExtInfo(IDictionary referredEntities, AtlasEntity entity, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEntityWithExtInfo(IDictionary referredEntities, AtlasEntity entity, IDictionary additionalBinaryDataProperties) { ReferredEntities = referredEntities; Entity = entity; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The referred entities. public IDictionary ReferredEntities { get; } + /// An instance of an entity - like hive_table, hive_database. public AtlasEntity Entity { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.Serialization.cs index 35d3fb40eb35..c9ba23fffb04 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEnumDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of an enum-type. + public partial class AtlasEnumDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEnumDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -119,21 +124,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("elementDefs"u8); writer.WriteStartArray(); - foreach (var item in ElementDefs) + foreach (AtlasEnumElementDef item in ElementDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -142,22 +147,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEnumDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEnumDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEnumDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEnumDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEnumDef(document.RootElement, options); } - internal static AtlasEnumDef DeserializeAtlasEnumDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEnumDef DeserializeAtlasEnumDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -178,122 +188,128 @@ internal static AtlasEnumDef DeserializeAtlasEnumDef(JsonElement element, ModelR string lastModifiedTS = default; string defaultValue = default; IList elementDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("defaultValue"u8)) + if (prop.NameEquals("defaultValue"u8)) { - defaultValue = property.Value.GetString(); + defaultValue = prop.Value.GetString(); continue; } - if (property.NameEquals("elementDefs"u8)) + if (prop.NameEquals("elementDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasEnumElementDef.DeserializeAtlasEnumElementDef(item, options)); } @@ -302,10 +318,9 @@ internal static AtlasEnumDef DeserializeAtlasEnumDef(JsonElement element, ModelR } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasEnumDef( category, createTime, @@ -323,13 +338,16 @@ internal static AtlasEnumDef DeserializeAtlasEnumDef(JsonElement element, ModelR lastModifiedTS, defaultValue, elementDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -339,15 +357,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions option } } - AtlasEnumDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEnumDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEnumDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEnumDef(document.RootElement, options); } default: @@ -355,22 +378,14 @@ AtlasEnumDef IPersistableModel.Create(BinaryData data, ModelReader } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEnumDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEnumDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasEnumDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasEnumDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.cs index 704d9c4e9ad1..5f0bc14b015f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of an enum-type. public partial class AtlasEnumDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEnumDef() @@ -69,8 +40,8 @@ public AtlasEnumDef() /// ETag for concurrency control. /// The default value. /// An array of enum element definitions. - /// Keeps track of any properties unknown to the library. - internal AtlasEnumDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, string defaultValue, IList elementDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEnumDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, string defaultValue, IList elementDefs, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -88,39 +59,54 @@ internal AtlasEnumDef(TypeCategory? category, long? createTime, string createdBy LastModifiedTS = lastModifiedTS; DefaultValue = defaultValue; ElementDefs = elementDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// The default value. public string DefaultValue { get; set; } + /// An array of enum element definitions. public IList ElementDefs { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.Serialization.cs index 5754c6a5407a..4449f83ef7a1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasEnumElementDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of an enum-element. + public partial class AtlasEnumElementDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEnumElementDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("value"u8); writer.WriteStringValue(Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasEnumElementDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasEnumElementDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasEnumElementDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasEnumElementDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasEnumElementDef(document.RootElement, options); } - internal static AtlasEnumElementDef DeserializeAtlasEnumElementDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasEnumElementDef DeserializeAtlasEnumElementDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,42 +93,43 @@ internal static AtlasEnumElementDef DeserializeAtlasEnumElementDef(JsonElement e string description = default; int? ordinal = default; string value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("ordinal"u8)) + if (prop.NameEquals("ordinal"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - ordinal = property.Value.GetInt32(); + ordinal = prop.Value.GetInt32(); continue; } - if (property.NameEquals("value"u8)) + if (prop.NameEquals("value"u8)) { - value = property.Value.GetString(); + value = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasEnumElementDef(description, ordinal, value, serializedAdditionalRawData); + return new AtlasEnumElementDef(description, ordinal, value, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -134,15 +139,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AtlasEnumElementDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasEnumElementDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasEnumElementDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasEnumElementDef(document.RootElement, options); } default: @@ -150,22 +160,7 @@ AtlasEnumElementDef IPersistableModel.Create(BinaryData dat } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasEnumElementDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasEnumElementDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.cs index 983f6de3d819..9ce342f6a5df 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of an enum-element. public partial class AtlasEnumElementDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasEnumElementDef() @@ -54,19 +25,21 @@ public AtlasEnumElementDef() /// The description of the enum element definition. /// The ordinal of the enum element definition. /// The value of the enum element definition. - /// Keeps track of any properties unknown to the library. - internal AtlasEnumElementDef(string description, int? ordinal, string value, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasEnumElementDef(string description, int? ordinal, string value, IDictionary additionalBinaryDataProperties) { Description = description; Ordinal = ordinal; Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The description of the enum element definition. public string Description { get; set; } + /// The ordinal of the enum element definition. public int? Ordinal { get; set; } + /// The value of the enum element definition. public string Value { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.Serialization.cs index 460ab90e5a5f..d96124868b9b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.Serialization.cs @@ -9,14 +9,16 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasGlossary : IUtf8JsonSerializable, IJsonModel + /// The glossary object. + public partial class AtlasGlossary : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +30,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossary)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -43,7 +44,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifications"u8); writer.WriteStartArray(); - foreach (var item in Classifications) + foreach (AtlasClassification item in Classifications) { writer.WriteObjectValue(item, options); } @@ -98,7 +99,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("categories"u8); writer.WriteStartArray(); - foreach (var item in Categories) + foreach (AtlasRelatedCategoryHeader item in Categories) { writer.WriteObjectValue(item, options); } @@ -113,7 +114,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("terms"u8); writer.WriteStartArray(); - foreach (var item in Terms) + foreach (AtlasRelatedTermHeader item in Terms) { writer.WriteObjectValue(item, options); } @@ -124,15 +125,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("usage"u8); writer.WriteStringValue(Usage); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -141,22 +142,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasGlossary IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasGlossary IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasGlossary JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossary)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasGlossary(document.RootElement, options); } - internal static AtlasGlossary DeserializeAtlasGlossary(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasGlossary DeserializeAtlasGlossary(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -176,126 +182,124 @@ internal static AtlasGlossary DeserializeAtlasGlossary(JsonElement element, Mode string language = default; IList terms = default; string usage = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("classifications"u8)) + if (prop.NameEquals("classifications"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassification.DeserializeAtlasClassification(item, options)); } classifications = array; continue; } - if (property.NameEquals("longDescription"u8)) + if (prop.NameEquals("longDescription"u8)) { - longDescription = property.Value.GetString(); + longDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - qualifiedName = property.Value.GetString(); + qualifiedName = prop.Value.GetString(); continue; } - if (property.NameEquals("shortDescription"u8)) + if (prop.NameEquals("shortDescription"u8)) { - shortDescription = property.Value.GetString(); + shortDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("categories"u8)) + if (prop.NameEquals("categories"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item, options)); } categories = array; continue; } - if (property.NameEquals("language"u8)) + if (prop.NameEquals("language"u8)) { - language = property.Value.GetString(); + language = prop.Value.GetString(); continue; } - if (property.NameEquals("terms"u8)) + if (prop.NameEquals("terms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } terms = array; continue; } - if (property.NameEquals("usage"u8)) + if (prop.NameEquals("usage"u8)) { - usage = property.Value.GetString(); + usage = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasGlossary( guid, classifications ?? new ChangeTrackingList(), @@ -312,13 +316,16 @@ internal static AtlasGlossary DeserializeAtlasGlossary(JsonElement element, Mode language, terms ?? new ChangeTrackingList(), usage, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -328,15 +335,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions optio } } - AtlasGlossary IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasGlossary IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasGlossary PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasGlossary(document.RootElement, options); } default: @@ -344,22 +356,26 @@ AtlasGlossary IPersistableModel.Create(BinaryData data, ModelRead } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasGlossary FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasGlossary atlasGlossary) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasGlossary(document.RootElement); + if (atlasGlossary == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasGlossary, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasGlossary(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasGlossary(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.cs index 2ef4e5a22dbd..8fb297a3ded7 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The glossary object. public partial class AtlasGlossary { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasGlossary() @@ -69,8 +40,8 @@ public AtlasGlossary() /// The language of the glossary. /// An array of related term headers. /// The usage of the glossary. - /// Keeps track of any properties unknown to the library. - internal AtlasGlossary(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, IList categories, string language, IList terms, string usage, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasGlossary(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, IList categories, string language, IList terms, string usage, IDictionary additionalBinaryDataProperties) { Guid = guid; Classifications = classifications; @@ -87,37 +58,51 @@ internal AtlasGlossary(string guid, IList classifications, Language = language; Terms = terms; Usage = usage; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the object. public string Guid { get; set; } + /// An array of classifications. public IList Classifications { get; } + /// The long version description. public string LongDescription { get; set; } + /// The name of the glossary object. public string Name { get; set; } + /// The qualified name of the glossary object. public string QualifiedName { get; set; } + /// The short version of description. public string ShortDescription { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// An array of categories. public IList Categories { get; } + /// The language of the glossary. public string Language { get; set; } + /// An array of related term headers. public IList Terms { get; } + /// The usage of the glossary. public string Usage { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.Serialization.cs index 7857b2911657..74af533ac9bd 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.Serialization.cs @@ -9,14 +9,16 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasGlossaryCategory : IUtf8JsonSerializable, IJsonModel + /// The glossary category. + public partial class AtlasGlossaryCategory : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +30,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryCategory)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -43,7 +44,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifications"u8); writer.WriteStartArray(); - foreach (var item in Classifications) + foreach (AtlasClassification item in Classifications) { writer.WriteObjectValue(item, options); } @@ -103,7 +104,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("childrenCategories"u8); writer.WriteStartArray(); - foreach (var item in ChildrenCategories) + foreach (AtlasRelatedCategoryHeader item in ChildrenCategories) { writer.WriteObjectValue(item, options); } @@ -118,21 +119,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("terms"u8); writer.WriteStartArray(); - foreach (var item in Terms) + foreach (AtlasRelatedTermHeader item in Terms) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -141,22 +142,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasGlossaryCategory IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasGlossaryCategory IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryCategory JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryCategory)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasGlossaryCategory(document.RootElement, options); } - internal static AtlasGlossaryCategory DeserializeAtlasGlossaryCategory(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasGlossaryCategory DeserializeAtlasGlossaryCategory(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -176,122 +182,121 @@ internal static AtlasGlossaryCategory DeserializeAtlasGlossaryCategory(JsonEleme IList childrenCategories = default; AtlasRelatedCategoryHeader parentCategory = default; IList terms = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("classifications"u8)) + if (prop.NameEquals("classifications"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassification.DeserializeAtlasClassification(item, options)); } classifications = array; continue; } - if (property.NameEquals("longDescription"u8)) + if (prop.NameEquals("longDescription"u8)) { - longDescription = property.Value.GetString(); + longDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - qualifiedName = property.Value.GetString(); + qualifiedName = prop.Value.GetString(); continue; } - if (property.NameEquals("shortDescription"u8)) + if (prop.NameEquals("shortDescription"u8)) { - shortDescription = property.Value.GetString(); + shortDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("anchor"u8)) + if (prop.NameEquals("anchor"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - anchor = AtlasGlossaryHeader.DeserializeAtlasGlossaryHeader(property.Value, options); + anchor = AtlasGlossaryHeader.DeserializeAtlasGlossaryHeader(prop.Value, options); continue; } - if (property.NameEquals("childrenCategories"u8)) + if (prop.NameEquals("childrenCategories"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item, options)); } childrenCategories = array; continue; } - if (property.NameEquals("parentCategory"u8)) + if (prop.NameEquals("parentCategory"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - parentCategory = AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(property.Value, options); + parentCategory = AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(prop.Value, options); continue; } - if (property.NameEquals("terms"u8)) + if (prop.NameEquals("terms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } @@ -300,10 +305,9 @@ internal static AtlasGlossaryCategory DeserializeAtlasGlossaryCategory(JsonEleme } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasGlossaryCategory( guid, classifications ?? new ChangeTrackingList(), @@ -320,13 +324,16 @@ internal static AtlasGlossaryCategory DeserializeAtlasGlossaryCategory(JsonEleme childrenCategories ?? new ChangeTrackingList(), parentCategory, terms ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -336,15 +343,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptio } } - AtlasGlossaryCategory IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasGlossaryCategory IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryCategory PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasGlossaryCategory(document.RootElement, options); } default: @@ -352,22 +364,26 @@ AtlasGlossaryCategory IPersistableModel.Create(BinaryData } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasGlossaryCategory FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasGlossaryCategory atlasGlossaryCategory) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasGlossaryCategory(document.RootElement); + if (atlasGlossaryCategory == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasGlossaryCategory, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasGlossaryCategory(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasGlossaryCategory(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.cs index 52e4b0125d27..b95f7fc0105b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The glossary category. public partial class AtlasGlossaryCategory { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasGlossaryCategory() @@ -69,8 +40,8 @@ public AtlasGlossaryCategory() /// An array of children categories. /// The header of the related category. /// An array of related term headers. - /// Keeps track of any properties unknown to the library. - internal AtlasGlossaryCategory(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, AtlasGlossaryHeader anchor, IList childrenCategories, AtlasRelatedCategoryHeader parentCategory, IList terms, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasGlossaryCategory(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, AtlasGlossaryHeader anchor, IList childrenCategories, AtlasRelatedCategoryHeader parentCategory, IList terms, IDictionary additionalBinaryDataProperties) { Guid = guid; Classifications = classifications; @@ -87,37 +58,51 @@ internal AtlasGlossaryCategory(string guid, IList classific ChildrenCategories = childrenCategories; ParentCategory = parentCategory; Terms = terms; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the object. public string Guid { get; set; } + /// An array of classifications. public IList Classifications { get; } + /// The long version description. public string LongDescription { get; set; } + /// The name of the glossary object. public string Name { get; set; } + /// The qualified name of the glossary object. public string QualifiedName { get; set; } + /// The short version of description. public string ShortDescription { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The glossary header with basic information. public AtlasGlossaryHeader Anchor { get; set; } + /// An array of children categories. public IList ChildrenCategories { get; } + /// The header of the related category. public AtlasRelatedCategoryHeader ParentCategory { get; set; } + /// An array of related term headers. public IList Terms { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.Serialization.cs index a11983ec08e6..fb020d7c21ea 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasGlossaryExtInfo : IUtf8JsonSerializable, IJsonModel + /// The extended information of glossary. + public partial class AtlasGlossaryExtInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryExtInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -43,7 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifications"u8); writer.WriteStartArray(); - foreach (var item in Classifications) + foreach (AtlasClassification item in Classifications) { writer.WriteObjectValue(item, options); } @@ -98,7 +98,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("categories"u8); writer.WriteStartArray(); - foreach (var item in Categories) + foreach (AtlasRelatedCategoryHeader item in Categories) { writer.WriteObjectValue(item, options); } @@ -113,7 +113,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("terms"u8); writer.WriteStartArray(); - foreach (var item in Terms) + foreach (AtlasRelatedTermHeader item in Terms) { writer.WriteObjectValue(item, options); } @@ -146,15 +146,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -163,28 +163,33 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasGlossaryExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasGlossaryExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryExtInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryExtInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasGlossaryExtInfo(document.RootElement, options); } - internal static AtlasGlossaryExtInfo DeserializeAtlasGlossaryExtInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasGlossaryExtInfo DeserializeAtlasGlossaryExtInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } string guid = default; - IReadOnlyList classifications = default; + IList classifications = default; string longDescription = default; string name = default; string qualifiedName = default; @@ -194,160 +199,158 @@ internal static AtlasGlossaryExtInfo DeserializeAtlasGlossaryExtInfo(JsonElement string createdBy = default; long? updateTime = default; string updatedBy = default; - IReadOnlyList categories = default; + IList categories = default; string language = default; - IReadOnlyList terms = default; + IList terms = default; string usage = default; - IReadOnlyDictionary categoryInfo = default; - IReadOnlyDictionary termInfo = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary categoryInfo = default; + IDictionary termInfo = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("classifications"u8)) + if (prop.NameEquals("classifications"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassification.DeserializeAtlasClassification(item, options)); } classifications = array; continue; } - if (property.NameEquals("longDescription"u8)) + if (prop.NameEquals("longDescription"u8)) { - longDescription = property.Value.GetString(); + longDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - qualifiedName = property.Value.GetString(); + qualifiedName = prop.Value.GetString(); continue; } - if (property.NameEquals("shortDescription"u8)) + if (prop.NameEquals("shortDescription"u8)) { - shortDescription = property.Value.GetString(); + shortDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("categories"u8)) + if (prop.NameEquals("categories"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item, options)); } categories = array; continue; } - if (property.NameEquals("language"u8)) + if (prop.NameEquals("language"u8)) { - language = property.Value.GetString(); + language = prop.Value.GetString(); continue; } - if (property.NameEquals("terms"u8)) + if (prop.NameEquals("terms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } terms = array; continue; } - if (property.NameEquals("usage"u8)) + if (prop.NameEquals("usage"u8)) { - usage = property.Value.GetString(); + usage = prop.Value.GetString(); continue; } - if (property.NameEquals("categoryInfo"u8)) + if (prop.NameEquals("categoryInfo"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(prop0.Value, options)); } categoryInfo = dictionary; continue; } - if (property.NameEquals("termInfo"u8)) + if (prop.NameEquals("termInfo"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(prop0.Value, options)); } termInfo = dictionary; continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasGlossaryExtInfo( guid, classifications ?? new ChangeTrackingList(), @@ -366,13 +369,16 @@ internal static AtlasGlossaryExtInfo DeserializeAtlasGlossaryExtInfo(JsonElement usage, categoryInfo ?? new ChangeTrackingDictionary(), termInfo ?? new ChangeTrackingDictionary(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -382,15 +388,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption } } - AtlasGlossaryExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasGlossaryExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryExtInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasGlossaryExtInfo(document.RootElement, options); } default: @@ -398,22 +409,14 @@ AtlasGlossaryExtInfo IPersistableModel.Create(BinaryData d } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasGlossaryExtInfo FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasGlossaryExtInfo(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasGlossaryExtInfo(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasGlossaryExtInfo(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.cs index bdc02912f868..5f6d9f95e283 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The extended information of glossary. public partial class AtlasGlossaryExtInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AtlasGlossaryExtInfo() @@ -73,8 +44,8 @@ internal AtlasGlossaryExtInfo() /// The usage of the glossary. /// The glossary category information. /// The glossary term information. - /// Keeps track of any properties unknown to the library. - internal AtlasGlossaryExtInfo(string guid, IReadOnlyList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, IReadOnlyList categories, string language, IReadOnlyList terms, string usage, IReadOnlyDictionary categoryInfo, IReadOnlyDictionary termInfo, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasGlossaryExtInfo(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, IList categories, string language, IList terms, string usage, IDictionary categoryInfo, IDictionary termInfo, IDictionary additionalBinaryDataProperties) { Guid = guid; Classifications = classifications; @@ -93,42 +64,58 @@ internal AtlasGlossaryExtInfo(string guid, IReadOnlyList cl Usage = usage; CategoryInfo = categoryInfo; TermInfo = termInfo; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the object. public string Guid { get; } + /// An array of classifications. - public IReadOnlyList Classifications { get; } + public IList Classifications { get; } + /// The long version description. public string LongDescription { get; } + /// The name of the glossary object. public string Name { get; } + /// The qualified name of the glossary object. public string QualifiedName { get; } + /// The short version of description. public string ShortDescription { get; } + /// ETag for concurrency control. public string LastModifiedTS { get; } + /// The created time of the record. public long? CreateTime { get; } + /// The user who created the record. public string CreatedBy { get; } + /// The update time of the record. public long? UpdateTime { get; } + /// The user who updated the record. public string UpdatedBy { get; } + /// An array of categories. - public IReadOnlyList Categories { get; } + public IList Categories { get; } + /// The language of the glossary. public string Language { get; } + /// An array of related term headers. - public IReadOnlyList Terms { get; } + public IList Terms { get; } + /// The usage of the glossary. public string Usage { get; } + /// The glossary category information. - public IReadOnlyDictionary CategoryInfo { get; } + public IDictionary CategoryInfo { get; } + /// The glossary term information. - public IReadOnlyDictionary TermInfo { get; } + public IDictionary TermInfo { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.Serialization.cs index 6c8cfb131e8c..26295b1cf372 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasGlossaryHeader : IUtf8JsonSerializable, IJsonModel + /// The glossary header with basic information. + public partial class AtlasGlossaryHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryHeader)} does not support writing '{format}' format."); } - if (Optional.IsDefined(DisplayText)) { writer.WritePropertyName("displayText"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationGuid"u8); writer.WriteStringValue(RelationGuid); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasGlossaryHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasGlossaryHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasGlossaryHeader(document.RootElement, options); } - internal static AtlasGlossaryHeader DeserializeAtlasGlossaryHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasGlossaryHeader DeserializeAtlasGlossaryHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,38 +93,39 @@ internal static AtlasGlossaryHeader DeserializeAtlasGlossaryHeader(JsonElement e string displayText = default; string glossaryGuid = default; string relationGuid = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("glossaryGuid"u8)) + if (prop.NameEquals("glossaryGuid"u8)) { - glossaryGuid = property.Value.GetString(); + glossaryGuid = prop.Value.GetString(); continue; } - if (property.NameEquals("relationGuid"u8)) + if (prop.NameEquals("relationGuid"u8)) { - relationGuid = property.Value.GetString(); + relationGuid = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasGlossaryHeader(displayText, glossaryGuid, relationGuid, serializedAdditionalRawData); + return new AtlasGlossaryHeader(displayText, glossaryGuid, relationGuid, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -130,15 +135,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AtlasGlossaryHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasGlossaryHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasGlossaryHeader(document.RootElement, options); } default: @@ -146,22 +156,7 @@ AtlasGlossaryHeader IPersistableModel.Create(BinaryData dat } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasGlossaryHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasGlossaryHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.cs index 1a0e56a9235b..016757b853f0 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The glossary header with basic information. public partial class AtlasGlossaryHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasGlossaryHeader() @@ -54,19 +25,21 @@ public AtlasGlossaryHeader() /// The display text. /// The GUID of the glossary. /// The GUID of the relationship. - /// Keeps track of any properties unknown to the library. - internal AtlasGlossaryHeader(string displayText, string glossaryGuid, string relationGuid, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasGlossaryHeader(string displayText, string glossaryGuid, string relationGuid, IDictionary additionalBinaryDataProperties) { DisplayText = displayText; GlossaryGuid = glossaryGuid; RelationGuid = relationGuid; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The display text. public string DisplayText { get; set; } + /// The GUID of the glossary. public string GlossaryGuid { get; set; } + /// The GUID of the relationship. public string RelationGuid { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.Serialization.cs index 00f93c16b7fc..095a9d0753f9 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.Serialization.cs @@ -9,14 +9,16 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasGlossaryTerm : IUtf8JsonSerializable, IJsonModel + /// The glossary term. + public partial class AtlasGlossaryTerm : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +30,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryTerm)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -43,7 +44,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifications"u8); writer.WriteStartArray(); - foreach (var item in Classifications) + foreach (AtlasClassification item in Classifications) { writer.WriteObjectValue(item, options); } @@ -103,7 +104,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("templateName"u8); writer.WriteStartArray(); - foreach (var item in TemplateName) + foreach (BinaryData item in TemplateName) { if (item == null) { @@ -111,9 +112,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item); + writer.WriteRawValue(item); #else - using (JsonDocument document = JsonDocument.Parse(item, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -130,7 +131,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("antonyms"u8); writer.WriteStartArray(); - foreach (var item in Antonyms) + foreach (AtlasRelatedTermHeader item in Antonyms) { writer.WriteObjectValue(item, options); } @@ -150,7 +151,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("hierarchyInfo"u8); writer.WriteStartArray(); - foreach (var item in HierarchyInfo) + foreach (PurviewObjectId item in HierarchyInfo) { writer.WriteObjectValue(item, options); } @@ -160,7 +161,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("resources"u8); writer.WriteStartArray(); - foreach (var item in Resources) + foreach (ResourceLink item in Resources) { writer.WriteObjectValue(item, options); } @@ -179,7 +180,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } writer.WriteStartArray(); - foreach (var item0 in item.Value) + foreach (ContactInfo item0 in item.Value) { writer.WriteObjectValue(item0, options); } @@ -209,9 +210,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item0.Value); + writer.WriteRawValue(item0.Value); #else - using (JsonDocument document = JsonDocument.Parse(item0.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item0.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -225,7 +226,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("assignedEntities"u8); writer.WriteStartArray(); - foreach (var item in AssignedEntities) + foreach (AtlasRelatedObjectId item in AssignedEntities) { writer.WriteObjectValue(item, options); } @@ -235,7 +236,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("categories"u8); writer.WriteStartArray(); - foreach (var item in Categories) + foreach (AtlasTermCategorizationHeader item in Categories) { writer.WriteObjectValue(item, options); } @@ -245,7 +246,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classifies"u8); writer.WriteStartArray(); - foreach (var item in Classifies) + foreach (AtlasRelatedTermHeader item in Classifies) { writer.WriteObjectValue(item, options); } @@ -255,8 +256,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("examples"u8); writer.WriteStartArray(); - foreach (var item in Examples) + foreach (string item in Examples) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -265,7 +271,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("isA"u8); writer.WriteStartArray(); - foreach (var item in IsA) + foreach (AtlasRelatedTermHeader item in IsA) { writer.WriteObjectValue(item, options); } @@ -275,7 +281,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("preferredTerms"u8); writer.WriteStartArray(); - foreach (var item in PreferredTerms) + foreach (AtlasRelatedTermHeader item in PreferredTerms) { writer.WriteObjectValue(item, options); } @@ -285,7 +291,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("preferredToTerms"u8); writer.WriteStartArray(); - foreach (var item in PreferredToTerms) + foreach (AtlasRelatedTermHeader item in PreferredToTerms) { writer.WriteObjectValue(item, options); } @@ -295,7 +301,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("replacedBy"u8); writer.WriteStartArray(); - foreach (var item in ReplacedBy) + foreach (AtlasRelatedTermHeader item in ReplacedBy) { writer.WriteObjectValue(item, options); } @@ -305,7 +311,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("replacementTerms"u8); writer.WriteStartArray(); - foreach (var item in ReplacementTerms) + foreach (AtlasRelatedTermHeader item in ReplacementTerms) { writer.WriteObjectValue(item, options); } @@ -315,7 +321,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("seeAlso"u8); writer.WriteStartArray(); - foreach (var item in SeeAlso) + foreach (AtlasRelatedTermHeader item in SeeAlso) { writer.WriteObjectValue(item, options); } @@ -325,7 +331,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("synonyms"u8); writer.WriteStartArray(); - foreach (var item in Synonyms) + foreach (AtlasRelatedTermHeader item in Synonyms) { writer.WriteObjectValue(item, options); } @@ -335,7 +341,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("translatedTerms"u8); writer.WriteStartArray(); - foreach (var item in TranslatedTerms) + foreach (AtlasRelatedTermHeader item in TranslatedTerms) { writer.WriteObjectValue(item, options); } @@ -345,7 +351,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("translationTerms"u8); writer.WriteStartArray(); - foreach (var item in TranslationTerms) + foreach (AtlasRelatedTermHeader item in TranslationTerms) { writer.WriteObjectValue(item, options); } @@ -360,7 +366,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("validValues"u8); writer.WriteStartArray(); - foreach (var item in ValidValues) + foreach (AtlasRelatedTermHeader item in ValidValues) { writer.WriteObjectValue(item, options); } @@ -370,21 +376,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("validValuesFor"u8); writer.WriteStartArray(); - foreach (var item in ValidValuesFor) + foreach (AtlasRelatedTermHeader item in ValidValuesFor) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -393,22 +399,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasGlossaryTerm IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasGlossaryTerm IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryTerm JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasGlossaryTerm)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasGlossaryTerm(document.RootElement, options); } - internal static AtlasGlossaryTerm DeserializeAtlasGlossaryTerm(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasGlossaryTerm DeserializeAtlasGlossaryTerm(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -450,95 +461,94 @@ internal static AtlasGlossaryTerm DeserializeAtlasGlossaryTerm(JsonElement eleme string usage = default; IList validValues = default; IList validValuesFor = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("classifications"u8)) + if (prop.NameEquals("classifications"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassification.DeserializeAtlasClassification(item, options)); } classifications = array; continue; } - if (property.NameEquals("longDescription"u8)) + if (prop.NameEquals("longDescription"u8)) { - longDescription = property.Value.GetString(); + longDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - qualifiedName = property.Value.GetString(); + qualifiedName = prop.Value.GetString(); continue; } - if (property.NameEquals("shortDescription"u8)) + if (prop.NameEquals("shortDescription"u8)) { - shortDescription = property.Value.GetString(); + shortDescription = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("abbreviation"u8)) + if (prop.NameEquals("abbreviation"u8)) { - abbreviation = property.Value.GetString(); + abbreviation = prop.Value.GetString(); continue; } - if (property.NameEquals("templateName"u8)) + if (prop.NameEquals("templateName"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { @@ -552,339 +562,346 @@ internal static AtlasGlossaryTerm DeserializeAtlasGlossaryTerm(JsonElement eleme templateName = array; continue; } - if (property.NameEquals("anchor"u8)) + if (prop.NameEquals("anchor"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - anchor = AtlasGlossaryHeader.DeserializeAtlasGlossaryHeader(property.Value, options); + anchor = AtlasGlossaryHeader.DeserializeAtlasGlossaryHeader(prop.Value, options); continue; } - if (property.NameEquals("antonyms"u8)) + if (prop.NameEquals("antonyms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } antonyms = array; continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new TermStatus(property.Value.GetString()); + status = new TermStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("nickName"u8)) + if (prop.NameEquals("nickName"u8)) { - nickName = property.Value.GetString(); + nickName = prop.Value.GetString(); continue; } - if (property.NameEquals("hierarchyInfo"u8)) + if (prop.NameEquals("hierarchyInfo"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(PurviewObjectId.DeserializePurviewObjectId(item, options)); } hierarchyInfo = array; continue; } - if (property.NameEquals("resources"u8)) + if (prop.NameEquals("resources"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(ResourceLink.DeserializeResourceLink(item, options)); } resources = array; continue; } - if (property.NameEquals("contacts"u8)) + if (prop.NameEquals("contacts"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) + foreach (var item in prop0.Value.EnumerateArray()) { array.Add(ContactInfo.DeserializeContactInfo(item, options)); } - dictionary.Add(property0.Name, array); + dictionary.Add(prop0.Name, array); } } contacts = dictionary; continue; } - if (property.NameEquals("attributes"u8)) + if (prop.NameEquals("attributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { Dictionary dictionary0 = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) + foreach (var prop1 in prop0.Value.EnumerateObject()) { - if (property1.Value.ValueKind == JsonValueKind.Null) + if (prop1.Value.ValueKind == JsonValueKind.Null) { - dictionary0.Add(property1.Name, null); + dictionary0.Add(prop1.Name, null); } else { - dictionary0.Add(property1.Name, BinaryData.FromString(property1.Value.GetRawText())); + dictionary0.Add(prop1.Name, BinaryData.FromString(prop1.Value.GetRawText())); } } - dictionary.Add(property0.Name, dictionary0); + dictionary.Add(prop0.Name, dictionary0); } } attributes = dictionary; continue; } - if (property.NameEquals("assignedEntities"u8)) + if (prop.NameEquals("assignedEntities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedObjectId.DeserializeAtlasRelatedObjectId(item, options)); } assignedEntities = array; continue; } - if (property.NameEquals("categories"u8)) + if (prop.NameEquals("categories"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasTermCategorizationHeader.DeserializeAtlasTermCategorizationHeader(item, options)); } categories = array; continue; } - if (property.NameEquals("classifies"u8)) + if (prop.NameEquals("classifies"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } classifies = array; continue; } - if (property.NameEquals("examples"u8)) + if (prop.NameEquals("examples"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } examples = array; continue; } - if (property.NameEquals("isA"u8)) + if (prop.NameEquals("isA"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } isA = array; continue; } - if (property.NameEquals("preferredTerms"u8)) + if (prop.NameEquals("preferredTerms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } preferredTerms = array; continue; } - if (property.NameEquals("preferredToTerms"u8)) + if (prop.NameEquals("preferredToTerms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } preferredToTerms = array; continue; } - if (property.NameEquals("replacedBy"u8)) + if (prop.NameEquals("replacedBy"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } replacedBy = array; continue; } - if (property.NameEquals("replacementTerms"u8)) + if (prop.NameEquals("replacementTerms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } replacementTerms = array; continue; } - if (property.NameEquals("seeAlso"u8)) + if (prop.NameEquals("seeAlso"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } seeAlso = array; continue; } - if (property.NameEquals("synonyms"u8)) + if (prop.NameEquals("synonyms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } synonyms = array; continue; } - if (property.NameEquals("translatedTerms"u8)) + if (prop.NameEquals("translatedTerms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } translatedTerms = array; continue; } - if (property.NameEquals("translationTerms"u8)) + if (prop.NameEquals("translationTerms"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } translationTerms = array; continue; } - if (property.NameEquals("usage"u8)) + if (prop.NameEquals("usage"u8)) { - usage = property.Value.GetString(); + usage = prop.Value.GetString(); continue; } - if (property.NameEquals("validValues"u8)) + if (prop.NameEquals("validValues"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } validValues = array; continue; } - if (property.NameEquals("validValuesFor"u8)) + if (prop.NameEquals("validValuesFor"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, options)); } @@ -893,10 +910,9 @@ internal static AtlasGlossaryTerm DeserializeAtlasGlossaryTerm(JsonElement eleme } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasGlossaryTerm( guid, classifications ?? new ChangeTrackingList(), @@ -935,13 +951,16 @@ internal static AtlasGlossaryTerm DeserializeAtlasGlossaryTerm(JsonElement eleme usage, validValues ?? new ChangeTrackingList(), validValuesFor ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -951,15 +970,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions o } } - AtlasGlossaryTerm IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasGlossaryTerm IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasGlossaryTerm PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasGlossaryTerm(document.RootElement, options); } default: @@ -967,22 +991,26 @@ AtlasGlossaryTerm IPersistableModel.Create(BinaryData data, M } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasGlossaryTerm FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasGlossaryTerm atlasGlossaryTerm) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasGlossaryTerm(document.RootElement); + if (atlasGlossaryTerm == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasGlossaryTerm, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasGlossaryTerm(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasGlossaryTerm(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs index e37f525c1059..1e8306177c3e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// The glossary term. public partial class AtlasGlossaryTerm { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasGlossaryTerm() @@ -114,8 +86,8 @@ public AtlasGlossaryTerm() /// The usage of the term. /// An array of related term headers as valid values. /// An array of related term headers as valid values for other records. - /// Keeps track of any properties unknown to the library. - internal AtlasGlossaryTerm(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, string abbreviation, IList templateName, AtlasGlossaryHeader anchor, IList antonyms, TermStatus? status, string nickName, IList hierarchyInfo, IList resources, IDictionary> contacts, IDictionary> attributes, IList assignedEntities, IList categories, IList classifies, IList examples, IList isA, IList preferredTerms, IList preferredToTerms, IList replacedBy, IList replacementTerms, IList seeAlso, IList synonyms, IList translatedTerms, IList translationTerms, string usage, IList validValues, IList validValuesFor, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasGlossaryTerm(string guid, IList classifications, string longDescription, string name, string qualifiedName, string shortDescription, string lastModifiedTS, long? createTime, string createdBy, long? updateTime, string updatedBy, string abbreviation, IList templateName, AtlasGlossaryHeader anchor, IList antonyms, TermStatus? status, string nickName, IList hierarchyInfo, IList resources, IDictionary> contacts, IDictionary> attributes, IList assignedEntities, IList categories, IList classifies, IList examples, IList isA, IList preferredTerms, IList preferredToTerms, IList replacedBy, IList replacementTerms, IList seeAlso, IList synonyms, IList translatedTerms, IList translationTerms, string usage, IList validValues, IList validValuesFor, IDictionary additionalBinaryDataProperties) { Guid = guid; Classifications = classifications; @@ -154,141 +126,169 @@ internal AtlasGlossaryTerm(string guid, IList classificatio Usage = usage; ValidValues = validValues; ValidValuesFor = validValuesFor; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the object. public string Guid { get; set; } + /// An array of classifications. public IList Classifications { get; } + /// The long version description. public string LongDescription { get; set; } + /// The name of the glossary object. public string Name { get; set; } + /// The qualified name of the glossary object. public string QualifiedName { get; set; } + /// The short version of description. public string ShortDescription { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The abbreviation of the term. public string Abbreviation { get; set; } + /// /// The name of the template. - /// - /// To assign an object to the element of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the element of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IList TemplateName { get; } + /// The glossary header with basic information. public AtlasGlossaryHeader Anchor { get; set; } + /// An array of related term headers as antonyms. public IList Antonyms { get; } + /// Status of the AtlasGlossaryTerm. public TermStatus? Status { get; set; } + /// The nick name of the term. public string NickName { get; set; } + /// The hierarchy information of the term. public IList HierarchyInfo { get; } + /// An array of resource link for term. public IList Resources { get; } + /// The dictionary of contacts for terms. Key could be Expert or Steward. public IDictionary> Contacts { get; } + /// /// The custom attributes of the term, which is map<string,map<string,object>>. /// The /// key of the first layer map is term template name. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary> Attributes { get; } + /// An array of related object IDs. public IList AssignedEntities { get; } + /// An array of term categorization headers. public IList Categories { get; } + /// An array of related term headers. public IList Classifies { get; } + /// An array of examples. public IList Examples { get; } + /// An array of related term headers indicating the is-a relationship. public IList IsA { get; } + /// An array of preferred related term headers. public IList PreferredTerms { get; } + /// An array of related term headers that are preferred to. public IList PreferredToTerms { get; } + /// An array of related term headers that are replaced by. public IList ReplacedBy { get; } + /// An array of related term headers for replacement. public IList ReplacementTerms { get; } + /// An array of related term headers for see also. public IList SeeAlso { get; } + /// An array of related term headers as synonyms. public IList Synonyms { get; } + /// An array of translated related term headers. public IList TranslatedTerms { get; } + /// An array of related term headers for translation. public IList TranslationTerms { get; } + /// The usage of the term. public string Usage { get; set; } + /// An array of related term headers as valid values. public IList ValidValues { get; } + /// An array of related term headers as valid values for other records. public IList ValidValuesFor { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.Serialization.cs index 6d6309e81b0b..b8c5e0fc9b0d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasLineageInfo : IUtf8JsonSerializable, IJsonModel + /// The lineage information. + public partial class AtlasLineageInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasLineageInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(BaseEntityGuid)) { writer.WritePropertyName("baseEntityGuid"u8); @@ -72,9 +72,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item0.Value); + writer.WriteRawValue(item0.Value); #else - using (JsonDocument document = JsonDocument.Parse(item0.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item0.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -108,7 +108,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("parentRelations"u8); writer.WriteStartArray(); - foreach (var item in ParentRelations) + foreach (ParentRelation item in ParentRelations) { writer.WriteObjectValue(item, options); } @@ -118,21 +118,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("relations"u8); writer.WriteStartArray(); - foreach (var item in Relations) + foreach (LineageRelation item in Relations) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -141,149 +141,153 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasLineageInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasLineageInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasLineageInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasLineageInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasLineageInfo(document.RootElement, options); } - internal static AtlasLineageInfo DeserializeAtlasLineageInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasLineageInfo DeserializeAtlasLineageInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } string baseEntityGuid = default; - IReadOnlyDictionary guidEntityMap = default; - IReadOnlyDictionary> widthCounts = default; + IDictionary guidEntityMap = default; + IDictionary> widthCounts = default; int? lineageDepth = default; int? lineageWidth = default; int? childrenCount = default; LineageDirection? lineageDirection = default; - IReadOnlyList parentRelations = default; - IReadOnlyList relations = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList parentRelations = default; + IList relations = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("baseEntityGuid"u8)) + if (prop.NameEquals("baseEntityGuid"u8)) { - baseEntityGuid = property.Value.GetString(); + baseEntityGuid = prop.Value.GetString(); continue; } - if (property.NameEquals("guidEntityMap"u8)) + if (prop.NameEquals("guidEntityMap"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasEntityHeader.DeserializeAtlasEntityHeader(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasEntityHeader.DeserializeAtlasEntityHeader(prop0.Value, options)); } guidEntityMap = dictionary; continue; } - if (property.NameEquals("widthCounts"u8)) + if (prop.NameEquals("widthCounts"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { Dictionary dictionary0 = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) + foreach (var prop1 in prop0.Value.EnumerateObject()) { - if (property1.Value.ValueKind == JsonValueKind.Null) + if (prop1.Value.ValueKind == JsonValueKind.Null) { - dictionary0.Add(property1.Name, null); + dictionary0.Add(prop1.Name, null); } else { - dictionary0.Add(property1.Name, BinaryData.FromString(property1.Value.GetRawText())); + dictionary0.Add(prop1.Name, BinaryData.FromString(prop1.Value.GetRawText())); } } - dictionary.Add(property0.Name, dictionary0); + dictionary.Add(prop0.Name, dictionary0); } } widthCounts = dictionary; continue; } - if (property.NameEquals("lineageDepth"u8)) + if (prop.NameEquals("lineageDepth"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - lineageDepth = property.Value.GetInt32(); + lineageDepth = prop.Value.GetInt32(); continue; } - if (property.NameEquals("lineageWidth"u8)) + if (prop.NameEquals("lineageWidth"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - lineageWidth = property.Value.GetInt32(); + lineageWidth = prop.Value.GetInt32(); continue; } - if (property.NameEquals("childrenCount"u8)) + if (prop.NameEquals("childrenCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - childrenCount = property.Value.GetInt32(); + childrenCount = prop.Value.GetInt32(); continue; } - if (property.NameEquals("lineageDirection"u8)) + if (prop.NameEquals("lineageDirection"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - lineageDirection = new LineageDirection(property.Value.GetString()); + lineageDirection = new LineageDirection(prop.Value.GetString()); continue; } - if (property.NameEquals("parentRelations"u8)) + if (prop.NameEquals("parentRelations"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(ParentRelation.DeserializeParentRelation(item, options)); } parentRelations = array; continue; } - if (property.NameEquals("relations"u8)) + if (prop.NameEquals("relations"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(LineageRelation.DeserializeLineageRelation(item, options)); } @@ -292,10 +296,9 @@ internal static AtlasLineageInfo DeserializeAtlasLineageInfo(JsonElement element } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasLineageInfo( baseEntityGuid, guidEntityMap ?? new ChangeTrackingDictionary(), @@ -306,13 +309,16 @@ internal static AtlasLineageInfo DeserializeAtlasLineageInfo(JsonElement element lineageDirection, parentRelations ?? new ChangeTrackingList(), relations ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -322,15 +328,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions op } } - AtlasLineageInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasLineageInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasLineageInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasLineageInfo(document.RootElement, options); } default: @@ -338,22 +349,14 @@ AtlasLineageInfo IPersistableModel.Create(BinaryData data, Mod } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasLineageInfo FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasLineageInfo(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasLineageInfo(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasLineageInfo(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs index 901127e90720..2ebc10793aac 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// The lineage information. public partial class AtlasLineageInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AtlasLineageInfo() @@ -64,8 +36,8 @@ internal AtlasLineageInfo() /// The enum of lineage direction. /// An array of parentRelations relations. /// An array of lineage relations. - /// Keeps track of any properties unknown to the library. - internal AtlasLineageInfo(string baseEntityGuid, IReadOnlyDictionary guidEntityMap, IReadOnlyDictionary> widthCounts, int? lineageDepth, int? lineageWidth, int? childrenCount, LineageDirection? lineageDirection, IReadOnlyList parentRelations, IReadOnlyList relations, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasLineageInfo(string baseEntityGuid, IDictionary guidEntityMap, IDictionary> widthCounts, int? lineageDepth, int? lineageWidth, int? childrenCount, LineageDirection? lineageDirection, IList parentRelations, IList relations, IDictionary additionalBinaryDataProperties) { BaseEntityGuid = baseEntityGuid; GuidEntityMap = guidEntityMap; @@ -76,55 +48,59 @@ internal AtlasLineageInfo(string baseEntityGuid, IReadOnlyDictionary The GUID of the base entity. public string BaseEntityGuid { get; } + /// The GUID entity map. - public IReadOnlyDictionary GuidEntityMap { get; } + public IDictionary GuidEntityMap { get; } + /// /// The entity count in specific direction. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// - public IReadOnlyDictionary> WidthCounts { get; } + public IDictionary> WidthCounts { get; } + /// The depth of lineage. public int? LineageDepth { get; } + /// The width of lineage. public int? LineageWidth { get; } + /// The number of children node. public int? ChildrenCount { get; } + /// The enum of lineage direction. public LineageDirection? LineageDirection { get; } + /// An array of parentRelations relations. - public IReadOnlyList ParentRelations { get; } + public IList ParentRelations { get; } + /// An array of lineage relations. - public IReadOnlyList Relations { get; } + public IList Relations { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.Serialization.cs index 36fbe13a9119..d558d8b00518 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasNumberFormat : IUtf8JsonSerializable, IJsonModel + /// The number format. + public partial class AtlasNumberFormat : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,18 +28,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasNumberFormat)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(AvailableLocales)) { writer.WritePropertyName("availableLocales"u8); writer.WriteStartArray(); - foreach (var item in AvailableLocales) + foreach (string item in AvailableLocales) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -109,15 +113,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("roundingMode"u8); writer.WriteStringValue(RoundingMode.Value.ToString()); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -126,22 +130,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasNumberFormat IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasNumberFormat IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasNumberFormat JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasNumberFormat)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasNumberFormat(document.RootElement, options); } - internal static AtlasNumberFormat DeserializeAtlasNumberFormat(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasNumberFormat DeserializeAtlasNumberFormat(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -160,143 +169,148 @@ internal static AtlasNumberFormat DeserializeAtlasNumberFormat(JsonElement eleme bool? parseIntegerOnly = default; AtlasNumberFormat percentInstance = default; RoundingMode? roundingMode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("availableLocales"u8)) + if (prop.NameEquals("availableLocales"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } availableLocales = array; continue; } - if (property.NameEquals("currency"u8)) + if (prop.NameEquals("currency"u8)) { - currency = property.Value.GetString(); + currency = prop.Value.GetString(); continue; } - if (property.NameEquals("currencyInstance"u8)) + if (prop.NameEquals("currencyInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - currencyInstance = DeserializeAtlasNumberFormat(property.Value, options); + currencyInstance = DeserializeAtlasNumberFormat(prop.Value, options); continue; } - if (property.NameEquals("groupingUsed"u8)) + if (prop.NameEquals("groupingUsed"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - groupingUsed = property.Value.GetBoolean(); + groupingUsed = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("instance"u8)) + if (prop.NameEquals("instance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - instance = DeserializeAtlasNumberFormat(property.Value, options); + instance = DeserializeAtlasNumberFormat(prop.Value, options); continue; } - if (property.NameEquals("integerInstance"u8)) + if (prop.NameEquals("integerInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - integerInstance = DeserializeAtlasNumberFormat(property.Value, options); + integerInstance = DeserializeAtlasNumberFormat(prop.Value, options); continue; } - if (property.NameEquals("maximumFractionDigits"u8)) + if (prop.NameEquals("maximumFractionDigits"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - maximumFractionDigits = property.Value.GetInt32(); + maximumFractionDigits = prop.Value.GetInt32(); continue; } - if (property.NameEquals("maximumIntegerDigits"u8)) + if (prop.NameEquals("maximumIntegerDigits"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - maximumIntegerDigits = property.Value.GetInt32(); + maximumIntegerDigits = prop.Value.GetInt32(); continue; } - if (property.NameEquals("minimumFractionDigits"u8)) + if (prop.NameEquals("minimumFractionDigits"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - minimumFractionDigits = property.Value.GetInt32(); + minimumFractionDigits = prop.Value.GetInt32(); continue; } - if (property.NameEquals("minimumIntegerDigits"u8)) + if (prop.NameEquals("minimumIntegerDigits"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - minimumIntegerDigits = property.Value.GetInt32(); + minimumIntegerDigits = prop.Value.GetInt32(); continue; } - if (property.NameEquals("numberInstance"u8)) + if (prop.NameEquals("numberInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - numberInstance = DeserializeAtlasNumberFormat(property.Value, options); + numberInstance = DeserializeAtlasNumberFormat(prop.Value, options); continue; } - if (property.NameEquals("parseIntegerOnly"u8)) + if (prop.NameEquals("parseIntegerOnly"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - parseIntegerOnly = property.Value.GetBoolean(); + parseIntegerOnly = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("percentInstance"u8)) + if (prop.NameEquals("percentInstance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - percentInstance = DeserializeAtlasNumberFormat(property.Value, options); + percentInstance = DeserializeAtlasNumberFormat(prop.Value, options); continue; } - if (property.NameEquals("roundingMode"u8)) + if (prop.NameEquals("roundingMode"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - roundingMode = new RoundingMode(property.Value.GetString()); + roundingMode = new RoundingMode(prop.Value.GetString()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasNumberFormat( availableLocales ?? new ChangeTrackingList(), currency, @@ -312,13 +326,16 @@ internal static AtlasNumberFormat DeserializeAtlasNumberFormat(JsonElement eleme parseIntegerOnly, percentInstance, roundingMode, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -328,15 +345,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions o } } - AtlasNumberFormat IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasNumberFormat IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasNumberFormat PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasNumberFormat(document.RootElement, options); } default: @@ -344,22 +366,7 @@ AtlasNumberFormat IPersistableModel.Create(BinaryData data, M } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasNumberFormat FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasNumberFormat(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.cs index bc283013bf89..9d97f8f9a6d7 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The number format. public partial class AtlasNumberFormat { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasNumberFormat() @@ -66,8 +37,8 @@ public AtlasNumberFormat() /// Determines if only integer is parsed. /// The number format. /// The enum of rounding mode. - /// Keeps track of any properties unknown to the library. - internal AtlasNumberFormat(IList availableLocales, string currency, AtlasNumberFormat currencyInstance, bool? groupingUsed, AtlasNumberFormat instance, AtlasNumberFormat integerInstance, int? maximumFractionDigits, int? maximumIntegerDigits, int? minimumFractionDigits, int? minimumIntegerDigits, AtlasNumberFormat numberInstance, bool? parseIntegerOnly, AtlasNumberFormat percentInstance, RoundingMode? roundingMode, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasNumberFormat(IList availableLocales, string currency, AtlasNumberFormat currencyInstance, bool? groupingUsed, AtlasNumberFormat instance, AtlasNumberFormat integerInstance, int? maximumFractionDigits, int? maximumIntegerDigits, int? minimumFractionDigits, int? minimumIntegerDigits, AtlasNumberFormat numberInstance, bool? parseIntegerOnly, AtlasNumberFormat percentInstance, RoundingMode? roundingMode, IDictionary additionalBinaryDataProperties) { AvailableLocales = availableLocales; Currency = currency; @@ -83,35 +54,48 @@ internal AtlasNumberFormat(IList availableLocales, string currency, Atla ParseIntegerOnly = parseIntegerOnly; PercentInstance = percentInstance; RoundingMode = roundingMode; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The number format. public IList AvailableLocales { get; } + /// The currency. public string Currency { get; set; } + /// The number format. public AtlasNumberFormat CurrencyInstance { get; set; } + /// Determines if grouping is used. public bool? GroupingUsed { get; set; } + /// The number format. public AtlasNumberFormat Instance { get; set; } + /// The number format. public AtlasNumberFormat IntegerInstance { get; set; } + /// The maximum of fraction digits. public int? MaximumFractionDigits { get; set; } + /// The maximum of integer digits. public int? MaximumIntegerDigits { get; set; } + /// The minimum of fraction digits. public int? MinimumFractionDigits { get; set; } + /// The minimum of integer digits. public int? MinimumIntegerDigits { get; set; } + /// The number format. public AtlasNumberFormat NumberInstance { get; set; } + /// Determines if only integer is parsed. public bool? ParseIntegerOnly { get; set; } + /// The number format. public AtlasNumberFormat PercentInstance { get; set; } + /// The enum of rounding mode. public RoundingMode? RoundingMode { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.Serialization.cs index 3899e7778209..c33c4469f65b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasObjectId : IUtf8JsonSerializable, IJsonModel + /// Reference to an object-instance of a type - like entity. + public partial class AtlasObjectId : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasObjectId)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -57,9 +56,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -67,15 +66,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -84,22 +83,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasObjectId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasObjectId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasObjectId JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasObjectId)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasObjectId(document.RootElement, options); } - internal static AtlasObjectId DeserializeAtlasObjectId(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasObjectId DeserializeAtlasObjectId(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -107,36 +111,35 @@ internal static AtlasObjectId DeserializeAtlasObjectId(JsonElement element, Mode string guid = default; string typeName = default; IDictionary uniqueAttributes = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("uniqueAttributes"u8)) + if (prop.NameEquals("uniqueAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } uniqueAttributes = dictionary; @@ -144,17 +147,19 @@ internal static AtlasObjectId DeserializeAtlasObjectId(JsonElement element, Mode } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasObjectId(guid, typeName, uniqueAttributes ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + return new AtlasObjectId(guid, typeName, uniqueAttributes ?? new ChangeTrackingDictionary(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -164,15 +169,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions optio } } - AtlasObjectId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasObjectId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasObjectId PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasObjectId(document.RootElement, options); } default: @@ -180,22 +190,7 @@ AtlasObjectId IPersistableModel.Create(BinaryData data, ModelRead } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasObjectId FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasObjectId(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.cs index b7ed124ad77c..d366ed25804f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// Reference to an object-instance of a type - like entity. public partial class AtlasObjectId { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasObjectId() @@ -55,45 +27,43 @@ public AtlasObjectId() /// The GUID of the object. /// The name of the type. /// The unique attributes of the object. - /// Keeps track of any properties unknown to the library. - internal AtlasObjectId(string guid, string typeName, IDictionary uniqueAttributes, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasObjectId(string guid, string typeName, IDictionary uniqueAttributes, IDictionary additionalBinaryDataProperties) { Guid = guid; TypeName = typeName; UniqueAttributes = uniqueAttributes; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the object. public string Guid { get; set; } + /// The name of the type. public string TypeName { get; set; } + /// /// The unique attributes of the object. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.Serialization.cs index dc9f799c8904..4e1cdb4c1115 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelatedCategoryHeader : IUtf8JsonSerializable, IJsonModel + /// The header of the related category. + public partial class AtlasRelatedCategoryHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelatedCategoryHeader)} does not support writing '{format}' format."); } - if (Optional.IsDefined(CategoryGuid)) { writer.WritePropertyName("categoryGuid"u8); @@ -59,15 +58,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationGuid"u8); writer.WriteStringValue(RelationGuid); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -76,22 +75,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelatedCategoryHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelatedCategoryHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelatedCategoryHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelatedCategoryHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelatedCategoryHeader(document.RootElement, options); } - internal static AtlasRelatedCategoryHeader DeserializeAtlasRelatedCategoryHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelatedCategoryHeader DeserializeAtlasRelatedCategoryHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -101,54 +105,55 @@ internal static AtlasRelatedCategoryHeader DeserializeAtlasRelatedCategoryHeader string displayText = default; string parentCategoryGuid = default; string relationGuid = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("categoryGuid"u8)) + if (prop.NameEquals("categoryGuid"u8)) { - categoryGuid = property.Value.GetString(); + categoryGuid = prop.Value.GetString(); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("parentCategoryGuid"u8)) + if (prop.NameEquals("parentCategoryGuid"u8)) { - parentCategoryGuid = property.Value.GetString(); + parentCategoryGuid = prop.Value.GetString(); continue; } - if (property.NameEquals("relationGuid"u8)) + if (prop.NameEquals("relationGuid"u8)) { - relationGuid = property.Value.GetString(); + relationGuid = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelatedCategoryHeader( categoryGuid, description, displayText, parentCategoryGuid, relationGuid, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -158,15 +163,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriter } } - AtlasRelatedCategoryHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelatedCategoryHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelatedCategoryHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelatedCategoryHeader(document.RootElement, options); } default: @@ -174,22 +184,7 @@ AtlasRelatedCategoryHeader IPersistableModel.Create( } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelatedCategoryHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelatedCategoryHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.cs index bba9400a67ca..0a3e2877326e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The header of the related category. public partial class AtlasRelatedCategoryHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelatedCategoryHeader() @@ -56,25 +27,29 @@ public AtlasRelatedCategoryHeader() /// The display text. /// The GUID of the parent category. /// The GUID of the relationship. - /// Keeps track of any properties unknown to the library. - internal AtlasRelatedCategoryHeader(string categoryGuid, string description, string displayText, string parentCategoryGuid, string relationGuid, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelatedCategoryHeader(string categoryGuid, string description, string displayText, string parentCategoryGuid, string relationGuid, IDictionary additionalBinaryDataProperties) { CategoryGuid = categoryGuid; Description = description; DisplayText = displayText; ParentCategoryGuid = parentCategoryGuid; RelationGuid = relationGuid; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the category. public string CategoryGuid { get; set; } + /// The description of the category header. public string Description { get; set; } + /// The display text. public string DisplayText { get; set; } + /// The GUID of the parent category. public string ParentCategoryGuid { get; set; } + /// The GUID of the relationship. public string RelationGuid { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.Serialization.cs index 977a4cb09ac4..37f6e6f77220 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.Serialization.cs @@ -9,14 +9,17 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelatedObjectId : IUtf8JsonSerializable, IJsonModel + /// + /// Reference to an object-instance of AtlasEntity type used in relationship + /// attribute values + /// + public partial class AtlasRelatedObjectId : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +31,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelatedObjectId)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -57,9 +59,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -97,15 +99,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationshipStatus"u8); writer.WriteStringValue(RelationshipStatus.Value.ToString()); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -114,22 +116,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelatedObjectId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelatedObjectId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelatedObjectId JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelatedObjectId)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelatedObjectId(document.RootElement, options); } - internal static AtlasRelatedObjectId DeserializeAtlasRelatedObjectId(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelatedObjectId DeserializeAtlasRelatedObjectId(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -143,93 +150,91 @@ internal static AtlasRelatedObjectId DeserializeAtlasRelatedObjectId(JsonElement AtlasStruct relationshipAttributes = default; Guid? relationshipGuid = default; StatusAtlasRelationship? relationshipStatus = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("uniqueAttributes"u8)) + if (prop.NameEquals("uniqueAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } uniqueAttributes = dictionary; continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("entityStatus"u8)) + if (prop.NameEquals("entityStatus"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - entityStatus = new EntityStatus(property.Value.GetString()); + entityStatus = new EntityStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("relationshipType"u8)) + if (prop.NameEquals("relationshipType"u8)) { - relationshipType = property.Value.GetString(); + relationshipType = prop.Value.GetString(); continue; } - if (property.NameEquals("relationshipAttributes"u8)) + if (prop.NameEquals("relationshipAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationshipAttributes = AtlasStruct.DeserializeAtlasStruct(property.Value, options); + relationshipAttributes = AtlasStruct.DeserializeAtlasStruct(prop.Value, options); continue; } - if (property.NameEquals("relationshipGuid"u8)) + if (prop.NameEquals("relationshipGuid"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationshipGuid = property.Value.GetGuid(); + relationshipGuid = new Guid(prop.Value.GetString()); continue; } - if (property.NameEquals("relationshipStatus"u8)) + if (prop.NameEquals("relationshipStatus"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationshipStatus = new StatusAtlasRelationship(property.Value.GetString()); + relationshipStatus = new StatusAtlasRelationship(prop.Value.GetString()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelatedObjectId( guid, typeName, @@ -240,13 +245,16 @@ internal static AtlasRelatedObjectId DeserializeAtlasRelatedObjectId(JsonElement relationshipAttributes, relationshipGuid, relationshipStatus, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -256,15 +264,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption } } - AtlasRelatedObjectId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelatedObjectId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelatedObjectId PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelatedObjectId(document.RootElement, options); } default: @@ -272,22 +285,7 @@ AtlasRelatedObjectId IPersistableModel.Create(BinaryData d } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelatedObjectId FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelatedObjectId(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.cs index 8f5c94b636a0..3e5f61072d0b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { @@ -16,37 +17,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasRelatedObjectId { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelatedObjectId() @@ -70,8 +42,8 @@ public AtlasRelatedObjectId() /// /// The GUID of the relationship. /// The enum of relationship status. - /// Keeps track of any properties unknown to the library. - internal AtlasRelatedObjectId(string guid, string typeName, IDictionary uniqueAttributes, string displayText, EntityStatus? entityStatus, string relationshipType, AtlasStruct relationshipAttributes, Guid? relationshipGuid, StatusAtlasRelationship? relationshipStatus, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelatedObjectId(string guid, string typeName, IDictionary uniqueAttributes, string displayText, EntityStatus? entityStatus, string relationshipType, AtlasStruct relationshipAttributes, Guid? relationshipGuid, StatusAtlasRelationship? relationshipStatus, IDictionary additionalBinaryDataProperties) { Guid = guid; TypeName = typeName; @@ -82,60 +54,64 @@ internal AtlasRelatedObjectId(string guid, string typeName, IDictionary The GUID of the object. public string Guid { get; set; } + /// The name of the type. public string TypeName { get; set; } + /// /// The unique attributes of the object. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary UniqueAttributes { get; } + /// The display text. public string DisplayText { get; set; } + /// /// Status of the entity - can be active or deleted. Deleted entities are not /// removed. /// public EntityStatus? EntityStatus { get; set; } + /// Relationship type. public string RelationshipType { get; set; } + /// /// Captures details of struct contents. Not instantiated directly, used only via /// AtlasEntity, AtlasClassification. /// public AtlasStruct RelationshipAttributes { get; set; } + /// The GUID of the relationship. public Guid? RelationshipGuid { get; set; } + /// The enum of relationship status. public StatusAtlasRelationship? RelationshipStatus { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.Serialization.cs index a4151f655881..da456543bef2 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelatedTermHeader : IUtf8JsonSerializable, IJsonModel + /// The header of the related term. + public partial class AtlasRelatedTermHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelatedTermHeader)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); @@ -69,15 +68,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("termGuid"u8); writer.WriteStringValue(TermGuid); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -86,22 +85,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelatedTermHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelatedTermHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelatedTermHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelatedTermHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelatedTermHeader(document.RootElement, options); } - internal static AtlasRelatedTermHeader DeserializeAtlasRelatedTermHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelatedTermHeader DeserializeAtlasRelatedTermHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -113,55 +117,53 @@ internal static AtlasRelatedTermHeader DeserializeAtlasRelatedTermHeader(JsonEle AtlasTermRelationshipStatus? status = default; string steward = default; string termGuid = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("expression"u8)) + if (prop.NameEquals("expression"u8)) { - expression = property.Value.GetString(); + expression = prop.Value.GetString(); continue; } - if (property.NameEquals("relationGuid"u8)) + if (prop.NameEquals("relationGuid"u8)) { - relationGuid = property.Value.GetString(); + relationGuid = prop.Value.GetString(); continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new AtlasTermRelationshipStatus(property.Value.GetString()); + status = new AtlasTermRelationshipStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("steward"u8)) + if (prop.NameEquals("steward"u8)) { - steward = property.Value.GetString(); + steward = prop.Value.GetString(); continue; } - if (property.NameEquals("termGuid"u8)) + if (prop.NameEquals("termGuid"u8)) { - termGuid = property.Value.GetString(); + termGuid = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelatedTermHeader( description, displayText, @@ -170,13 +172,16 @@ internal static AtlasRelatedTermHeader DeserializeAtlasRelatedTermHeader(JsonEle status, steward, termGuid, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -186,15 +191,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpti } } - AtlasRelatedTermHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelatedTermHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelatedTermHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelatedTermHeader(document.RootElement, options); } default: @@ -202,22 +212,7 @@ AtlasRelatedTermHeader IPersistableModel.Create(BinaryDa } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelatedTermHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelatedTermHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.cs index 70c30ef8b5f8..0288114d6a0d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The header of the related term. public partial class AtlasRelatedTermHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelatedTermHeader() @@ -58,8 +29,8 @@ public AtlasRelatedTermHeader() /// The status of term relationship. /// The steward of the term. /// The GUID of the term. - /// Keeps track of any properties unknown to the library. - internal AtlasRelatedTermHeader(string description, string displayText, string expression, string relationGuid, AtlasTermRelationshipStatus? status, string steward, string termGuid, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelatedTermHeader(string description, string displayText, string expression, string relationGuid, AtlasTermRelationshipStatus? status, string steward, string termGuid, IDictionary additionalBinaryDataProperties) { Description = description; DisplayText = displayText; @@ -68,21 +39,27 @@ internal AtlasRelatedTermHeader(string description, string displayText, string e Status = status; Steward = steward; TermGuid = termGuid; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The description of the related term. public string Description { get; set; } + /// The display text. public string DisplayText { get; set; } + /// The expression of the term. public string Expression { get; set; } + /// The GUID of the relationship. public string RelationGuid { get; set; } + /// The status of term relationship. public AtlasTermRelationshipStatus? Status { get; set; } + /// The steward of the term. public string Steward { get; set; } + /// The GUID of the term. public string TermGuid { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.Serialization.cs index ff95fa3f5a6b..0d9a405db6f0 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.Serialization.cs @@ -9,14 +9,16 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelationship : IUtf8JsonSerializable, IJsonModel + /// Atlas relationship instance. + public partial class AtlasRelationship : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +30,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationship)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Attributes)) { writer.WritePropertyName("attributes"u8); @@ -47,9 +48,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -127,15 +128,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("version"u8); writer.WriteNumberValue(Version.Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -144,22 +145,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelationship IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelationship IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelationship JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationship)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelationship(document.RootElement, options); } - internal static AtlasRelationship DeserializeAtlasRelationship(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelationship DeserializeAtlasRelationship(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -179,135 +185,133 @@ internal static AtlasRelationship DeserializeAtlasRelationship(JsonElement eleme long? updateTime = default; string updatedBy = default; long? version = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("attributes"u8)) + if (prop.NameEquals("attributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } attributes = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("end1"u8)) + if (prop.NameEquals("end1"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - end1 = AtlasObjectId.DeserializeAtlasObjectId(property.Value, options); + end1 = AtlasObjectId.DeserializeAtlasObjectId(prop.Value, options); continue; } - if (property.NameEquals("end2"u8)) + if (prop.NameEquals("end2"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - end2 = AtlasObjectId.DeserializeAtlasObjectId(property.Value, options); + end2 = AtlasObjectId.DeserializeAtlasObjectId(prop.Value, options); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("homeId"u8)) + if (prop.NameEquals("homeId"u8)) { - homeId = property.Value.GetString(); + homeId = prop.Value.GetString(); continue; } - if (property.NameEquals("label"u8)) + if (prop.NameEquals("label"u8)) { - label = property.Value.GetString(); + label = prop.Value.GetString(); continue; } - if (property.NameEquals("provenanceType"u8)) + if (prop.NameEquals("provenanceType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - provenanceType = property.Value.GetInt32(); + provenanceType = prop.Value.GetInt32(); continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new StatusAtlasRelationship(property.Value.GetString()); + status = new StatusAtlasRelationship(prop.Value.GetString()); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelationship( attributes ?? new ChangeTrackingDictionary(), typeName, @@ -324,13 +328,16 @@ internal static AtlasRelationship DeserializeAtlasRelationship(JsonElement eleme updateTime, updatedBy, version, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -340,15 +347,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions o } } - AtlasRelationship IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelationship IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelationship PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelationship(document.RootElement, options); } default: @@ -356,22 +368,26 @@ AtlasRelationship IPersistableModel.Create(BinaryData data, M } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelationship FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasRelationship atlasRelationship) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelationship(document.RootElement); + if (atlasRelationship == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasRelationship, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasRelationship(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasRelationship(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.cs index 289973688d33..c505d2d84259 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// Atlas relationship instance. public partial class AtlasRelationship { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelationship() @@ -67,8 +39,8 @@ public AtlasRelationship() /// The update time of the record. /// The user who updated the record. /// The version of the relationship. - /// Keeps track of any properties unknown to the library. - internal AtlasRelationship(IDictionary attributes, string typeName, string lastModifiedTS, long? createTime, string createdBy, AtlasObjectId end1, AtlasObjectId end2, string guid, string homeId, string label, int? provenanceType, StatusAtlasRelationship? status, long? updateTime, string updatedBy, long? version, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelationship(IDictionary attributes, string typeName, string lastModifiedTS, long? createTime, string createdBy, AtlasObjectId end1, AtlasObjectId end2, string guid, string homeId, string label, int? provenanceType, StatusAtlasRelationship? status, long? updateTime, string updatedBy, long? version, IDictionary additionalBinaryDataProperties) { Attributes = attributes; TypeName = typeName; @@ -85,66 +57,76 @@ internal AtlasRelationship(IDictionary attributes, string ty UpdateTime = updateTime; UpdatedBy = updatedBy; Version = version; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// The attributes of the struct. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary Attributes { get; } + /// The name of the type. public string TypeName { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// Reference to an object-instance of a type - like entity. public AtlasObjectId End1 { get; set; } + /// Reference to an object-instance of a type - like entity. public AtlasObjectId End2 { get; set; } + /// The GUID of the relationship. public string Guid { get; set; } + /// The home ID of the relationship. public string HomeId { get; set; } + /// The label of the relationship. public string Label { get; set; } + /// Used to record the provenance of an instance of an entity or relationship. public int? ProvenanceType { get; set; } + /// The enum of relationship status. public StatusAtlasRelationship? Status { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the relationship. public long? Version { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.Serialization.cs index 3ab21693d380..7c1f6cfcf8d1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.Serialization.cs @@ -9,14 +9,19 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelationshipAttributeDef : IUtf8JsonSerializable, IJsonModel + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + public partial class AtlasRelationshipAttributeDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +33,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipAttributeDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Cardinality)) { writer.WritePropertyName("cardinality"u8); @@ -43,7 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("constraints"u8); writer.WriteStartArray(); - foreach (var item in Constraints) + foreach (AtlasConstraintDef item in Constraints) { writer.WriteObjectValue(item, options); } @@ -91,6 +95,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -120,15 +129,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationshipTypeName"u8); writer.WriteStringValue(RelationshipTypeName); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -137,22 +146,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelationshipAttributeDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelationshipAttributeDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipAttributeDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipAttributeDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelationshipAttributeDef(document.RootElement, options); } - internal static AtlasRelationshipAttributeDef DeserializeAtlasRelationshipAttributeDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelationshipAttributeDef DeserializeAtlasRelationshipAttributeDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -172,141 +186,146 @@ internal static AtlasRelationshipAttributeDef DeserializeAtlasRelationshipAttrib int? valuesMinCount = default; bool? isLegacyAttribute = default; string relationshipTypeName = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("cardinality"u8)) + if (prop.NameEquals("cardinality"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - cardinality = new CardinalityValue(property.Value.GetString()); + cardinality = new CardinalityValue(prop.Value.GetString()); continue; } - if (property.NameEquals("constraints"u8)) + if (prop.NameEquals("constraints"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasConstraintDef.DeserializeAtlasConstraintDef(item, options)); } constraints = array; continue; } - if (property.NameEquals("defaultValue"u8)) + if (prop.NameEquals("defaultValue"u8)) { - defaultValue = property.Value.GetString(); + defaultValue = prop.Value.GetString(); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("includeInNotification"u8)) + if (prop.NameEquals("includeInNotification"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - includeInNotification = property.Value.GetBoolean(); + includeInNotification = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isIndexable"u8)) + if (prop.NameEquals("isIndexable"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isIndexable = property.Value.GetBoolean(); + isIndexable = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isOptional"u8)) + if (prop.NameEquals("isOptional"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isOptional = property.Value.GetBoolean(); + isOptional = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isUnique"u8)) + if (prop.NameEquals("isUnique"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isUnique = property.Value.GetBoolean(); + isUnique = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("valuesMaxCount"u8)) + if (prop.NameEquals("valuesMaxCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - valuesMaxCount = property.Value.GetInt32(); + valuesMaxCount = prop.Value.GetInt32(); continue; } - if (property.NameEquals("valuesMinCount"u8)) + if (prop.NameEquals("valuesMinCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - valuesMinCount = property.Value.GetInt32(); + valuesMinCount = prop.Value.GetInt32(); continue; } - if (property.NameEquals("isLegacyAttribute"u8)) + if (prop.NameEquals("isLegacyAttribute"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isLegacyAttribute = property.Value.GetBoolean(); + isLegacyAttribute = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("relationshipTypeName"u8)) + if (prop.NameEquals("relationshipTypeName"u8)) { - relationshipTypeName = property.Value.GetString(); + relationshipTypeName = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelationshipAttributeDef( cardinality, constraints ?? new ChangeTrackingList(), @@ -323,13 +342,16 @@ internal static AtlasRelationshipAttributeDef DeserializeAtlasRelationshipAttrib valuesMinCount, isLegacyAttribute, relationshipTypeName, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -339,15 +361,20 @@ BinaryData IPersistableModel.Write(ModelReaderWri } } - AtlasRelationshipAttributeDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelationshipAttributeDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipAttributeDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelationshipAttributeDef(document.RootElement, options); } default: @@ -355,22 +382,7 @@ AtlasRelationshipAttributeDef IPersistableModel.C } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelationshipAttributeDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelationshipAttributeDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.cs index 2c61ced0542a..200fb389c61e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.cs @@ -18,37 +18,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasRelationshipAttributeDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelationshipAttributeDef() @@ -73,8 +44,8 @@ public AtlasRelationshipAttributeDef() /// The minimum count of the values. /// Determines if it is a legacy attribute. /// The name of the relationship type. - /// Keeps track of any properties unknown to the library. - internal AtlasRelationshipAttributeDef(CardinalityValue? cardinality, IList constraints, string defaultValue, string description, bool? includeInNotification, bool? isIndexable, bool? isOptional, bool? isUnique, string name, IDictionary options, string typeName, int? valuesMaxCount, int? valuesMinCount, bool? isLegacyAttribute, string relationshipTypeName, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelationshipAttributeDef(CardinalityValue? cardinality, IList constraints, string defaultValue, string description, bool? includeInNotification, bool? isIndexable, bool? isOptional, bool? isUnique, string name, IDictionary options, string typeName, int? valuesMaxCount, int? valuesMinCount, bool? isLegacyAttribute, string relationshipTypeName, IDictionary additionalBinaryDataProperties) { Cardinality = cardinality; Constraints = constraints; @@ -91,37 +62,51 @@ internal AtlasRelationshipAttributeDef(CardinalityValue? cardinality, IList single-valued attribute or multi-valued attribute. public CardinalityValue? Cardinality { get; set; } + /// An array of constraints. public IList Constraints { get; } + /// The default value of the attribute. public string DefaultValue { get; set; } + /// The description of the attribute. public string Description { get; set; } + /// Determines if it is included in notification. public bool? IncludeInNotification { get; set; } + /// Determines if it is indexable. public bool? IsIndexable { get; set; } + /// Determines if it is optional. public bool? IsOptional { get; set; } + /// Determines if it unique. public bool? IsUnique { get; set; } + /// The name of the attribute. public string Name { get; set; } + /// The options for the attribute. public IDictionary Options { get; } + /// The name of the type. public string TypeName { get; set; } + /// The maximum count of the values. public int? ValuesMaxCount { get; set; } + /// The minimum count of the values. public int? ValuesMinCount { get; set; } + /// Determines if it is a legacy attribute. public bool? IsLegacyAttribute { get; set; } + /// The name of the relationship type. public string RelationshipTypeName { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.Serialization.cs index adc69bd681ab..29a5c967e4ea 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.Serialization.cs @@ -9,14 +9,54 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelationshipDef : IUtf8JsonSerializable, IJsonModel + /// + /// AtlasRelationshipDef is a TypeDef that defines a relationship. + /// As with other typeDefs the AtlasRelationshipDef has a name. Once created the + /// RelationshipDef has a guid. + /// The name and the guid are the 2 ways that the + /// RelationshipDef is identified. + /// RelationshipDefs have 2 ends, each of which + /// specify cardinality, an EntityDef type name and name and optionally + /// whether the + /// end is a container. + /// RelationshipDefs can have AttributeDefs - though only + /// primitive types are allowed. + /// RelationshipDefs have a relationshipCategory + /// specifying the UML type of relationship required + /// The way EntityDefs and + /// RelationshipDefs are intended to be used is that EntityDefs will define + /// AttributeDefs these AttributeDefs + /// will not specify an EntityDef type name as + /// their types. + /// RelationshipDefs introduce new attributes to the entity + /// instances. For example + /// EntityDef A might have attributes attr1,attr2,attr3 + /// + /// EntityDef B might have attributes attr4,attr5,attr6 + /// RelationshipDef + /// AtoB might define 2 ends + /// + /// end1: type A, name attr7 + /// end2: type B, name attr8 + /// + /// When an instance of EntityDef A is created, it + /// will have attributes attr1,attr2,attr3,attr7 + /// When an instance of EntityDef + /// B is created, it will have attributes attr4,attr5,attr6,attr8 + /// + /// In this way + /// relationshipDefs can be authored separately from entityDefs and can inject + /// relationship attributes into + /// the entity instances + /// + public partial class AtlasRelationshipDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +68,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +115,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,7 +158,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } @@ -140,15 +184,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationshipLabel"u8); writer.WriteStringValue(RelationshipLabel); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -157,22 +201,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelationshipDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelationshipDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelationshipDef(document.RootElement, options); } - internal static AtlasRelationshipDef DeserializeAtlasRelationshipDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelationshipDef DeserializeAtlasRelationshipDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -196,161 +245,166 @@ internal static AtlasRelationshipDef DeserializeAtlasRelationshipDef(JsonElement AtlasRelationshipEndDef endDef2 = default; RelationshipCategory? relationshipCategory = default; string relationshipLabel = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } attributeDefs = array; continue; } - if (property.NameEquals("endDef1"u8)) + if (prop.NameEquals("endDef1"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - endDef1 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(property.Value, options); + endDef1 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(prop.Value, options); continue; } - if (property.NameEquals("endDef2"u8)) + if (prop.NameEquals("endDef2"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - endDef2 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(property.Value, options); + endDef2 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(prop.Value, options); continue; } - if (property.NameEquals("relationshipCategory"u8)) + if (prop.NameEquals("relationshipCategory"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationshipCategory = new RelationshipCategory(property.Value.GetString()); + relationshipCategory = new RelationshipCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("relationshipLabel"u8)) + if (prop.NameEquals("relationshipLabel"u8)) { - relationshipLabel = property.Value.GetString(); + relationshipLabel = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelationshipDef( category, createTime, @@ -371,13 +425,16 @@ internal static AtlasRelationshipDef DeserializeAtlasRelationshipDef(JsonElement endDef2, relationshipCategory, relationshipLabel, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -387,15 +444,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption } } - AtlasRelationshipDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelationshipDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelationshipDef(document.RootElement, options); } default: @@ -403,22 +465,14 @@ AtlasRelationshipDef IPersistableModel.Create(BinaryData d } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelationshipDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelationshipDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasRelationshipDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasRelationshipDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.cs index 18e8b3a4e3d6..f5df97d63467 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.cs @@ -21,9 +21,9 @@ namespace Azure.Analytics.Purview.DataMap /// whether the /// end is a container. /// RelationshipDefs can have AttributeDefs - though only - /// primitive types are allowed. + /// primitive types are allowed. /// RelationshipDefs have a relationshipCategory - /// specifying the UML type of relationship required + /// specifying the UML type of relationship required /// The way EntityDefs and /// RelationshipDefs are intended to be used is that EntityDefs will define /// AttributeDefs these AttributeDefs @@ -32,19 +32,19 @@ namespace Azure.Analytics.Purview.DataMap /// RelationshipDefs introduce new attributes to the entity /// instances. For example /// EntityDef A might have attributes attr1,attr2,attr3 - /// - /// EntityDef B might have attributes attr4,attr5,attr6 + /// + /// EntityDef B might have attributes attr4,attr5,attr6 /// RelationshipDef - /// AtoB might define 2 ends - /// + /// AtoB might define 2 ends + /// /// end1: type A, name attr7 - /// end2: type B, name attr8 - /// + /// end2: type B, name attr8 + /// /// When an instance of EntityDef A is created, it - /// will have attributes attr1,attr2,attr3,attr7 + /// will have attributes attr1,attr2,attr3,attr7 /// When an instance of EntityDef /// B is created, it will have attributes attr4,attr5,attr6,attr8 - /// + /// /// In this way /// relationshipDefs can be authored separately from entityDefs and can inject /// relationship attributes into @@ -52,37 +52,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasRelationshipDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelationshipDef() @@ -123,15 +94,15 @@ public AtlasRelationshipDef() /// The Relationship category determines the style of relationship around /// containment and lifecycle. /// UML terminology is used for the values. - /// ASSOCIATION is a relationship with no containment. + /// ASSOCIATION is a relationship with no containment. /// COMPOSITION and AGGREGATION are containment relationships. - /// The difference being in the lifecycles of the container and its children. + /// 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. /// /// The label of the relationship. - /// Keeps track of any properties unknown to the library. - internal AtlasRelationshipDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef2, RelationshipCategory? relationshipCategory, string relationshipLabel, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelationshipDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef2, RelationshipCategory? relationshipCategory, string relationshipLabel, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -152,39 +123,54 @@ internal AtlasRelationshipDef(TypeCategory? category, long? createTime, string c EndDef2 = endDef2; RelationshipCategory = relationshipCategory; RelationshipLabel = relationshipLabel; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of attribute definitions. public IList AttributeDefs { get; } + /// /// The relationshipEndDef represents an end of the relationship. The end of the /// relationship is defined by a type, an @@ -192,6 +178,7 @@ internal AtlasRelationshipDef(TypeCategory? category, long? createTime, string c /// it is the container end of the relationship. /// public AtlasRelationshipEndDef EndDef1 { get; set; } + /// /// The relationshipEndDef represents an end of the relationship. The end of the /// relationship is defined by a type, an @@ -199,17 +186,19 @@ internal AtlasRelationshipDef(TypeCategory? category, long? createTime, string c /// it is the container end of the relationship. /// public AtlasRelationshipEndDef EndDef2 { get; set; } + /// /// The Relationship category determines the style of relationship around /// containment and lifecycle. /// UML terminology is used for the values. - /// ASSOCIATION is a relationship with no containment. + /// ASSOCIATION is a relationship with no containment. /// COMPOSITION and AGGREGATION are containment relationships. - /// The difference being in the lifecycles of the container and its children. + /// 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. /// public RelationshipCategory? RelationshipCategory { get; set; } + /// The label of the relationship. public string RelationshipLabel { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.Serialization.cs index af2e0cef6a6a..e04c5be8e312 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.Serialization.cs @@ -9,14 +9,19 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelationshipEndDef : IUtf8JsonSerializable, IJsonModel + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + public partial class AtlasRelationshipEndDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +33,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipEndDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Cardinality)) { writer.WritePropertyName("cardinality"u8); @@ -64,15 +68,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -81,22 +85,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelationshipEndDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelationshipEndDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipEndDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipEndDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelationshipEndDef(document.RootElement, options); } - internal static AtlasRelationshipEndDef DeserializeAtlasRelationshipEndDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelationshipEndDef DeserializeAtlasRelationshipEndDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -106,73 +115,74 @@ internal static AtlasRelationshipEndDef DeserializeAtlasRelationshipEndDef(JsonE bool? isContainer = default; bool? isLegacyAttribute = default; string name = default; - string type = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + string @type = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("cardinality"u8)) + if (prop.NameEquals("cardinality"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - cardinality = new CardinalityValue(property.Value.GetString()); + cardinality = new CardinalityValue(prop.Value.GetString()); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("isContainer"u8)) + if (prop.NameEquals("isContainer"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isContainer = property.Value.GetBoolean(); + isContainer = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("isLegacyAttribute"u8)) + if (prop.NameEquals("isLegacyAttribute"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - isLegacyAttribute = property.Value.GetBoolean(); + isLegacyAttribute = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("type"u8)) + if (prop.NameEquals("type"u8)) { - type = property.Value.GetString(); + @type = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasRelationshipEndDef( cardinality, description, isContainer, isLegacyAttribute, name, - type, - serializedAdditionalRawData); + @type, + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -182,15 +192,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpt } } - AtlasRelationshipEndDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelationshipEndDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipEndDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelationshipEndDef(document.RootElement, options); } default: @@ -198,22 +213,7 @@ AtlasRelationshipEndDef IPersistableModel.Create(Binary } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelationshipEndDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelationshipEndDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.cs index 6a9eda12667a..4943a956c931 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.cs @@ -18,37 +18,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasRelationshipEndDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasRelationshipEndDef() @@ -62,28 +33,33 @@ public AtlasRelationshipEndDef() /// Determines if it is a legacy attribute. /// The name of the relationship end definition. /// The type of the relationship end. - /// Keeps track of any properties unknown to the library. - internal AtlasRelationshipEndDef(CardinalityValue? cardinality, string description, bool? isContainer, bool? isLegacyAttribute, string name, string type, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelationshipEndDef(CardinalityValue? cardinality, string description, bool? isContainer, bool? isLegacyAttribute, string name, string @type, IDictionary additionalBinaryDataProperties) { Cardinality = cardinality; Description = description; IsContainer = isContainer; IsLegacyAttribute = isLegacyAttribute; Name = name; - Type = type; - _serializedAdditionalRawData = serializedAdditionalRawData; + Type = @type; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// single-valued attribute or multi-valued attribute. public CardinalityValue? Cardinality { get; set; } + /// The description of the relationship end definition. public string Description { get; set; } + /// Determines if it is container. public bool? IsContainer { get; set; } + /// Determines if it is a legacy attribute. public bool? IsLegacyAttribute { get; set; } + /// The name of the relationship end definition. public string Name { get; set; } + /// The type of the relationship end. public string Type { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.Serialization.cs index 9b0f99c5f9ff..41211fc95aa1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasRelationshipWithExtInfo : IUtf8JsonSerializable, IJsonModel + /// The relationship with extended information. + public partial class AtlasRelationshipWithExtInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipWithExtInfo)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(ReferredEntities)) { writer.WritePropertyName("referredEntities"u8); @@ -50,15 +50,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("relationship"u8); writer.WriteObjectValue(Relationship, options); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -67,68 +67,74 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasRelationshipWithExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasRelationshipWithExtInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipWithExtInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasRelationshipWithExtInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasRelationshipWithExtInfo(document.RootElement, options); } - internal static AtlasRelationshipWithExtInfo DeserializeAtlasRelationshipWithExtInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasRelationshipWithExtInfo DeserializeAtlasRelationshipWithExtInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyDictionary referredEntities = default; + IDictionary referredEntities = default; AtlasRelationship relationship = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("referredEntities"u8)) + if (prop.NameEquals("referredEntities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, AtlasEntityHeader.DeserializeAtlasEntityHeader(property0.Value, options)); + dictionary.Add(prop0.Name, AtlasEntityHeader.DeserializeAtlasEntityHeader(prop0.Value, options)); } referredEntities = dictionary; continue; } - if (property.NameEquals("relationship"u8)) + if (prop.NameEquals("relationship"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationship = AtlasRelationship.DeserializeAtlasRelationship(property.Value, options); + relationship = AtlasRelationship.DeserializeAtlasRelationship(prop.Value, options); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasRelationshipWithExtInfo(referredEntities ?? new ChangeTrackingDictionary(), relationship, serializedAdditionalRawData); + return new AtlasRelationshipWithExtInfo(referredEntities ?? new ChangeTrackingDictionary(), relationship, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -138,15 +144,20 @@ BinaryData IPersistableModel.Write(ModelReaderWrit } } - AtlasRelationshipWithExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasRelationshipWithExtInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasRelationshipWithExtInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasRelationshipWithExtInfo(document.RootElement, options); } default: @@ -154,22 +165,14 @@ AtlasRelationshipWithExtInfo IPersistableModel.Cre } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasRelationshipWithExtInfo FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasRelationshipWithExtInfo(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasRelationshipWithExtInfo(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasRelationshipWithExtInfo(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.cs index cc78ffe2f231..51c54fd35994 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The relationship with extended information. public partial class AtlasRelationshipWithExtInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AtlasRelationshipWithExtInfo() @@ -54,16 +25,17 @@ internal AtlasRelationshipWithExtInfo() /// Initializes a new instance of . /// The referred entity header. /// Atlas relationship instance. - /// Keeps track of any properties unknown to the library. - internal AtlasRelationshipWithExtInfo(IReadOnlyDictionary referredEntities, AtlasRelationship relationship, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasRelationshipWithExtInfo(IDictionary referredEntities, AtlasRelationship relationship, IDictionary additionalBinaryDataProperties) { ReferredEntities = referredEntities; Relationship = relationship; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The referred entity header. - public IReadOnlyDictionary ReferredEntities { get; } + public IDictionary ReferredEntities { get; } + /// Atlas relationship instance. public AtlasRelationship Relationship { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasSortType.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasSortType.cs index 2705ede04913..4d4484741ea6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasSortType.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasSortType.cs @@ -14,41 +14,62 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct AtlasSortType : IEquatable { private readonly string _value; + /// No sorting order. + private const string NoneValue = "NONE"; + /// Use ascending order for sorting. + private const string AscendValue = "ASC"; + /// Use descending order for sorting. + private const string DescendValue = "DESC"; /// Initializes a new instance of . + /// The value. /// is null. public AtlasSortType(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string NoneValue = "NONE"; - private const string AscendValue = "ASC"; - private const string DescendValue = "DESC"; + _value = value; + } /// No sorting order. public static AtlasSortType None { get; } = new AtlasSortType(NoneValue); + /// Use ascending order for sorting. public static AtlasSortType Ascend { get; } = new AtlasSortType(AscendValue); + /// Use descending order for sorting. public static AtlasSortType Descend { get; } = new AtlasSortType(DescendValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(AtlasSortType left, AtlasSortType right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(AtlasSortType left, AtlasSortType right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator AtlasSortType(string value) => new AtlasSortType(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator AtlasSortType?(string value) => value == null ? null : new AtlasSortType(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is AtlasSortType other && Equals(other); - /// + + /// public bool Equals(AtlasSortType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.Serialization.cs index b16132d403c7..8ab89449b731 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.Serialization.cs @@ -9,14 +9,17 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasStruct : IUtf8JsonSerializable, IJsonModel + /// + /// Captures details of struct contents. Not instantiated directly, used only via + /// AtlasEntity, AtlasClassification. + /// + public partial class AtlasStruct : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +31,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptio /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasStruct)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Attributes)) { writer.WritePropertyName("attributes"u8); @@ -47,9 +49,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -67,15 +69,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("lastModifiedTS"u8); writer.WriteStringValue(LastModifiedTS); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -84,22 +86,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasStruct IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasStruct IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasStruct JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasStruct)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasStruct(document.RootElement, options); } - internal static AtlasStruct DeserializeAtlasStruct(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasStruct DeserializeAtlasStruct(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -107,54 +114,55 @@ internal static AtlasStruct DeserializeAtlasStruct(JsonElement element, ModelRea IDictionary attributes = default; string typeName = default; string lastModifiedTS = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("attributes"u8)) + if (prop.NameEquals("attributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } attributes = dictionary; continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasStruct(attributes ?? new ChangeTrackingDictionary(), typeName, lastModifiedTS, serializedAdditionalRawData); + return new AtlasStruct(attributes ?? new ChangeTrackingDictionary(), typeName, lastModifiedTS, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -164,15 +172,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options } } - AtlasStruct IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasStruct IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasStruct PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasStruct(document.RootElement, options); } default: @@ -180,22 +193,7 @@ AtlasStruct IPersistableModel.Create(BinaryData data, ModelReaderWr } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasStruct FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasStruct(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.cs index 881218efc552..004ba66cd96f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { @@ -16,37 +17,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class AtlasStruct { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasStruct() @@ -58,48 +30,46 @@ public AtlasStruct() /// The attributes of the struct. /// The name of the type. /// ETag for concurrency control. - /// Keeps track of any properties unknown to the library. - internal AtlasStruct(IDictionary attributes, string typeName, string lastModifiedTS, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasStruct(IDictionary attributes, string typeName, string lastModifiedTS, IDictionary additionalBinaryDataProperties) { Attributes = attributes; TypeName = typeName; LastModifiedTS = lastModifiedTS; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// /// The attributes of the struct. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary Attributes { get; } + /// The name of the type. public string TypeName { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.Serialization.cs index f9f94a3fb590..6aa675667a5b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasStructDef : IUtf8JsonSerializable, IJsonModel + /// class that captures details of a struct-type. + public partial class AtlasStructDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOp /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasStructDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,21 +119,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -137,22 +142,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasStructDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasStructDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasStructDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasStructDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasStructDef(document.RootElement, options); } - internal static AtlasStructDef DeserializeAtlasStructDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasStructDef DeserializeAtlasStructDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -172,117 +182,123 @@ internal static AtlasStructDef DeserializeAtlasStructDef(JsonElement element, Mo long? version = default; string lastModifiedTS = default; IList attributeDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } @@ -291,10 +307,9 @@ internal static AtlasStructDef DeserializeAtlasStructDef(JsonElement element, Mo } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasStructDef( category, createTime, @@ -311,13 +326,16 @@ internal static AtlasStructDef DeserializeAtlasStructDef(JsonElement element, Mo version, lastModifiedTS, attributeDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -327,15 +345,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opti } } - AtlasStructDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasStructDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasStructDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasStructDef(document.RootElement, options); } default: @@ -343,22 +366,14 @@ AtlasStructDef IPersistableModel.Create(BinaryData data, ModelRe } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasStructDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasStructDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasStructDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasStructDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.cs index b6f470a35665..b848c203359f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// class that captures details of a struct-type. public partial class AtlasStructDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasStructDef() @@ -68,8 +39,8 @@ public AtlasStructDef() /// The version of the record. /// ETag for concurrency control. /// An array of attribute definitions. - /// Keeps track of any properties unknown to the library. - internal AtlasStructDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasStructDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -86,37 +57,51 @@ internal AtlasStructDef(TypeCategory? category, long? createTime, string created Version = version; LastModifiedTS = lastModifiedTS; AttributeDefs = attributeDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of attribute definitions. public IList AttributeDefs { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.Serialization.cs index 3433aff9304e..b379a28a36b1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasTermAssignmentHeader : IUtf8JsonSerializable, IJsonModel + /// The header for term assignment. + public partial class AtlasTermAssignmentHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTermAssignmentHeader)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Confidence)) { writer.WritePropertyName("confidence"u8); @@ -79,15 +78,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("termGuid"u8); writer.WriteStringValue(TermGuid.Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -96,22 +95,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasTermAssignmentHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasTermAssignmentHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasTermAssignmentHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTermAssignmentHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasTermAssignmentHeader(document.RootElement, options); } - internal static AtlasTermAssignmentHeader DeserializeAtlasTermAssignmentHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasTermAssignmentHeader DeserializeAtlasTermAssignmentHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -125,77 +129,75 @@ internal static AtlasTermAssignmentHeader DeserializeAtlasTermAssignmentHeader(J AtlasTermAssignmentStatus? status = default; string steward = default; Guid? termGuid = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("confidence"u8)) + if (prop.NameEquals("confidence"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - confidence = property.Value.GetInt32(); + confidence = prop.Value.GetInt32(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("expression"u8)) + if (prop.NameEquals("expression"u8)) { - expression = property.Value.GetString(); + expression = prop.Value.GetString(); continue; } - if (property.NameEquals("relationGuid"u8)) + if (prop.NameEquals("relationGuid"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationGuid = property.Value.GetGuid(); + relationGuid = new Guid(prop.Value.GetString()); continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new AtlasTermAssignmentStatus(property.Value.GetString()); + status = new AtlasTermAssignmentStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("steward"u8)) + if (prop.NameEquals("steward"u8)) { - steward = property.Value.GetString(); + steward = prop.Value.GetString(); continue; } - if (property.NameEquals("termGuid"u8)) + if (prop.NameEquals("termGuid"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - termGuid = property.Value.GetGuid(); + termGuid = new Guid(prop.Value.GetString()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasTermAssignmentHeader( confidence, createdBy, @@ -206,13 +208,16 @@ internal static AtlasTermAssignmentHeader DeserializeAtlasTermAssignmentHeader(J status, steward, termGuid, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -222,15 +227,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterO } } - AtlasTermAssignmentHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasTermAssignmentHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasTermAssignmentHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasTermAssignmentHeader(document.RootElement, options); } default: @@ -238,22 +248,7 @@ AtlasTermAssignmentHeader IPersistableModel.Create(Bi } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasTermAssignmentHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasTermAssignmentHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.cs index d8c2a2a8a032..deefb9747a30 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The header for term assignment. public partial class AtlasTermAssignmentHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasTermAssignmentHeader() @@ -60,8 +31,8 @@ public AtlasTermAssignmentHeader() /// The status of terms assignment. /// The steward of the term. /// The GUID of the term. - /// Keeps track of any properties unknown to the library. - internal AtlasTermAssignmentHeader(int? confidence, string createdBy, string description, string displayText, string expression, Guid? relationGuid, AtlasTermAssignmentStatus? status, string steward, Guid? termGuid, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasTermAssignmentHeader(int? confidence, string createdBy, string description, string displayText, string expression, Guid? relationGuid, AtlasTermAssignmentStatus? status, string steward, Guid? termGuid, IDictionary additionalBinaryDataProperties) { Confidence = confidence; CreatedBy = createdBy; @@ -72,25 +43,33 @@ internal AtlasTermAssignmentHeader(int? confidence, string createdBy, string des Status = status; Steward = steward; TermGuid = termGuid; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The confidence of the term assignment. public int? Confidence { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The description of the term assignment. public string Description { get; set; } + /// The display text. public string DisplayText { get; set; } + /// The expression of the term assignment. public string Expression { get; set; } + /// The GUID of the relationship. public Guid? RelationGuid { get; set; } + /// The status of terms assignment. public AtlasTermAssignmentStatus? Status { get; set; } + /// The steward of the term. public string Steward { get; set; } + /// The GUID of the term. public Guid? TermGuid { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentStatus.cs index 42e8cfcc33b5..5a8348168cec 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentStatus.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentStatus.cs @@ -14,53 +14,82 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct AtlasTermAssignmentStatus : IEquatable { private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AtlasTermAssignmentStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - + /// The status is discovered. private const string DiscoveredValue = "DISCOVERED"; + /// The status is proposed. private const string ProposedValue = "PROPOSED"; + /// The status is imported. private const string ImportedValue = "IMPORTED"; + /// The status is validated. private const string ValidatedValue = "VALIDATED"; + /// The status is deprecated. private const string DeprecatedValue = "DEPRECATED"; + /// The status is obsolete. private const string ObsoleteValue = "OBSOLETE"; + /// Other status. private const string OtherValue = "OTHER"; + /// Initializes a new instance of . + /// The value. + /// is null. + public AtlasTermAssignmentStatus(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + /// The status is discovered. public static AtlasTermAssignmentStatus Discovered { get; } = new AtlasTermAssignmentStatus(DiscoveredValue); + /// The status is proposed. public static AtlasTermAssignmentStatus Proposed { get; } = new AtlasTermAssignmentStatus(ProposedValue); + /// The status is imported. public static AtlasTermAssignmentStatus Imported { get; } = new AtlasTermAssignmentStatus(ImportedValue); + /// The status is validated. public static AtlasTermAssignmentStatus Validated { get; } = new AtlasTermAssignmentStatus(ValidatedValue); + /// The status is deprecated. public static AtlasTermAssignmentStatus Deprecated { get; } = new AtlasTermAssignmentStatus(DeprecatedValue); + /// The status is obsolete. public static AtlasTermAssignmentStatus Obsolete { get; } = new AtlasTermAssignmentStatus(ObsoleteValue); + /// Other status. public static AtlasTermAssignmentStatus Other { get; } = new AtlasTermAssignmentStatus(OtherValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(AtlasTermAssignmentStatus left, AtlasTermAssignmentStatus right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(AtlasTermAssignmentStatus left, AtlasTermAssignmentStatus right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator AtlasTermAssignmentStatus(string value) => new AtlasTermAssignmentStatus(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator AtlasTermAssignmentStatus?(string value) => value == null ? null : new AtlasTermAssignmentStatus(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is AtlasTermAssignmentStatus other && Equals(other); - /// + + /// public bool Equals(AtlasTermAssignmentStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.Serialization.cs index 1befca2a7824..54231b7a845e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasTermCategorizationHeader : IUtf8JsonSerializable, IJsonModel + /// The basic information for term categorization. + public partial class AtlasTermCategorizationHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTermCategorizationHeader)} does not support writing '{format}' format."); } - if (Optional.IsDefined(CategoryGuid)) { writer.WritePropertyName("categoryGuid"u8); @@ -59,15 +58,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.Value.ToString()); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -76,22 +75,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasTermCategorizationHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasTermCategorizationHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasTermCategorizationHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTermCategorizationHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasTermCategorizationHeader(document.RootElement, options); } - internal static AtlasTermCategorizationHeader DeserializeAtlasTermCategorizationHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasTermCategorizationHeader DeserializeAtlasTermCategorizationHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -101,66 +105,67 @@ internal static AtlasTermCategorizationHeader DeserializeAtlasTermCategorization string displayText = default; Guid? relationGuid = default; AtlasTermRelationshipStatus? status = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("categoryGuid"u8)) + if (prop.NameEquals("categoryGuid"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - categoryGuid = property.Value.GetGuid(); + categoryGuid = new Guid(prop.Value.GetString()); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("relationGuid"u8)) + if (prop.NameEquals("relationGuid"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationGuid = property.Value.GetGuid(); + relationGuid = new Guid(prop.Value.GetString()); continue; } - if (property.NameEquals("status"u8)) + if (prop.NameEquals("status"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - status = new AtlasTermRelationshipStatus(property.Value.GetString()); + status = new AtlasTermRelationshipStatus(prop.Value.GetString()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasTermCategorizationHeader( categoryGuid, description, displayText, relationGuid, status, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -170,15 +175,20 @@ BinaryData IPersistableModel.Write(ModelReaderWri } } - AtlasTermCategorizationHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasTermCategorizationHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasTermCategorizationHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasTermCategorizationHeader(document.RootElement, options); } default: @@ -186,22 +196,7 @@ AtlasTermCategorizationHeader IPersistableModel.C } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasTermCategorizationHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasTermCategorizationHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.cs index 3245ed69a1ba..dcc7d354a645 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The basic information for term categorization. public partial class AtlasTermCategorizationHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasTermCategorizationHeader() @@ -56,25 +27,29 @@ public AtlasTermCategorizationHeader() /// The display text. /// The GUID of the relationship. /// The status of term relationship. - /// Keeps track of any properties unknown to the library. - internal AtlasTermCategorizationHeader(Guid? categoryGuid, string description, string displayText, Guid? relationGuid, AtlasTermRelationshipStatus? status, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasTermCategorizationHeader(Guid? categoryGuid, string description, string displayText, Guid? relationGuid, AtlasTermRelationshipStatus? status, IDictionary additionalBinaryDataProperties) { CategoryGuid = categoryGuid; Description = description; DisplayText = displayText; RelationGuid = relationGuid; Status = status; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the category. public Guid? CategoryGuid { get; set; } + /// The description of the record. public string Description { get; set; } + /// The display text. public string DisplayText { get; set; } + /// The GUID of the relationship. public Guid? RelationGuid { get; set; } + /// The status of term relationship. public AtlasTermRelationshipStatus? Status { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermRelationshipStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermRelationshipStatus.cs index e33b962c7fb9..9ec0cebc469f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermRelationshipStatus.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermRelationshipStatus.cs @@ -14,47 +14,72 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct AtlasTermRelationshipStatus : IEquatable { private readonly string _value; + /// draft. + private const string DraftValue = "DRAFT"; + /// active. + private const string ActiveValue = "ACTIVE"; + /// deprecated. + private const string DeprecatedValue = "DEPRECATED"; + /// obsolete. + private const string ObsoleteValue = "OBSOLETE"; + /// other. + private const string OtherValue = "OTHER"; /// Initializes a new instance of . + /// The value. /// is null. public AtlasTermRelationshipStatus(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string DraftValue = "DRAFT"; - private const string ActiveValue = "ACTIVE"; - private const string DeprecatedValue = "DEPRECATED"; - private const string ObsoleteValue = "OBSOLETE"; - private const string OtherValue = "OTHER"; + _value = value; + } /// draft. public static AtlasTermRelationshipStatus Draft { get; } = new AtlasTermRelationshipStatus(DraftValue); + /// active. public static AtlasTermRelationshipStatus Active { get; } = new AtlasTermRelationshipStatus(ActiveValue); + /// deprecated. public static AtlasTermRelationshipStatus Deprecated { get; } = new AtlasTermRelationshipStatus(DeprecatedValue); + /// obsolete. public static AtlasTermRelationshipStatus Obsolete { get; } = new AtlasTermRelationshipStatus(ObsoleteValue); + /// other. public static AtlasTermRelationshipStatus Other { get; } = new AtlasTermRelationshipStatus(OtherValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(AtlasTermRelationshipStatus left, AtlasTermRelationshipStatus right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(AtlasTermRelationshipStatus left, AtlasTermRelationshipStatus right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator AtlasTermRelationshipStatus(string value) => new AtlasTermRelationshipStatus(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator AtlasTermRelationshipStatus?(string value) => value == null ? null : new AtlasTermRelationshipStatus(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is AtlasTermRelationshipStatus other && Equals(other); - /// + + /// public bool Equals(AtlasTermRelationshipStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.Serialization.cs index 39c8c1ea7480..9607ff040ef2 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasTimeZone : IUtf8JsonSerializable, IJsonModel + /// The timezone information. + public partial class AtlasTimeZone : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTimeZone)} does not support writing '{format}' format."); } - if (Optional.IsDefined(DstSavings)) { writer.WritePropertyName("dstSavings"u8); @@ -48,8 +47,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("availableIds"u8); writer.WriteStartArray(); - foreach (var item in AvailableIds) + foreach (string item in AvailableIds) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -69,15 +73,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("rawOffset"u8); writer.WriteNumberValue(RawOffset.Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -86,22 +90,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasTimeZone IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasTimeZone IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasTimeZone JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTimeZone)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasTimeZone(document.RootElement, options); } - internal static AtlasTimeZone DeserializeAtlasTimeZone(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasTimeZone DeserializeAtlasTimeZone(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -112,67 +121,72 @@ internal static AtlasTimeZone DeserializeAtlasTimeZone(JsonElement element, Mode AtlasTimeZone @default = default; string displayName = default; int? rawOffset = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("dstSavings"u8)) + if (prop.NameEquals("dstSavings"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dstSavings = property.Value.GetInt32(); + dstSavings = prop.Value.GetInt32(); continue; } - if (property.NameEquals("id"u8)) + if (prop.NameEquals("id"u8)) { - id = property.Value.GetString(); + id = prop.Value.GetString(); continue; } - if (property.NameEquals("availableIds"u8)) + if (prop.NameEquals("availableIds"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } availableIds = array; continue; } - if (property.NameEquals("default"u8)) + if (prop.NameEquals("default"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - @default = DeserializeAtlasTimeZone(property.Value, options); + @default = DeserializeAtlasTimeZone(prop.Value, options); continue; } - if (property.NameEquals("displayName"u8)) + if (prop.NameEquals("displayName"u8)) { - displayName = property.Value.GetString(); + displayName = prop.Value.GetString(); continue; } - if (property.NameEquals("rawOffset"u8)) + if (prop.NameEquals("rawOffset"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - rawOffset = property.Value.GetInt32(); + rawOffset = prop.Value.GetInt32(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasTimeZone( dstSavings, id, @@ -180,13 +194,16 @@ internal static AtlasTimeZone DeserializeAtlasTimeZone(JsonElement element, Mode @default, displayName, rawOffset, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -196,15 +213,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions optio } } - AtlasTimeZone IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasTimeZone IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasTimeZone PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasTimeZone(document.RootElement, options); } default: @@ -212,22 +234,7 @@ AtlasTimeZone IPersistableModel.Create(BinaryData data, ModelRead } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasTimeZone FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasTimeZone(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.cs index 149b7df6ab4f..dcfc4b0950a9 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The timezone information. public partial class AtlasTimeZone { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasTimeZone() @@ -58,8 +29,8 @@ public AtlasTimeZone() /// The timezone information. /// The display name of the timezone. /// The raw offset of the timezone. - /// Keeps track of any properties unknown to the library. - internal AtlasTimeZone(int? dstSavings, string id, IList availableIds, AtlasTimeZone @default, string displayName, int? rawOffset, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasTimeZone(int? dstSavings, string id, IList availableIds, AtlasTimeZone @default, string displayName, int? rawOffset, IDictionary additionalBinaryDataProperties) { DstSavings = dstSavings; Id = id; @@ -67,19 +38,24 @@ internal AtlasTimeZone(int? dstSavings, string id, IList availableIds, A Default = @default; DisplayName = displayName; RawOffset = rawOffset; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The value of the daylight saving time. public int? DstSavings { get; set; } + /// The ID of the timezone. public string Id { get; set; } + /// An array of available IDs. public IList AvailableIds { get; } + /// The timezone information. public AtlasTimeZone Default { get; set; } + /// The display name of the timezone. public string DisplayName { get; set; } + /// The raw offset of the timezone. public int? RawOffset { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.Serialization.cs index ef3d577aaa78..efbe90afb641 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasTypeDef : IUtf8JsonSerializable, IJsonModel + /// The definitions of type. + public partial class AtlasTypeDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTypeDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,8 +119,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("entityTypes"u8); writer.WriteStartArray(); - foreach (var item in EntityTypes) + foreach (string item in EntityTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -124,8 +134,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("subTypes"u8); writer.WriteStartArray(); - foreach (var item in SubTypes) + foreach (string item in SubTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -134,8 +149,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("superTypes"u8); writer.WriteStartArray(); - foreach (var item in SuperTypes) + foreach (string item in SuperTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -144,7 +164,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("relationshipAttributeDefs"u8); writer.WriteStartArray(); - foreach (var item in RelationshipAttributeDefs) + foreach (AtlasRelationshipAttributeDef item in RelationshipAttributeDefs) { writer.WriteObjectValue(item, options); } @@ -159,7 +179,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("elementDefs"u8); writer.WriteStartArray(); - foreach (var item in ElementDefs) + foreach (AtlasEnumElementDef item in ElementDefs) { writer.WriteObjectValue(item, options); } @@ -189,21 +209,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -212,22 +232,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasTypeDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasTypeDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasTypeDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTypeDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasTypeDef(document.RootElement, options); } - internal static AtlasTypeDef DeserializeAtlasTypeDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasTypeDef DeserializeAtlasTypeDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -239,242 +264,269 @@ internal static AtlasTypeDef DeserializeAtlasTypeDef(JsonElement element, ModelR string description = default; string guid = default; string name = default; - IReadOnlyDictionary options0 = default; + IDictionary options0 = default; string serviceType = default; string typeVersion = default; long? updateTime = default; string updatedBy = default; long? version = default; string lastModifiedTS = default; - IReadOnlyList entityTypes = default; - IReadOnlyList subTypes = default; - IReadOnlyList superTypes = default; - IReadOnlyList relationshipAttributeDefs = default; + IList entityTypes = default; + IList subTypes = default; + IList superTypes = default; + IList relationshipAttributeDefs = default; string defaultValue = default; - IReadOnlyList elementDefs = default; + IList elementDefs = default; AtlasRelationshipEndDef endDef1 = default; AtlasRelationshipEndDef endDef2 = default; RelationshipCategory? relationshipCategory = default; string relationshipLabel = default; - IReadOnlyList attributeDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList attributeDefs = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("entityTypes"u8)) + if (prop.NameEquals("entityTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } entityTypes = array; continue; } - if (property.NameEquals("subTypes"u8)) + if (prop.NameEquals("subTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } subTypes = array; continue; } - if (property.NameEquals("superTypes"u8)) + if (prop.NameEquals("superTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } superTypes = array; continue; } - if (property.NameEquals("relationshipAttributeDefs"u8)) + if (prop.NameEquals("relationshipAttributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelationshipAttributeDef.DeserializeAtlasRelationshipAttributeDef(item, options)); } relationshipAttributeDefs = array; continue; } - if (property.NameEquals("defaultValue"u8)) + if (prop.NameEquals("defaultValue"u8)) { - defaultValue = property.Value.GetString(); + defaultValue = prop.Value.GetString(); continue; } - if (property.NameEquals("elementDefs"u8)) + if (prop.NameEquals("elementDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasEnumElementDef.DeserializeAtlasEnumElementDef(item, options)); } elementDefs = array; continue; } - if (property.NameEquals("endDef1"u8)) + if (prop.NameEquals("endDef1"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - endDef1 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(property.Value, options); + endDef1 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(prop.Value, options); continue; } - if (property.NameEquals("endDef2"u8)) + if (prop.NameEquals("endDef2"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - endDef2 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(property.Value, options); + endDef2 = AtlasRelationshipEndDef.DeserializeAtlasRelationshipEndDef(prop.Value, options); continue; } - if (property.NameEquals("relationshipCategory"u8)) + if (prop.NameEquals("relationshipCategory"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - relationshipCategory = new RelationshipCategory(property.Value.GetString()); + relationshipCategory = new RelationshipCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("relationshipLabel"u8)) + if (prop.NameEquals("relationshipLabel"u8)) { - relationshipLabel = property.Value.GetString(); + relationshipLabel = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } @@ -483,10 +535,9 @@ internal static AtlasTypeDef DeserializeAtlasTypeDef(JsonElement element, ModelR } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasTypeDef( category, createTime, @@ -513,13 +564,16 @@ internal static AtlasTypeDef DeserializeAtlasTypeDef(JsonElement element, ModelR relationshipCategory, relationshipLabel, attributeDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -529,15 +583,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions option } } - AtlasTypeDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasTypeDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasTypeDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasTypeDef(document.RootElement, options); } default: @@ -545,22 +604,14 @@ AtlasTypeDef IPersistableModel.Create(BinaryData data, ModelReader } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasTypeDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasTypeDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasTypeDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasTypeDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.cs index e3e25681152b..4f9a862763f9 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The definitions of type. public partial class AtlasTypeDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AtlasTypeDef() @@ -76,25 +47,25 @@ internal AtlasTypeDef() /// Specifying a list of entityType names in the classificationDef, ensures that /// classifications can /// only be applied to those entityTypes. - /// + /// /// Any subtypes of the entity types inherit the restriction. - /// + /// /// Any classificationDef subtypes inherit the parents entityTypes restrictions. - /// + /// /// Any classificationDef subtypes can further restrict the parents entityTypes /// restrictions by specifying a subset of the entityTypes. - /// + /// /// An empty entityTypes list when there are no parent restrictions means there are no /// restrictions. - /// + /// /// An empty entityTypes list when there are parent /// restrictions means that the subtype picks up the parents /// restrictions. - /// + /// /// If a list of entityTypes are supplied, where one inherits /// from another, this will be rejected. This should encourage cleaner /// classificationsDefs. - /// + /// /// /// An array of sub types. /// An array of super types. @@ -117,18 +88,18 @@ internal AtlasTypeDef() /// The Relationship category determines the style of relationship around /// containment and lifecycle. /// UML terminology is used for the values. - /// - /// ASSOCIATION is a relationship with no containment. + /// + /// ASSOCIATION is a relationship with no containment. /// COMPOSITION and AGGREGATION are containment relationships. - /// - /// The difference being in the lifecycles of the container and its children. - /// In the COMPOSITION case, the children cannot exist without the container. + /// + /// 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. /// /// The label of the relationship. /// An array of attribute definitions. - /// Keeps track of any properties unknown to the library. - internal AtlasTypeDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IReadOnlyDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IReadOnlyList entityTypes, IReadOnlyList subTypes, IReadOnlyList superTypes, IReadOnlyList relationshipAttributeDefs, string defaultValue, IReadOnlyList elementDefs, AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef2, RelationshipCategory? relationshipCategory, string relationshipLabel, IReadOnlyList attributeDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasTypeDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList entityTypes, IList subTypes, IList superTypes, IList relationshipAttributeDefs, string defaultValue, IList elementDefs, AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef2, RelationshipCategory? relationshipCategory, string relationshipLabel, IList attributeDefs, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -155,72 +126,92 @@ internal AtlasTypeDef(TypeCategory? category, long? createTime, string createdBy RelationshipCategory = relationshipCategory; RelationshipLabel = relationshipLabel; AttributeDefs = attributeDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; } + /// The created time of the record. public long? CreateTime { get; } + /// The user who created the record. public string CreatedBy { get; } + /// The date format. public AtlasDateFormat DateFormatter { get; } + /// The description of the type definition. public string Description { get; } + /// The GUID of the type definition. public string Guid { get; } + /// The name of the type definition. public string Name { get; } + /// The options for the type definition. - public IReadOnlyDictionary Options { get; } + public IDictionary Options { get; } + /// The service type. public string ServiceType { get; } + /// The version of the type. public string TypeVersion { get; } + /// The update time of the record. public long? UpdateTime { get; } + /// The user who updated the record. public string UpdatedBy { get; } + /// The version of the record. public long? Version { get; } + /// ETag for concurrency control. public string LastModifiedTS { get; } + /// /// Specifying a list of entityType names in the classificationDef, ensures that /// classifications can /// only be applied to those entityTypes. - /// + /// /// Any subtypes of the entity types inherit the restriction. - /// + /// /// Any classificationDef subtypes inherit the parents entityTypes restrictions. - /// + /// /// Any classificationDef subtypes can further restrict the parents entityTypes /// restrictions by specifying a subset of the entityTypes. - /// + /// /// An empty entityTypes list when there are no parent restrictions means there are no /// restrictions. - /// + /// /// An empty entityTypes list when there are parent /// restrictions means that the subtype picks up the parents /// restrictions. - /// + /// /// If a list of entityTypes are supplied, where one inherits /// from another, this will be rejected. This should encourage cleaner /// classificationsDefs. - /// + /// /// - public IReadOnlyList EntityTypes { get; } + public IList EntityTypes { get; } + /// An array of sub types. - public IReadOnlyList SubTypes { get; } + public IList SubTypes { get; } + /// An array of super types. - public IReadOnlyList SuperTypes { get; } + public IList SuperTypes { get; } + /// An array of relationship attributes. - public IReadOnlyList RelationshipAttributeDefs { get; } + public IList RelationshipAttributeDefs { get; } + /// The default value. public string DefaultValue { get; } + /// An array of enum element definitions. - public IReadOnlyList ElementDefs { get; } + public IList ElementDefs { get; } + /// /// The relationshipEndDef represents an end of the relationship. The end of the /// relationship is defined by a type, an @@ -228,6 +219,7 @@ internal AtlasTypeDef(TypeCategory? category, long? createTime, string createdBy /// it is the container end of the relationship. /// public AtlasRelationshipEndDef EndDef1 { get; } + /// /// The relationshipEndDef represents an end of the relationship. The end of the /// relationship is defined by a type, an @@ -235,22 +227,25 @@ internal AtlasTypeDef(TypeCategory? category, long? createTime, string createdBy /// it is the container end of the relationship. /// public AtlasRelationshipEndDef EndDef2 { get; } + /// /// The Relationship category determines the style of relationship around /// containment and lifecycle. /// UML terminology is used for the values. - /// - /// ASSOCIATION is a relationship with no containment. + /// + /// ASSOCIATION is a relationship with no containment. /// COMPOSITION and AGGREGATION are containment relationships. - /// - /// The difference being in the lifecycles of the container and its children. - /// In the COMPOSITION case, the children cannot exist without the container. + /// + /// 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. /// public RelationshipCategory? RelationshipCategory { get; } + /// The label of the relationship. public string RelationshipLabel { get; } + /// An array of attribute definitions. - public IReadOnlyList AttributeDefs { get; } + public IList AttributeDefs { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.Serialization.cs index 953df36dc95b..44680c4d5056 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasTypeDefHeader : IUtf8JsonSerializable, IJsonModel + /// The basic information of the type definition. + public partial class AtlasTypeDefHeader : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTypeDefHeader)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasTypeDefHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasTypeDefHeader IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasTypeDefHeader JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTypeDefHeader)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasTypeDefHeader(document.RootElement, options); } - internal static AtlasTypeDefHeader DeserializeAtlasTypeDefHeader(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasTypeDefHeader DeserializeAtlasTypeDefHeader(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,42 +93,43 @@ internal static AtlasTypeDefHeader DeserializeAtlasTypeDefHeader(JsonElement ele TypeCategory? category = default; string guid = default; string name = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AtlasTypeDefHeader(category, guid, name, serializedAdditionalRawData); + return new AtlasTypeDefHeader(category, guid, name, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -134,15 +139,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AtlasTypeDefHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasTypeDefHeader IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasTypeDefHeader PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasTypeDefHeader(document.RootElement, options); } default: @@ -150,22 +160,7 @@ AtlasTypeDefHeader IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasTypeDefHeader FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasTypeDefHeader(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.cs index 7a6a035cc11a..8a15a67cedca 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The basic information of the type definition. public partial class AtlasTypeDefHeader { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AtlasTypeDefHeader() @@ -54,19 +25,21 @@ internal AtlasTypeDefHeader() /// The enum of type category. /// The GUID of the type definition. /// The name of the type definition. - /// Keeps track of any properties unknown to the library. - internal AtlasTypeDefHeader(TypeCategory? category, string guid, string name, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasTypeDefHeader(TypeCategory? category, string guid, string name, IDictionary additionalBinaryDataProperties) { Category = category; Guid = guid; Name = name; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; } + /// The GUID of the type definition. public string Guid { get; } + /// The name of the type definition. public string Name { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.Serialization.cs index e551604e0de1..a68fa28d68fe 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.Serialization.cs @@ -9,14 +9,16 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AtlasTypesDef : IUtf8JsonSerializable, IJsonModel + /// The definitions of types. + public partial class AtlasTypesDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,17 +30,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTypesDef)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(BusinessMetadataDefs)) { writer.WritePropertyName("businessMetadataDefs"u8); writer.WriteStartArray(); - foreach (var item in BusinessMetadataDefs) + foreach (AtlasBusinessMetadataDef item in BusinessMetadataDefs) { writer.WriteObjectValue(item, options); } @@ -48,7 +49,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classificationDefs"u8); writer.WriteStartArray(); - foreach (var item in ClassificationDefs) + foreach (AtlasClassificationDef item in ClassificationDefs) { writer.WriteObjectValue(item, options); } @@ -58,7 +59,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("entityDefs"u8); writer.WriteStartArray(); - foreach (var item in EntityDefs) + foreach (AtlasEntityDef item in EntityDefs) { writer.WriteObjectValue(item, options); } @@ -68,7 +69,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("enumDefs"u8); writer.WriteStartArray(); - foreach (var item in EnumDefs) + foreach (AtlasEnumDef item in EnumDefs) { writer.WriteObjectValue(item, options); } @@ -78,7 +79,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("relationshipDefs"u8); writer.WriteStartArray(); - foreach (var item in RelationshipDefs) + foreach (AtlasRelationshipDef item in RelationshipDefs) { writer.WriteObjectValue(item, options); } @@ -88,7 +89,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("structDefs"u8); writer.WriteStartArray(); - foreach (var item in StructDefs) + foreach (AtlasStructDef item in StructDefs) { writer.WriteObjectValue(item, options); } @@ -98,21 +99,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("termTemplateDefs"u8); writer.WriteStartArray(); - foreach (var item in TermTemplateDefs) + foreach (TermTemplateDef item in TermTemplateDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -121,22 +122,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AtlasTypesDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AtlasTypesDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AtlasTypesDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AtlasTypesDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAtlasTypesDef(document.RootElement, options); } - internal static AtlasTypesDef DeserializeAtlasTypesDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AtlasTypesDef DeserializeAtlasTypesDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -148,102 +154,101 @@ internal static AtlasTypesDef DeserializeAtlasTypesDef(JsonElement element, Mode IList relationshipDefs = default; IList structDefs = default; IList termTemplateDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("businessMetadataDefs"u8)) + if (prop.NameEquals("businessMetadataDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasBusinessMetadataDef.DeserializeAtlasBusinessMetadataDef(item, options)); } businessMetadataDefs = array; continue; } - if (property.NameEquals("classificationDefs"u8)) + if (prop.NameEquals("classificationDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasClassificationDef.DeserializeAtlasClassificationDef(item, options)); } classificationDefs = array; continue; } - if (property.NameEquals("entityDefs"u8)) + if (prop.NameEquals("entityDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasEntityDef.DeserializeAtlasEntityDef(item, options)); } entityDefs = array; continue; } - if (property.NameEquals("enumDefs"u8)) + if (prop.NameEquals("enumDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasEnumDef.DeserializeAtlasEnumDef(item, options)); } enumDefs = array; continue; } - if (property.NameEquals("relationshipDefs"u8)) + if (prop.NameEquals("relationshipDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasRelationshipDef.DeserializeAtlasRelationshipDef(item, options)); } relationshipDefs = array; continue; } - if (property.NameEquals("structDefs"u8)) + if (prop.NameEquals("structDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasStructDef.DeserializeAtlasStructDef(item, options)); } structDefs = array; continue; } - if (property.NameEquals("termTemplateDefs"u8)) + if (prop.NameEquals("termTemplateDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(TermTemplateDef.DeserializeTermTemplateDef(item, options)); } @@ -252,10 +257,9 @@ internal static AtlasTypesDef DeserializeAtlasTypesDef(JsonElement element, Mode } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new AtlasTypesDef( businessMetadataDefs ?? new ChangeTrackingList(), classificationDefs ?? new ChangeTrackingList(), @@ -264,13 +268,16 @@ internal static AtlasTypesDef DeserializeAtlasTypesDef(JsonElement element, Mode relationshipDefs ?? new ChangeTrackingList(), structDefs ?? new ChangeTrackingList(), termTemplateDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -280,15 +287,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions optio } } - AtlasTypesDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AtlasTypesDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AtlasTypesDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAtlasTypesDef(document.RootElement, options); } default: @@ -296,22 +308,26 @@ AtlasTypesDef IPersistableModel.Create(BinaryData data, ModelRead } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AtlasTypesDef FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AtlasTypesDef atlasTypesDef) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAtlasTypesDef(document.RootElement); + if (atlasTypesDef == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(atlasTypesDef, ModelSerializationExtensions.WireOptions); + return content; } - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AtlasTypesDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAtlasTypesDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.cs index 33411d2cddfa..769c4ecca4fc 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The definitions of types. public partial class AtlasTypesDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AtlasTypesDef() @@ -65,8 +36,8 @@ public AtlasTypesDef() /// An array of relationship definitions. /// An array of struct definitions. /// An array of term template definitions. - /// Keeps track of any properties unknown to the library. - internal AtlasTypesDef(IList businessMetadataDefs, IList classificationDefs, IList entityDefs, IList enumDefs, IList relationshipDefs, IList structDefs, IList termTemplateDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AtlasTypesDef(IList businessMetadataDefs, IList classificationDefs, IList entityDefs, IList enumDefs, IList relationshipDefs, IList structDefs, IList termTemplateDefs, IDictionary additionalBinaryDataProperties) { BusinessMetadataDefs = businessMetadataDefs; ClassificationDefs = classificationDefs; @@ -75,21 +46,27 @@ internal AtlasTypesDef(IList businessMetadataDefs, ILi RelationshipDefs = relationshipDefs; StructDefs = structDefs; TermTemplateDefs = termTemplateDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// businessMetadataDefs. public IList BusinessMetadataDefs { get; } + /// An array of classification definitions. public IList ClassificationDefs { get; } + /// An array of entity definitions. public IList EntityDefs { get; } + /// An array of enum definitions. public IList EnumDefs { get; } + /// An array of relationship definitions. public IList RelationshipDefs { get; } + /// An array of struct definitions. public IList StructDefs { get; } + /// An array of term template definitions. public IList TermTemplateDefs { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.Serialization.cs index 99c0fa7b5e0f..bd76cf2df5fe 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.Serialization.cs @@ -13,10 +13,11 @@ namespace Azure.Analytics.Purview.DataMap { - public partial class AutoCompleteConfig : IUtf8JsonSerializable, IJsonModel + /// The payload of autocomplete request. + public partial class AutoCompleteConfig : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AutoCompleteConfig)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Keywords)) { writer.WritePropertyName("keywords"u8); @@ -48,23 +48,23 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("filter"u8); #if NET6_0_OR_GREATER - writer.WriteRawValue(Filter); + writer.WriteRawValue(Filter); #else - using (JsonDocument document = JsonDocument.Parse(Filter, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(Filter)) { JsonSerializer.Serialize(writer, document.RootElement); } #endif } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -73,22 +73,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutoCompleteConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AutoCompleteConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AutoCompleteConfig JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AutoCompleteConfig)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAutoCompleteConfig(document.RootElement, options); } - internal static AutoCompleteConfig DeserializeAutoCompleteConfig(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AutoCompleteConfig DeserializeAutoCompleteConfig(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -96,46 +101,47 @@ internal static AutoCompleteConfig DeserializeAutoCompleteConfig(JsonElement ele string keywords = default; int? limit = default; BinaryData filter = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("keywords"u8)) + if (prop.NameEquals("keywords"u8)) { - keywords = property.Value.GetString(); + keywords = prop.Value.GetString(); continue; } - if (property.NameEquals("limit"u8)) + if (prop.NameEquals("limit"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - limit = property.Value.GetInt32(); + limit = prop.Value.GetInt32(); continue; } - if (property.NameEquals("filter"u8)) + if (prop.NameEquals("filter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - filter = BinaryData.FromString(property.Value.GetRawText()); + filter = BinaryData.FromString(prop.Value.GetRawText()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AutoCompleteConfig(keywords, limit, filter, serializedAdditionalRawData); + return new AutoCompleteConfig(keywords, limit, filter, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -145,15 +151,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AutoCompleteConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AutoCompleteConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AutoCompleteConfig PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAutoCompleteConfig(document.RootElement, options); } default: @@ -161,21 +172,18 @@ AutoCompleteConfig IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AutoCompleteConfig FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(AutoCompleteConfig autoCompleteConfig) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAutoCompleteConfig(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + if (autoCompleteConfig == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(autoCompleteConfig, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.cs index 3a8c72aa0520..86d7028b08bc 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// The payload of autocomplete request. public partial class AutoCompleteConfig { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public AutoCompleteConfig() @@ -60,13 +32,13 @@ public AutoCompleteConfig() /// The value must be a number between 1 and 100. /// /// The filter for the autocomplete request. - /// Keeps track of any properties unknown to the library. - internal AutoCompleteConfig(string keywords, int? limit, BinaryData filter, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AutoCompleteConfig(string keywords, int? limit, BinaryData filter, IDictionary additionalBinaryDataProperties) { Keywords = keywords; Limit = limit; Filter = filter; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// @@ -74,37 +46,35 @@ internal AutoCompleteConfig(string keywords, int? limit, BinaryData filter, IDic /// be at least 1 character, and no more than 100 characters. /// public string Keywords { get; set; } + /// /// The number of autocomplete results we hope to return. The default value is 50. /// The value must be a number between 1 and 100. /// public int? Limit { get; set; } + /// /// The filter for the autocomplete request. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.Serialization.cs index 5d5ff6104572..a5f0227a08cb 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class AutoCompleteResult : IUtf8JsonSerializable, IJsonModel + /// The result of the autocomplete request. + public partial class AutoCompleteResult : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,31 +29,30 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AutoCompleteResult)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); writer.WriteStartArray(); - foreach (var item in Value) + foreach (AutoCompleteResultValue item in Value) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,39 +61,43 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutoCompleteResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AutoCompleteResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AutoCompleteResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AutoCompleteResult)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAutoCompleteResult(document.RootElement, options); } - internal static AutoCompleteResult DeserializeAutoCompleteResult(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AutoCompleteResult DeserializeAutoCompleteResult(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList value = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("value"u8)) + if (prop.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AutoCompleteResultValue.DeserializeAutoCompleteResultValue(item, options)); } @@ -102,17 +106,19 @@ internal static AutoCompleteResult DeserializeAutoCompleteResult(JsonElement ele } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AutoCompleteResult(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new AutoCompleteResult(value ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -122,15 +128,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - AutoCompleteResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AutoCompleteResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AutoCompleteResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAutoCompleteResult(document.RootElement, options); } default: @@ -138,22 +149,14 @@ AutoCompleteResult IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AutoCompleteResult FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAutoCompleteResult(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator AutoCompleteResult(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAutoCompleteResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.cs index 135976716348..143215a02071 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The result of the autocomplete request. public partial class AutoCompleteResult { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AutoCompleteResult() @@ -53,14 +24,14 @@ internal AutoCompleteResult() /// Initializes a new instance of . /// The result value. - /// Keeps track of any properties unknown to the library. - internal AutoCompleteResult(IReadOnlyList value, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AutoCompleteResult(IList value, IDictionary additionalBinaryDataProperties) { Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The result value. - public IReadOnlyList Value { get; } + public IList Value { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.Serialization.cs index f9911a8d11dc..9c6803bf0619 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class AutoCompleteResultValue : IUtf8JsonSerializable, IJsonModel + /// The value item of the autocomplete suggest. + public partial class AutoCompleteResultValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AutoCompleteResultValue)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Text)) { writer.WritePropertyName("text"u8); @@ -44,15 +43,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("queryPlusText"u8); writer.WriteStringValue(QueryPlusText); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,55 +60,61 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutoCompleteResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + AutoCompleteResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual AutoCompleteResultValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(AutoCompleteResultValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeAutoCompleteResultValue(document.RootElement, options); } - internal static AutoCompleteResultValue DeserializeAutoCompleteResultValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static AutoCompleteResultValue DeserializeAutoCompleteResultValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } string text = default; string queryPlusText = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("text"u8)) + if (prop.NameEquals("text"u8)) { - text = property.Value.GetString(); + text = prop.Value.GetString(); continue; } - if (property.NameEquals("queryPlusText"u8)) + if (prop.NameEquals("queryPlusText"u8)) { - queryPlusText = property.Value.GetString(); + queryPlusText = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new AutoCompleteResultValue(text, queryPlusText, serializedAdditionalRawData); + return new AutoCompleteResultValue(text, queryPlusText, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -119,15 +124,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpt } } - AutoCompleteResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + AutoCompleteResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual AutoCompleteResultValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeAutoCompleteResultValue(document.RootElement, options); } default: @@ -135,22 +145,7 @@ AutoCompleteResultValue IPersistableModel.Create(Binary } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static AutoCompleteResultValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeAutoCompleteResultValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.cs index 8ee346e8b5da..9338b3ca829e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The value item of the autocomplete suggest. public partial class AutoCompleteResultValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal AutoCompleteResultValue() @@ -53,16 +24,17 @@ internal AutoCompleteResultValue() /// Initializes a new instance of . /// The completed term or phrase. /// The completed search query text. - /// Keeps track of any properties unknown to the library. - internal AutoCompleteResultValue(string text, string queryPlusText, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal AutoCompleteResultValue(string text, string queryPlusText, IDictionary additionalBinaryDataProperties) { Text = text; QueryPlusText = queryPlusText; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The completed term or phrase. public string Text { get; } + /// The completed search query text. public string QueryPlusText { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.Serialization.cs index 0c4319fd39ec..de75919bc501 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class BulkImportResult : IUtf8JsonSerializable, IJsonModel + /// Bulk import result. + public partial class BulkImportResult : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,17 +29,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(BulkImportResult)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(FailedImportInfoList)) { writer.WritePropertyName("failedImportInfoList"u8); writer.WriteStartArray(); - foreach (var item in FailedImportInfoList) + foreach (ImportInfo item in FailedImportInfoList) { writer.WriteObjectValue(item, options); } @@ -48,21 +48,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("successImportInfoList"u8); writer.WriteStartArray(); - foreach (var item in SuccessImportInfoList) + foreach (ImportInfo item in SuccessImportInfoList) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -71,54 +71,58 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - BulkImportResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + BulkImportResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual BulkImportResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(BulkImportResult)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeBulkImportResult(document.RootElement, options); } - internal static BulkImportResult DeserializeBulkImportResult(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static BulkImportResult DeserializeBulkImportResult(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList failedImportInfoList = default; - IReadOnlyList successImportInfoList = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList failedImportInfoList = default; + IList successImportInfoList = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("failedImportInfoList"u8)) + if (prop.NameEquals("failedImportInfoList"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(ImportInfo.DeserializeImportInfo(item, options)); } failedImportInfoList = array; continue; } - if (property.NameEquals("successImportInfoList"u8)) + if (prop.NameEquals("successImportInfoList"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(ImportInfo.DeserializeImportInfo(item, options)); } @@ -127,17 +131,19 @@ internal static BulkImportResult DeserializeBulkImportResult(JsonElement element } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new BulkImportResult(failedImportInfoList ?? new ChangeTrackingList(), successImportInfoList ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new BulkImportResult(failedImportInfoList ?? new ChangeTrackingList(), successImportInfoList ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -147,15 +153,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions op } } - BulkImportResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + BulkImportResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual BulkImportResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeBulkImportResult(document.RootElement, options); } default: @@ -163,22 +174,14 @@ BulkImportResult IPersistableModel.Create(BinaryData data, Mod } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static BulkImportResult FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeBulkImportResult(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator BulkImportResult(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeBulkImportResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.cs index 19b1e985a3a2..d489274af973 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// Bulk import result. public partial class BulkImportResult { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal BulkImportResult() @@ -55,17 +26,18 @@ internal BulkImportResult() /// Initializes a new instance of . /// failed importInfoList. /// successful importInfoList. - /// Keeps track of any properties unknown to the library. - internal BulkImportResult(IReadOnlyList failedImportInfoList, IReadOnlyList successImportInfoList, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal BulkImportResult(IList failedImportInfoList, IList successImportInfoList, IDictionary additionalBinaryDataProperties) { FailedImportInfoList = failedImportInfoList; SuccessImportInfoList = successImportInfoList; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// failed importInfoList. - public IReadOnlyList FailedImportInfoList { get; } + public IList FailedImportInfoList { get; } + /// successful importInfoList. - public IReadOnlyList SuccessImportInfoList { get; } + public IList SuccessImportInfoList { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessAttributeUpdateBehavior.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessAttributeUpdateBehavior.cs index b242bdb777f5..2e55a98c67b3 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessAttributeUpdateBehavior.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessAttributeUpdateBehavior.cs @@ -14,41 +14,62 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct BusinessAttributeUpdateBehavior : IEquatable { private readonly string _value; + /// Ignore the business attribute payload for update. + private const string IgnoreValue = "ignore"; + /// Replace all the business attributes using the payload. + private const string ReplaceValue = "replace"; + /// Merge the business attributes. Business attributes will not be updated if not provided. + private const string MergeValue = "merge"; /// Initializes a new instance of . + /// The value. /// is null. public BusinessAttributeUpdateBehavior(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string IgnoreValue = "ignore"; - private const string ReplaceValue = "replace"; - private const string MergeValue = "merge"; + _value = value; + } /// Ignore the business attribute payload for update. public static BusinessAttributeUpdateBehavior Ignore { get; } = new BusinessAttributeUpdateBehavior(IgnoreValue); + /// Replace all the business attributes using the payload. public static BusinessAttributeUpdateBehavior Replace { get; } = new BusinessAttributeUpdateBehavior(ReplaceValue); + /// Merge the business attributes. Business attributes will not be updated if not provided. public static BusinessAttributeUpdateBehavior Merge { get; } = new BusinessAttributeUpdateBehavior(MergeValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(BusinessAttributeUpdateBehavior left, BusinessAttributeUpdateBehavior right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(BusinessAttributeUpdateBehavior left, BusinessAttributeUpdateBehavior right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator BusinessAttributeUpdateBehavior(string value) => new BusinessAttributeUpdateBehavior(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator BusinessAttributeUpdateBehavior?(string value) => value == null ? null : new BusinessAttributeUpdateBehavior(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is BusinessAttributeUpdateBehavior other && Equals(other); - /// + + /// public bool Equals(BusinessAttributeUpdateBehavior other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.Serialization.cs index ad41a5b5a312..b63048adf55a 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.Serialization.cs @@ -8,16 +8,21 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.IO; using System.Text.Json; using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class BusinessMetadataOptions : IUtf8JsonSerializable, IJsonModel + /// Business metadata to send to the service. + public partial class BusinessMetadataOptions : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + /// Initializes a new instance of for deserialization. + internal BusinessMetadataOptions() + { + } + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -29,30 +34,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(BusinessMetadataOptions)} does not support writing '{format}' format."); } - writer.WritePropertyName("file"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(global::System.BinaryData.FromStream(File)); -#else - using (JsonDocument document = JsonDocument.Parse(BinaryData.FromStream(File), ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - if (options.Format != "W" && _serializedAdditionalRawData != null) + writer.WriteBase64StringValue(File.ToArray(), "D"); + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,91 +58,78 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - BusinessMetadataOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + BusinessMetadataOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual BusinessMetadataOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(BusinessMetadataOptions)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeBusinessMetadataOptions(document.RootElement, options); } - internal static BusinessMetadataOptions DeserializeBusinessMetadataOptions(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static BusinessMetadataOptions DeserializeBusinessMetadataOptions(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - Stream file = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + BinaryData @file = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("file"u8)) + if (prop.NameEquals("file"u8)) { - file = BinaryData.FromString(property.Value.GetRawText()).ToStream(); + @file = BinaryData.FromBytes(prop.Value.GetBytesFromBase64("D")); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new BusinessMetadataOptions(file, serializedAdditionalRawData); - } - - private BinaryData SerializeMultipart(ModelReaderWriterOptions options) - { - using MultipartFormDataRequestContent content = ToMultipartRequestContent(); - using MemoryStream stream = new MemoryStream(); - content.WriteTo(stream); - if (stream.Position > int.MaxValue) - { - return BinaryData.FromStream(stream); - } - else - { - return new BinaryData(stream.GetBuffer().AsMemory(0, (int)stream.Position)); - } + return new BusinessMetadataOptions(@file, additionalBinaryDataProperties); } - internal virtual MultipartFormDataRequestContent ToMultipartRequestContent() - { - MultipartFormDataRequestContent content = new MultipartFormDataRequestContent(); - content.Add(File, "file", "file", "application/octet-stream"); - return content; - } + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureAnalyticsPurviewDataMapContext.Default); - case "MFD": - return SerializeMultipart(options); default: throw new FormatException($"The model {nameof(BusinessMetadataOptions)} does not support writing '{options.Format}' format."); } } - BusinessMetadataOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + BusinessMetadataOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual BusinessMetadataOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeBusinessMetadataOptions(document.RootElement, options); } default: @@ -153,14 +137,19 @@ BusinessMetadataOptions IPersistableModel.Create(Binary } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "MFD"; + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static BusinessMetadataOptions FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(BusinessMetadataOptions businessMetadataOptions) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeBusinessMetadataOptions(document.RootElement); + if (businessMetadataOptions == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(businessMetadataOptions, ModelSerializationExtensions.WireOptions); + return content; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.cs index 199b98475c71..40404d45186b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.cs @@ -7,70 +7,50 @@ using System; using System.Collections.Generic; -using System.IO; namespace Azure.Analytics.Purview.DataMap { /// Business metadata to send to the service. public partial class BusinessMetadataOptions { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . /// InputStream of file. /// is null. - public BusinessMetadataOptions(Stream file) + public BusinessMetadataOptions(BinaryData @file) { - Argument.AssertNotNull(file, nameof(file)); + Argument.AssertNotNull(@file, nameof(@file)); - File = file; + File = @file; } /// Initializes a new instance of . /// InputStream of file. - /// Keeps track of any properties unknown to the library. - internal BusinessMetadataOptions(Stream file, IDictionary serializedAdditionalRawData) - { - File = file; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal BusinessMetadataOptions() + /// Keeps track of any properties unknown to the library. + internal BusinessMetadataOptions(BinaryData @file, IDictionary additionalBinaryDataProperties) { + File = @file; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } - /// InputStream of file. - public Stream File { get; } + /// + /// InputStream of file + /// + /// To assign a byte[] to this property use . + /// The byte[] will be serialized to a Base64 encoded string. + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromBytes(new byte[] { 1, 2, 3 }). + /// Creates a payload of "AQID". + /// + /// + /// + /// + public BinaryData File { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/CardinalityValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/CardinalityValue.cs index adb6f4122d7f..004542be89fe 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/CardinalityValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/CardinalityValue.cs @@ -14,41 +14,62 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct CardinalityValue : IEquatable { private readonly string _value; + /// single. + private const string SingleValue = "SINGLE"; + /// list. + private const string ListValue = "LIST"; + /// set. + private const string SetValue = "SET"; /// Initializes a new instance of . + /// The value. /// is null. public CardinalityValue(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string SingleValue = "SINGLE"; - private const string ListValue = "LIST"; - private const string SetValue = "SET"; + _value = value; + } /// single. public static CardinalityValue Single { get; } = new CardinalityValue(SingleValue); + /// list. public static CardinalityValue List { get; } = new CardinalityValue(ListValue); + /// set. public static CardinalityValue Set { get; } = new CardinalityValue(SetValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(CardinalityValue left, CardinalityValue right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(CardinalityValue left, CardinalityValue right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator CardinalityValue(string value) => new CardinalityValue(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator CardinalityValue?(string value) => value == null ? null : new CardinalityValue(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is CardinalityValue other && Equals(other); - /// + + /// public bool Equals(CardinalityValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.Serialization.cs index 62c20485166a..9e87c0a509a9 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.Serialization.cs @@ -13,10 +13,11 @@ namespace Azure.Analytics.Purview.DataMap { - public partial class ClassificationAssociateConfig : IUtf8JsonSerializable, IJsonModel + /// The request payload for classification association. + public partial class ClassificationAssociateConfig : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ClassificationAssociateConfig)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Classification)) { writer.WritePropertyName("classification"u8); @@ -43,21 +43,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("entityGuids"u8); writer.WriteStartArray(); - foreach (var item in EntityGuids) + foreach (string item in EntityGuids) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,68 +71,81 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ClassificationAssociateConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + ClassificationAssociateConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ClassificationAssociateConfig JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ClassificationAssociateConfig)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeClassificationAssociateConfig(document.RootElement, options); } - internal static ClassificationAssociateConfig DeserializeClassificationAssociateConfig(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ClassificationAssociateConfig DeserializeClassificationAssociateConfig(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } AtlasClassification classification = default; IList entityGuids = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("classification"u8)) + if (prop.NameEquals("classification"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - classification = AtlasClassification.DeserializeAtlasClassification(property.Value, options); + classification = AtlasClassification.DeserializeAtlasClassification(prop.Value, options); continue; } - if (property.NameEquals("entityGuids"u8)) + if (prop.NameEquals("entityGuids"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } entityGuids = array; continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new ClassificationAssociateConfig(classification, entityGuids ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new ClassificationAssociateConfig(classification, entityGuids ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -137,15 +155,20 @@ BinaryData IPersistableModel.Write(ModelReaderWri } } - ClassificationAssociateConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + ClassificationAssociateConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ClassificationAssociateConfig PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeClassificationAssociateConfig(document.RootElement, options); } default: @@ -153,21 +176,18 @@ ClassificationAssociateConfig IPersistableModel.C } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static ClassificationAssociateConfig FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeClassificationAssociateConfig(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to serialize into . + public static implicit operator RequestContent(ClassificationAssociateConfig classificationAssociateConfig) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + if (classificationAssociateConfig == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(classificationAssociateConfig, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.cs index b055730daa9d..c9d0e4369936 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The request payload for classification association. public partial class ClassificationAssociateConfig { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public ClassificationAssociateConfig() @@ -57,12 +28,12 @@ public ClassificationAssociateConfig() /// exists only when associated with an entity. /// /// The GUID of the entity. - /// Keeps track of any properties unknown to the library. - internal ClassificationAssociateConfig(AtlasClassification classification, IList entityGuids, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal ClassificationAssociateConfig(AtlasClassification classification, IList entityGuids, IDictionary additionalBinaryDataProperties) { Classification = classification; EntityGuids = entityGuids; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// @@ -70,6 +41,7 @@ internal ClassificationAssociateConfig(AtlasClassification classification, IList /// exists only when associated with an entity. /// public AtlasClassification Classification { get; set; } + /// The GUID of the entity. public IList EntityGuids { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.Serialization.cs index 3ad0d6a7ea45..e51e0c989633 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class ContactInfo : IUtf8JsonSerializable, IJsonModel + /// ContactInfo. + public partial class ContactInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptio /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ContactInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) { writer.WritePropertyName("id"u8); @@ -44,15 +43,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("info"u8); writer.WriteStringValue(Info); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,55 +60,61 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ContactInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + ContactInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ContactInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ContactInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeContactInfo(document.RootElement, options); } - internal static ContactInfo DeserializeContactInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ContactInfo DeserializeContactInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } string id = default; string info = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("id"u8)) + if (prop.NameEquals("id"u8)) { - id = property.Value.GetString(); + id = prop.Value.GetString(); continue; } - if (property.NameEquals("info"u8)) + if (prop.NameEquals("info"u8)) { - info = property.Value.GetString(); + info = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new ContactInfo(id, info, serializedAdditionalRawData); + return new ContactInfo(id, info, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -119,15 +124,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options } } - ContactInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + ContactInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ContactInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeContactInfo(document.RootElement, options); } default: @@ -135,22 +145,7 @@ ContactInfo IPersistableModel.Create(BinaryData data, ModelReaderWr } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static ContactInfo FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeContactInfo(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.cs index d83e694e8618..1e7e695822c8 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// ContactInfo. public partial class ContactInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public ContactInfo() @@ -53,16 +24,17 @@ public ContactInfo() /// Initializes a new instance of . /// Azure Active Directory object Id. /// additional information to describe this contact. - /// Keeps track of any properties unknown to the library. - internal ContactInfo(string id, string info, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal ContactInfo(string id, string info, IDictionary additionalBinaryDataProperties) { Id = id; Info = info; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Azure Active Directory object Id. public string Id { get; set; } + /// additional information to describe this contact. public string Info { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.Serialization.cs index 52edc57e446a..a912b1260270 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class ContactSearchResultValue : IUtf8JsonSerializable, IJsonModel + /// The contact in the search and suggest result. + public partial class ContactSearchResultValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRead /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ContactSearchResultValue)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) { writer.WritePropertyName("id"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("contactType"u8); writer.WriteStringValue(ContactType); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ContactSearchResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + ContactSearchResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ContactSearchResultValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ContactSearchResultValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeContactSearchResultValue(document.RootElement, options); } - internal static ContactSearchResultValue DeserializeContactSearchResultValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ContactSearchResultValue DeserializeContactSearchResultValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,38 +93,39 @@ internal static ContactSearchResultValue DeserializeContactSearchResultValue(Jso string id = default; string info = default; string contactType = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("id"u8)) + if (prop.NameEquals("id"u8)) { - id = property.Value.GetString(); + id = prop.Value.GetString(); continue; } - if (property.NameEquals("info"u8)) + if (prop.NameEquals("info"u8)) { - info = property.Value.GetString(); + info = prop.Value.GetString(); continue; } - if (property.NameEquals("contactType"u8)) + if (prop.NameEquals("contactType"u8)) { - contactType = property.Value.GetString(); + contactType = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new ContactSearchResultValue(id, info, contactType, serializedAdditionalRawData); + return new ContactSearchResultValue(id, info, contactType, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -130,15 +135,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOp } } - ContactSearchResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + ContactSearchResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ContactSearchResultValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeContactSearchResultValue(document.RootElement, options); } default: @@ -146,22 +156,7 @@ ContactSearchResultValue IPersistableModel.Create(Bina } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static ContactSearchResultValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeContactSearchResultValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.cs index 40fe93701e9a..24e932cfdf6d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The contact in the search and suggest result. public partial class ContactSearchResultValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal ContactSearchResultValue() @@ -57,19 +28,21 @@ internal ContactSearchResultValue() /// The type of the contact. It can be Expert or Owner for an entity. It can be /// Expert or Steward for a glossary term. /// - /// Keeps track of any properties unknown to the library. - internal ContactSearchResultValue(string id, string info, string contactType, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal ContactSearchResultValue(string id, string info, string contactType, IDictionary additionalBinaryDataProperties) { Id = id; Info = info; ContactType = contactType; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of the contact. public string Id { get; } + /// The description of the contact. public string Info { get; } + /// /// The type of the contact. It can be Expert or Owner for an entity. It can be /// Expert or Steward for a glossary term. diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.RestClient.cs new file mode 100644 index 000000000000..a7a595cc1d1b --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.RestClient.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class DataMapClient + { + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs index 1ddf6c256589..25a3061618d4 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClient.cs @@ -12,20 +12,20 @@ namespace Azure.Analytics.Purview.DataMap { - // Data plane generated client. - /// The DataMap service client. + /// The DataMapClient. public partial class DataMapClient { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; + /// A credential used to authenticate to the service. + private readonly TokenCredential _tokenCredential; + private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; + private readonly string _apiVersion; + private Entity _cachedEntity; + private Glossary _cachedGlossary; + private Discovery _cachedDiscovery; + private Lineage _cachedLineage; + private Relationship _cachedRelationship; + private TypeDefinition _cachedTypeDefinition; /// Initializes a new instance of DataMapClient for mocking. protected DataMapClient() @@ -33,77 +33,72 @@ protected DataMapClient() } /// Initializes a new instance of DataMapClient. - /// The to use. - /// A credential used to authenticate to an Azure Service. + /// Service endpoint. + /// A credential used to authenticate to the service. /// or is null. public DataMapClient(Uri endpoint, TokenCredential credential) : this(endpoint, credential, new DataMapClientOptions()) { } /// Initializes a new instance of DataMapClient. - /// The to use. - /// A credential used to authenticate to an Azure Service. + /// Service endpoint. + /// A credential used to authenticate to the service. /// The options for configuring the client. /// or is null. public DataMapClient(Uri endpoint, TokenCredential credential, DataMapClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Argument.AssertNotNull(credential, nameof(credential)); + options ??= new DataMapClientOptions(); - ClientDiagnostics = new ClientDiagnostics(options, true); - _tokenCredential = credential; - _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier()); _endpoint = endpoint; + _tokenCredential = credential; + Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }); + _apiVersion = options.Version; + ClientDiagnostics = new ClientDiagnostics(options, true); } - private Relationship _cachedRelationship; + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } /// Initializes a new instance of Entity. - /// The API version to use for this operation. - public virtual Entity GetEntityClient(string apiVersion = "2023-09-01") + public virtual Entity GetEntityClient() { - return new Entity(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, apiVersion); + return Volatile.Read(ref _cachedEntity) ?? Interlocked.CompareExchange(ref _cachedEntity, new Entity(ClientDiagnostics, Pipeline, _endpoint, _apiVersion), null) ?? _cachedEntity; } /// Initializes a new instance of Glossary. - /// The API version to use for this operation. - public virtual Glossary GetGlossaryClient(string apiVersion = "2023-09-01") + public virtual Glossary GetGlossaryClient() { - return new Glossary(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, apiVersion); + return Volatile.Read(ref _cachedGlossary) ?? Interlocked.CompareExchange(ref _cachedGlossary, new Glossary(ClientDiagnostics, Pipeline, _endpoint, _apiVersion), null) ?? _cachedGlossary; } /// Initializes a new instance of Discovery. - /// The API version to use for this operation. - /// is null. - public virtual Discovery GetDiscoveryClient(string apiVersion = "2023-09-01") + public virtual Discovery GetDiscoveryClient() { - Argument.AssertNotNull(apiVersion, nameof(apiVersion)); - - return new Discovery(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, apiVersion); + return Volatile.Read(ref _cachedDiscovery) ?? Interlocked.CompareExchange(ref _cachedDiscovery, new Discovery(ClientDiagnostics, Pipeline, _endpoint, _apiVersion), null) ?? _cachedDiscovery; } /// Initializes a new instance of Lineage. - /// The API version to use for this operation. - /// is null. - public virtual Lineage GetLineageClient(string apiVersion = "2023-09-01") + public virtual Lineage GetLineageClient() { - Argument.AssertNotNull(apiVersion, nameof(apiVersion)); - - return new Lineage(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, apiVersion); + return Volatile.Read(ref _cachedLineage) ?? Interlocked.CompareExchange(ref _cachedLineage, new Lineage(ClientDiagnostics, Pipeline, _endpoint, _apiVersion), null) ?? _cachedLineage; } /// Initializes a new instance of Relationship. public virtual Relationship GetRelationshipClient() { - return Volatile.Read(ref _cachedRelationship) ?? Interlocked.CompareExchange(ref _cachedRelationship, new Relationship(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint), null) ?? _cachedRelationship; + return Volatile.Read(ref _cachedRelationship) ?? Interlocked.CompareExchange(ref _cachedRelationship, new Relationship(ClientDiagnostics, Pipeline, _endpoint), null) ?? _cachedRelationship; } /// Initializes a new instance of TypeDefinition. - /// The API version to use for this operation. - public virtual TypeDefinition GetTypeDefinitionClient(string apiVersion = "2023-09-01") + public virtual TypeDefinition GetTypeDefinitionClient() { - return new TypeDefinition(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, apiVersion); + return Volatile.Read(ref _cachedTypeDefinition) ?? Interlocked.CompareExchange(ref _cachedTypeDefinition, new TypeDefinition(ClientDiagnostics, Pipeline, _endpoint, _apiVersion), null) ?? _cachedTypeDefinition; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClientOptions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClientOptions.cs index 95298168ed12..25e04878f311 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClientOptions.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/DataMapClientOptions.cs @@ -10,21 +10,13 @@ namespace Azure.Analytics.Purview.DataMap { - /// Client options for DataMapClient. + /// Client options for . public partial class DataMapClientOptions : ClientOptions { private const ServiceVersion LatestVersion = ServiceVersion.V2023_09_01; - /// The version of the service to use. - public enum ServiceVersion - { - /// Service version "2023-09-01". - V2023_09_01 = 1, - } - - internal string Version { get; } - - /// Initializes new instance of DataMapClientOptions. + /// Initializes a new instance of DataMapClientOptions. + /// The service version. public DataMapClientOptions(ServiceVersion version = LatestVersion) { Version = version switch @@ -33,5 +25,15 @@ public DataMapClientOptions(ServiceVersion version = LatestVersion) _ => throw new NotSupportedException() }; } + + /// Gets the Version. + internal string Version { get; } + + /// The version of the service to use. + public enum ServiceVersion + { + /// 2023-09-01 service API version. + V2023_09_01 = 1 + } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.RestClient.cs new file mode 100644 index 000000000000..3712856af90f --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.RestClient.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class Discovery + { + private static ResponseClassifier _pipelineMessageClassifier200; + + private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 }); + + internal HttpMessage CreateQueryRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/search/query", false); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateSuggestRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/search/suggest", false); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateAutoCompleteRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/search/autocomplete", false); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs index e4fce86155af..df49827bc3e7 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Discovery.cs @@ -8,108 +8,65 @@ using System; using System.Threading; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Analytics.Purview.DataMap { - // Data plane generated sub-client. /// The Discovery sub-client. public partial class Discovery { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of Discovery for mocking. protected Discovery() { } /// Initializes a new instance of Discovery. - /// The handler for diagnostic messaging in the client. + /// The ClientDiagnostics is used to provide tracing support for the client library. /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. - /// The to use. - /// The API version to use for this operation. - internal Discovery(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) + /// Service endpoint. + /// + internal Discovery(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) { ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; _endpoint = endpoint; + Pipeline = pipeline; _apiVersion = apiVersion; } - /// Get data using search. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> QueryAsync(QueryConfig body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await QueryAsync(content, context).ConfigureAwait(false); - return Response.FromValue(QueryResult.FromResponse(response), response); - } - - /// Get data using search. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual Response Query(QueryConfig body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Query(content, context); - return Response.FromValue(QueryResult.FromResponse(response), response); - } + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } /// /// [Protocol Method] Get data using search. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task QueryAsync(RequestContent content, RequestContext context = null) + public virtual Response Query(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Discovery.Query"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Discovery.Query"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateQueryRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -122,33 +79,25 @@ public virtual async Task QueryAsync(RequestContent content, RequestCo /// [Protocol Method] Get data using search. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Query(RequestContent content, RequestContext context = null) + public virtual async Task QueryAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Discovery.Query"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Discovery.Query"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateQueryRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -157,67 +106,55 @@ public virtual Response Query(RequestContent content, RequestContext context = n } } - /// Get search suggestions by query criteria. + /// Get data using search. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> SuggestAsync(SuggestConfig body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Query(QueryConfig body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await SuggestAsync(content, context).ConfigureAwait(false); - return Response.FromValue(SuggestResult.FromResponse(response), response); + Response result = Query(body, cancellationToken.ToRequestContext()); + return Response.FromValue((QueryResult)result, result); } - /// Get search suggestions by query criteria. + /// Get data using search. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response Suggest(SuggestConfig body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> QueryAsync(QueryConfig body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Suggest(content, context); - return Response.FromValue(SuggestResult.FromResponse(response), response); + Response result = await QueryAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((QueryResult)result, result); } /// /// [Protocol Method] Get search suggestions by query criteria. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task SuggestAsync(RequestContent content, RequestContext context = null) + public virtual Response Suggest(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Discovery.Suggest"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Discovery.Suggest"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateSuggestRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -230,33 +167,25 @@ public virtual async Task SuggestAsync(RequestContent content, Request /// [Protocol Method] Get search suggestions by query criteria. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Suggest(RequestContent content, RequestContext context = null) + public virtual async Task SuggestAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Discovery.Suggest"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Discovery.Suggest"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateSuggestRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -265,67 +194,55 @@ public virtual Response Suggest(RequestContent content, RequestContext context = } } - /// Get auto complete options. + /// Get search suggestions by query criteria. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> AutoCompleteAsync(AutoCompleteConfig body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Suggest(SuggestConfig body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AutoCompleteAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AutoCompleteResult.FromResponse(response), response); + Response result = Suggest(body, cancellationToken.ToRequestContext()); + return Response.FromValue((SuggestResult)result, result); } - /// Get auto complete options. + /// Get search suggestions by query criteria. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response AutoComplete(AutoCompleteConfig body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> SuggestAsync(SuggestConfig body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AutoComplete(content, context); - return Response.FromValue(AutoCompleteResult.FromResponse(response), response); + Response result = await SuggestAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((SuggestResult)result, result); } /// /// [Protocol Method] Get auto complete options. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AutoCompleteAsync(RequestContent content, RequestContext context = null) + public virtual Response AutoComplete(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Discovery.AutoComplete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Discovery.AutoComplete"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAutoCompleteRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -338,33 +255,25 @@ public virtual async Task AutoCompleteAsync(RequestContent content, Re /// [Protocol Method] Get auto complete options. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AutoComplete(RequestContent content, RequestContext context = null) + public virtual async Task AutoCompleteAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Discovery.AutoComplete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Discovery.AutoComplete"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAutoCompleteRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -373,69 +282,30 @@ public virtual Response AutoComplete(RequestContent content, RequestContext cont } } - internal HttpMessage CreateQueryRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/search/query", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateSuggestRequest(RequestContent content, RequestContext context) + /// Get auto complete options. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response AutoComplete(AutoCompleteConfig body, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/search/suggest", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } + Argument.AssertNotNull(body, nameof(body)); - internal HttpMessage CreateAutoCompleteRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/search/autocomplete", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; + Response result = AutoComplete(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AutoCompleteResult)result, result); } - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) + /// Get auto complete options. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> AutoCompleteAsync(AutoCompleteConfig body, CancellationToken cancellationToken = default) { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } + Argument.AssertNotNull(body, nameof(body)); - return new RequestContext() { CancellationToken = cancellationToken }; + Response result = await AutoCompleteAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AutoCompleteResult)result, result); } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml deleted file mode 100644 index c42beea59bbe..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml +++ /dev/null @@ -1,4329 +0,0 @@ - - - - - -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 10, - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - }, - new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "prefix", - ["attributeValue"] = "https://" - } - }, - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - assetType = "SQL Server", - }, - new - { - assetType = "Azure SQL Server", - }, - new - { - assetType = "Azure SQL Database", - }, - new - { - assetType = "Azure SQL Data Warehouse", - }, - new - { - assetType = "Azure SQL Managed Instance", - }, - new - { - assetType = "Azure Storage Account", - }, - new - { - assetType = "Azure Blob Storage", - }, - new - { - assetType = "Azure Files", - }, - new - { - assetType = "Azure Table Storage", - }, - new - { - assetType = "Azure Data Lake Storage Gen1", - }, - new - { - assetType = "Azure Data Lake Storage Gen2", - }, - new - { - assetType = "Azure Cosmos DB", - }, - new - { - assetType = "Azure Data Factory", - }, - new - { - assetType = "Azure Cognitive Search", - }, - new - { - assetType = "Power BI", - }, - new - { - assetType = "Azure Data Explorer", - }, - new - { - assetType = "Amazon S3", - }, - new - { - assetType = "Azure Data Share", - }, - new - { - assetType = "Teradata", - }, - new - { - assetType = "SAP S4HANA", - }, - new - { - assetType = "SAP ECC", - }, - new - { - assetType = "SQL Server Integration Services", - }, - new - { - assetType = "hive", - }, - new - { - assetType = "Azure Database for MySQL", - }, - new - { - assetType = "Azure Database for MariaDB", - }, - new - { - assetType = "Azure Database for PostgreSQL", - }, - new - { - assetType = "Azure Synapse Analytics", - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "createTime", - ["operator"] = "ge", - ["attributeValue"] = 1545580800000L - }, - new Dictionary - { - ["attributeName"] = "modifiedTime", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|contains|prefix", - ["attributeValue"] = "string value" - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|gt|ge|lt|le", - ["attributeValue"] = 123 - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne", - ["attributeValue"] = true - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - classification = "MICROSOFT.PERSONAL.EMAIL", - includeSubClassifications = true, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - collectionId = "collectionName", - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - objectType = "Tables", - }), - Facets = {new SearchFacetItem - { - Count = 10, - Facet = "assetType", - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - }}, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - fileExtension = "txt", - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Glossary terms", - }, - new - { - or = new object[] - { - new - { - glossaryType = "AtlasGlossary", - }, - new - { - glossaryType = "AtlasGlossaryTerm", - } - }, - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 10, - Facet = "termStatus", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "termTemplate", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - objectType = "Dashboards", - }, - new - { - objectType = "Data pipelines", - }, - new - { - objectType = "Files", - }, - new - { - objectType = "Folders", - }, - new - { - objectType = "Glossary terms", - }, - new - { - objectType = "Reports", - }, - new - { - objectType = "Stored procedures", - }, - new - { - objectType = "Tables", - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 2, - ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 2, - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 2, - ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - createTime = new Dictionary - { - ["operator"] = "lt", - ["timeThreshold"] = 1545580800000L - }, - }, - new - { - updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - not = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "size", - ["operator"] = "eq", - ["attributeValue"] = 0 - }, - new Dictionary - { - ["attributeName"] = "fileSize", - ["operator"] = "eq", - ["attributeValue"] = 0 - } - }, - }, - }, - new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - } - }, - }), - TaxonomySetting = new SearchTaxonomySetting - { - AssetTypes = { "Azure Blob Storage" }, - Facet = new SearchFacetItem - { - Count = 10, - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, - }, -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "", - Limit = 3, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - term = "ExampleTerm", - }, - new - { - term = "ExampleTerm", - glossary = "GlossaryName", - }, - new - { - termGuid = "", - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> -This sample shows how to call QueryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }), -}; -Response response = await client.QueryAsync(body); -]]> - - - -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 10, - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - }, - new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "prefix", - ["attributeValue"] = "https://" - } - }, - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - assetType = "SQL Server", - }, - new - { - assetType = "Azure SQL Server", - }, - new - { - assetType = "Azure SQL Database", - }, - new - { - assetType = "Azure SQL Data Warehouse", - }, - new - { - assetType = "Azure SQL Managed Instance", - }, - new - { - assetType = "Azure Storage Account", - }, - new - { - assetType = "Azure Blob Storage", - }, - new - { - assetType = "Azure Files", - }, - new - { - assetType = "Azure Table Storage", - }, - new - { - assetType = "Azure Data Lake Storage Gen1", - }, - new - { - assetType = "Azure Data Lake Storage Gen2", - }, - new - { - assetType = "Azure Cosmos DB", - }, - new - { - assetType = "Azure Data Factory", - }, - new - { - assetType = "Azure Cognitive Search", - }, - new - { - assetType = "Power BI", - }, - new - { - assetType = "Azure Data Explorer", - }, - new - { - assetType = "Amazon S3", - }, - new - { - assetType = "Azure Data Share", - }, - new - { - assetType = "Teradata", - }, - new - { - assetType = "SAP S4HANA", - }, - new - { - assetType = "SAP ECC", - }, - new - { - assetType = "SQL Server Integration Services", - }, - new - { - assetType = "hive", - }, - new - { - assetType = "Azure Database for MySQL", - }, - new - { - assetType = "Azure Database for MariaDB", - }, - new - { - assetType = "Azure Database for PostgreSQL", - }, - new - { - assetType = "Azure Synapse Analytics", - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "createTime", - ["operator"] = "ge", - ["attributeValue"] = 1545580800000L - }, - new Dictionary - { - ["attributeName"] = "modifiedTime", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|contains|prefix", - ["attributeValue"] = "string value" - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|gt|ge|lt|le", - ["attributeValue"] = 123 - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne", - ["attributeValue"] = true - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - classification = "MICROSOFT.PERSONAL.EMAIL", - includeSubClassifications = true, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - collectionId = "collectionName", - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - objectType = "Tables", - }), - Facets = {new SearchFacetItem - { - Count = 10, - Facet = "assetType", - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - }}, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - fileExtension = "txt", - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Glossary terms", - }, - new - { - or = new object[] - { - new - { - glossaryType = "AtlasGlossary", - }, - new - { - glossaryType = "AtlasGlossaryTerm", - } - }, - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 10, - Facet = "termStatus", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "termTemplate", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - objectType = "Dashboards", - }, - new - { - objectType = "Data pipelines", - }, - new - { - objectType = "Files", - }, - new - { - objectType = "Folders", - }, - new - { - objectType = "Glossary terms", - }, - new - { - objectType = "Reports", - }, - new - { - objectType = "Stored procedures", - }, - new - { - objectType = "Tables", - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 2, - ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 2, - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 2, - ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new - { - name = "ASC", - }), BinaryData.FromObjectAsJson(new - { - updateTime = "DESC", - })}, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }), - Facets = {new SearchFacetItem - { - Count = 0, - Facet = "assetType", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "classification", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "contactId", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "label", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, new SearchFacetItem - { - Count = 10, - Facet = "term", - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }}, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - createTime = new Dictionary - { - ["operator"] = "lt", - ["timeThreshold"] = 1545580800000L - }, - }, - new - { - updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "exampledata", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - not = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "size", - ["operator"] = "eq", - ["attributeValue"] = 0 - }, - new Dictionary - { - ["attributeName"] = "fileSize", - ["operator"] = "eq", - ["attributeValue"] = 0 - } - }, - }, - }, - new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - } - }, - }), - TaxonomySetting = new SearchTaxonomySetting - { - AssetTypes = { "Azure Blob Storage" }, - Facet = new SearchFacetItem - { - Count = 10, - Sort = new SearchFacetSort - { - Count = SearchSortOrder.Descend, - }, - }, - }, -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Keywords = "", - Limit = 3, - Filter = BinaryData.FromObjectAsJson(new - { - or = new object[] - { - new - { - term = "ExampleTerm", - }, - new - { - term = "ExampleTerm", - glossary = "GlossaryName", - }, - new - { - termGuid = "", - } - }, - }), -}; -Response response = client.Query(body); -]]> -This sample shows how to call Query. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -QueryConfig body = new QueryConfig -{ - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }), -}; -Response response = client.Query(body); -]]> - - - -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 10, - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - }, - new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "prefix", - ["attributeValue"] = "https://" - } - }, - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new - { - assetType = "SQL Server", - }, - new - { - assetType = "Azure SQL Server", - }, - new - { - assetType = "Azure SQL Database", - }, - new - { - assetType = "Azure SQL Data Warehouse", - }, - new - { - assetType = "Azure SQL Managed Instance", - }, - new - { - assetType = "Azure Storage Account", - }, - new - { - assetType = "Azure Blob Storage", - }, - new - { - assetType = "Azure Files", - }, - new - { - assetType = "Azure Table Storage", - }, - new - { - assetType = "Azure Data Lake Storage Gen1", - }, - new - { - assetType = "Azure Data Lake Storage Gen2", - }, - new - { - assetType = "Azure Cosmos DB", - }, - new - { - assetType = "Azure Data Factory", - }, - new - { - assetType = "Azure Cognitive Search", - }, - new - { - assetType = "Power BI", - }, - new - { - assetType = "Azure Data Explorer", - }, - new - { - assetType = "Amazon S3", - }, - new - { - assetType = "Azure Data Share", - }, - new - { - assetType = "Teradata", - }, - new - { - assetType = "SAP S4HANA", - }, - new - { - assetType = "SAP ECC", - }, - new - { - assetType = "SQL Server Integration Services", - }, - new - { - assetType = "hive", - }, - new - { - assetType = "Azure Database for MySQL", - }, - new - { - assetType = "Azure Database for MariaDB", - }, - new - { - assetType = "Azure Database for PostgreSQL", - }, - new - { - assetType = "Azure Synapse Analytics", - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "createTime", - ["operator"] = "ge", - ["attributeValue"] = 1545580800000L - }, - new Dictionary - { - ["attributeName"] = "modifiedTime", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|contains|prefix", - ["attributeValue"] = "string value" - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|gt|ge|lt|le", - ["attributeValue"] = 123 - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne", - ["attributeValue"] = true - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - classification = "MICROSOFT.PERSONAL.EMAIL", - includeSubClassifications = true, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - collectionId = "collectionName", - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - filter = new - { - objectType = "Tables", - }, - limit = 10, - facets = new object[] - { - new - { - facet = "assetType", - count = 10, - }, - new - { - facet = "classification", - count = 10, - }, - new - { - facet = "term", - count = 10, - }, - new - { - facet = "label", - count = 10, - } - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - fileExtension = "txt", - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "", - limit = 10, - filter = new - { - and = new object[] - { - new - { - objectType = "Glossary terms", - }, - new - { - or = new object[] - { - new - { - glossaryType = "AtlasGlossary", - }, - new - { - glossaryType = "AtlasGlossaryTerm", - } - }, - } - }, - }, - facets = new object[] - { - new - { - facet = "termStatus", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "termTemplate", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new - { - objectType = "Dashboards", - }, - new - { - objectType = "Data pipelines", - }, - new - { - objectType = "Files", - }, - new - { - objectType = "Folders", - }, - new - { - objectType = "Glossary terms", - }, - new - { - objectType = "Reports", - }, - new - { - objectType = "Stored procedures", - }, - new - { - objectType = "Tables", - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 2, - continuationToken = "", - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 2, - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 2, - continuationToken = "", - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new - { - createTime = new Dictionary - { - ["operator"] = "lt", - ["timeThreshold"] = 1545580800000L - }, - }, - new - { - updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - not = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "size", - ["operator"] = "eq", - ["attributeValue"] = 0 - }, - new Dictionary - { - ["attributeName"] = "fileSize", - ["operator"] = "eq", - ["attributeValue"] = 0 - } - }, - }, - }, - new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - } - }, - }, - limit = 10, - taxonomySetting = new - { - assetTypes = new object[] - { - "Azure Blob Storage" - }, - facet = new - { - count = 10, - sort = new - { - count = "desc", - }, - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "", - limit = 3, - filter = new - { - or = new object[] - { - new - { - term = "ExampleTerm", - }, - new - { - term = "ExampleTerm", - glossary = "GlossaryName", - }, - new - { - termGuid = "", - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call QueryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }, -}); -Response response = await client.QueryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 10, - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "contains", - ["attributeValue"] = ".csv" - }, - new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "qualifiedName", - ["operator"] = "prefix", - ["attributeValue"] = "https://" - } - }, - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new - { - assetType = "SQL Server", - }, - new - { - assetType = "Azure SQL Server", - }, - new - { - assetType = "Azure SQL Database", - }, - new - { - assetType = "Azure SQL Data Warehouse", - }, - new - { - assetType = "Azure SQL Managed Instance", - }, - new - { - assetType = "Azure Storage Account", - }, - new - { - assetType = "Azure Blob Storage", - }, - new - { - assetType = "Azure Files", - }, - new - { - assetType = "Azure Table Storage", - }, - new - { - assetType = "Azure Data Lake Storage Gen1", - }, - new - { - assetType = "Azure Data Lake Storage Gen2", - }, - new - { - assetType = "Azure Cosmos DB", - }, - new - { - assetType = "Azure Data Factory", - }, - new - { - assetType = "Azure Cognitive Search", - }, - new - { - assetType = "Power BI", - }, - new - { - assetType = "Azure Data Explorer", - }, - new - { - assetType = "Amazon S3", - }, - new - { - assetType = "Azure Data Share", - }, - new - { - assetType = "Teradata", - }, - new - { - assetType = "SAP S4HANA", - }, - new - { - assetType = "SAP ECC", - }, - new - { - assetType = "SQL Server Integration Services", - }, - new - { - assetType = "hive", - }, - new - { - assetType = "Azure Database for MySQL", - }, - new - { - assetType = "Azure Database for MariaDB", - }, - new - { - assetType = "Azure Database for PostgreSQL", - }, - new - { - assetType = "Azure Synapse Analytics", - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "name", - ["operator"] = "eq", - ["attributeValue"] = "exampledata.csv" - }, - new Dictionary - { - ["attributeName"] = "createTime", - ["operator"] = "ge", - ["attributeValue"] = 1545580800000L - }, - new Dictionary - { - ["attributeName"] = "modifiedTime", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|contains|prefix", - ["attributeValue"] = "string value" - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne|gt|ge|lt|le", - ["attributeValue"] = 123 - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "eq|ne", - ["attributeValue"] = true - }, - new Dictionary - { - ["attributeName"] = ".", - ["operator"] = "timerange", - ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - classification = "MICROSOFT.PERSONAL.EMAIL", - includeSubClassifications = true, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - collectionId = "collectionName", - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - filter = new - { - objectType = "Tables", - }, - limit = 10, - facets = new object[] - { - new - { - facet = "assetType", - count = 10, - }, - new - { - facet = "classification", - count = 10, - }, - new - { - facet = "term", - count = 10, - }, - new - { - facet = "label", - count = 10, - } - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - fileExtension = "txt", - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "", - limit = 10, - filter = new - { - and = new object[] - { - new - { - objectType = "Glossary terms", - }, - new - { - or = new object[] - { - new - { - glossaryType = "AtlasGlossary", - }, - new - { - glossaryType = "AtlasGlossaryTerm", - } - }, - } - }, - }, - facets = new object[] - { - new - { - facet = "termStatus", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "termTemplate", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new - { - objectType = "Dashboards", - }, - new - { - objectType = "Data pipelines", - }, - new - { - objectType = "Files", - }, - new - { - objectType = "Folders", - }, - new - { - objectType = "Glossary terms", - }, - new - { - objectType = "Reports", - }, - new - { - objectType = "Stored procedures", - }, - new - { - objectType = "Tables", - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 2, - continuationToken = "", - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 2, - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - entityType = "azure_blob_path", - } - }, - }, - limit = 2, - continuationToken = "", - orderby = new object[] - { - new - { - name = "ASC", - }, - new - { - updateTime = "DESC", - } - }, - facets = new object[] - { - new - { - facet = "assetType", - count = 0, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "classification", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "contactId", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "label", - count = 10, - sort = new - { - count = "desc", - }, - }, - new - { - facet = "term", - count = 10, - sort = new - { - count = "desc", - }, - } - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - or = new object[] - { - new - { - createTime = new Dictionary - { - ["operator"] = "lt", - ["timeThreshold"] = 1545580800000L - }, - }, - new - { - updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - objectType = "Files", - }, - new - { - not = new - { - or = new object[] - { - new Dictionary - { - ["attributeName"] = "size", - ["operator"] = "eq", - ["attributeValue"] = 0 - }, - new Dictionary - { - ["attributeName"] = "fileSize", - ["operator"] = "eq", - ["attributeValue"] = 0 - } - }, - }, - }, - new - { - not = new - { - classification = "MICROSOFT.SYSTEM.TEMP_FILE", - }, - } - }, - }, - limit = 10, - taxonomySetting = new - { - assetTypes = new object[] - { - "Azure Blob Storage" - }, - facet = new - { - count = 10, - sort = new - { - count = "desc", - }, - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "", - limit = 3, - filter = new - { - or = new object[] - { - new - { - term = "ExampleTerm", - }, - new - { - term = "ExampleTerm", - glossary = "GlossaryName", - }, - new - { - termGuid = "", - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call Query and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - limit = 10, - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }, -}); -Response response = client.Query(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call SuggestAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -SuggestConfig body = new SuggestConfig -{ - Keywords = "exampledata", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }), -}; -Response response = await client.SuggestAsync(body); -]]> - - - -This sample shows how to call Suggest. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -SuggestConfig body = new SuggestConfig -{ - Keywords = "exampledata", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }), -}; -Response response = client.Suggest(body); -]]> - - - -This sample shows how to call SuggestAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }, - limit = 10, -}); -Response response = await client.SuggestAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Suggest and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exampledata", - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }, - limit = 10, -}); -Response response = client.Suggest(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call AutoCompleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -AutoCompleteConfig body = new AutoCompleteConfig -{ - Keywords = "exa", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }), -}; -Response response = await client.AutoCompleteAsync(body); -]]> - - - -This sample shows how to call AutoComplete. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -AutoCompleteConfig body = new AutoCompleteConfig -{ - Keywords = "exa", - Limit = 10, - Filter = BinaryData.FromObjectAsJson(new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }), -}; -Response response = client.AutoComplete(body); -]]> - - - -This sample shows how to call AutoCompleteAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exa", - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }, - limit = 10, -}); -Response response = await client.AutoCompleteAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call AutoComplete and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - keywords = "exa", - filter = new - { - and = new object[] - { - new - { - entityType = "azure_blob_path", - includeSubTypes = false, - } - }, - }, - limit = 10, -}); -Response response = client.AutoComplete(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml deleted file mode 100644 index 5e89a8058592..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml +++ /dev/null @@ -1,3251 +0,0 @@ - - - - - -This sample shows how to call CreateOrUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CustomAttributes = - { - ["custAttr1"] = "attr1", - ["custAttr2"] = "attr2" - }, - }, -}; -Response response = await client.CreateOrUpdateAsync(body); -]]> -This sample shows how to call CreateOrUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }, -}; -Response response = await client.CreateOrUpdateAsync(body); -]]> -This sample shows how to call CreateOrUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["userDescription"] = BinaryData.FromObjectAsJson("
testing
"), - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - CustomAttributes = - { - ["microsoft_isDescriptionRichText"] = "true" - }, - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - }, -}; -Response response = await client.CreateOrUpdateAsync(body); -]]>
-This sample shows how to call CreateOrUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("exampleaccount"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }, -}; -Response response = await client.CreateOrUpdateAsync(body); -]]>
-
- - -This sample shows how to call CreateOrUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CustomAttributes = - { - ["custAttr1"] = "attr1", - ["custAttr2"] = "attr2" - }, - }, -}; -Response response = client.CreateOrUpdate(body); -]]> -This sample shows how to call CreateOrUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }, -}; -Response response = client.CreateOrUpdate(body); -]]> -This sample shows how to call CreateOrUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["userDescription"] = BinaryData.FromObjectAsJson("
testing
"), - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - CustomAttributes = - { - ["microsoft_isDescriptionRichText"] = "true" - }, - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - }, -}; -Response response = client.CreateOrUpdate(body); -]]>
-This sample shows how to call CreateOrUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("exampleaccount"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }, -}; -Response response = client.CreateOrUpdate(body); -]]>
-
- - -This sample shows how to call CreateOrUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "https://exampleaccount.core.windows.net", - name = "ExampleStorageAccount", - }, - customAttributes = new - { - custAttr1 = "attr1", - custAttr2 = "attr2", - }, - }, -}); -Response response = await client.CreateOrUpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call CreateOrUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "https://exampleaccount.core.windows.net", - name = "ExampleStorageAccount", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, -}); -Response response = await client.CreateOrUpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call CreateOrUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "https://exampleaccount.core.windows.net", - name = "ExampleStorageAccount", - userDescription = "
testing
", - }, - customAttributes = new - { - microsoft_isDescriptionRichText = "true", - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, -}); -Response response = await client.CreateOrUpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]>
-This sample shows how to call CreateOrUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "exampleaccount", - name = "ExampleStorageAccount", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, -}); -Response response = await client.CreateOrUpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]>
-
- - -This sample shows how to call CreateOrUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "https://exampleaccount.core.windows.net", - name = "ExampleStorageAccount", - }, - customAttributes = new - { - custAttr1 = "attr1", - custAttr2 = "attr2", - }, - }, -}); -Response response = client.CreateOrUpdate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call CreateOrUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "https://exampleaccount.core.windows.net", - name = "ExampleStorageAccount", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, -}); -Response response = client.CreateOrUpdate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call CreateOrUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "https://exampleaccount.core.windows.net", - name = "ExampleStorageAccount", - userDescription = "
testing
", - }, - customAttributes = new - { - microsoft_isDescriptionRichText = "true", - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, -}); -Response response = client.CreateOrUpdate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]>
-This sample shows how to call CreateOrUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entity = new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "exampleaccount", - name = "ExampleStorageAccount", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, -}); -Response response = client.CreateOrUpdate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]>
-
- - -This sample shows how to call GetByIdsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetByIdsAsync(new string[] { "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" }); -]]> - - - -This sample shows how to call GetByIds. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetByIds(new string[] { "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" }); -]]> - - - -This sample shows how to call GetByIdsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetByIdsAsync(new string[] { "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" }, true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByIds and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetByIds(new string[] { "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" }, true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchCreateOrUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -AtlasEntitiesWithExtInfo body = new AtlasEntitiesWithExtInfo -{ - ReferredEntities = { }, - Entities = {new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("exampleaccount1"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount1"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }, new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("exampleaccount2"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount2"), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }}, -}; -Response response = await client.BatchCreateOrUpdateAsync(body); -]]> - - - -This sample shows how to call BatchCreateOrUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -AtlasEntitiesWithExtInfo body = new AtlasEntitiesWithExtInfo -{ - ReferredEntities = { }, - Entities = {new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("exampleaccount1"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount1"), - ["description"] = null, - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }, new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["modifiedTime"] = BinaryData.FromObjectAsJson(0), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["qualifiedName"] = BinaryData.FromObjectAsJson("exampleaccount2"), - ["name"] = BinaryData.FromObjectAsJson("ExampleStorageAccount2"), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["publicAccessLevel"] = null - }, - TypeName = "azure_storage_account", - CreatedBy = "ExampleCreator", - Status = EntityStatus.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Owner"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Owner Info", - } - } - }, - }}, -}; -Response response = client.BatchCreateOrUpdate(body); -]]> - - - -This sample shows how to call BatchCreateOrUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entities = new object[] - { - new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "exampleaccount1", - name = "ExampleStorageAccount1", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, - new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "exampleaccount2", - name = "ExampleStorageAccount2", - description = "Example Description", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - } - }, -}); -Response response = await client.BatchCreateOrUpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchCreateOrUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - referredEntities = new object(), - entities = new object[] - { - new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "exampleaccount1", - name = "ExampleStorageAccount1", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - }, - new - { - typeName = "azure_storage_account", - attributes = new - { - owner = "ExampleOwner", - modifiedTime = 0, - createTime = 0, - qualifiedName = "exampleaccount2", - name = "ExampleStorageAccount2", - description = "Example Description", - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Owner = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Owner Info", - } - }, - }, - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, - } - }, -}); -Response response = client.BatchCreateOrUpdate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchDeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.BatchDeleteAsync(new string[] { "18e06957-e265-967a-07f1-e14e2ab8940f", "cc0730ba-9b30-41f0-6953-559d17626d2b" }); -]]> - - - -This sample shows how to call BatchDelete. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.BatchDelete(new string[] { "18e06957-e265-967a-07f1-e14e2ab8940f", "cc0730ba-9b30-41f0-6953-559d17626d2b" }); -]]> - - - -This sample shows how to call BatchDeleteAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.BatchDeleteAsync(new string[] { "18e06957-e265-967a-07f1-e14e2ab8940f", "cc0730ba-9b30-41f0-6953-559d17626d2b" }, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchDelete and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.BatchDelete(new string[] { "18e06957-e265-967a-07f1-e14e2ab8940f", "cc0730ba-9b30-41f0-6953-559d17626d2b" }, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call AddClassificationAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -ClassificationAssociateConfig body = new ClassificationAssociateConfig -{ - Classification = new AtlasClassification - { - Attributes = { }, - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - ValidityPeriods = { }, - }, - EntityGuids = { "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" }, -}; -Response response = await client.AddClassificationAsync(body); -]]> - - - -This sample shows how to call AddClassification. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -ClassificationAssociateConfig body = new ClassificationAssociateConfig -{ - Classification = new AtlasClassification - { - Attributes = { }, - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - ValidityPeriods = { }, - }, - EntityGuids = { "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" }, -}; -Response response = client.AddClassification(body); -]]> - - - -This sample shows how to call AddClassificationAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - classification = new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - attributes = new object(), - validityPeriods = Array.Empty(), - }, - entityGuids = new object[] - { - "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", - "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" - }, -}); -Response response = await client.AddClassificationAsync(content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddClassification. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - classification = new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - attributes = new object(), - validityPeriods = Array.Empty(), - }, - entityGuids = new object[] - { - "784c0f2f-afd2-e26b-f9cb-984f6c2c5021", - "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" - }, -}); -Response response = client.AddClassification(content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetEntityAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetEntityAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); -]]> - - - -This sample shows how to call GetEntity. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetEntity("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); -]]> - - - -This sample shows how to call GetEntityAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetEntityAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEntity and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetEntity("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateAttributeByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.UpdateAttributeByIdAsync("394d9a03-912e-483b-bbd2-bedee1a69798", "ExampleName", BinaryData.FromObjectAsJson("ExampleNewName")); -]]> - - - -This sample shows how to call UpdateAttributeById. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.UpdateAttributeById("394d9a03-912e-483b-bbd2-bedee1a69798", "ExampleName", BinaryData.FromObjectAsJson("ExampleNewName")); -]]> - - - -This sample shows how to call UpdateAttributeByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create("ExampleNewName"); -Response response = await client.UpdateAttributeByIdAsync("394d9a03-912e-483b-bbd2-bedee1a69798", "ExampleName", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateAttributeById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create("ExampleNewName"); -Response response = client.UpdateAttributeById("394d9a03-912e-483b-bbd2-bedee1a69798", "ExampleName", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.DeleteAsync("fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f"); -]]> - - - -This sample shows how to call Delete. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.Delete("fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f"); -]]> - - - -This sample shows how to call DeleteAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.DeleteAsync("fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Delete and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.Delete("fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassificationAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetClassificationAsync("9347abc5-7b86-4b82-a1e2-ad77c7c3cac3", "MICROSOFT.PERSONAL.DATE_OF_BIRTH"); -]]> - - - -This sample shows how to call GetClassification. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetClassification("9347abc5-7b86-4b82-a1e2-ad77c7c3cac3", "MICROSOFT.PERSONAL.DATE_OF_BIRTH"); -]]> - - - -This sample shows how to call GetClassificationAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetClassificationAsync("9347abc5-7b86-4b82-a1e2-ad77c7c3cac3", "MICROSOFT.PERSONAL.DATE_OF_BIRTH", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassification and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetClassification("9347abc5-7b86-4b82-a1e2-ad77c7c3cac3", "MICROSOFT.PERSONAL.DATE_OF_BIRTH", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call RemoveClassificationAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.RemoveClassificationAsync("cc0730ba-9b30-41f0-6953-559d17626d2b", "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveClassification. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.RemoveClassification("cc0730ba-9b30-41f0-6953-559d17626d2b", "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetClassificationsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetClassificationsAsync("67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd"); -]]> - - - -This sample shows how to call GetClassifications. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetClassifications("67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd"); -]]> - - - -This sample shows how to call GetClassificationsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetClassificationsAsync("67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassifications and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetClassifications("67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call AddClassificationsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.AddClassificationsAsync("cc0730ba-9b30-41f0-6953-559d17626d2b", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - EntityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - EntityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - } -}); -]]> - - - -This sample shows how to call AddClassifications. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.AddClassifications("cc0730ba-9b30-41f0-6953-559d17626d2b", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - EntityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - EntityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - } -}); -]]> - - - -This sample shows how to call AddClassificationsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - entityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - entityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - } -}); -Response response = await client.AddClassificationsAsync("cc0730ba-9b30-41f0-6953-559d17626d2b", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddClassifications. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - entityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - entityGuid = "cc0730ba-9b30-41f0-6953-559d17626d2b", - } -}); -Response response = client.AddClassifications("cc0730ba-9b30-41f0-6953-559d17626d2b", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call UpdateClassificationsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.UpdateClassificationsAsync("45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - EntityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US_BANK_ACCOUNT_NUMBER", - EntityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - } -}); -]]> - - - -This sample shows how to call UpdateClassifications. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.UpdateClassifications("45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - EntityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US_BANK_ACCOUNT_NUMBER", - EntityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - } -}); -]]> - - - -This sample shows how to call UpdateClassificationsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - entityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.US_BANK_ACCOUNT_NUMBER", - entityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - } -}); -Response response = await client.UpdateClassificationsAsync("45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call UpdateClassifications. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - entityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.US_BANK_ACCOUNT_NUMBER", - entityGuid = "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", - } -}); -Response response = client.UpdateClassifications("45dd4404-e897-b7e2-ca3c-f6e6b11b4f24", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetByUniqueAttributeAsync("azure_storage_account"); -]]> - - - -This sample shows how to call GetByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetByUniqueAttribute("azure_storage_account"); -]]> - - - -This sample shows how to call GetByUniqueAttributeAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetByUniqueAttributeAsync("azure_storage_account", true, null, "https://exampleaccount.core.windows.net", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByUniqueAttribute and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetByUniqueAttribute("azure_storage_account", true, null, "https://exampleaccount.core.windows.net", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["name"] = BinaryData.FromObjectAsJson("ExampleNewName") - }, - TypeName = "azure_storage_account", - LastModifiedTS = "1", - CreateTime = default, - CreatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", - RelationshipAttributes = - { - ["services"] = BinaryData.FromObjectAsJson(Array.Empty()), - ["meanings"] = BinaryData.FromObjectAsJson(Array.Empty()) - }, - Status = EntityStatus.Active, - UpdateTime = default, - UpdatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Version = 0L, - }, -}; -Response response = await client.UpdateByUniqueAttributeAsync("azure_storage_account", body); -]]> - - - -This sample shows how to call UpdateByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo -{ - ReferredEntities = { }, - Entity = new AtlasEntity - { - Attributes = - { - ["owner"] = BinaryData.FromObjectAsJson("ExampleOwner"), - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount.core.windows.net"), - ["createTime"] = BinaryData.FromObjectAsJson(0), - ["name"] = BinaryData.FromObjectAsJson("ExampleNewName") - }, - TypeName = "azure_storage_account", - LastModifiedTS = "1", - CreateTime = default, - CreatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", - RelationshipAttributes = - { - ["services"] = BinaryData.FromObjectAsJson(Array.Empty()), - ["meanings"] = BinaryData.FromObjectAsJson(Array.Empty()) - }, - Status = EntityStatus.Active, - UpdateTime = default, - UpdatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Version = 0L, - }, -}; -Response response = client.UpdateByUniqueAttribute("azure_storage_account", body); -]]> - - - -This sample shows how to call UpdateByUniqueAttributeAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - entity = new - { - createdBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", - relationshipAttributes = new - { - services = Array.Empty(), - meanings = Array.Empty(), - }, - status = "ACTIVE", - updatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - lastModifiedTS = "1", - version = 0L, - attributes = new - { - owner = "ExampleOwner", - qualifiedName = "https://exampleaccount.core.windows.net", - createTime = 0, - name = "ExampleNewName", - }, - typeName = "azure_storage_account", - }, - referredEntities = new object(), -}); -Response response = await client.UpdateByUniqueAttributeAsync("azure_storage_account", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateByUniqueAttribute and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - entity = new - { - createdBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", - relationshipAttributes = new - { - services = Array.Empty(), - meanings = Array.Empty(), - }, - status = "ACTIVE", - updatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - lastModifiedTS = "1", - version = 0L, - attributes = new - { - owner = "ExampleOwner", - qualifiedName = "https://exampleaccount.core.windows.net", - createTime = 0, - name = "ExampleNewName", - }, - typeName = "azure_storage_account", - }, - referredEntities = new object(), -}); -Response response = client.UpdateByUniqueAttribute("azure_storage_account", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.DeleteByUniqueAttributeAsync("azure_storage_account"); -]]> - - - -This sample shows how to call DeleteByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.DeleteByUniqueAttribute("azure_storage_account"); -]]> - - - -This sample shows how to call DeleteByUniqueAttributeAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.DeleteByUniqueAttributeAsync("azure_storage_account", "https://exampleaccount.core.windows.net", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteByUniqueAttribute and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.DeleteByUniqueAttribute("azure_storage_account", "https://exampleaccount.core.windows.net", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call RemoveClassificationByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.RemoveClassificationByUniqueAttributeAsync("column", "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveClassificationByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.RemoveClassificationByUniqueAttribute("column", "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddClassificationsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.AddClassificationsByUniqueAttributeAsync("azure_storage_account", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -]]> - - - -This sample shows how to call AddClassificationsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.AddClassificationsByUniqueAttribute("azure_storage_account", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -]]> - - - -This sample shows how to call AddClassificationsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -Response response = await client.AddClassificationsByUniqueAttributeAsync("azure_storage_account", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddClassificationsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -Response response = client.AddClassificationsByUniqueAttribute("azure_storage_account", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call UpdateClassificationsUniqueByAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.UpdateClassificationsUniqueByAttributeAsync("azure_storage_account", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -]]> - - - -This sample shows how to call UpdateClassificationsUniqueByAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.UpdateClassificationsUniqueByAttribute("azure_storage_account", new AtlasClassification[] -{ - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new AtlasClassification - { - TypeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -]]> - - - -This sample shows how to call UpdateClassificationsUniqueByAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -Response response = await client.UpdateClassificationsUniqueByAttributeAsync("azure_storage_account", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call UpdateClassificationsUniqueByAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - typeName = "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - }, - new - { - typeName = "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER", - } -}); -Response response = client.UpdateClassificationsUniqueByAttribute("azure_storage_account", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call BatchSetClassificationsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -AtlasEntityHeaders body = new AtlasEntityHeaders -{ - GuidHeaderMap = - { - ["9fb74c11-ac48-4650-95bc-760665c5bd92"] = new AtlasEntityHeader - { - Attributes = - { - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount1.core.windows.net") - }, - TypeName = "azure_storage_account", - Classifications = {new AtlasClassification - { - TypeName = "MICROSOFT.PERSONAL.EMAIL", - }}, - }, - ["7fcc43ab-55ea-45d4-9971-ce0443cb10bb"] = new AtlasEntityHeader - { - Attributes = - { - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount2.core.windows.net") - }, - TypeName = "azure_storage_account", - Classifications = {new AtlasClassification - { - TypeName = "MICROSOFT.PERSONAL.IPADDRESS", - }}, - } - }, -}; -Response> response = await client.BatchSetClassificationsAsync(body); -]]> - - - -This sample shows how to call BatchSetClassifications. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -AtlasEntityHeaders body = new AtlasEntityHeaders -{ - GuidHeaderMap = - { - ["9fb74c11-ac48-4650-95bc-760665c5bd92"] = new AtlasEntityHeader - { - Attributes = - { - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount1.core.windows.net") - }, - TypeName = "azure_storage_account", - Classifications = {new AtlasClassification - { - TypeName = "MICROSOFT.PERSONAL.EMAIL", - }}, - }, - ["7fcc43ab-55ea-45d4-9971-ce0443cb10bb"] = new AtlasEntityHeader - { - Attributes = - { - ["qualifiedName"] = BinaryData.FromObjectAsJson("https://exampleaccount2.core.windows.net") - }, - TypeName = "azure_storage_account", - Classifications = {new AtlasClassification - { - TypeName = "MICROSOFT.PERSONAL.IPADDRESS", - }}, - } - }, -}; -Response> response = client.BatchSetClassifications(body); -]]> - - - -This sample shows how to call BatchSetClassificationsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - guidHeaderMap = new Dictionary - { - ["9fb74c11-ac48-4650-95bc-760665c5bd92"] = new - { - attributes = new - { - qualifiedName = "https://exampleaccount1.core.windows.net", - }, - typeName = "azure_storage_account", - classifications = new object[] - { - new - { - typeName = "MICROSOFT.PERSONAL.EMAIL", - } - }, - }, - ["7fcc43ab-55ea-45d4-9971-ce0443cb10bb"] = new - { - attributes = new - { - qualifiedName = "https://exampleaccount2.core.windows.net", - }, - typeName = "azure_storage_account", - classifications = new object[] - { - new - { - typeName = "MICROSOFT.PERSONAL.IPADDRESS", - } - }, - } - }, -}); -Response response = await client.BatchSetClassificationsAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call BatchSetClassifications and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - guidHeaderMap = new Dictionary - { - ["9fb74c11-ac48-4650-95bc-760665c5bd92"] = new - { - attributes = new - { - qualifiedName = "https://exampleaccount1.core.windows.net", - }, - typeName = "azure_storage_account", - classifications = new object[] - { - new - { - typeName = "MICROSOFT.PERSONAL.EMAIL", - } - }, - }, - ["7fcc43ab-55ea-45d4-9971-ce0443cb10bb"] = new - { - attributes = new - { - qualifiedName = "https://exampleaccount2.core.windows.net", - }, - typeName = "azure_storage_account", - classifications = new object[] - { - new - { - typeName = "MICROSOFT.PERSONAL.IPADDRESS", - } - }, - } - }, -}); -Response response = client.BatchSetClassifications(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call BatchGetByUniqueAttributesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.BatchGetByUniqueAttributesAsync("azure_storage_account"); -]]> - - - -This sample shows how to call BatchGetByUniqueAttributes. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.BatchGetByUniqueAttributes("azure_storage_account"); -]]> - - - -This sample shows how to call BatchGetByUniqueAttributesAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.BatchGetByUniqueAttributesAsync("azure_storage_account", true, null, "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchGetByUniqueAttributes and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.BatchGetByUniqueAttributes("azure_storage_account", true, null, "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetHeaderAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetHeaderAsync("9fb74c11-ac48-4650-95bc-760665c5bd92"); -]]> - - - -This sample shows how to call GetHeader. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetHeader("9fb74c11-ac48-4650-95bc-760665c5bd92"); -]]> - - - -This sample shows how to call GetHeaderAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetHeaderAsync("9fb74c11-ac48-4650-95bc-760665c5bd92", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetHeader and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetHeader("9fb74c11-ac48-4650-95bc-760665c5bd92", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call RemoveBusinessMetadataAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.RemoveBusinessMetadataAsync("02c373fe-2823-4be3-97fa-55180a9faa06", new Dictionary> -{ - ["myBizMetadata1"] = new Dictionary - { - ["bizAttr1"] = BinaryData.FromObjectAsJson("myBizMetaData1.bizAttr1") - } -}); -]]> - - - -This sample shows how to call RemoveBusinessMetadata. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.RemoveBusinessMetadata("02c373fe-2823-4be3-97fa-55180a9faa06", new Dictionary> -{ - ["myBizMetadata1"] = new Dictionary - { - ["bizAttr1"] = BinaryData.FromObjectAsJson("myBizMetaData1.bizAttr1") - } -}); -]]> - - - -This sample shows how to call RemoveBusinessMetadataAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - myBizMetadata1 = new - { - bizAttr1 = "myBizMetaData1.bizAttr1", - }, -}); -Response response = await client.RemoveBusinessMetadataAsync("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveBusinessMetadata. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - myBizMetadata1 = new - { - bizAttr1 = "myBizMetaData1.bizAttr1", - }, -}); -Response response = client.RemoveBusinessMetadata("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadataAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.AddOrUpdateBusinessMetadataAsync("02c373fe-2823-4be3-97fa-55180a9faa06", new Dictionary> -{ - ["myBizMetadata1"] = new Dictionary - { - ["bizAttr1"] = BinaryData.FromObjectAsJson("myBizMetaData1.bizAttr1") - } -}); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadata. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.AddOrUpdateBusinessMetadata("02c373fe-2823-4be3-97fa-55180a9faa06", new Dictionary> -{ - ["myBizMetadata1"] = new Dictionary - { - ["bizAttr1"] = BinaryData.FromObjectAsJson("myBizMetaData1.bizAttr1") - } -}); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadataAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - myBizMetadata1 = new - { - bizAttr1 = "myBizMetaData1.bizAttr1", - }, -}); -Response response = await client.AddOrUpdateBusinessMetadataAsync("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadata. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - myBizMetadata1 = new - { - bizAttr1 = "myBizMetaData1.bizAttr1", - }, -}); -Response response = client.AddOrUpdateBusinessMetadata("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveBusinessMetadataAttributesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.RemoveBusinessMetadataAttributesAsync("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", new Dictionary -{ - ["bizAttr1"] = BinaryData.FromObjectAsJson("bizAttr1") -}); -]]> - - - -This sample shows how to call RemoveBusinessMetadataAttributes. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.RemoveBusinessMetadataAttributes("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", new Dictionary -{ - ["bizAttr1"] = BinaryData.FromObjectAsJson("bizAttr1") -}); -]]> - - - -This sample shows how to call RemoveBusinessMetadataAttributesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - bizAttr1 = "bizAttr1", -}); -Response response = await client.RemoveBusinessMetadataAttributesAsync("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveBusinessMetadataAttributes. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - bizAttr1 = "bizAttr1", -}); -Response response = client.RemoveBusinessMetadataAttributes("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadataAttributesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", new Dictionary -{ - ["bizAttr1"] = BinaryData.FromObjectAsJson("bizAttr1") -}); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadataAttributes. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.AddOrUpdateBusinessMetadataAttributes("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", new Dictionary -{ - ["bizAttr1"] = BinaryData.FromObjectAsJson("bizAttr1") -}); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadataAttributesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - bizAttr1 = "bizAttr1", -}); -Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddOrUpdateBusinessMetadataAttributes. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new -{ - bizAttr1 = "bizAttr1", -}); -Response response = client.AddOrUpdateBusinessMetadataAttributes("02c373fe-2823-4be3-97fa-55180a9faa06", "myBizMetaData1", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetBusinessMetadataTemplateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetBusinessMetadataTemplateAsync(); -]]> - - - -This sample shows how to call GetBusinessMetadataTemplate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetBusinessMetadataTemplate(); -]]> - - - -This sample shows how to call GetBusinessMetadataTemplateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.GetBusinessMetadataTemplateAsync(null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetBusinessMetadataTemplate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.GetBusinessMetadataTemplate(null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call ImportBusinessMetadataAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -BusinessMetadataOptions body = null; -Response response = await client.ImportBusinessMetadataAsync(body); -]]> - - - -This sample shows how to call ImportBusinessMetadata. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -BusinessMetadataOptions body = null; -Response response = client.ImportBusinessMetadata(body); -]]> - - - -This sample shows how to call ImportBusinessMetadataAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = null; -Response response = await client.ImportBusinessMetadataAsync(content, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call ImportBusinessMetadata and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = null; -Response response = client.ImportBusinessMetadata(content, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call RemoveLabelsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.RemoveLabelsAsync("02c373fe-2823-4be3-97fa-55180a9faa06"); -]]> - - - -This sample shows how to call RemoveLabels. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.RemoveLabels("02c373fe-2823-4be3-97fa-55180a9faa06"); -]]> - - - -This sample shows how to call RemoveLabelsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = await client.RemoveLabelsAsync("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveLabels. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = client.RemoveLabels("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call SetLabelsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.SetLabelsAsync("02c373fe-2823-4be3-97fa-55180a9faa06"); -]]> - - - -This sample shows how to call SetLabels. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.SetLabels("02c373fe-2823-4be3-97fa-55180a9faa06"); -]]> - - - -This sample shows how to call SetLabelsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = await client.SetLabelsAsync("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call SetLabels. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = client.SetLabels("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddLabelAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.AddLabelAsync("02c373fe-2823-4be3-97fa-55180a9faa06"); -]]> - - - -This sample shows how to call AddLabel. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.AddLabel("02c373fe-2823-4be3-97fa-55180a9faa06"); -]]> - - - -This sample shows how to call AddLabelAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = await client.AddLabelAsync("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddLabel. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = client.AddLabel("02c373fe-2823-4be3-97fa-55180a9faa06", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveLabelsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.RemoveLabelsByUniqueAttributeAsync("Asset"); -]]> - - - -This sample shows how to call RemoveLabelsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.RemoveLabelsByUniqueAttribute("Asset"); -]]> - - - -This sample shows how to call RemoveLabelsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1" -}); -Response response = await client.RemoveLabelsByUniqueAttributeAsync("Asset", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call RemoveLabelsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1" -}); -Response response = client.RemoveLabelsByUniqueAttribute("Asset", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call SetLabelsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.SetLabelsByUniqueAttributeAsync("Asset"); -]]> - - - -This sample shows how to call SetLabelsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.SetLabelsByUniqueAttribute("Asset"); -]]> - - - -This sample shows how to call SetLabelsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = await client.SetLabelsByUniqueAttributeAsync("Asset", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call SetLabelsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label1", - "label2" -}); -Response response = client.SetLabelsByUniqueAttribute("Asset", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddLabelsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = await client.AddLabelsByUniqueAttributeAsync("Asset"); -]]> - - - -This sample shows how to call AddLabelsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -Response response = client.AddLabelsByUniqueAttribute("Asset"); -]]> - - - -This sample shows how to call AddLabelsByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label3" -}); -Response response = await client.AddLabelsByUniqueAttributeAsync("Asset", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AddLabelsByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - "label3" -}); -Response response = client.AddLabelsByUniqueAttribute("Asset", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call MoveEntitiesToCollectionAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -MoveEntitiesConfig body = new MoveEntitiesConfig -{ - EntityGuids = { "321493e3-3fb7-4b3e-9df7-3b69154174c2", "b2f9c306-cf65-4bb0-878e-cfaafde156b1" }, -}; -Response response = await client.MoveEntitiesToCollectionAsync("ExampleNewCollection", body); -]]> - - - -This sample shows how to call MoveEntitiesToCollection. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -MoveEntitiesConfig body = new MoveEntitiesConfig -{ - EntityGuids = { "321493e3-3fb7-4b3e-9df7-3b69154174c2", "b2f9c306-cf65-4bb0-878e-cfaafde156b1" }, -}; -Response response = client.MoveEntitiesToCollection("ExampleNewCollection", body); -]]> - - - -This sample shows how to call MoveEntitiesToCollectionAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - entityGuids = new object[] - { - "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - }, -}); -Response response = await client.MoveEntitiesToCollectionAsync("ExampleNewCollection", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call MoveEntitiesToCollection and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); - -using RequestContent content = RequestContent.Create(new -{ - entityGuids = new object[] - { - "321493e3-3fb7-4b3e-9df7-3b69154174c2", - "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - }, -}); -Response response = client.MoveEntitiesToCollection("ExampleNewCollection", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Glossary.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Glossary.xml deleted file mode 100644 index e9221d380e18..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Glossary.xml +++ /dev/null @@ -1,2597 +0,0 @@ - - - - - -This sample shows how to call BatchGetAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.BatchGetAsync(); -]]> - - - -This sample shows how to call BatchGet. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.BatchGet(); -]]> - - - -This sample shows how to call BatchGetAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.BatchGetAsync(1, 0, "ASC", null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call BatchGet and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.BatchGet(1, 0, "ASC", null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call CreateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossary body = new AtlasGlossary -{ - LongDescription = "Example Long Description", - Name = "Glossary", - ShortDescription = "Example Short Description", - Language = "en", - Usage = "Example Glossary", -}; -Response response = await client.CreateAsync(body); -]]> - - - -This sample shows how to call Create. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossary body = new AtlasGlossary -{ - LongDescription = "Example Long Description", - Name = "Glossary", - ShortDescription = "Example Short Description", - Language = "en", - Usage = "Example Glossary", -}; -Response response = client.Create(body); -]]> - - - -This sample shows how to call CreateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - name = "Glossary", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - language = "en", - usage = "Example Glossary", -}); -Response response = await client.CreateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Create and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - name = "Glossary", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - language = "en", - usage = "Example Glossary", -}); -Response response = client.Create(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call CreateCategoriesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.CreateCategoriesAsync(new AtlasGlossaryCategory[] -{ - new AtlasGlossaryCategory - { - Name = "ExampleCategory2", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - }, - new AtlasGlossaryCategory - { - Name = "ExampleCategory3", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - } -}); -]]> - - - -This sample shows how to call CreateCategories. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.CreateCategories(new AtlasGlossaryCategory[] -{ - new AtlasGlossaryCategory - { - Name = "ExampleCategory2", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - }, - new AtlasGlossaryCategory - { - Name = "ExampleCategory3", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - } -}); -]]> - - - -This sample shows how to call CreateCategoriesAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - name = "ExampleCategory2", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - }, - new - { - name = "ExampleCategory3", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - } -}); -Response response = await client.CreateCategoriesAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call CreateCategories and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - name = "ExampleCategory2", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - }, - new - { - name = "ExampleCategory3", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - } -}); -Response response = client.CreateCategories(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call CreateCategoryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryCategory body = new AtlasGlossaryCategory -{ - Name = "ExampleCategory1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Terms = {new AtlasRelatedTermHeader - { - TermGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - }}, -}; -Response response = await client.CreateCategoryAsync(body); -]]> - - - -This sample shows how to call CreateCategory. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryCategory body = new AtlasGlossaryCategory -{ - Name = "ExampleCategory1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Terms = {new AtlasRelatedTermHeader - { - TermGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - }}, -}; -Response response = client.CreateCategory(body); -]]> - - - -This sample shows how to call CreateCategoryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - name = "ExampleCategory1", - terms = new object[] - { - new - { - termGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - } - }, -}); -Response response = await client.CreateCategoryAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call CreateCategory and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - name = "ExampleCategory1", - terms = new object[] - { - new - { - termGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - } - }, -}); -Response response = client.CreateCategory(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetCategoryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetCategoryAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12"); -]]> - - - -This sample shows how to call GetCategory. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetCategory("ed7458f0-9463-48a5-b5c6-4f785fb34e12"); -]]> - - - -This sample shows how to call GetCategoryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetCategoryAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetCategory and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetCategory("ed7458f0-9463-48a5-b5c6-4f785fb34e12", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateCategoryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryCategory body = new AtlasGlossaryCategory -{ - Guid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - Name = "ExampleCategory1", - QualifiedName = "ExampleCategory1@Glossary", - LastModifiedTS = "1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - RelationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - }, - ChildrenCategories = {new AtlasRelatedCategoryHeader - { - CategoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - }}, - ParentCategory = new AtlasRelatedCategoryHeader - { - CategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - }, - Terms = {new AtlasRelatedTermHeader - { - RelationGuid = "6aebf5ac-0c83-40c0-98bf-958fe9c99007", - TermGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - }}, -}; -Response response = await client.UpdateCategoryAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12", body); -]]> - - - -This sample shows how to call UpdateCategory. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryCategory body = new AtlasGlossaryCategory -{ - Guid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - Name = "ExampleCategory1", - QualifiedName = "ExampleCategory1@Glossary", - LastModifiedTS = "1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - RelationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - }, - ChildrenCategories = {new AtlasRelatedCategoryHeader - { - CategoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - }}, - ParentCategory = new AtlasRelatedCategoryHeader - { - CategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - }, - Terms = {new AtlasRelatedTermHeader - { - RelationGuid = "6aebf5ac-0c83-40c0-98bf-958fe9c99007", - TermGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - }}, -}; -Response response = client.UpdateCategory("ed7458f0-9463-48a5-b5c6-4f785fb34e12", body); -]]> - - - -This sample shows how to call UpdateCategoryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - guid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - qualifiedName = "ExampleCategory1@Glossary", - name = "ExampleCategory1", - lastModifiedTS = "1", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - relationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - }, - terms = new object[] - { - new - { - termGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - relationGuid = "6aebf5ac-0c83-40c0-98bf-958fe9c99007", - } - }, - childrenCategories = new object[] - { - new - { - categoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - } - }, - parentCategory = new - { - categoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - }, -}); -Response response = await client.UpdateCategoryAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateCategory and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - guid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - qualifiedName = "ExampleCategory1@Glossary", - name = "ExampleCategory1", - lastModifiedTS = "1", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - relationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - }, - terms = new object[] - { - new - { - termGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - relationGuid = "6aebf5ac-0c83-40c0-98bf-958fe9c99007", - } - }, - childrenCategories = new object[] - { - new - { - categoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - } - }, - parentCategory = new - { - categoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - }, -}); -Response response = client.UpdateCategory("ed7458f0-9463-48a5-b5c6-4f785fb34e12", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteCategoryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.DeleteCategoryAsync("0e391355-252a-e5f3-ac18-5a3602df7616"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call DeleteCategory. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.DeleteCategory("0e391355-252a-e5f3-ac18-5a3602df7616"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call PartialUpdateCategoryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.PartialUpdateCategoryAsync("3243ea0a-9492-47e1-392e-a84e64980af9", new Dictionary -{ - ["longDescription"] = "Example Long Description" -}); -]]> - - - -This sample shows how to call PartialUpdateCategory. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.PartialUpdateCategory("3243ea0a-9492-47e1-392e-a84e64980af9", new Dictionary -{ - ["longDescription"] = "Example Long Description" -}); -]]> - - - -This sample shows how to call PartialUpdateCategoryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - longDescription = "Example Long Description", -}); -Response response = await client.PartialUpdateCategoryAsync("3243ea0a-9492-47e1-392e-a84e64980af9", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call PartialUpdateCategory and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - longDescription = "Example Long Description", -}); -Response response = client.PartialUpdateCategory("3243ea0a-9492-47e1-392e-a84e64980af9", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelatedCategoriesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response>> response = await client.GetRelatedCategoriesAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12"); -]]> - - - -This sample shows how to call GetRelatedCategories. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response>> response = client.GetRelatedCategories("ed7458f0-9463-48a5-b5c6-4f785fb34e12"); -]]> - - - -This sample shows how to call GetRelatedCategoriesAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetRelatedCategoriesAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> - - - -This sample shows how to call GetRelatedCategories and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetRelatedCategories("ed7458f0-9463-48a5-b5c6-4f785fb34e12", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> - - - -This sample shows how to call GetCategoryTermsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.GetCategoryTermsAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12"); -]]> - - - -This sample shows how to call GetCategoryTerms. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.GetCategoryTerms("ed7458f0-9463-48a5-b5c6-4f785fb34e12"); -]]> - - - -This sample shows how to call GetCategoryTermsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetCategoryTermsAsync("ed7458f0-9463-48a5-b5c6-4f785fb34e12", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetCategoryTerms and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetCategoryTerms("ed7458f0-9463-48a5-b5c6-4f785fb34e12", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call CreateTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryTerm body = new AtlasGlossaryTerm -{ - LongDescription = "Example Long Description", - Name = "ExampleTerm1", - ShortDescription = "Example Short Description", - Abbreviation = "T1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Steward"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Steward info", - } - } - }, -}; -Response response = await client.CreateTermAsync(body); -]]> -This sample shows how to call CreateTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryTerm body = new AtlasGlossaryTerm -{ - Name = "ExampleTerm", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Attributes = - { - ["ExampleTermTemplateAttribute"] = new Dictionary - { - ["plain string"] = BinaryData.FromObjectAsJson("Example String"), - ["date"] = BinaryData.FromObjectAsJson(1606233600000L), - ["single choice"] = BinaryData.FromObjectAsJson("Example Single Choice A"), - ["multi choice"] = BinaryData.FromObjectAsJson(new object[] - { - "Example Multi Choice A", - "Example Multi Choice B" - }) - } - }, -}; -Response response = await client.CreateTermAsync(body); -]]> - - - -This sample shows how to call CreateTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryTerm body = new AtlasGlossaryTerm -{ - LongDescription = "Example Long Description", - Name = "ExampleTerm1", - ShortDescription = "Example Short Description", - Abbreviation = "T1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - Contacts = - { - ["Expert"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Expert Info", - } - }, - ["Steward"] = new ContactInfo[] - { - new ContactInfo - { - Id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - Info = "Example Steward info", - } - } - }, -}; -Response response = client.CreateTerm(body); -]]> -This sample shows how to call CreateTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryTerm body = new AtlasGlossaryTerm -{ - Name = "ExampleTerm", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Attributes = - { - ["ExampleTermTemplateAttribute"] = new Dictionary - { - ["plain string"] = BinaryData.FromObjectAsJson("Example String"), - ["date"] = BinaryData.FromObjectAsJson(1606233600000L), - ["single choice"] = BinaryData.FromObjectAsJson("Example Single Choice A"), - ["multi choice"] = BinaryData.FromObjectAsJson(new object[] - { - "Example Multi Choice A", - "Example Multi Choice B" - }) - } - }, -}; -Response response = client.CreateTerm(body); -]]> - - - -This sample shows how to call CreateTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - name = "ExampleTerm1", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - abbreviation = "T1", - status = "Approved", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Steward = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Steward info", - } - }, - }, -}); -Response response = await client.CreateTermAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call CreateTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - name = "ExampleTerm", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - attributes = new - { - ExampleTermTemplateAttribute = new Dictionary - { - ["plain string"] = "Example String", - ["date"] = 1606233600000L, - ["single choice"] = "Example Single Choice A", - ["multi choice"] = new object[] - { - "Example Multi Choice A", - "Example Multi Choice B" - } - }, - }, -}); -Response response = await client.CreateTermAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call CreateTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - name = "ExampleTerm1", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - abbreviation = "T1", - status = "Approved", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - contacts = new - { - Expert = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Expert Info", - } - }, - Steward = new object[] - { - new - { - id = "30435ff9-9b96-44af-a5a9-e05c8b1ae2df", - info = "Example Steward info", - } - }, - }, -}); -Response response = client.CreateTerm(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call CreateTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - name = "ExampleTerm", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - attributes = new - { - ExampleTermTemplateAttribute = new Dictionary - { - ["plain string"] = "Example String", - ["date"] = 1606233600000L, - ["single choice"] = "Example Single Choice A", - ["multi choice"] = new object[] - { - "Example Multi Choice A", - "Example Multi Choice B" - } - }, - }, -}); -Response response = client.CreateTerm(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea"); -]]> -This sample shows how to call GetTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea"); -]]> - - - -This sample shows how to call GetTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetTerm("54688d39-b298-4104-9e80-f2a16f44aaea"); -]]> -This sample shows how to call GetTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetTerm("54688d39-b298-4104-9e80-f2a16f44aaea"); -]]> - - - -This sample shows how to call GetTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetTerm("54688d39-b298-4104-9e80-f2a16f44aaea", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetTerm("54688d39-b298-4104-9e80-f2a16f44aaea", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryTerm body = new AtlasGlossaryTerm -{ - Guid = "54688d39-b298-4104-9e80-f2a16f44aaea", - Name = "ExampleTerm1", - QualifiedName = "ExampleTerm1@Glossary", - ShortDescription = "Example Short Description", - LastModifiedTS = "1", - Abbreviation = "T1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - RelationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - SeeAlso = {new AtlasRelatedTermHeader - { - TermGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, new AtlasRelatedTermHeader - { - TermGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - }}, - Synonyms = {new AtlasRelatedTermHeader - { - TermGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, new AtlasRelatedTermHeader - { - TermGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - }}, -}; -Response response = await client.UpdateTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea", body); -]]> - - - -This sample shows how to call UpdateTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossaryTerm body = new AtlasGlossaryTerm -{ - Guid = "54688d39-b298-4104-9e80-f2a16f44aaea", - Name = "ExampleTerm1", - QualifiedName = "ExampleTerm1@Glossary", - ShortDescription = "Example Short Description", - LastModifiedTS = "1", - Abbreviation = "T1", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - RelationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - SeeAlso = {new AtlasRelatedTermHeader - { - TermGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, new AtlasRelatedTermHeader - { - TermGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - }}, - Synonyms = {new AtlasRelatedTermHeader - { - TermGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, new AtlasRelatedTermHeader - { - TermGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - }}, -}; -Response response = client.UpdateTerm("54688d39-b298-4104-9e80-f2a16f44aaea", body); -]]> - - - -This sample shows how to call UpdateTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - guid = "54688d39-b298-4104-9e80-f2a16f44aaea", - qualifiedName = "ExampleTerm1@Glossary", - name = "ExampleTerm1", - shortDescription = "Example Short Description", - lastModifiedTS = "1", - abbreviation = "T1", - status = "Approved", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - relationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - }, - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - seeAlso = new object[] - { - new - { - termGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, - new - { - termGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - } - }, - synonyms = new object[] - { - new - { - termGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, - new - { - termGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - } - }, -}); -Response response = await client.UpdateTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - guid = "54688d39-b298-4104-9e80-f2a16f44aaea", - qualifiedName = "ExampleTerm1@Glossary", - name = "ExampleTerm1", - shortDescription = "Example Short Description", - lastModifiedTS = "1", - abbreviation = "T1", - status = "Approved", - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - relationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - }, - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - seeAlso = new object[] - { - new - { - termGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, - new - { - termGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - } - }, - synonyms = new object[] - { - new - { - termGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }, - new - { - termGuid = "821beef0-ced9-47ba-8f7f-c4f3459f4d18", - } - }, -}); -Response response = client.UpdateTerm("54688d39-b298-4104-9e80-f2a16f44aaea", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.DeleteTermAsync("b0942506-2d7d-1f45-d286-c29ca9e7f2ef"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call DeleteTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.DeleteTerm("b0942506-2d7d-1f45-d286-c29ca9e7f2ef"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call PartialUpdateTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.PartialUpdateTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea", new Dictionary -{ - ["longDescription"] = "Example Long Description" -}); -]]> - - - -This sample shows how to call PartialUpdateTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.PartialUpdateTerm("54688d39-b298-4104-9e80-f2a16f44aaea", new Dictionary -{ - ["longDescription"] = "Example Long Description" -}); -]]> - - - -This sample shows how to call PartialUpdateTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - longDescription = "Example Long Description", -}); -Response response = await client.PartialUpdateTermAsync("54688d39-b298-4104-9e80-f2a16f44aaea", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call PartialUpdateTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - longDescription = "Example Long Description", -}); -Response response = client.PartialUpdateTerm("54688d39-b298-4104-9e80-f2a16f44aaea", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call CreateTermsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.CreateTermsAsync(new AtlasGlossaryTerm[] -{ - new AtlasGlossaryTerm - { - LongDescription = "Example Long Description", - Name = "ExampleTerm2", - ShortDescription = "Example Short Description", - Abbreviation = "T2", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - }, - new AtlasGlossaryTerm - { - LongDescription = "Example Long Description", - Name = "ExampleTerm3", - ShortDescription = "Example Short Description", - Abbreviation = "T3", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - } -}); -]]> - - - -This sample shows how to call CreateTerms. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.CreateTerms(new AtlasGlossaryTerm[] -{ - new AtlasGlossaryTerm - { - LongDescription = "Example Long Description", - Name = "ExampleTerm2", - ShortDescription = "Example Short Description", - Abbreviation = "T2", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - }, - new AtlasGlossaryTerm - { - LongDescription = "Example Long Description", - Name = "ExampleTerm3", - ShortDescription = "Example Short Description", - Abbreviation = "T3", - Anchor = new AtlasGlossaryHeader - { - GlossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - Status = TermStatus.Approved, - Resources = {new ResourceLink - { - DisplayName = "Example Display Name", - Url = "Example Url", - }}, - } -}); -]]> - - - -This sample shows how to call CreateTermsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - name = "ExampleTerm2", - status = "Approved", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - abbreviation = "T2", - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - }, - new - { - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - name = "ExampleTerm3", - status = "Approved", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - abbreviation = "T3", - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - } -}); -Response response = await client.CreateTermsAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call CreateTerms and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - name = "ExampleTerm2", - status = "Approved", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - abbreviation = "T2", - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - }, - new - { - anchor = new - { - glossaryGuid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - }, - name = "ExampleTerm3", - status = "Approved", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - abbreviation = "T3", - resources = new object[] - { - new - { - displayName = "Example Display Name", - url = "Example Url", - } - }, - } -}); -Response response = client.CreateTerms(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetEntitiesAssignedWithTermAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.GetEntitiesAssignedWithTermAsync("daf0ba4d-bc9a-4536-8a88-4b58e39dd3d4"); -]]> - - - -This sample shows how to call GetEntitiesAssignedWithTerm. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.GetEntitiesAssignedWithTerm("daf0ba4d-bc9a-4536-8a88-4b58e39dd3d4"); -]]> - - - -This sample shows how to call GetEntitiesAssignedWithTermAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetEntitiesAssignedWithTermAsync("daf0ba4d-bc9a-4536-8a88-4b58e39dd3d4", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetEntitiesAssignedWithTerm and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetEntitiesAssignedWithTerm("daf0ba4d-bc9a-4536-8a88-4b58e39dd3d4", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call AssignTermToEntitiesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.AssignTermToEntitiesAsync("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", new AtlasRelatedObjectId[] -{ - new AtlasRelatedObjectId - { - Guid = "ab9f1920-0b94-436d-aeb4-11a32c270fc0", - RelationshipAttributes = new AtlasStruct - { - Attributes = - { - ["expression"] = BinaryData.FromObjectAsJson("Example Expression"), - ["confidence"] = BinaryData.FromObjectAsJson(100), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["source"] = BinaryData.FromObjectAsJson("ExampleSource") - }, - }, - } -}); -]]> - - - -This sample shows how to call AssignTermToEntities. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.AssignTermToEntities("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", new AtlasRelatedObjectId[] -{ - new AtlasRelatedObjectId - { - Guid = "ab9f1920-0b94-436d-aeb4-11a32c270fc0", - RelationshipAttributes = new AtlasStruct - { - Attributes = - { - ["expression"] = BinaryData.FromObjectAsJson("Example Expression"), - ["confidence"] = BinaryData.FromObjectAsJson(100), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["source"] = BinaryData.FromObjectAsJson("ExampleSource") - }, - }, - } -}); -]]> - - - -This sample shows how to call AssignTermToEntitiesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - guid = "ab9f1920-0b94-436d-aeb4-11a32c270fc0", - relationshipAttributes = new - { - attributes = new - { - expression = "Example Expression", - confidence = 100, - description = "Example Description", - source = "ExampleSource", - }, - }, - } -}); -Response response = await client.AssignTermToEntitiesAsync("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call AssignTermToEntities. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - guid = "ab9f1920-0b94-436d-aeb4-11a32c270fc0", - relationshipAttributes = new - { - attributes = new - { - expression = "Example Expression", - confidence = 100, - description = "Example Description", - source = "ExampleSource", - }, - }, - } -}); -Response response = client.AssignTermToEntities("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call DeleteTermAssignmentFromEntitiesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.DeleteTermAssignmentFromEntitiesAsync("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", new AtlasRelatedObjectId[] -{ - new AtlasRelatedObjectId - { - Guid = "16feb2a1-2c79-ade1-338d-fb24fcb8b8bd", - RelationshipGuid = Guid.Parse("624f08bb-3c93-4f03-9ce1-ed2ce2c7c8d5"), - } -}); -]]> - - - -This sample shows how to call DeleteTermAssignmentFromEntities. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.DeleteTermAssignmentFromEntities("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", new AtlasRelatedObjectId[] -{ - new AtlasRelatedObjectId - { - Guid = "16feb2a1-2c79-ade1-338d-fb24fcb8b8bd", - RelationshipGuid = Guid.Parse("624f08bb-3c93-4f03-9ce1-ed2ce2c7c8d5"), - } -}); -]]> - - - -This sample shows how to call DeleteTermAssignmentFromEntitiesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - guid = "16feb2a1-2c79-ade1-338d-fb24fcb8b8bd", - relationshipGuid = "624f08bb-3c93-4f03-9ce1-ed2ce2c7c8d5", - } -}); -Response response = await client.DeleteTermAssignmentFromEntitiesAsync("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call DeleteTermAssignmentFromEntities. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new object[] -{ - new - { - guid = "16feb2a1-2c79-ade1-338d-fb24fcb8b8bd", - relationshipGuid = "624f08bb-3c93-4f03-9ce1-ed2ce2c7c8d5", - } -}); -Response response = client.DeleteTermAssignmentFromEntities("8a7f65ec-6429-0b9b-3734-ec57bf1e34c2", content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetRelatedTermsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response>> response = await client.GetRelatedTermsAsync("54688d39-b298-4104-9e80-f2a16f44aaea"); -]]> - - - -This sample shows how to call GetRelatedTerms. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response>> response = client.GetRelatedTerms("54688d39-b298-4104-9e80-f2a16f44aaea"); -]]> - - - -This sample shows how to call GetRelatedTermsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetRelatedTermsAsync("54688d39-b298-4104-9e80-f2a16f44aaea", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> - - - -This sample shows how to call GetRelatedTerms and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetRelatedTerms("54688d39-b298-4104-9e80-f2a16f44aaea", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.GetProperty("")[0].ToString()); -]]> - - - -This sample shows how to call GetGlossaryAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetGlossaryAsync("47029611-67a1-42d5-8766-90eb904f7f22"); -]]> - - - -This sample shows how to call GetGlossary. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetGlossary("47029611-67a1-42d5-8766-90eb904f7f22"); -]]> - - - -This sample shows how to call GetGlossaryAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetGlossaryAsync("47029611-67a1-42d5-8766-90eb904f7f22", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetGlossary and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetGlossary("47029611-67a1-42d5-8766-90eb904f7f22", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossary body = new AtlasGlossary -{ - Guid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - LongDescription = "Example Long Description", - Name = "Glossary", - QualifiedName = "Glossary", - ShortDescription = "Example Short Description", - LastModifiedTS = "1", - Categories = {new AtlasRelatedCategoryHeader - { - CategoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - DisplayText = "ExampleCategory3", - ParentCategoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - RelationGuid = "26a486a4-a8e2-483c-8a84-3b88e909f8d2", - }, new AtlasRelatedCategoryHeader - { - CategoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - DisplayText = "ExampleCategory1", - ParentCategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - RelationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - }, new AtlasRelatedCategoryHeader - { - CategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - DisplayText = "ExampleCategory2", - RelationGuid = "94071e56-fd3e-4441-93ff-1834f818482d", - }}, - Language = "en", - Terms = {new AtlasRelatedTermHeader - { - DisplayText = "ExampleTerm1", - RelationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - TermGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - }, new AtlasRelatedTermHeader - { - DisplayText = "ExampleTerm2", - RelationGuid = "9385640b-e6be-437d-a6b9-62d11c14a189", - TermGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }}, - Usage = "Example Glossary", -}; -Response response = await client.UpdateAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", body); -]]> - - - -This sample shows how to call Update. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -AtlasGlossary body = new AtlasGlossary -{ - Guid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - LongDescription = "Example Long Description", - Name = "Glossary", - QualifiedName = "Glossary", - ShortDescription = "Example Short Description", - LastModifiedTS = "1", - Categories = {new AtlasRelatedCategoryHeader - { - CategoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - DisplayText = "ExampleCategory3", - ParentCategoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - RelationGuid = "26a486a4-a8e2-483c-8a84-3b88e909f8d2", - }, new AtlasRelatedCategoryHeader - { - CategoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - DisplayText = "ExampleCategory1", - ParentCategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - RelationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - }, new AtlasRelatedCategoryHeader - { - CategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - DisplayText = "ExampleCategory2", - RelationGuid = "94071e56-fd3e-4441-93ff-1834f818482d", - }}, - Language = "en", - Terms = {new AtlasRelatedTermHeader - { - DisplayText = "ExampleTerm1", - RelationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - TermGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - }, new AtlasRelatedTermHeader - { - DisplayText = "ExampleTerm2", - RelationGuid = "9385640b-e6be-437d-a6b9-62d11c14a189", - TermGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - }}, - Usage = "Example Glossary", -}; -Response response = client.Update("c018ddaf-7c21-4b37-a838-dae5f110c3d8", body); -]]> - - - -This sample shows how to call UpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - guid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - qualifiedName = "Glossary", - name = "Glossary", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - lastModifiedTS = "1", - language = "en", - usage = "Example Glossary", - terms = new object[] - { - new - { - termGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - relationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - displayText = "ExampleTerm1", - }, - new - { - termGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - relationGuid = "9385640b-e6be-437d-a6b9-62d11c14a189", - displayText = "ExampleTerm2", - } - }, - categories = new object[] - { - new - { - categoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - parentCategoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - relationGuid = "26a486a4-a8e2-483c-8a84-3b88e909f8d2", - displayText = "ExampleCategory3", - }, - new - { - categoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - parentCategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - relationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - displayText = "ExampleCategory1", - }, - new - { - categoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - relationGuid = "94071e56-fd3e-4441-93ff-1834f818482d", - displayText = "ExampleCategory2", - } - }, -}); -Response response = await client.UpdateAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Update and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - guid = "c018ddaf-7c21-4b37-a838-dae5f110c3d8", - qualifiedName = "Glossary", - name = "Glossary", - shortDescription = "Example Short Description", - longDescription = "Example Long Description", - lastModifiedTS = "1", - language = "en", - usage = "Example Glossary", - terms = new object[] - { - new - { - termGuid = "54688d39-b298-4104-9e80-f2a16f44aaea", - relationGuid = "7b6a8149-a928-476a-a068-dce58653cfa0", - displayText = "ExampleTerm1", - }, - new - { - termGuid = "952c7ba4-4c89-42d8-a05a-7d2161be7008", - relationGuid = "9385640b-e6be-437d-a6b9-62d11c14a189", - displayText = "ExampleTerm2", - } - }, - categories = new object[] - { - new - { - categoryGuid = "0d6766f6-f4b6-435b-bda2-d3edc358998e", - parentCategoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - relationGuid = "26a486a4-a8e2-483c-8a84-3b88e909f8d2", - displayText = "ExampleCategory3", - }, - new - { - categoryGuid = "ed7458f0-9463-48a5-b5c6-4f785fb34e12", - parentCategoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - relationGuid = "7bdcef93-a57a-4d1d-95ab-9d3036f394a0", - displayText = "ExampleCategory1", - }, - new - { - categoryGuid = "e47c4584-daca-4f9e-9092-194e04692c9a", - relationGuid = "94071e56-fd3e-4441-93ff-1834f818482d", - displayText = "ExampleCategory2", - } - }, -}); -Response response = client.Update("c018ddaf-7c21-4b37-a838-dae5f110c3d8", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.DeleteAsync("c0c54153-13d1-1608-13af-43457cdffe75"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call Delete. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.Delete("c0c54153-13d1-1608-13af-43457cdffe75"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetCategoriesAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.GetCategoriesAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetCategories. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.GetCategories("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetCategoriesAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetCategoriesAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetCategories and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetCategories("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetCategoriesHeadersAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.GetCategoriesHeadersAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetCategoriesHeaders. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.GetCategoriesHeaders("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetCategoriesHeadersAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetCategoriesHeadersAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetCategoriesHeaders and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetCategoriesHeaders("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetDetailedAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetDetailedAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetDetailed. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetDetailed("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetDetailedAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetDetailedAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetDetailed and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetDetailed("c018ddaf-7c21-4b37-a838-dae5f110c3d8", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call PartialUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.PartialUpdateAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", new Dictionary -{ - ["longDescription"] = "Example Long Description" -}); -]]> - - - -This sample shows how to call PartialUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.PartialUpdate("c018ddaf-7c21-4b37-a838-dae5f110c3d8", new Dictionary -{ - ["longDescription"] = "Example Long Description" -}); -]]> - - - -This sample shows how to call PartialUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - longDescription = "Example Long Description", -}); -Response response = await client.PartialUpdateAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call PartialUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -using RequestContent content = RequestContent.Create(new -{ - longDescription = "Example Long Description", -}); -Response response = client.PartialUpdate("c018ddaf-7c21-4b37-a838-dae5f110c3d8", content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTermsAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.GetTermsAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetTerms. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.GetTerms("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetTermsAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetTermsAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetTerms and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetTerms("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetTermHeadersAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = await client.GetTermHeadersAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetTermHeaders. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response> response = client.GetTermHeaders("c018ddaf-7c21-4b37-a838-dae5f110c3d8"); -]]> - - - -This sample shows how to call GetTermHeadersAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = await client.GetTermHeadersAsync("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetTermHeaders and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - -Response response = client.GetTermHeaders("c018ddaf-7c21-4b37-a838-dae5f110c3d8", -1, 0, "ASC", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Lineage.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Lineage.xml deleted file mode 100644 index 7ba2fc5cf9ef..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Lineage.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -This sample shows how to call GetLineageAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = await client.GetLineageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); -]]> - - - -This sample shows how to call GetLineage. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = client.GetLineage("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); -]]> - - - -This sample shows how to call GetLineageAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = await client.GetLineageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetLineage and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = client.GetLineage("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetNextPageAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); - -Response response = await client.GetNextPageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); -]]> - - - -This sample shows how to call GetNextPage. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); - -Response response = client.GetNextPage("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); -]]> - - - -This sample shows how to call GetNextPageAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); - -Response response = await client.GetNextPageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetNextPage and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); - -Response response = client.GetNextPage("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByUniqueAttributeAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = await client.GetByUniqueAttributeAsync("azure_blob_path", LineageDirection.Both); -]]> - - - -This sample shows how to call GetByUniqueAttribute. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = client.GetByUniqueAttribute("azure_blob_path", LineageDirection.Both); -]]> - - - -This sample shows how to call GetByUniqueAttributeAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = await client.GetByUniqueAttributeAsync("azure_blob_path", "BOTH"); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByUniqueAttribute and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - -Response response = client.GetByUniqueAttribute("azure_blob_path", "BOTH"); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml deleted file mode 100644 index ec08f13b4c1b..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml +++ /dev/null @@ -1,393 +0,0 @@ - - - - - -This sample shows how to call CreateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -AtlasRelationship body = new AtlasRelationship -{ - Attributes = - { - ["expression"] = BinaryData.FromObjectAsJson("Example Expression"), - ["steward"] = BinaryData.FromObjectAsJson("Example Steward"), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["source"] = null, - ["status"] = null - }, - TypeName = "AtlasGlossarySynonym", - CreatedBy = "ExampleCreator", - End1 = new AtlasObjectId - { - Guid = "856d31e6-e342-a1ce-6273-22ddb77029c6", - TypeName = "AtlasGlossaryTerm", - }, - End2 = new AtlasObjectId - { - Guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - TypeName = "AtlasGlossaryTerm", - }, - Label = "r:AtlasGlossarySynonym", - Status = StatusAtlasRelationship.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, -}; -Response response = await client.CreateAsync(body); -]]> - - - -This sample shows how to call Create. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -AtlasRelationship body = new AtlasRelationship -{ - Attributes = - { - ["expression"] = BinaryData.FromObjectAsJson("Example Expression"), - ["steward"] = BinaryData.FromObjectAsJson("Example Steward"), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["source"] = null, - ["status"] = null - }, - TypeName = "AtlasGlossarySynonym", - CreatedBy = "ExampleCreator", - End1 = new AtlasObjectId - { - Guid = "856d31e6-e342-a1ce-6273-22ddb77029c6", - TypeName = "AtlasGlossaryTerm", - }, - End2 = new AtlasObjectId - { - Guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - TypeName = "AtlasGlossaryTerm", - }, - Label = "r:AtlasGlossarySynonym", - Status = StatusAtlasRelationship.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, -}; -Response response = client.Create(body); -]]> - - - -This sample shows how to call CreateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -using RequestContent content = RequestContent.Create(new -{ - typeName = "AtlasGlossarySynonym", - attributes = new - { - expression = "Example Expression", - steward = "Example Steward", - description = "Example Description", - }, - end1 = new - { - guid = "856d31e6-e342-a1ce-6273-22ddb77029c6", - typeName = "AtlasGlossaryTerm", - }, - end2 = new - { - guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - typeName = "AtlasGlossaryTerm", - }, - label = "r:AtlasGlossarySynonym", - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, -}); -Response response = await client.CreateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Create and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -using RequestContent content = RequestContent.Create(new -{ - typeName = "AtlasGlossarySynonym", - attributes = new - { - expression = "Example Expression", - steward = "Example Steward", - description = "Example Description", - }, - end1 = new - { - guid = "856d31e6-e342-a1ce-6273-22ddb77029c6", - typeName = "AtlasGlossaryTerm", - }, - end2 = new - { - guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - typeName = "AtlasGlossaryTerm", - }, - label = "r:AtlasGlossarySynonym", - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, -}); -Response response = client.Create(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call UpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -AtlasRelationship body = new AtlasRelationship -{ - Attributes = - { - ["expression"] = BinaryData.FromObjectAsJson("Example Expression"), - ["steward"] = BinaryData.FromObjectAsJson("Example Steward"), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["source"] = null, - ["status"] = null - }, - TypeName = "AtlasGlossarySynonym", - CreatedBy = "ExampleCreator", - End1 = new AtlasObjectId - { - Guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - TypeName = "AtlasGlossaryTerm", - }, - End2 = new AtlasObjectId - { - Guid = "b0942506-2d7d-1f45-d286-c29ca9e7f2ef", - TypeName = "AtlasGlossaryTerm", - }, - Guid = "b2810301-293f-493f-88f1-7ac8784fb1fd", - Label = "r:AtlasGlossarySynonym", - Status = StatusAtlasRelationship.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, -}; -Response response = await client.UpdateAsync(body); -]]> - - - -This sample shows how to call Update. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -AtlasRelationship body = new AtlasRelationship -{ - Attributes = - { - ["expression"] = BinaryData.FromObjectAsJson("Example Expression"), - ["steward"] = BinaryData.FromObjectAsJson("Example Steward"), - ["description"] = BinaryData.FromObjectAsJson("Example Description"), - ["source"] = null, - ["status"] = null - }, - TypeName = "AtlasGlossarySynonym", - CreatedBy = "ExampleCreator", - End1 = new AtlasObjectId - { - Guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - TypeName = "AtlasGlossaryTerm", - }, - End2 = new AtlasObjectId - { - Guid = "b0942506-2d7d-1f45-d286-c29ca9e7f2ef", - TypeName = "AtlasGlossaryTerm", - }, - Guid = "b2810301-293f-493f-88f1-7ac8784fb1fd", - Label = "r:AtlasGlossarySynonym", - Status = StatusAtlasRelationship.Active, - UpdatedBy = "ExampleUpdator", - Version = 0L, -}; -Response response = client.Update(body); -]]> - - - -This sample shows how to call UpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -using RequestContent content = RequestContent.Create(new -{ - typeName = "AtlasGlossarySynonym", - attributes = new - { - expression = "Example Expression", - steward = "Example Steward", - description = "Example Description", - }, - guid = "b2810301-293f-493f-88f1-7ac8784fb1fd", - end1 = new - { - guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - typeName = "AtlasGlossaryTerm", - }, - end2 = new - { - guid = "b0942506-2d7d-1f45-d286-c29ca9e7f2ef", - typeName = "AtlasGlossaryTerm", - }, - label = "r:AtlasGlossarySynonym", - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, -}); -Response response = await client.UpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call Update and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -using RequestContent content = RequestContent.Create(new -{ - typeName = "AtlasGlossarySynonym", - attributes = new - { - expression = "Example Expression", - steward = "Example Steward", - description = "Example Description", - }, - guid = "b2810301-293f-493f-88f1-7ac8784fb1fd", - end1 = new - { - guid = "77481037-2874-9bdc-9b9e-76bb94ee71aa", - typeName = "AtlasGlossaryTerm", - }, - end2 = new - { - guid = "b0942506-2d7d-1f45-d286-c29ca9e7f2ef", - typeName = "AtlasGlossaryTerm", - }, - label = "r:AtlasGlossarySynonym", - status = "ACTIVE", - createdBy = "ExampleCreator", - updatedBy = "ExampleUpdator", - version = 0L, -}); -Response response = client.Update(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelationshipAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -Response response = await client.GetRelationshipAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); -]]> - - - -This sample shows how to call GetRelationship. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -Response response = client.GetRelationship("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); -]]> - - - -This sample shows how to call GetRelationshipAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -Response response = await client.GetRelationshipAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", false, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelationship and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -Response response = client.GetRelationship("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", false, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -Response response = await client.DeleteAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call Delete. -"); -TokenCredential credential = new DefaultAzureCredential(); -Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - -Response response = client.Delete("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); - -Console.WriteLine(response.Status); -]]> - - - \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/TypeDefinition.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/TypeDefinition.xml deleted file mode 100644 index 54b50edc4383..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/TypeDefinition.xml +++ /dev/null @@ -1,2017 +0,0 @@ - - - - - -This sample shows how to call GetBusinessMetadataByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetBusinessMetadataByIdAsync("d8757510-c866-61ba-486f-1afca09f43b8"); -]]> - - - -This sample shows how to call GetBusinessMetadataById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetBusinessMetadataById("d8757510-c866-61ba-486f-1afca09f43b8"); -]]> - - - -This sample shows how to call GetBusinessMetadataByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetBusinessMetadataByIdAsync("d8757510-c866-61ba-486f-1afca09f43b8", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetBusinessMetadataById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetBusinessMetadataById("d8757510-c866-61ba-486f-1afca09f43b8", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetBusinessMetadataByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetBusinessMetadataByNameAsync("Business_Metadata_Type_Name"); -]]> - - - -This sample shows how to call GetBusinessMetadataByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetBusinessMetadataByName("Business_Metadata_Type_Name"); -]]> - - - -This sample shows how to call GetBusinessMetadataByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetBusinessMetadataByNameAsync("Business_Metadata_Type_Name", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetBusinessMetadataByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetBusinessMetadataByName("Business_Metadata_Type_Name", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassificationByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetClassificationByIdAsync("e79878fa-adba-4ee5-adc5-328d8841cd49"); -]]> - - - -This sample shows how to call GetClassificationById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetClassificationById("e79878fa-adba-4ee5-adc5-328d8841cd49"); -]]> - - - -This sample shows how to call GetClassificationByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetClassificationByIdAsync("e79878fa-adba-4ee5-adc5-328d8841cd49", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassificationById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetClassificationById("e79878fa-adba-4ee5-adc5-328d8841cd49", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassificationByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetClassificationByNameAsync("MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER"); -]]> - - - -This sample shows how to call GetClassificationByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetClassificationByName("MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER"); -]]> - - - -This sample shows how to call GetClassificationByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetClassificationByNameAsync("MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetClassificationByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetClassificationByName("MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEntityByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEntityByIdAsync("4bc54c37-98a8-4de8-9ee8-182610859d43"); -]]> - - - -This sample shows how to call GetEntityById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEntityById("4bc54c37-98a8-4de8-9ee8-182610859d43"); -]]> - - - -This sample shows how to call GetEntityByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEntityByIdAsync("4bc54c37-98a8-4de8-9ee8-182610859d43", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEntityById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEntityById("4bc54c37-98a8-4de8-9ee8-182610859d43", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEntityByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEntityByNameAsync("DataSet"); -]]> - - - -This sample shows how to call GetEntityByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEntityByName("DataSet"); -]]> - - - -This sample shows how to call GetEntityByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEntityByNameAsync("DataSet", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEntityByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEntityByName("DataSet", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEnumByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEnumByIdAsync("644ab9c7-893a-4a4d-8e0a-591a6556d1a0"); -]]> - - - -This sample shows how to call GetEnumById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEnumById("644ab9c7-893a-4a4d-8e0a-591a6556d1a0"); -]]> - - - -This sample shows how to call GetEnumByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEnumByIdAsync("644ab9c7-893a-4a4d-8e0a-591a6556d1a0", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEnumById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEnumById("644ab9c7-893a-4a4d-8e0a-591a6556d1a0", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEnumByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEnumByNameAsync("hive_principal_type"); -]]> - - - -This sample shows how to call GetEnumByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEnumByName("hive_principal_type"); -]]> - - - -This sample shows how to call GetEnumByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetEnumByNameAsync("hive_principal_type", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetEnumByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetEnumByName("hive_principal_type", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelationshipByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetRelationshipByIdAsync("695edde1-2782-4a3c-841b-0b3aba25fe45"); -]]> - - - -This sample shows how to call GetRelationshipById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetRelationshipById("695edde1-2782-4a3c-841b-0b3aba25fe45"); -]]> - - - -This sample shows how to call GetRelationshipByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetRelationshipByIdAsync("695edde1-2782-4a3c-841b-0b3aba25fe45", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelationshipById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetRelationshipById("695edde1-2782-4a3c-841b-0b3aba25fe45", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelationshipByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetRelationshipByNameAsync("storm_topology_nodes"); -]]> - - - -This sample shows how to call GetRelationshipByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetRelationshipByName("storm_topology_nodes"); -]]> - - - -This sample shows how to call GetRelationshipByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetRelationshipByNameAsync("storm_topology_nodes", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetRelationshipByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetRelationshipByName("storm_topology_nodes", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetStructByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetStructByIdAsync("f1571b6e-ad08-4040-a9a7-c30ed935d437"); -]]> - - - -This sample shows how to call GetStructById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetStructById("f1571b6e-ad08-4040-a9a7-c30ed935d437"); -]]> - - - -This sample shows how to call GetStructByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetStructByIdAsync("f1571b6e-ad08-4040-a9a7-c30ed935d437", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetStructById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetStructById("f1571b6e-ad08-4040-a9a7-c30ed935d437", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetStructByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetStructByNameAsync("hive_order"); -]]> - - - -This sample shows how to call GetStructByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetStructByName("hive_order"); -]]> - - - -This sample shows how to call GetStructByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetStructByNameAsync("hive_order", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetStructByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetStructByName("hive_order", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetByIdAsync("0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941"); -]]> - - - -This sample shows how to call GetById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetById("0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941"); -]]> - - - -This sample shows how to call GetByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetByIdAsync("0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetById("0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetByNameAsync("glossary_term_status_value"); -]]> - - - -This sample shows how to call GetByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetByName("glossary_term_status_value"); -]]> - - - -This sample shows how to call GetByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetByNameAsync("glossary_term_status_value", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetByName("glossary_term_status_value", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call DeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.DeleteAsync("hive_order"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call Delete. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.Delete("hive_order"); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetTypeDefinitionAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTypeDefinitionAsync(); -]]> -This sample shows how to call GetTypeDefinitionAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTypeDefinitionAsync(); -]]> -This sample shows how to call GetTypeDefinitionAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTypeDefinitionAsync(); -]]> - - - -This sample shows how to call GetTypeDefinition. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTypeDefinition(); -]]> -This sample shows how to call GetTypeDefinition. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTypeDefinition(); -]]> -This sample shows how to call GetTypeDefinition. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTypeDefinition(); -]]> - - - -This sample shows how to call GetTypeDefinitionAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTypeDefinitionAsync(true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetTypeDefinitionAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTypeDefinitionAsync(null, "ENUM", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetTypeDefinitionAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTypeDefinitionAsync(null, "TERM_TEMPLATE", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTypeDefinition and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTypeDefinition(true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetTypeDefinition and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTypeDefinition(null, "ENUM", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call GetTypeDefinition and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTypeDefinition(null, "TERM_TEMPLATE", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchCreateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - ClassificationDefs = { }, - EntityDefs = {new AtlasEntityDef - { - Name = "azure_sql_server_example", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "databases", - TypeName = "array", - }}, - SuperTypes = {"azure_resource"}, - }}, - EnumDefs = { }, - RelationshipDefs = { }, - StructDefs = { }, -}; -Response response = await client.BatchCreateAsync(body); -]]> -This sample shows how to call BatchCreateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - BusinessMetadataDefs = {new AtlasBusinessMetadataDef - { - Description = "", - Name = "myBizMetadata1", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - IsIndexable = true, - IsOptional = true, - IsUnique = false, - Name = "bizAttr1", - Options = - { - ["maxStrLength"] = "50", - ["applicableEntityTypes"] = "[\"Path\"]" - }, - TypeName = "string", - }}, - }}, - ClassificationDefs = { }, - EntityDefs = { }, - EnumDefs = { }, - RelationshipDefs = { }, - StructDefs = { }, -}; -Response response = await client.BatchCreateAsync(body); -]]> - - - -This sample shows how to call BatchCreate. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - ClassificationDefs = { }, - EntityDefs = {new AtlasEntityDef - { - Name = "azure_sql_server_example", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "databases", - TypeName = "array", - }}, - SuperTypes = {"azure_resource"}, - }}, - EnumDefs = { }, - RelationshipDefs = { }, - StructDefs = { }, -}; -Response response = client.BatchCreate(body); -]]> -This sample shows how to call BatchCreate. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - BusinessMetadataDefs = {new AtlasBusinessMetadataDef - { - Description = "", - Name = "myBizMetadata1", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - IsIndexable = true, - IsOptional = true, - IsUnique = false, - Name = "bizAttr1", - Options = - { - ["maxStrLength"] = "50", - ["applicableEntityTypes"] = "[\"Path\"]" - }, - TypeName = "string", - }}, - }}, - ClassificationDefs = { }, - EntityDefs = { }, - EnumDefs = { }, - RelationshipDefs = { }, - StructDefs = { }, -}; -Response response = client.BatchCreate(body); -]]> - - - -This sample shows how to call BatchCreateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = new object[] - { - new - { - name = "azure_sql_server_example", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "databases", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - } - }, - relationshipDefs = Array.Empty(), -}); -Response response = await client.BatchCreateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call BatchCreateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = Array.Empty(), - relationshipDefs = Array.Empty(), - businessMetadataDefs = new object[] - { - new - { - name = "myBizMetadata1", - description = "", - attributeDefs = new object[] - { - new - { - name = "bizAttr1", - typeName = "string", - isOptional = true, - cardinality = "SINGLE", - isUnique = false, - isIndexable = true, - options = new - { - maxStrLength = "50", - applicableEntityTypes = "[\"Path\"]", - }, - } - }, - } - }, -}); -Response response = await client.BatchCreateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchCreate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = new object[] - { - new - { - name = "azure_sql_server_example", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "databases", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - } - }, - relationshipDefs = Array.Empty(), -}); -Response response = client.BatchCreate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> -This sample shows how to call BatchCreate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = Array.Empty(), - relationshipDefs = Array.Empty(), - businessMetadataDefs = new object[] - { - new - { - name = "myBizMetadata1", - description = "", - attributeDefs = new object[] - { - new - { - name = "bizAttr1", - typeName = "string", - isOptional = true, - cardinality = "SINGLE", - isUnique = false, - isIndexable = true, - options = new - { - maxStrLength = "50", - applicableEntityTypes = "[\"Path\"]", - }, - } - }, - } - }, -}); -Response response = client.BatchCreate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchUpdateAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - ClassificationDefs = { }, - EntityDefs = {new AtlasEntityDef - { - Name = "azure_sql_server", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "databases", - TypeName = "array", - }}, - SuperTypes = {"azure_resource"}, - }, new AtlasEntityDef - { - Name = "azure_sql_db", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - Constraints = {new AtlasConstraintDef - { - Params = - { - ["attribute"] = BinaryData.FromObjectAsJson("databases") - }, - Type = "inverseRef", - }}, - IsIndexable = false, - IsOptional = false, - IsUnique = false, - Name = "server", - TypeName = "azure_sql_server", - }, new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "schemas", - TypeName = "array", - }, new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "collation", - TypeName = "string", - }, new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "compatibilityLevel", - TypeName = "int", - }}, - SuperTypes = {"azure_resource"}, - }}, - EnumDefs = { }, - RelationshipDefs = {new AtlasRelationshipDef - { - Name = "azure_sql_server_databases", - TypeVersion = "1.0", - EndDef1 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Set, - IsContainer = true, - IsLegacyAttribute = true, - Name = "databases", - Type = "azure_sql_server", - }, - EndDef2 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Single, - IsContainer = false, - IsLegacyAttribute = true, - Name = "server", - Type = "azure_sql_db", - }, - RelationshipCategory = RelationshipCategory.Composition, - }, new AtlasRelationshipDef - { - Name = "azure_sql_db_schemas", - TypeVersion = "1.0", - EndDef1 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Set, - IsContainer = true, - IsLegacyAttribute = true, - Name = "schemas", - Type = "azure_sql_db", - }, - EndDef2 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Single, - IsContainer = false, - IsLegacyAttribute = true, - Name = "db", - Type = "azure_sql_schema", - }, - RelationshipCategory = RelationshipCategory.Composition, - }}, - StructDefs = { }, -}; -Response response = await client.BatchUpdateAsync(body); -]]> - - - -This sample shows how to call BatchUpdate. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - ClassificationDefs = { }, - EntityDefs = {new AtlasEntityDef - { - Name = "azure_sql_server", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "databases", - TypeName = "array", - }}, - SuperTypes = {"azure_resource"}, - }, new AtlasEntityDef - { - Name = "azure_sql_db", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - Constraints = {new AtlasConstraintDef - { - Params = - { - ["attribute"] = BinaryData.FromObjectAsJson("databases") - }, - Type = "inverseRef", - }}, - IsIndexable = false, - IsOptional = false, - IsUnique = false, - Name = "server", - TypeName = "azure_sql_server", - }, new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "schemas", - TypeName = "array", - }, new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "collation", - TypeName = "string", - }, new AtlasAttributeDef - { - Cardinality = CardinalityValue.Single, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "compatibilityLevel", - TypeName = "int", - }}, - SuperTypes = {"azure_resource"}, - }}, - EnumDefs = { }, - RelationshipDefs = {new AtlasRelationshipDef - { - Name = "azure_sql_server_databases", - TypeVersion = "1.0", - EndDef1 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Set, - IsContainer = true, - IsLegacyAttribute = true, - Name = "databases", - Type = "azure_sql_server", - }, - EndDef2 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Single, - IsContainer = false, - IsLegacyAttribute = true, - Name = "server", - Type = "azure_sql_db", - }, - RelationshipCategory = RelationshipCategory.Composition, - }, new AtlasRelationshipDef - { - Name = "azure_sql_db_schemas", - TypeVersion = "1.0", - EndDef1 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Set, - IsContainer = true, - IsLegacyAttribute = true, - Name = "schemas", - Type = "azure_sql_db", - }, - EndDef2 = new AtlasRelationshipEndDef - { - Cardinality = CardinalityValue.Single, - IsContainer = false, - IsLegacyAttribute = true, - Name = "db", - Type = "azure_sql_schema", - }, - RelationshipCategory = RelationshipCategory.Composition, - }}, - StructDefs = { }, -}; -Response response = client.BatchUpdate(body); -]]> - - - -This sample shows how to call BatchUpdateAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = new object[] - { - new - { - name = "azure_sql_server", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "databases", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - }, - new - { - name = "azure_sql_db", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "server", - typeName = "azure_sql_server", - cardinality = "SINGLE", - constraints = new object[] - { - new Dictionary - { - ["type"] = "inverseRef", - ["params"] = new - { - attribute = "databases", - } - } - }, - isIndexable = false, - isOptional = false, - isUnique = false, - }, - new - { - name = "schemas", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - }, - new - { - name = "collation", - typeName = "string", - cardinality = "SINGLE", - isIndexable = false, - isOptional = true, - isUnique = false, - }, - new - { - name = "compatibilityLevel", - typeName = "int", - cardinality = "SINGLE", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - } - }, - relationshipDefs = new object[] - { - new - { - name = "azure_sql_server_databases", - typeVersion = "1.0", - relationshipCategory = "COMPOSITION", - endDef1 = new - { - type = "azure_sql_server", - name = "databases", - isContainer = true, - cardinality = "SET", - isLegacyAttribute = true, - }, - endDef2 = new - { - type = "azure_sql_db", - name = "server", - isContainer = false, - cardinality = "SINGLE", - isLegacyAttribute = true, - }, - }, - new - { - name = "azure_sql_db_schemas", - typeVersion = "1.0", - relationshipCategory = "COMPOSITION", - endDef1 = new - { - type = "azure_sql_db", - name = "schemas", - isContainer = true, - cardinality = "SET", - isLegacyAttribute = true, - }, - endDef2 = new - { - type = "azure_sql_schema", - name = "db", - isContainer = false, - cardinality = "SINGLE", - isLegacyAttribute = true, - }, - } - }, -}); -Response response = await client.BatchUpdateAsync(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchUpdate and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = new object[] - { - new - { - name = "azure_sql_server", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "databases", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - }, - new - { - name = "azure_sql_db", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "server", - typeName = "azure_sql_server", - cardinality = "SINGLE", - constraints = new object[] - { - new Dictionary - { - ["type"] = "inverseRef", - ["params"] = new - { - attribute = "databases", - } - } - }, - isIndexable = false, - isOptional = false, - isUnique = false, - }, - new - { - name = "schemas", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - }, - new - { - name = "collation", - typeName = "string", - cardinality = "SINGLE", - isIndexable = false, - isOptional = true, - isUnique = false, - }, - new - { - name = "compatibilityLevel", - typeName = "int", - cardinality = "SINGLE", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - } - }, - relationshipDefs = new object[] - { - new - { - name = "azure_sql_server_databases", - typeVersion = "1.0", - relationshipCategory = "COMPOSITION", - endDef1 = new - { - type = "azure_sql_server", - name = "databases", - isContainer = true, - cardinality = "SET", - isLegacyAttribute = true, - }, - endDef2 = new - { - type = "azure_sql_db", - name = "server", - isContainer = false, - cardinality = "SINGLE", - isLegacyAttribute = true, - }, - }, - new - { - name = "azure_sql_db_schemas", - typeVersion = "1.0", - relationshipCategory = "COMPOSITION", - endDef1 = new - { - type = "azure_sql_db", - name = "schemas", - isContainer = true, - cardinality = "SET", - isLegacyAttribute = true, - }, - endDef2 = new - { - type = "azure_sql_schema", - name = "db", - isContainer = false, - cardinality = "SINGLE", - isLegacyAttribute = true, - }, - } - }, -}); -Response response = client.BatchUpdate(content); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call BatchDeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - ClassificationDefs = { }, - EntityDefs = {new AtlasEntityDef - { - Name = "azure_sql_server_example", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "databases", - TypeName = "array", - }}, - SuperTypes = {"azure_resource"}, - }}, - EnumDefs = { }, - RelationshipDefs = { }, - StructDefs = { }, -}; -Response response = await client.BatchDeleteAsync(body); -]]> - - - -This sample shows how to call BatchDelete. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -AtlasTypesDef body = new AtlasTypesDef -{ - ClassificationDefs = { }, - EntityDefs = {new AtlasEntityDef - { - Name = "azure_sql_server_example", - TypeVersion = "1.0", - AttributeDefs = {new AtlasAttributeDef - { - Cardinality = CardinalityValue.Set, - IsIndexable = false, - IsOptional = true, - IsUnique = false, - Name = "databases", - TypeName = "array", - }}, - SuperTypes = {"azure_resource"}, - }}, - EnumDefs = { }, - RelationshipDefs = { }, - StructDefs = { }, -}; -Response response = client.BatchDelete(body); -]]> - - - -This sample shows how to call BatchDeleteAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = new object[] - { - new - { - name = "azure_sql_server_example", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "databases", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - } - }, - relationshipDefs = Array.Empty(), -}); -Response response = await client.BatchDeleteAsync(content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call BatchDelete. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -using RequestContent content = RequestContent.Create(new -{ - enumDefs = Array.Empty(), - structDefs = Array.Empty(), - classificationDefs = Array.Empty(), - entityDefs = new object[] - { - new - { - name = "azure_sql_server_example", - superTypes = new object[] - { - "azure_resource" - }, - typeVersion = "1.0", - attributeDefs = new object[] - { - new - { - name = "databases", - typeName = "array", - cardinality = "SET", - isIndexable = false, - isOptional = true, - isUnique = false, - } - }, - } - }, - relationshipDefs = Array.Empty(), -}); -Response response = client.BatchDelete(content); - -Console.WriteLine(response.Status); -]]> - - - -This sample shows how to call GetHeadersAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response> response = await client.GetHeadersAsync(); -]]> - - - -This sample shows how to call GetHeaders. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response> response = client.GetHeaders(); -]]> - - - -This sample shows how to call GetHeadersAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = await client.GetHeadersAsync(true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetHeaders and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); - -Response response = client.GetHeaders(true, null, null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result[0].ToString()); -]]> - - - -This sample shows how to call GetTermTemplateByIdAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTermTemplateByIdAsync("d776af9c-985c-4168-abb2-477523dbfc70"); -]]> - - - -This sample shows how to call GetTermTemplateById. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTermTemplateById("d776af9c-985c-4168-abb2-477523dbfc70"); -]]> - - - -This sample shows how to call GetTermTemplateByIdAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTermTemplateByIdAsync("d776af9c-985c-4168-abb2-477523dbfc70", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTermTemplateById and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTermTemplateById("d776af9c-985c-4168-abb2-477523dbfc70", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTermTemplateByNameAsync. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTermTemplateByNameAsync("MS KPI"); -]]> - - - -This sample shows how to call GetTermTemplateByName. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTermTemplateByName("MS KPI"); -]]> - - - -This sample shows how to call GetTermTemplateByNameAsync and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = await client.GetTermTemplateByNameAsync("MS KPI", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - -This sample shows how to call GetTermTemplateByName and parse the result. -"); -TokenCredential credential = new DefaultAzureCredential(); -TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); - -Response response = client.GetTermTemplateByName("MS KPI", null); - -JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; -Console.WriteLine(result.ToString()); -]]> - - - \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.RestClient.cs new file mode 100644 index 000000000000..eb4a207841f4 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.RestClient.cs @@ -0,0 +1,733 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class Entity + { + private static ResponseClassifier _pipelineMessageClassifier200; + private static ResponseClassifier _pipelineMessageClassifier204; + + private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 }); + + private static ResponseClassifier PipelineMessageClassifier204 => _pipelineMessageClassifier204 = new StatusCodeClassifier(stackalloc ushort[] { 204 }); + + internal HttpMessage CreateCreateOrUpdateRequest(RequestContent content, string businessAttributeUpdateBehavior, string collectionId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (businessAttributeUpdateBehavior != null) + { + uri.AppendQuery("businessAttributeUpdateBehavior", businessAttributeUpdateBehavior, true); + } + if (collectionId != null) + { + uri.AppendQuery("collectionId", collectionId, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetByIdsRequest(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/bulk", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (guid != null && !(guid is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined)) + { + foreach (var @param in guid) + { + uri.AppendQuery("guid", @param, true); + } + } + if (minExtInfo != null) + { + uri.AppendQuery("minExtInfo", TypeFormatters.ConvertToString(minExtInfo), true); + } + if (ignoreRelationships != null) + { + uri.AppendQuery("ignoreRelationships", TypeFormatters.ConvertToString(ignoreRelationships), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateBatchCreateOrUpdateRequest(RequestContent content, string collectionId, string businessAttributeUpdateBehavior, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/bulk", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (collectionId != null) + { + uri.AppendQuery("collectionId", collectionId, true); + } + if (businessAttributeUpdateBehavior != null) + { + uri.AppendQuery("businessAttributeUpdateBehavior", businessAttributeUpdateBehavior, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateBatchDeleteRequest(IEnumerable guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/bulk", false); + if (guid != null && !(guid is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined)) + { + foreach (var @param in guid) + { + uri.AppendQuery("guid", @param, true); + } + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateAddClassificationRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/bulk/classification", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetRequest(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + if (minExtInfo != null) + { + uri.AppendQuery("minExtInfo", TypeFormatters.ConvertToString(minExtInfo), true); + } + if (ignoreRelationships != null) + { + uri.AppendQuery("ignoreRelationships", TypeFormatters.ConvertToString(ignoreRelationships), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateAttributeByIdRequest(string guid, string name, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendQuery("name", name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetClassificationRequest(string guid, string classificationName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/classification/", false); + uri.AppendPath(classificationName, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateRemoveClassificationRequest(string guid, string classificationName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/classification/", false); + uri.AppendPath(classificationName, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetClassificationsRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/classifications", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateAddClassificationsRequest(string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/classifications", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateClassificationsRequest(string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/classifications", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetByUniqueAttributeRequest(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + if (minExtInfo != null) + { + uri.AppendQuery("minExtInfo", TypeFormatters.ConvertToString(minExtInfo), true); + } + if (ignoreRelationships != null) + { + uri.AppendQuery("ignoreRelationships", TypeFormatters.ConvertToString(ignoreRelationships), true); + } + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteByUniqueAttributeRequest(string typeName, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateRemoveClassificationByUniqueAttributeRequest(string typeName, string classificationName, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/classification/", false); + uri.AppendPath(classificationName, true); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/classifications", false); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateClassificationsUniqueByAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/classifications", false); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateBatchSetClassificationsRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/bulk/setClassifications", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateBatchGetByUniqueAttributesRequest(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/bulk/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + if (minExtInfo != null) + { + uri.AppendQuery("minExtInfo", TypeFormatters.ConvertToString(minExtInfo), true); + } + if (ignoreRelationships != null) + { + uri.AppendQuery("ignoreRelationships", TypeFormatters.ConvertToString(ignoreRelationships), true); + } + if (attrNQualifiedName != null) + { + uri.AppendQuery("attr_N:qualifiedName", attrNQualifiedName, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetHeaderRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/header", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateRemoveBusinessMetadataRequest(string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/businessmetadata", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateAddOrUpdateBusinessMetadataRequest(string guid, RequestContent content, bool? overwrite, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/businessmetadata", false); + if (overwrite != null) + { + uri.AppendQuery("isOverwrite", TypeFormatters.ConvertToString(overwrite), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateRemoveBusinessMetadataAttributesRequest(string businessMetadataName, string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/businessmetadata/", false); + uri.AppendPath(businessMetadataName, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateAddOrUpdateBusinessMetadataAttributesRequest(string businessMetadataName, string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/businessmetadata/", false); + uri.AppendPath(businessMetadataName, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetBusinessMetadataTemplateRequest(RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/businessmetadata/import/template", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/octet-stream"); + return message; + } + + internal HttpMessage CreateImportBusinessMetadataRequest(RequestContent content, string contentType, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/businessmetadata/import", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", contentType); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateRemoveLabelsRequest(string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/labels", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + if ("application/json" != null) + { + request.Headers.SetValue("Content-Type", "application/json"); + } + request.Content = content; + return message; + } + + internal HttpMessage CreateSetLabelsRequest(string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/labels", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + if ("application/json" != null) + { + request.Headers.SetValue("Content-Type", "application/json"); + } + request.Content = content; + return message; + } + + internal HttpMessage CreateAddLabelRequest(string guid, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/guid/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/labels", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + if ("application/json" != null) + { + request.Headers.SetValue("Content-Type", "application/json"); + } + request.Content = content; + return message; + } + + internal HttpMessage CreateRemoveLabelsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/labels", false); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + if ("application/json" != null) + { + request.Headers.SetValue("Content-Type", "application/json"); + } + request.Content = content; + return message; + } + + internal HttpMessage CreateSetLabelsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/labels", false); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + if ("application/json" != null) + { + request.Headers.SetValue("Content-Type", "application/json"); + } + request.Content = content; + return message; + } + + internal HttpMessage CreateAddLabelsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + uri.AppendPath("/labels", false); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + if ("application/json" != null) + { + request.Headers.SetValue("Content-Type", "application/json"); + } + request.Content = content; + return message; + } + + internal HttpMessage CreateMoveEntitiesToCollectionRequest(string collectionId, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/entity/moveTo", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + uri.AppendQuery("collectionId", collectionId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs index 14090746cbf9..dc5f26428507 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs @@ -7,111 +7,43 @@ using System; using System.Collections.Generic; -using System.Text.Json; using System.Threading; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Analytics.Purview.DataMap { - // Data plane generated sub-client. /// The Entity sub-client. public partial class Entity { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of Entity for mocking. protected Entity() { } /// Initializes a new instance of Entity. - /// The handler for diagnostic messaging in the client. + /// The ClientDiagnostics is used to provide tracing support for the client library. /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. - /// The to use. - /// The API version to use for this operation. - internal Entity(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) + /// Service endpoint. + /// + internal Entity(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) { ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; _endpoint = endpoint; + Pipeline = pipeline; _apiVersion = apiVersion; } - /// - /// Create or update an entity. - /// Existing entity is matched using its unique guid if - /// supplied or by its unique attributes eg: qualifiedName. - /// Map and array of - /// collections are not well supported. E.g., array<array<int>>, array<map<string, - /// int>>. - /// For each contact type, the maximum number of contacts is 20. - /// - /// Body parameter. - /// - /// Used to define the update behavior for business attributes when updating - /// entities. - /// - /// - /// The collection where entities will be moved to. Only specify a value if you - /// need to move an entity to another collection. - /// - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> CreateOrUpdateAsync(AtlasEntityWithExtInfo body, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = null, string collectionId = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateOrUpdateAsync(content, businessAttributeUpdateBehavior?.ToString(), collectionId, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); - } - - /// - /// Create or update an entity. - /// Existing entity is matched using its unique guid if - /// supplied or by its unique attributes eg: qualifiedName. - /// Map and array of - /// collections are not well supported. E.g., array<array<int>>, array<map<string, - /// int>>. - /// For each contact type, the maximum number of contacts is 20. - /// - /// Body parameter. - /// - /// Used to define the update behavior for business attributes when updating - /// entities. - /// - /// - /// The collection where entities will be moved to. Only specify a value if you - /// need to move an entity to another collection. - /// - /// The cancellation token to use. - /// is null. - /// - public virtual Response CreateOrUpdate(AtlasEntityWithExtInfo body, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = null, string collectionId = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = CreateOrUpdate(content, businessAttributeUpdateBehavior?.ToString(), collectionId, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); - } + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } /// /// [Protocol Method] Create or update an entity. @@ -123,41 +55,33 @@ public virtual Response CreateOrUpdate(AtlasEntityWithExtI /// For each contact type, the maximum number of contacts is 20. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. /// /// Used to define the update behavior for business attributes when updating - /// entities. Allowed values: "ignore" | "replace" | "merge" + /// entities. /// /// /// The collection where entities will be moved to. Only specify a value if you /// need to move an entity to another collection. /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateOrUpdateAsync(RequestContent content, string businessAttributeUpdateBehavior = null, string collectionId = null, RequestContext context = null) + public virtual Response CreateOrUpdate(RequestContent content, string businessAttributeUpdateBehavior = default, string collectionId = default, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.CreateOrUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.CreateOrUpdate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateCreateOrUpdateRequest(content, businessAttributeUpdateBehavior, collectionId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -176,41 +100,33 @@ public virtual async Task CreateOrUpdateAsync(RequestContent content, /// For each contact type, the maximum number of contacts is 20. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. /// /// Used to define the update behavior for business attributes when updating - /// entities. Allowed values: "ignore" | "replace" | "merge" + /// entities. /// /// /// The collection where entities will be moved to. Only specify a value if you /// need to move an entity to another collection. /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response CreateOrUpdate(RequestContent content, string businessAttributeUpdateBehavior = null, string collectionId = null, RequestContext context = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, string businessAttributeUpdateBehavior = default, string collectionId = default, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.CreateOrUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.CreateOrUpdate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateCreateOrUpdateRequest(content, businessAttributeUpdateBehavior, collectionId, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -219,71 +135,89 @@ public virtual Response CreateOrUpdate(RequestContent content, string businessAt } } - /// List entities in bulk identified by its GUIDs. - /// An array of GUIDs of entities to list. - /// Whether to return minimal information for referred entities. - /// Whether to ignore relationship attributes. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> GetByIdsAsync(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, CancellationToken cancellationToken = default) + /// + /// Create or update an entity. + /// Existing entity is matched using its unique guid if + /// supplied or by its unique attributes eg: qualifiedName. + /// Map and array of + /// collections are not well supported. E.g., array<array<int>>, array<map<string, + /// int>>. + /// For each contact type, the maximum number of contacts is 20. + /// + /// Body parameter. + /// + /// Used to define the update behavior for business attributes when updating + /// entities. + /// + /// + /// The collection where entities will be moved to. Only specify a value if you + /// need to move an entity to another collection. + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response CreateOrUpdate(AtlasEntityWithExtInfo body, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default, string collectionId = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetByIdsAsync(guid, minExtInfo, ignoreRelationships, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntitiesWithExtInfo.FromResponse(response), response); + Response result = CreateOrUpdate(body, businessAttributeUpdateBehavior?.ToString(), collectionId, cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } - /// List entities in bulk identified by its GUIDs. - /// An array of GUIDs of entities to list. - /// Whether to return minimal information for referred entities. - /// Whether to ignore relationship attributes. - /// The cancellation token to use. - /// is null. - /// - public virtual Response GetByIds(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, CancellationToken cancellationToken = default) + /// + /// Create or update an entity. + /// Existing entity is matched using its unique guid if + /// supplied or by its unique attributes eg: qualifiedName. + /// Map and array of + /// collections are not well supported. E.g., array<array<int>>, array<map<string, + /// int>>. + /// For each contact type, the maximum number of contacts is 20. + /// + /// Body parameter. + /// + /// Used to define the update behavior for business attributes when updating + /// entities. + /// + /// + /// The collection where entities will be moved to. Only specify a value if you + /// need to move an entity to another collection. + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> CreateOrUpdateAsync(AtlasEntityWithExtInfo body, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default, string collectionId = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetByIds(guid, minExtInfo, ignoreRelationships, context); - return Response.FromValue(AtlasEntitiesWithExtInfo.FromResponse(response), response); + Response result = await CreateOrUpdateAsync(body, businessAttributeUpdateBehavior?.ToString(), collectionId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } /// /// [Protocol Method] List entities in bulk identified by its GUIDs. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// An array of GUIDs of entities to list. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetByIdsAsync(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) + public virtual Response GetByIds(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) { - Argument.AssertNotNull(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetByIds"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetByIds"); scope.Start(); try { + Argument.AssertNotNull(guid, nameof(guid)); + using HttpMessage message = CreateGetByIdsRequest(guid, minExtInfo, ignoreRelationships, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -296,35 +230,27 @@ public virtual async Task GetByIdsAsync(IEnumerable guid, bool /// [Protocol Method] List entities in bulk identified by its GUIDs. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// An array of GUIDs of entities to list. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetByIds(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) + public virtual async Task GetByIdsAsync(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) { - Argument.AssertNotNull(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetByIds"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetByIds"); scope.Start(); try { + Argument.AssertNotNull(guid, nameof(guid)); + using HttpMessage message = CreateGetByIdsRequest(guid, minExtInfo, ignoreRelationships, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -333,68 +259,34 @@ public virtual Response GetByIds(IEnumerable guid, bool? minExtInfo, boo } } - /// - /// Create or update entities in bulk. - /// Existing entity is matched using its unique - /// guid if supplied or by its unique attributes eg: qualifiedName. - /// Map and array - /// of collections are not well supported. E.g., array<array<int>>, - /// array<map<string, int>>. - /// For each contact type, the maximum number of contacts - /// is 20. - /// - /// Body parameter. - /// - /// The collection where entities will be moved to. Only specify a value if you - /// need to move an entity to another collection. - /// - /// - /// Used to define the update behavior for business attributes when updating - /// entities. - /// - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> BatchCreateOrUpdateAsync(AtlasEntitiesWithExtInfo body, string collectionId = null, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = null, CancellationToken cancellationToken = default) + /// List entities in bulk identified by its GUIDs. + /// An array of GUIDs of entities to list. + /// Whether to return minimal information for referred entities. + /// Whether to ignore relationship attributes. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response GetByIds(IEnumerable guid, bool? minExtInfo = default, bool? ignoreRelationships = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(guid, nameof(guid)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchCreateOrUpdateAsync(content, collectionId, businessAttributeUpdateBehavior?.ToString(), context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = GetByIds(guid, minExtInfo, ignoreRelationships, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntitiesWithExtInfo)result, result); } - /// - /// Create or update entities in bulk. - /// Existing entity is matched using its unique - /// guid if supplied or by its unique attributes eg: qualifiedName. - /// Map and array - /// of collections are not well supported. E.g., array<array<int>>, - /// array<map<string, int>>. - /// For each contact type, the maximum number of contacts - /// is 20. - /// - /// Body parameter. - /// - /// The collection where entities will be moved to. Only specify a value if you - /// need to move an entity to another collection. - /// - /// - /// Used to define the update behavior for business attributes when updating - /// entities. - /// - /// The cancellation token to use. - /// is null. - /// - public virtual Response BatchCreateOrUpdate(AtlasEntitiesWithExtInfo body, string collectionId = null, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = null, CancellationToken cancellationToken = default) + /// List entities in bulk identified by its GUIDs. + /// An array of GUIDs of entities to list. + /// Whether to return minimal information for referred entities. + /// Whether to ignore relationship attributes. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> GetByIdsAsync(IEnumerable guid, bool? minExtInfo = default, bool? ignoreRelationships = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(guid, nameof(guid)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchCreateOrUpdate(content, collectionId, businessAttributeUpdateBehavior?.ToString(), context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = await GetByIdsAsync(guid, minExtInfo, ignoreRelationships, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntitiesWithExtInfo)result, result); } /// @@ -408,14 +300,7 @@ public virtual Response BatchCreateOrUpdate(AtlasEntitiesW /// is 20. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -426,23 +311,22 @@ public virtual Response BatchCreateOrUpdate(AtlasEntitiesW /// /// /// Used to define the update behavior for business attributes when updating - /// entities. Allowed values: "ignore" | "replace" | "merge" + /// entities. /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchCreateOrUpdateAsync(RequestContent content, string collectionId = null, string businessAttributeUpdateBehavior = null, RequestContext context = null) + public virtual Response BatchCreateOrUpdate(RequestContent content, string collectionId = default, string businessAttributeUpdateBehavior = default, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.BatchCreateOrUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchCreateOrUpdate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchCreateOrUpdateRequest(content, collectionId, businessAttributeUpdateBehavior, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -462,14 +346,7 @@ public virtual async Task BatchCreateOrUpdateAsync(RequestContent cont /// is 20. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -480,23 +357,22 @@ public virtual async Task BatchCreateOrUpdateAsync(RequestContent cont /// /// /// Used to define the update behavior for business attributes when updating - /// entities. Allowed values: "ignore" | "replace" | "merge" + /// entities. /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchCreateOrUpdate(RequestContent content, string collectionId = null, string businessAttributeUpdateBehavior = null, RequestContext context = null) + public virtual async Task BatchCreateOrUpdateAsync(RequestContent content, string collectionId = default, string businessAttributeUpdateBehavior = default, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.BatchCreateOrUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchCreateOrUpdate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchCreateOrUpdateRequest(content, collectionId, businessAttributeUpdateBehavior, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -506,37 +382,63 @@ public virtual Response BatchCreateOrUpdate(RequestContent content, string colle } /// - /// Delete a list of entities in bulk identified by their GUIDs or unique - /// attributes. + /// Create or update entities in bulk. + /// Existing entity is matched using its unique + /// guid if supplied or by its unique attributes eg: qualifiedName. + /// Map and array + /// of collections are not well supported. E.g., array<array<int>>, + /// array<map<string, int>>. + /// For each contact type, the maximum number of contacts + /// is 20. /// - /// An array of GUIDs of entities to delete. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> BatchDeleteAsync(IEnumerable guid, CancellationToken cancellationToken = default) + /// Body parameter. + /// + /// The collection where entities will be moved to. Only specify a value if you + /// need to move an entity to another collection. + /// + /// + /// Used to define the update behavior for business attributes when updating + /// entities. + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response BatchCreateOrUpdate(AtlasEntitiesWithExtInfo body, string collectionId = default, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchDeleteAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = BatchCreateOrUpdate(body, collectionId, businessAttributeUpdateBehavior?.ToString(), cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } /// - /// Delete a list of entities in bulk identified by their GUIDs or unique - /// attributes. + /// Create or update entities in bulk. + /// Existing entity is matched using its unique + /// guid if supplied or by its unique attributes eg: qualifiedName. + /// Map and array + /// of collections are not well supported. E.g., array<array<int>>, + /// array<map<string, int>>. + /// For each contact type, the maximum number of contacts + /// is 20. /// - /// An array of GUIDs of entities to delete. - /// The cancellation token to use. - /// is null. - /// - public virtual Response BatchDelete(IEnumerable guid, CancellationToken cancellationToken = default) + /// Body parameter. + /// + /// The collection where entities will be moved to. Only specify a value if you + /// need to move an entity to another collection. + /// + /// + /// Used to define the update behavior for business attributes when updating + /// entities. + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> BatchCreateOrUpdateAsync(AtlasEntitiesWithExtInfo body, string collectionId = default, BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchDelete(guid, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = await BatchCreateOrUpdateAsync(body, collectionId, businessAttributeUpdateBehavior?.ToString(), cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } /// @@ -544,33 +446,25 @@ public virtual Response BatchDelete(IEnumerable gu /// attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// An array of GUIDs of entities to delete. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchDeleteAsync(IEnumerable guid, RequestContext context) + public virtual Response BatchDelete(IEnumerable guid, RequestContext context) { - Argument.AssertNotNull(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.BatchDelete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchDelete"); scope.Start(); try { + Argument.AssertNotNull(guid, nameof(guid)); + using HttpMessage message = CreateBatchDeleteRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -584,33 +478,25 @@ public virtual async Task BatchDeleteAsync(IEnumerable guid, R /// attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// An array of GUIDs of entities to delete. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchDelete(IEnumerable guid, RequestContext context) + public virtual async Task BatchDeleteAsync(IEnumerable guid, RequestContext context) { - Argument.AssertNotNull(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.BatchDelete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchDelete"); scope.Start(); try { + Argument.AssertNotNull(guid, nameof(guid)); + using HttpMessage message = CreateBatchDeleteRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -619,67 +505,61 @@ public virtual Response BatchDelete(IEnumerable guid, RequestContext con } } - /// Associate a classification to multiple entities in bulk. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task AddClassificationAsync(ClassificationAssociateConfig body, CancellationToken cancellationToken = default) + /// + /// Delete a list of entities in bulk identified by their GUIDs or unique + /// attributes. + /// + /// An array of GUIDs of entities to delete. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response BatchDelete(IEnumerable guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(guid, nameof(guid)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddClassificationAsync(content, context).ConfigureAwait(false); - return response; + Response result = BatchDelete(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } - /// Associate a classification to multiple entities in bulk. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual Response AddClassification(ClassificationAssociateConfig body, CancellationToken cancellationToken = default) + /// + /// Delete a list of entities in bulk identified by their GUIDs or unique + /// attributes. + /// + /// An array of GUIDs of entities to delete. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> BatchDeleteAsync(IEnumerable guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNull(guid, nameof(guid)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddClassification(content, context); - return response; + Response result = await BatchDeleteAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } /// /// [Protocol Method] Associate a classification to multiple entities in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddClassificationAsync(RequestContent content, RequestContext context = null) + public virtual Response AddClassification(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddClassification"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddClassification"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddClassificationRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -692,33 +572,25 @@ public virtual async Task AddClassificationAsync(RequestContent conten /// [Protocol Method] Associate a classification to multiple entities in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddClassification(RequestContent content, RequestContext context = null) + public virtual async Task AddClassificationAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddClassification"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddClassification"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddClassificationRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -727,74 +599,56 @@ public virtual Response AddClassification(RequestContent content, RequestContext } } - /// Get complete definition of an entity given its GUID. - /// The globally unique identifier of the entity. - /// Whether to return minimal information for referred entities. - /// Whether to ignore relationship attributes. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetEntityAsync(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, CancellationToken cancellationToken = default) + /// Associate a classification to multiple entities in bulk. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response AddClassification(ClassificationAssociateConfig body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEntityAsync(guid, minExtInfo, ignoreRelationships, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntityWithExtInfo.FromResponse(response), response); + return AddClassification(body, cancellationToken.ToRequestContext()); } - /// Get complete definition of an entity given its GUID. - /// The globally unique identifier of the entity. - /// Whether to return minimal information for referred entities. - /// Whether to ignore relationship attributes. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetEntity(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, CancellationToken cancellationToken = default) + /// Associate a classification to multiple entities in bulk. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task AddClassificationAsync(ClassificationAssociateConfig body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEntity(guid, minExtInfo, ignoreRelationships, context); - return Response.FromValue(AtlasEntityWithExtInfo.FromResponse(response), response); + return await AddClassificationAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Get complete definition of an entity given its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetEntityAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) + public virtual Response Get(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetEntity"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.Get"); scope.Start(); try { - using HttpMessage message = CreateGetEntityRequest(guid, minExtInfo, ignoreRelationships, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + using HttpMessage message = CreateGetRequest(guid, minExtInfo, ignoreRelationships, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -807,36 +661,28 @@ public virtual async Task GetEntityAsync(string guid, bool? minExtInfo /// [Protocol Method] Get complete definition of an entity given its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetEntity(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) + public virtual async Task GetAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetEntity"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.Get"); scope.Start(); try { - using HttpMessage message = CreateGetEntityRequest(guid, minExtInfo, ignoreRelationships, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + using HttpMessage message = CreateGetRequest(guid, minExtInfo, ignoreRelationships, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -845,56 +691,36 @@ public virtual Response GetEntity(string guid, bool? minExtInfo, bool? ignoreRel } } - /// - /// Update entity partially - create or update entity attribute identified by its - /// GUID. - /// Supports only primitive attribute type and entity references. - /// It does not support updating complex types like arrays, and maps. - /// Null updates are not possible. - /// + /// Get complete definition of an entity given its GUID. /// The globally unique identifier of the entity. - /// The name of the attribute. - /// The value of the attribute. - /// The cancellation token to use. - /// , or is null. + /// Whether to return minimal information for referred entities. + /// Whether to ignore relationship attributes. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> UpdateAttributeByIdAsync(string guid, string name, BinaryData body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Get(string guid, bool? minExtInfo = default, bool? ignoreRelationships = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromObject(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateAttributeByIdAsync(guid, name, content, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = Get(guid, minExtInfo, ignoreRelationships, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntityWithExtInfo)result, result); } - /// - /// Update entity partially - create or update entity attribute identified by its - /// GUID. - /// Supports only primitive attribute type and entity references. - /// It does not support updating complex types like arrays, and maps. - /// Null updates are not possible. - /// + /// Get complete definition of an entity given its GUID. /// The globally unique identifier of the entity. - /// The name of the attribute. - /// The value of the attribute. - /// The cancellation token to use. - /// , or is null. + /// Whether to return minimal information for referred entities. + /// Whether to ignore relationship attributes. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response UpdateAttributeById(string guid, string name, BinaryData body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetAsync(string guid, bool? minExtInfo = default, bool? ignoreRelationships = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromObject(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = UpdateAttributeById(guid, name, content, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = await GetAsync(guid, minExtInfo, ignoreRelationships, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntityWithExtInfo)result, result); } /// @@ -905,38 +731,30 @@ public virtual Response UpdateAttributeById(string guid, s /// Null updates are not possible. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The name of the attribute. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. - /// is an empty string, and was expected to be non-empty. + /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateAttributeByIdAsync(string guid, string name, RequestContent content, RequestContext context = null) + public virtual Response UpdateAttributeById(string guid, string name, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateAttributeById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateAttributeById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateAttributeByIdRequest(guid, name, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -953,38 +771,30 @@ public virtual async Task UpdateAttributeByIdAsync(string guid, string /// Null updates are not possible. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The name of the attribute. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// , or is null. - /// is an empty string, and was expected to be non-empty. + /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response UpdateAttributeById(string guid, string name, RequestContent content, RequestContext context = null) + public virtual async Task UpdateAttributeByIdAsync(string guid, string name, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateAttributeById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateAttributeById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateAttributeByIdRequest(guid, name, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -993,68 +803,78 @@ public virtual Response UpdateAttributeById(string guid, string name, RequestCon } } - /// Delete an entity identified by its GUID. + /// + /// Update entity partially - create or update entity attribute identified by its + /// GUID. + /// Supports only primitive attribute type and entity references. + /// It does not support updating complex types like arrays, and maps. + /// Null updates are not possible. + /// /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> DeleteAsync(string guid, CancellationToken cancellationToken = default) + /// The name of the attribute. + /// The value of the attribute. + /// The cancellation token that can be used to cancel the operation. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response UpdateAttributeById(string guid, string name, BinaryData body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await DeleteAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = UpdateAttributeById(guid, name, RequestContent.Create(body), cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } - /// Delete an entity identified by its GUID. + /// + /// Update entity partially - create or update entity attribute identified by its + /// GUID. + /// Supports only primitive attribute type and entity references. + /// It does not support updating complex types like arrays, and maps. + /// Null updates are not possible. + /// /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response Delete(string guid, CancellationToken cancellationToken = default) + /// The name of the attribute. + /// The value of the attribute. + /// The cancellation token that can be used to cancel the operation. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> UpdateAttributeByIdAsync(string guid, string name, BinaryData body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Delete(guid, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = await UpdateAttributeByIdAsync(guid, name, RequestContent.Create(body), cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } /// /// [Protocol Method] Delete an entity identified by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteAsync(string guid, RequestContext context) + public virtual Response Delete(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateDeleteRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1067,34 +887,26 @@ public virtual async Task DeleteAsync(string guid, RequestContext cont /// [Protocol Method] Delete an entity identified by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Delete(string guid, RequestContext context) + public virtual async Task DeleteAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateDeleteRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1103,74 +915,60 @@ public virtual Response Delete(string guid, RequestContext context) } } - /// Get classification for a given entity represented by a GUID. + /// Delete an entity identified by its GUID. /// The globally unique identifier of the entity. - /// The name of the classification. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetClassificationAsync(string guid, string classificationName, CancellationToken cancellationToken = default) + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response Delete(string guid, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetClassificationAsync(guid, classificationName, context).ConfigureAwait(false); - return Response.FromValue(AtlasClassification.FromResponse(response), response); + Response result = Delete(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } - /// Get classification for a given entity represented by a GUID. + /// Delete an entity identified by its GUID. /// The globally unique identifier of the entity. - /// The name of the classification. - /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response GetClassification(string guid, string classificationName, CancellationToken cancellationToken = default) + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> DeleteAsync(string guid, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetClassification(guid, classificationName, context); - return Response.FromValue(AtlasClassification.FromResponse(response), response); + Response result = await DeleteAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } /// /// [Protocol Method] Get classification for a given entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The name of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetClassificationAsync(string guid, string classificationName, RequestContext context) + public virtual Response GetClassification(string guid, string classificationName, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetClassification"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetClassification"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + using HttpMessage message = CreateGetClassificationRequest(guid, classificationName, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1183,36 +981,28 @@ public virtual async Task GetClassificationAsync(string guid, string c /// [Protocol Method] Get classification for a given entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The name of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetClassification(string guid, string classificationName, RequestContext context) + public virtual async Task GetClassificationAsync(string guid, string classificationName, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetClassification"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetClassification"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + using HttpMessage message = CreateGetClassificationRequest(guid, classificationName, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1221,36 +1011,64 @@ public virtual Response GetClassification(string guid, string classificationName } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// Get classification for a given entity represented by a GUID. + /// The globally unique identifier of the entity. + /// The name of the classification. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetClassification(string guid, string classificationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + + Response result = GetClassification(guid, classificationName, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasClassification)result, result); + } + + /// Get classification for a given entity represented by a GUID. + /// The globally unique identifier of the entity. + /// The name of the classification. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetClassificationAsync(string guid, string classificationName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + + Response result = await GetClassificationAsync(guid, classificationName, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasClassification)result, result); + } + /// /// [Protocol Method] Delete a given classification from an existing entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The name of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task RemoveClassificationAsync(string guid, string classificationName, RequestContext context = null) + public virtual Response RemoveClassification(string guid, string classificationName, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveClassification"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveClassification"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + using HttpMessage message = CreateRemoveClassificationRequest(guid, classificationName, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1259,36 +1077,32 @@ public virtual async Task RemoveClassificationAsync(string guid, strin } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// /// [Protocol Method] Delete a given classification from an existing entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The name of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response RemoveClassification(string guid, string classificationName, RequestContext context = null) + public virtual async Task RemoveClassificationAsync(string guid, string classificationName, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveClassification"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveClassification"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + using HttpMessage message = CreateRemoveClassificationRequest(guid, classificationName, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1297,68 +1111,60 @@ public virtual Response RemoveClassification(string guid, string classificationN } } - /// List classifications for a given entity represented by a GUID. + /// Delete a given classification from an existing entity represented by a GUID. /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetClassificationsAsync(string guid, CancellationToken cancellationToken = default) + /// The name of the classification. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response RemoveClassification(string guid, string classificationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetClassificationsAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasClassifications.FromResponse(response), response); + return RemoveClassification(guid, classificationName, cancellationToken.ToRequestContext()); } - /// List classifications for a given entity represented by a GUID. + /// Delete a given classification from an existing entity represented by a GUID. /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetClassifications(string guid, CancellationToken cancellationToken = default) + /// The name of the classification. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task RemoveClassificationAsync(string guid, string classificationName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetClassifications(guid, context); - return Response.FromValue(AtlasClassifications.FromResponse(response), response); + return await RemoveClassificationAsync(guid, classificationName, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] List classifications for a given entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetClassificationsAsync(string guid, RequestContext context) + public virtual Response GetClassifications(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetClassifications"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetClassificationsRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1371,34 +1177,26 @@ public virtual async Task GetClassificationsAsync(string guid, Request /// [Protocol Method] List classifications for a given entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetClassifications(string guid, RequestContext context) + public virtual async Task GetClassificationsAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetClassifications"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetClassificationsRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1407,76 +1205,60 @@ public virtual Response GetClassifications(string guid, RequestContext context) } } - /// Add classifications to an existing entity represented by a GUID. + /// List classifications for a given entity represented by a GUID. /// The globally unique identifier of the entity. - /// An array of classifications to be added. - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AddClassificationsAsync(string guid, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response GetClassifications(string guid, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddClassificationsAsync(guid, content, context).ConfigureAwait(false); - return response; + Response result = GetClassifications(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasClassifications)result, result); } - /// Add classifications to an existing entity represented by a GUID. + /// List classifications for a given entity represented by a GUID. /// The globally unique identifier of the entity. - /// An array of classifications to be added. - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response AddClassifications(string guid, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetClassificationsAsync(string guid, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddClassifications(guid, content, context); - return response; + Response result = await GetClassificationsAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasClassifications)result, result); } /// /// [Protocol Method] Add classifications to an existing entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddClassificationsAsync(string guid, RequestContent content, RequestContext context = null) + public virtual Response AddClassifications(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddClassifications"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddClassificationsRequest(guid, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1489,36 +1271,28 @@ public virtual async Task AddClassificationsAsync(string guid, Request /// [Protocol Method] Add classifications to an existing entity represented by a GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddClassifications(string guid, RequestContent content, RequestContext context = null) + public virtual async Task AddClassificationsAsync(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddClassifications"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddClassificationsRequest(guid, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1527,76 +1301,64 @@ public virtual Response AddClassifications(string guid, RequestContent content, } } - /// Update classifications to an existing entity represented by a guid. + /// Add classifications to an existing entity represented by a GUID. /// The globally unique identifier of the entity. - /// An array of classifications to be updated. - /// The cancellation token to use. + /// An array of classifications to be added. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task UpdateClassificationsAsync(string guid, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response AddClassifications(string guid, IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateClassificationsAsync(guid, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return AddClassifications(guid, content, cancellationToken.ToRequestContext()); } - /// Update classifications to an existing entity represented by a guid. + /// Add classifications to an existing entity represented by a GUID. /// The globally unique identifier of the entity. - /// An array of classifications to be updated. - /// The cancellation token to use. + /// An array of classifications to be added. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response UpdateClassifications(string guid, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task AddClassificationsAsync(string guid, IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = UpdateClassifications(guid, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await AddClassificationsAsync(guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Update classifications to an existing entity represented by a guid. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateClassificationsAsync(string guid, RequestContent content, RequestContext context = null) + public virtual Response UpdateClassifications(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateClassifications"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateClassificationsRequest(guid, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1609,141 +1371,86 @@ public virtual async Task UpdateClassificationsAsync(string guid, Requ /// [Protocol Method] Update classifications to an existing entity represented by a guid. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response UpdateClassifications(string guid, RequestContent content, RequestContext context = null) + public virtual async Task UpdateClassificationsAsync(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateClassifications"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateClassificationsRequest(guid, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { scope.Failed(e); throw; } - } - - /// - /// Get complete definition of an entity given its type and unique attribute. - /// - /// In - /// addition to the typeName path parameter, attribute key-value pair(s) can be - /// provided in the following format: - /// attr:\<attrName>=<attrValue>. - /// - /// NOTE: The - /// attrName and attrValue should be unique across entities, eg. - /// qualifiedName. - /// - /// The REST request would look something like this: - /// GET - /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. - /// - /// The name of the type. - /// Whether to return minimal information for referred entities. - /// Whether to ignore relationship attributes. - /// - /// The qualified name of the entity. (This is only an example. qualifiedName can - /// be changed to other unique attributes) - /// - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetByUniqueAttributeAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attribute = null, CancellationToken cancellationToken = default) + } + + /// Update classifications to an existing entity represented by a guid. + /// The globally unique identifier of the entity. + /// An array of classifications to be updated. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response UpdateClassifications(string guid, IEnumerable body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetByUniqueAttributeAsync(typeName, minExtInfo, ignoreRelationships, attribute, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntityWithExtInfo.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return UpdateClassifications(guid, content, cancellationToken.ToRequestContext()); } - /// - /// Get complete definition of an entity given its type and unique attribute. - /// - /// In - /// addition to the typeName path parameter, attribute key-value pair(s) can be - /// provided in the following format: - /// attr:\<attrName>=<attrValue>. - /// - /// NOTE: The - /// attrName and attrValue should be unique across entities, eg. - /// qualifiedName. - /// - /// The REST request would look something like this: - /// GET - /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. - /// - /// The name of the type. - /// Whether to return minimal information for referred entities. - /// Whether to ignore relationship attributes. - /// - /// The qualified name of the entity. (This is only an example. qualifiedName can - /// be changed to other unique attributes) - /// - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetByUniqueAttribute(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attribute = null, CancellationToken cancellationToken = default) + /// Update classifications to an existing entity represented by a guid. + /// The globally unique identifier of the entity. + /// An array of classifications to be updated. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task UpdateClassificationsAsync(string guid, IEnumerable body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetByUniqueAttribute(typeName, minExtInfo, ignoreRelationships, attribute, context); - return Response.FromValue(AtlasEntityWithExtInfo.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await UpdateClassificationsAsync(guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Get complete definition of an entity given its type and unique attribute. - /// + /// /// In /// addition to the typeName path parameter, attribute key-value pair(s) can be /// provided in the following format: /// attr:\<attrName>=<attrValue>. - /// + /// /// NOTE: The /// attrName and attrValue should be unique across entities, eg. /// qualifiedName. - /// + /// /// The REST request would look something like this: /// GET /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1754,22 +1461,21 @@ public virtual Response GetByUniqueAttribute(string type /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetByUniqueAttributeAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attribute, RequestContext context) + public virtual Response GetByUniqueAttribute(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attribute, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateGetByUniqueAttributeRequest(typeName, minExtInfo, ignoreRelationships, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1780,29 +1486,22 @@ public virtual async Task GetByUniqueAttributeAsync(string typeName, b /// /// [Protocol Method] Get complete definition of an entity given its type and unique attribute. - /// + /// /// In /// addition to the typeName path parameter, attribute key-value pair(s) can be /// provided in the following format: /// attr:\<attrName>=<attrValue>. - /// + /// /// NOTE: The /// attrName and attrValue should be unique across entities, eg. /// qualifiedName. - /// + /// /// The REST request would look something like this: /// GET /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1813,22 +1512,21 @@ public virtual async Task GetByUniqueAttributeAsync(string typeName, b /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetByUniqueAttribute(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attribute, RequestContext context) + public virtual async Task GetByUniqueAttributeAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attribute, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateGetByUniqueAttributeRequest(typeName, minExtInfo, ignoreRelationships, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1838,110 +1536,95 @@ public virtual Response GetByUniqueAttribute(string typeName, bool? minExtInfo, } /// - /// Update entity partially - Allow a subset of attributes to be updated on an - /// entity which is identified by its type and unique attribute eg: - /// Referenceable.qualifiedName. Null updates are not possible. - /// - /// In addition to the - /// typeName path parameter, attribute key-value pair(s) can be provided in the - /// following format: - /// - /// attr:<attrName>=<attrValue>. - /// NOTE: The attrName and - /// attrValue should be unique across entities, eg. qualifiedName. - /// - /// The REST - /// request would look something like this: - /// PUT + /// Get complete definition of an entity given its type and unique attribute. + /// + /// In + /// addition to the typeName path parameter, attribute key-value pair(s) can be + /// provided in the following format: + /// attr:\<attrName>=<attrValue>. + /// + /// NOTE: The + /// attrName and attrValue should be unique across entities, eg. + /// qualifiedName. + /// + /// The REST request would look something like this: + /// GET /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. - /// Body parameter. + /// Whether to return minimal information for referred entities. + /// Whether to ignore relationship attributes. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> UpdateByUniqueAttributeAsync(string typeName, AtlasEntityWithExtInfo body, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response GetByUniqueAttribute(string typeName, bool? minExtInfo = default, bool? ignoreRelationships = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateByUniqueAttributeAsync(typeName, content, attribute, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = GetByUniqueAttribute(typeName, minExtInfo, ignoreRelationships, attribute, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntityWithExtInfo)result, result); } /// - /// Update entity partially - Allow a subset of attributes to be updated on an - /// entity which is identified by its type and unique attribute eg: - /// Referenceable.qualifiedName. Null updates are not possible. - /// - /// In addition to the - /// typeName path parameter, attribute key-value pair(s) can be provided in the - /// following format: - /// - /// attr:<attrName>=<attrValue>. - /// NOTE: The attrName and - /// attrValue should be unique across entities, eg. qualifiedName. - /// - /// The REST - /// request would look something like this: - /// PUT + /// Get complete definition of an entity given its type and unique attribute. + /// + /// In + /// addition to the typeName path parameter, attribute key-value pair(s) can be + /// provided in the following format: + /// attr:\<attrName>=<attrValue>. + /// + /// NOTE: The + /// attrName and attrValue should be unique across entities, eg. + /// qualifiedName. + /// + /// The REST request would look something like this: + /// GET /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. - /// Body parameter. + /// Whether to return minimal information for referred entities. + /// Whether to ignore relationship attributes. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response UpdateByUniqueAttribute(string typeName, AtlasEntityWithExtInfo body, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetByUniqueAttributeAsync(string typeName, bool? minExtInfo = default, bool? ignoreRelationships = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = UpdateByUniqueAttribute(typeName, content, attribute, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = await GetByUniqueAttributeAsync(typeName, minExtInfo, ignoreRelationships, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntityWithExtInfo)result, result); } /// /// [Protocol Method] Update entity partially - Allow a subset of attributes to be updated on an /// entity which is identified by its type and unique attribute eg: /// Referenceable.qualifiedName. Null updates are not possible. - /// + /// /// In addition to the /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: - /// + /// /// attr:<attrName>=<attrValue>. /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: /// PUT /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1951,23 +1634,22 @@ public virtual Response UpdateByUniqueAttribute(string typ /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual Response UpdateByUniqueAttribute(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateByUniqueAttributeRequest(typeName, content, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1980,29 +1662,22 @@ public virtual async Task UpdateByUniqueAttributeAsync(string typeName /// [Protocol Method] Update entity partially - Allow a subset of attributes to be updated on an /// entity which is identified by its type and unique attribute eg: /// Referenceable.qualifiedName. Null updates are not possible. - /// + /// /// In addition to the /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: - /// + /// /// attr:<attrName>=<attrValue>. /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: /// PUT /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2012,23 +1687,22 @@ public virtual async Task UpdateByUniqueAttributeAsync(string typeName /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response UpdateByUniqueAttribute(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual async Task UpdateByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateByUniqueAttributeRequest(typeName, content, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2038,67 +1712,77 @@ public virtual Response UpdateByUniqueAttribute(string typeName, RequestContent } /// - /// Delete an entity identified by its type and unique attributes. - /// In addition to - /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// Update entity partially - Allow a subset of attributes to be updated on an + /// entity which is identified by its type and unique attribute eg: + /// Referenceable.qualifiedName. Null updates are not possible. + /// + /// In addition to the + /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: - /// attr:\<attrName>=\<attrValue>. + /// + /// attr:<attrName>=<attrValue>. /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: - /// DELETE + /// PUT /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. + /// Body parameter. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. - /// is null. + /// The cancellation token that can be used to cancel the operation. + /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> DeleteByUniqueAttributeAsync(string typeName, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response UpdateByUniqueAttribute(string typeName, AtlasEntityWithExtInfo body, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await DeleteByUniqueAttributeAsync(typeName, attribute, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = UpdateByUniqueAttribute(typeName, body, attribute, cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } /// - /// Delete an entity identified by its type and unique attributes. - /// In addition to - /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// Update entity partially - Allow a subset of attributes to be updated on an + /// entity which is identified by its type and unique attribute eg: + /// Referenceable.qualifiedName. Null updates are not possible. + /// + /// In addition to the + /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: - /// attr:\<attrName>=\<attrValue>. + /// + /// attr:<attrName>=<attrValue>. /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: - /// DELETE + /// PUT /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. + /// Body parameter. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. - /// is null. + /// The cancellation token that can be used to cancel the operation. + /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response DeleteByUniqueAttribute(string typeName, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> UpdateByUniqueAttributeAsync(string typeName, AtlasEntityWithExtInfo body, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = DeleteByUniqueAttribute(typeName, attribute, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + Response result = await UpdateByUniqueAttributeAsync(typeName, body, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } /// @@ -2109,21 +1793,14 @@ public virtual Response DeleteByUniqueAttribute(string typ /// attr:\<attrName>=\<attrValue>. /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: /// DELETE /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2132,22 +1809,21 @@ public virtual Response DeleteByUniqueAttribute(string typ /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteByUniqueAttributeAsync(string typeName, string attribute, RequestContext context) + public virtual Response DeleteByUniqueAttribute(string typeName, string attribute, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.DeleteByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.DeleteByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateDeleteByUniqueAttributeRequest(typeName, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2164,21 +1840,14 @@ public virtual async Task DeleteByUniqueAttributeAsync(string typeName /// attr:\<attrName>=\<attrValue>. /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: /// DELETE /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2187,22 +1856,21 @@ public virtual async Task DeleteByUniqueAttributeAsync(string typeName /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response DeleteByUniqueAttribute(string typeName, string attribute, RequestContext context) + public virtual async Task DeleteByUniqueAttributeAsync(string typeName, string attribute, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.DeleteByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.DeleteByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateDeleteByUniqueAttributeRequest(typeName, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2211,15 +1879,74 @@ public virtual Response DeleteByUniqueAttribute(string typeName, string attribut } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// + /// Delete an entity identified by its type and unique attributes. + /// In addition to + /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// following format: + /// attr:\<attrName>=\<attrValue>. + /// NOTE: The attrName and + /// attrValue should be unique across entities, eg. qualifiedName. + /// + /// The REST + /// request would look something like this: + /// DELETE + /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. + /// + /// The name of the type. + /// + /// The qualified name of the entity. (This is only an example. qualifiedName can + /// be changed to other unique attributes) + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response DeleteByUniqueAttribute(string typeName, string attribute = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + + Response result = DeleteByUniqueAttribute(typeName, attribute, cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); + } + + /// + /// Delete an entity identified by its type and unique attributes. + /// In addition to + /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// following format: + /// attr:\<attrName>=\<attrValue>. + /// NOTE: The attrName and + /// attrValue should be unique across entities, eg. qualifiedName. + /// + /// The REST + /// request would look something like this: + /// DELETE + /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. + /// + /// The name of the type. + /// + /// The qualified name of the entity. (This is only an example. qualifiedName can + /// be changed to other unique attributes) + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> DeleteByUniqueAttributeAsync(string typeName, string attribute = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + + Response result = await DeleteByUniqueAttributeAsync(typeName, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); + } + /// /// [Protocol Method] Delete a given classification from an entity identified by its type and unique /// attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2229,23 +1956,22 @@ public virtual Response DeleteByUniqueAttribute(string typeName, string attribut /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute = null, RequestContext context = null) + public virtual Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveClassificationByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveClassificationByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + using HttpMessage message = CreateRemoveClassificationByUniqueAttributeRequest(typeName, classificationName, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2254,15 +1980,12 @@ public virtual async Task RemoveClassificationByUniqueAttributeAsync(s } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// /// [Protocol Method] Delete a given classification from an entity identified by its type and unique /// attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2272,23 +1995,22 @@ public virtual async Task RemoveClassificationByUniqueAttributeAsync(s /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute = null, RequestContext context = null) + public virtual async Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveClassificationByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveClassificationByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); + using HttpMessage message = CreateRemoveClassificationByUniqueAttributeRequest(typeName, classificationName, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2297,62 +2019,55 @@ public virtual Response RemoveClassificationByUniqueAttribute(string typeName, s } } - /// Add classification to the entity identified by its type and unique attributes. + /// + /// Delete a given classification from an entity identified by its type and unique + /// attributes. + /// /// The name of the type. - /// An array of classification to be added. + /// The name of the classification. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AddClassificationsByUniqueAttributeAsync(string typeName, IEnumerable body, string attribute = null, CancellationToken cancellationToken = default) + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddClassificationsByUniqueAttributeAsync(typeName, content, attribute, context).ConfigureAwait(false); - return response; + return RemoveClassificationByUniqueAttribute(typeName, classificationName, attribute, cancellationToken.ToRequestContext()); } - /// Add classification to the entity identified by its type and unique attributes. + /// + /// Delete a given classification from an entity identified by its type and unique + /// attributes. + /// /// The name of the type. - /// An array of classification to be added. + /// The name of the classification. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) - /// - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response AddClassificationsByUniqueAttribute(string typeName, IEnumerable body, string attribute = null, CancellationToken cancellationToken = default) + /// + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNullOrEmpty(classificationName, nameof(classificationName)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddClassificationsByUniqueAttribute(typeName, content, attribute, context); - return response; + return await RemoveClassificationByUniqueAttributeAsync(typeName, classificationName, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Add classification to the entity identified by its type and unique attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2362,23 +2077,22 @@ public virtual Response AddClassificationsByUniqueAttribute(string typeName, IEn /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddClassificationsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual Response AddClassificationsByUniqueAttribute(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddClassificationsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddClassificationsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddClassificationsByUniqueAttributeRequest(typeName, content, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2391,14 +2105,7 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str /// [Protocol Method] Add classification to the entity identified by its type and unique attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2408,23 +2115,22 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddClassificationsByUniqueAttribute(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual async Task AddClassificationsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddClassificationsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddClassificationsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddClassificationsByUniqueAttributeRequest(typeName, content, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2433,62 +2139,51 @@ public virtual Response AddClassificationsByUniqueAttribute(string typeName, Req } } - /// Update classification on an entity identified by its type and unique attributes. + /// Add classification to the entity identified by its type and unique attributes. /// The name of the type. - /// An array of classification to be updated. + /// An array of classification to be added. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task UpdateClassificationsUniqueByAttributeAsync(string typeName, IEnumerable body, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response AddClassificationsByUniqueAttribute(string typeName, IEnumerable body, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateClassificationsUniqueByAttributeAsync(typeName, content, attribute, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return AddClassificationsByUniqueAttribute(typeName, content, attribute, cancellationToken.ToRequestContext()); } - /// Update classification on an entity identified by its type and unique attributes. + /// Add classification to the entity identified by its type and unique attributes. /// The name of the type. - /// An array of classification to be updated. + /// An array of classification to be added. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response UpdateClassificationsUniqueByAttribute(string typeName, IEnumerable body, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task AddClassificationsByUniqueAttributeAsync(string typeName, IEnumerable body, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = UpdateClassificationsUniqueByAttribute(typeName, content, attribute, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await AddClassificationsByUniqueAttributeAsync(typeName, content, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Update classification on an entity identified by its type and unique attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2498,23 +2193,22 @@ public virtual Response UpdateClassificationsUniqueByAttribute(string typeName, /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateClassificationsUniqueByAttributeAsync(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual Response UpdateClassificationsUniqueByAttribute(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateClassificationsUniqueByAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateClassificationsUniqueByAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateClassificationsUniqueByAttributeRequest(typeName, content, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2527,14 +2221,7 @@ public virtual async Task UpdateClassificationsUniqueByAttributeAsync( /// [Protocol Method] Update classification on an entity identified by its type and unique attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2544,23 +2231,22 @@ public virtual async Task UpdateClassificationsUniqueByAttributeAsync( /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response UpdateClassificationsUniqueByAttribute(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual async Task UpdateClassificationsUniqueByAttributeAsync(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.UpdateClassificationsUniqueByAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.UpdateClassificationsUniqueByAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateClassificationsUniqueByAttributeRequest(typeName, content, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2569,83 +2255,69 @@ public virtual Response UpdateClassificationsUniqueByAttribute(string typeName, } } - /// Set classifications on entities in bulk. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task>> BatchSetClassificationsAsync(AtlasEntityHeaders body, CancellationToken cancellationToken = default) + /// Update classification on an entity identified by its type and unique attributes. + /// The name of the type. + /// An array of classification to be updated. + /// + /// The qualified name of the entity. (This is only an example. qualifiedName can + /// be changed to other unique attributes) + /// + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response UpdateClassificationsUniqueByAttribute(string typeName, IEnumerable body, string attribute = default, CancellationToken cancellationToken = default) { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchSetClassificationsAsync(content, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(item.GetString()); - } - value = array; - return Response.FromValue(value, response); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return UpdateClassificationsUniqueByAttribute(typeName, content, attribute, cancellationToken.ToRequestContext()); } - /// Set classifications on entities in bulk. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual Response> BatchSetClassifications(AtlasEntityHeaders body, CancellationToken cancellationToken = default) + /// Update classification on an entity identified by its type and unique attributes. + /// The name of the type. + /// An array of classification to be updated. + /// + /// The qualified name of the entity. (This is only an example. qualifiedName can + /// be changed to other unique attributes) + /// + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task UpdateClassificationsUniqueByAttributeAsync(string typeName, IEnumerable body, string attribute = default, CancellationToken cancellationToken = default) { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchSetClassifications(content, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(item.GetString()); - } - value = array; - return Response.FromValue(value, response); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await UpdateClassificationsUniqueByAttributeAsync(typeName, content, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Set classifications on entities in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchSetClassificationsAsync(RequestContent content, RequestContext context = null) + public virtual Response BatchSetClassifications(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.BatchSetClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchSetClassifications"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchSetClassificationsRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2658,33 +2330,25 @@ public virtual async Task BatchSetClassificationsAsync(RequestContent /// [Protocol Method] Set classifications on entities in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchSetClassifications(RequestContent content, RequestContext context = null) + public virtual async Task BatchSetClassificationsAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.BatchSetClassifications"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchSetClassifications"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchSetClassificationsRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2693,25 +2357,56 @@ public virtual Response BatchSetClassifications(RequestContent content, RequestC } } + /// Set classifications on entities in bulk. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response> BatchSetClassifications(AtlasEntityHeaders body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + Response result = BatchSetClassifications(body, cancellationToken.ToRequestContext()); + return Response.FromValue(result.Content.ToObjectFromJson>(), result); + } + + /// Set classifications on entities in bulk. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task>> BatchSetClassificationsAsync(AtlasEntityHeaders body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + Response result = await BatchSetClassificationsAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue(result.Content.ToObjectFromJson>(), result); + } + /// - /// Bulk API to retrieve list of entities identified by its unique attributes. + /// [Protocol Method] Bulk API to retrieve list of entities identified by its unique attributes. /// In /// addition to the typeName path parameter, attribute key-value pair(s) can be /// provided in the following /// format - /// + /// /// typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> - /// + /// /// NOTE: /// The attrName should be an unique attribute for the given entity-type. /// The REST /// request would look something like this - /// + /// /// GET /// /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 - /// + /// /// Note: /// at least one unique attribute must be provided. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// /// /// The name of the type. /// Whether to return minimal information for referred entities. @@ -2721,38 +2416,53 @@ public virtual Response BatchSetClassifications(RequestContent content, RequestC /// attrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an /// example. qualifiedName can be changed to other unique attributes) /// - /// The cancellation token to use. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> BatchGetByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual Response BatchGetByUniqueAttributes(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchGetByUniqueAttributes"); + scope.Start(); + try + { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchGetByUniqueAttributesAsync(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntitiesWithExtInfo.FromResponse(response), response); + using HttpMessage message = CreateBatchGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, context); + return Pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// Bulk API to retrieve list of entities identified by its unique attributes. + /// [Protocol Method] Bulk API to retrieve list of entities identified by its unique attributes. /// In /// addition to the typeName path parameter, attribute key-value pair(s) can be /// provided in the following /// format - /// + /// /// typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> - /// + /// /// NOTE: /// The attrName should be an unique attribute for the given entity-type. /// The REST /// request would look something like this - /// + /// /// GET /// /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 - /// + /// /// Note: /// at least one unique attribute must be provided. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// /// /// The name of the type. /// Whether to return minimal information for referred entities. @@ -2762,50 +2472,48 @@ public virtual async Task> BatchGetByUniqueAt /// attrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an /// example. qualifiedName can be changed to other unique attributes) /// - /// The cancellation token to use. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response BatchGetByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual async Task BatchGetByUniqueAttributesAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.BatchGetByUniqueAttributes"); + scope.Start(); + try + { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchGetByUniqueAttributes(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, context); - return Response.FromValue(AtlasEntitiesWithExtInfo.FromResponse(response), response); + using HttpMessage message = CreateBatchGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// [Protocol Method] Bulk API to retrieve list of entities identified by its unique attributes. + /// Bulk API to retrieve list of entities identified by its unique attributes. /// In /// addition to the typeName path parameter, attribute key-value pair(s) can be /// provided in the following /// format - /// + /// /// typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> - /// + /// /// NOTE: /// The attrName should be an unique attribute for the given entity-type. /// The REST /// request would look something like this - /// + /// /// GET /// /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 - /// + /// /// Note: /// at least one unique attribute must be provided. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// /// /// The name of the type. /// Whether to return minimal information for referred entities. @@ -2815,61 +2523,37 @@ public virtual Response BatchGetByUniqueAttributes(str /// attrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an /// example. qualifiedName can be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task BatchGetByUniqueAttributesAsync(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) + public virtual Response BatchGetByUniqueAttributes(string typeName, bool? minExtInfo = default, bool? ignoreRelationships = default, string attrNQualifiedName = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using var scope = ClientDiagnostics.CreateScope("Entity.BatchGetByUniqueAttributes"); - scope.Start(); - try - { - using HttpMessage message = CreateBatchGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + Response result = BatchGetByUniqueAttributes(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntitiesWithExtInfo)result, result); } /// - /// [Protocol Method] Bulk API to retrieve list of entities identified by its unique attributes. + /// Bulk API to retrieve list of entities identified by its unique attributes. /// In /// addition to the typeName path parameter, attribute key-value pair(s) can be /// provided in the following /// format - /// + /// /// typeName=\<typeName>&attr_1:\<attrName>=\<attrValue>&attr_2:\<attrName>=\<attrValue>&attr_3:\<attrName>=\<attrValue> - /// + /// /// NOTE: /// The attrName should be an unique attribute for the given entity-type. /// The REST /// request would look something like this - /// + /// /// GET /// /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 - /// + /// /// Note: /// at least one unique attribute must be provided. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// /// /// The name of the type. /// Whether to return minimal information for referred entities. @@ -2879,92 +2563,42 @@ public virtual async Task BatchGetByUniqueAttributesAsync(string typeN /// attrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an /// example. qualifiedName can be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response BatchGetByUniqueAttributes(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) + public virtual async Task> BatchGetByUniqueAttributesAsync(string typeName, bool? minExtInfo = default, bool? ignoreRelationships = default, string attrNQualifiedName = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using var scope = ClientDiagnostics.CreateScope("Entity.BatchGetByUniqueAttributes"); - scope.Start(); - try - { - using HttpMessage message = CreateBatchGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Get entity header given its GUID. - /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetHeaderAsync(string guid, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetHeaderAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntityHeader.FromResponse(response), response); - } - - /// Get entity header given its GUID. - /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetHeader(string guid, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetHeader(guid, context); - return Response.FromValue(AtlasEntityHeader.FromResponse(response), response); + Response result = await BatchGetByUniqueAttributesAsync(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntitiesWithExtInfo)result, result); } /// /// [Protocol Method] Get entity header given its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetHeaderAsync(string guid, RequestContext context) + public virtual Response GetHeader(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetHeader"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetHeader"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetHeaderRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2977,34 +2611,26 @@ public virtual async Task GetHeaderAsync(string guid, RequestContext c /// [Protocol Method] Get entity header given its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetHeader(string guid, RequestContext context) + public virtual async Task GetHeaderAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.GetHeader"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetHeader"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetHeaderRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3013,76 +2639,60 @@ public virtual Response GetHeader(string guid, RequestContext context) } } - /// Remove business metadata from an entity. + /// Get entity header given its GUID. /// The globally unique identifier of the entity. - /// Business metadata payload. - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task RemoveBusinessMetadataAsync(string guid, IDictionary> body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response GetHeader(string guid, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await RemoveBusinessMetadataAsync(guid, content, context).ConfigureAwait(false); - return response; + Response result = GetHeader(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntityHeader)result, result); } - /// Remove business metadata from an entity. + /// Get entity header given its GUID. /// The globally unique identifier of the entity. - /// Business metadata payload. - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response RemoveBusinessMetadata(string guid, IDictionary> body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetHeaderAsync(string guid, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = RemoveBusinessMetadata(guid, content, context); - return response; + Response result = await GetHeaderAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntityHeader)result, result); } /// /// [Protocol Method] Remove business metadata from an entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task RemoveBusinessMetadataAsync(string guid, RequestContent content, RequestContext context = null) + public virtual Response RemoveBusinessMetadata(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadata"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadata"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateRemoveBusinessMetadataRequest(guid, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3095,36 +2705,28 @@ public virtual async Task RemoveBusinessMetadataAsync(string guid, Req /// [Protocol Method] Remove business metadata from an entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response RemoveBusinessMetadata(string guid, RequestContent content, RequestContext context = null) + public virtual async Task RemoveBusinessMetadataAsync(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadata"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadata"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateRemoveBusinessMetadataRequest(guid, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3133,62 +2735,43 @@ public virtual Response RemoveBusinessMetadata(string guid, RequestContent conte } } - /// Add business metadata to an entity. + /// Remove business metadata from an entity. /// The globally unique identifier of the entity. - /// BusinessMetadata payload. - /// - /// Whether to overwrite the existing business metadata on the entity or not, - /// default is false. - /// - /// The cancellation token to use. + /// Business metadata payload. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, IDictionary> body, bool? overwrite = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response RemoveBusinessMetadata(string guid, IDictionary> body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddOrUpdateBusinessMetadataAsync(guid, content, overwrite, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return RemoveBusinessMetadata(guid, content, cancellationToken.ToRequestContext()); } - /// Add business metadata to an entity. + /// Remove business metadata from an entity. /// The globally unique identifier of the entity. - /// BusinessMetadata payload. - /// - /// Whether to overwrite the existing business metadata on the entity or not, - /// default is false. - /// - /// The cancellation token to use. + /// Business metadata payload. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response AddOrUpdateBusinessMetadata(string guid, IDictionary> body, bool? overwrite = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task RemoveBusinessMetadataAsync(string guid, IDictionary> body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddOrUpdateBusinessMetadata(guid, content, overwrite, context); - return response; + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return await RemoveBusinessMetadataAsync(guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Add business metadata to an entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3198,23 +2781,22 @@ public virtual Response AddOrUpdateBusinessMetadata(string guid, IDictionary - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, RequestContent content, bool? overwrite = null, RequestContext context = null) + public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent content, bool? overwrite = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadata"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadata"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddOrUpdateBusinessMetadataRequest(guid, content, overwrite, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3227,14 +2809,7 @@ public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid /// [Protocol Method] Add business metadata to an entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3244,23 +2819,22 @@ public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid /// Whether to overwrite the existing business metadata on the entity or not, /// default is false. /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent content, bool? overwrite = null, RequestContext context = null) + public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, RequestContent content, bool? overwrite = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadata"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadata"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateAddOrUpdateBusinessMetadataRequest(guid, content, overwrite, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3269,82 +2843,74 @@ public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent } } - /// Delete business metadata attributes from an entity. + /// Add business metadata to an entity. /// The globally unique identifier of the entity. - /// BusinessMetadata name. - /// Business metadata attribute payload. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task RemoveBusinessMetadataAttributesAsync(string guid, string businessMetadataName, IDictionary body, CancellationToken cancellationToken = default) + /// BusinessMetadata payload. + /// + /// Whether to overwrite the existing business metadata on the entity or not, + /// default is false. + /// + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response AddOrUpdateBusinessMetadata(string guid, IDictionary> body, bool? overwrite = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await RemoveBusinessMetadataAttributesAsync(guid, businessMetadataName, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return AddOrUpdateBusinessMetadata(guid, content, overwrite, cancellationToken.ToRequestContext()); } - /// Delete business metadata attributes from an entity. + /// Add business metadata to an entity. /// The globally unique identifier of the entity. - /// BusinessMetadata name. - /// Business metadata attribute payload. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response RemoveBusinessMetadataAttributes(string guid, string businessMetadataName, IDictionary body, CancellationToken cancellationToken = default) + /// BusinessMetadata payload. + /// + /// Whether to overwrite the existing business metadata on the entity or not, + /// default is false. + /// + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, IDictionary> body, bool? overwrite = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = RemoveBusinessMetadataAttributes(guid, businessMetadataName, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return await AddOrUpdateBusinessMetadataAsync(guid, content, overwrite, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Delete business metadata attributes from an entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier of the entity. /// BusinessMetadata name. + /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task RemoveBusinessMetadataAttributesAsync(string guid, string businessMetadataName, RequestContent content, RequestContext context = null) + public virtual Response RemoveBusinessMetadataAttributes(string businessMetadataName, string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadataAttributes"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadataAttributes"); scope.Start(); try { - using HttpMessage message = CreateRemoveBusinessMetadataAttributesRequest(guid, businessMetadataName, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateRemoveBusinessMetadataAttributesRequest(businessMetadataName, guid, content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3357,38 +2923,30 @@ public virtual async Task RemoveBusinessMetadataAttributesAsync(string /// [Protocol Method] Delete business metadata attributes from an entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier of the entity. /// BusinessMetadata name. + /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response RemoveBusinessMetadataAttributes(string guid, string businessMetadataName, RequestContent content, RequestContext context = null) + public virtual async Task RemoveBusinessMetadataAttributesAsync(string businessMetadataName, string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadataAttributes"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveBusinessMetadataAttributes"); scope.Start(); try { - using HttpMessage message = CreateRemoveBusinessMetadataAttributesRequest(guid, businessMetadataName, content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateRemoveBusinessMetadataAttributesRequest(businessMetadataName, guid, content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3397,82 +2955,70 @@ public virtual Response RemoveBusinessMetadataAttributes(string guid, string bus } } - /// Add or update business metadata attributes. - /// The globally unique identifier of the entity. + /// Delete business metadata attributes from an entity. /// BusinessMetadata name. + /// The globally unique identifier of the entity. /// Business metadata attribute payload. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string businessMetadataName, IDictionary body, CancellationToken cancellationToken = default) + /// The cancellation token that can be used to cancel the operation. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response RemoveBusinessMetadataAttributes(string businessMetadataName, string guid, IDictionary body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddOrUpdateBusinessMetadataAttributesAsync(guid, businessMetadataName, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return RemoveBusinessMetadataAttributes(businessMetadataName, guid, content, cancellationToken.ToRequestContext()); } - /// Add or update business metadata attributes. - /// The globally unique identifier of the entity. + /// Delete business metadata attributes from an entity. /// BusinessMetadata name. + /// The globally unique identifier of the entity. /// Business metadata attribute payload. - /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// - public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, string businessMetadataName, IDictionary body, CancellationToken cancellationToken = default) + /// The cancellation token that can be used to cancel the operation. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task RemoveBusinessMetadataAttributesAsync(string businessMetadataName, string guid, IDictionary body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddOrUpdateBusinessMetadataAttributes(guid, businessMetadataName, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return await RemoveBusinessMetadataAttributesAsync(businessMetadataName, guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Add or update business metadata attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier of the entity. /// BusinessMetadata name. + /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string businessMetadataName, RequestContent content, RequestContext context = null) + public virtual Response AddOrUpdateBusinessMetadataAttributes(string businessMetadataName, string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadataAttributes"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadataAttributes"); scope.Start(); try { - using HttpMessage message = CreateAddOrUpdateBusinessMetadataAttributesRequest(guid, businessMetadataName, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateAddOrUpdateBusinessMetadataAttributesRequest(businessMetadataName, guid, content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3485,38 +3031,30 @@ public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(s /// [Protocol Method] Add or update business metadata attributes. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier of the entity. /// BusinessMetadata name. + /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, string businessMetadataName, RequestContent content, RequestContext context = null) + public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string businessMetadataName, string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadataAttributes"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddOrUpdateBusinessMetadataAttributes"); scope.Start(); try { - using HttpMessage message = CreateAddOrUpdateBusinessMetadataAttributesRequest(guid, businessMetadataName, content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateAddOrUpdateBusinessMetadataAttributesRequest(businessMetadataName, guid, content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3525,53 +3063,61 @@ public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, strin } } - /// Get the sample Template for uploading/creating bulk BusinessMetaData. - /// The cancellation token to use. - /// - public virtual async Task> GetBusinessMetadataTemplateAsync(CancellationToken cancellationToken = default) + /// Add or update business metadata attributes. + /// BusinessMetadata name. + /// The globally unique identifier of the entity. + /// Business metadata attribute payload. + /// The cancellation token that can be used to cancel the operation. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response AddOrUpdateBusinessMetadataAttributes(string businessMetadataName, string guid, IDictionary body, CancellationToken cancellationToken = default) { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetBusinessMetadataTemplateAsync(context).ConfigureAwait(false); - return Response.FromValue(response.Content, response); + Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return AddOrUpdateBusinessMetadataAttributes(businessMetadataName, guid, content, cancellationToken.ToRequestContext()); } - /// Get the sample Template for uploading/creating bulk BusinessMetaData. - /// The cancellation token to use. - /// - public virtual Response GetBusinessMetadataTemplate(CancellationToken cancellationToken = default) + /// Add or update business metadata attributes. + /// BusinessMetadata name. + /// The globally unique identifier of the entity. + /// Business metadata attribute payload. + /// The cancellation token that can be used to cancel the operation. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string businessMetadataName, string guid, IDictionary body, CancellationToken cancellationToken = default) { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetBusinessMetadataTemplate(context); - return Response.FromValue(response.Content, response); + Argument.AssertNotNullOrEmpty(businessMetadataName, nameof(businessMetadataName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); + + using RequestContent content = BinaryContentHelper.FromDictionary(body); + return await AddOrUpdateBusinessMetadataAttributesAsync(businessMetadataName, guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Get the sample Template for uploading/creating bulk BusinessMetaData /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetBusinessMetadataTemplateAsync(RequestContext context) + public virtual Response GetBusinessMetadataTemplate(RequestContext context) { - using var scope = ClientDiagnostics.CreateScope("Entity.GetBusinessMetadataTemplate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetBusinessMetadataTemplate"); scope.Start(); try { using HttpMessage message = CreateGetBusinessMetadataTemplateRequest(context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3584,29 +3130,21 @@ public virtual async Task GetBusinessMetadataTemplateAsync(RequestCont /// [Protocol Method] Get the sample Template for uploading/creating bulk BusinessMetaData /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetBusinessMetadataTemplate(RequestContext context) + public virtual async Task GetBusinessMetadataTemplateAsync(RequestContext context) { - using var scope = ClientDiagnostics.CreateScope("Entity.GetBusinessMetadataTemplate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.GetBusinessMetadataTemplate"); scope.Start(); try { using HttpMessage message = CreateGetBusinessMetadataTemplateRequest(context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3615,68 +3153,48 @@ public virtual Response GetBusinessMetadataTemplate(RequestContext context) } } - /// Upload the file for creating Business Metadata in BULK. - /// Multipart body. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> ImportBusinessMetadataAsync(BusinessMetadataOptions body, CancellationToken cancellationToken = default) + /// Get the sample Template for uploading/creating bulk BusinessMetaData. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual Response GetBusinessMetadataTemplate(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); - - using MultipartFormDataRequestContent content = body.ToMultipartRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await ImportBusinessMetadataAsync(content, content.ContentType, context).ConfigureAwait(false); - return Response.FromValue(BulkImportResult.FromResponse(response), response); + Response result = GetBusinessMetadataTemplate(cancellationToken.ToRequestContext()); + return Response.FromValue(result.Content, result); } - /// Upload the file for creating Business Metadata in BULK. - /// Multipart body. - /// The cancellation token to use. - /// is null. - /// - public virtual Response ImportBusinessMetadata(BusinessMetadataOptions body, CancellationToken cancellationToken = default) + /// Get the sample Template for uploading/creating bulk BusinessMetaData. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual async Task> GetBusinessMetadataTemplateAsync(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); - - using MultipartFormDataRequestContent content = body.ToMultipartRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = ImportBusinessMetadata(content, content.ContentType, context); - return Response.FromValue(BulkImportResult.FromResponse(response), response); + Response result = await GetBusinessMetadataTemplateAsync(cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue(result.Content, result); } /// /// [Protocol Method] Upload the file for creating Business Metadata in BULK /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The content type for the operation. Always multipart/form-data for this operation. Allowed values: "multipart/form-data". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The contentType to use which has the multipart/form-data boundary. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task ImportBusinessMetadataAsync(RequestContent content, string contentType, RequestContext context = null) + public virtual Response ImportBusinessMetadata(RequestContent content, string contentType, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.ImportBusinessMetadata"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.ImportBusinessMetadata"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateImportBusinessMetadataRequest(content, contentType, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3689,34 +3207,26 @@ public virtual async Task ImportBusinessMetadataAsync(RequestContent c /// [Protocol Method] Upload the file for creating Business Metadata in BULK /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The content type for the operation. Always multipart/form-data for this operation. Allowed values: "multipart/form-data". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The contentType to use which has the multipart/form-data boundary. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response ImportBusinessMetadata(RequestContent content, string contentType, RequestContext context = null) + public virtual async Task ImportBusinessMetadataAsync(RequestContent content, string contentType, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.ImportBusinessMetadata"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.ImportBusinessMetadata"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateImportBusinessMetadataRequest(content, contentType, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3725,73 +3235,31 @@ public virtual Response ImportBusinessMetadata(RequestContent content, string co } } - /// Delete given labels to a given entity. - /// The globally unique identifier of the entity. - /// set of labels to be deleted. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task RemoveLabelsAsync(string guid, IEnumerable body = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await RemoveLabelsAsync(guid, content, context).ConfigureAwait(false); - return response; - } - - /// Delete given labels to a given entity. - /// The globally unique identifier of the entity. - /// set of labels to be deleted. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response RemoveLabels(string guid, IEnumerable body = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = RemoveLabels(guid, content, context); - return response; - } - /// /// [Protocol Method] Delete given labels to a given entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task RemoveLabelsAsync(string guid, RequestContent content, RequestContext context = null) + public virtual Response RemoveLabels(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveLabels"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveLabels"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateRemoveLabelsRequest(guid, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3804,35 +3272,27 @@ public virtual async Task RemoveLabelsAsync(string guid, RequestConten /// [Protocol Method] Delete given labels to a given entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response RemoveLabels(string guid, RequestContent content, RequestContext context = null) + public virtual async Task RemoveLabelsAsync(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveLabels"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveLabels"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateRemoveLabelsRequest(guid, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3841,73 +3301,61 @@ public virtual Response RemoveLabels(string guid, RequestContent content, Reques } } - /// Set labels to a given entity. + /// Delete given labels to a given entity. /// The globally unique identifier of the entity. - /// set of labels to be set to the entity. - /// The cancellation token to use. + /// set of labels to be deleted. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task SetLabelsAsync(string guid, IEnumerable body = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response RemoveLabels(string guid, IEnumerable body = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await SetLabelsAsync(guid, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return RemoveLabels(guid, content, cancellationToken.ToRequestContext()); } - /// Set labels to a given entity. + /// Delete given labels to a given entity. /// The globally unique identifier of the entity. - /// set of labels to be set to the entity. - /// The cancellation token to use. + /// set of labels to be deleted. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response SetLabels(string guid, IEnumerable body = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task RemoveLabelsAsync(string guid, IEnumerable body = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = SetLabels(guid, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await RemoveLabelsAsync(guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Set labels to a given entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task SetLabelsAsync(string guid, RequestContent content, RequestContext context = null) + public virtual Response SetLabels(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.SetLabels"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.SetLabels"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateSetLabelsRequest(guid, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3920,35 +3368,27 @@ public virtual async Task SetLabelsAsync(string guid, RequestContent c /// [Protocol Method] Set labels to a given entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response SetLabels(string guid, RequestContent content, RequestContext context = null) + public virtual async Task SetLabelsAsync(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.SetLabels"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.SetLabels"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateSetLabelsRequest(guid, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3957,73 +3397,61 @@ public virtual Response SetLabels(string guid, RequestContent content, RequestCo } } - /// Add given labels to a given entity. + /// Set labels to a given entity. /// The globally unique identifier of the entity. - /// set of labels to be added. - /// The cancellation token to use. + /// set of labels to be set to the entity. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AddLabelAsync(string guid, IEnumerable body = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response SetLabels(string guid, IEnumerable body = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddLabelAsync(guid, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return SetLabels(guid, content, cancellationToken.ToRequestContext()); } - /// Add given labels to a given entity. + /// Set labels to a given entity. /// The globally unique identifier of the entity. - /// set of labels to be added. - /// The cancellation token to use. + /// set of labels to be set to the entity. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response AddLabel(string guid, IEnumerable body = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task SetLabelsAsync(string guid, IEnumerable body = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddLabel(guid, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await SetLabelsAsync(guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Add given labels to a given entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddLabelAsync(string guid, RequestContent content, RequestContext context = null) + public virtual Response AddLabel(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddLabel"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddLabel"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateAddLabelRequest(guid, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -4036,35 +3464,27 @@ public virtual async Task AddLabelAsync(string guid, RequestContent co /// [Protocol Method] Add given labels to a given entity. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddLabel(string guid, RequestContent content, RequestContext context = null) + public virtual async Task AddLabelAsync(string guid, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddLabel"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddLabel"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateAddLabelRequest(guid, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -4073,82 +3493,42 @@ public virtual Response AddLabel(string guid, RequestContent content, RequestCon } } - /// - /// Delete given labels to a given entity identified by its type and unique - /// attribute. - /// - /// If labels is null/empty, no labels will be removed. - /// - /// If any labels - /// in labels set are non-existing labels, they will be ignored, only existing - /// labels will be removed. In addition to the typeName path parameter, attribute - /// key-value pair(s) can be provided in the following format: - /// attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique - /// across entities, eg. qualifiedName. The REST request would look something like - /// this: DELETE - /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. - /// - /// The name of the type. - /// set of labels to be deleted. - /// - /// The qualified name of the entity. (This is only an example. qualifiedName can - /// be changed to other unique attributes) - /// - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task RemoveLabelsByUniqueAttributeAsync(string typeName, IEnumerable body = null, string attribute = null, CancellationToken cancellationToken = default) + /// Add given labels to a given entity. + /// The globally unique identifier of the entity. + /// set of labels to be added. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response AddLabel(string guid, IEnumerable body = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await RemoveLabelsByUniqueAttributeAsync(typeName, content, attribute, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return AddLabel(guid, content, cancellationToken.ToRequestContext()); } - /// - /// Delete given labels to a given entity identified by its type and unique - /// attribute. - /// - /// If labels is null/empty, no labels will be removed. - /// - /// If any labels - /// in labels set are non-existing labels, they will be ignored, only existing - /// labels will be removed. In addition to the typeName path parameter, attribute - /// key-value pair(s) can be provided in the following format: - /// attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique - /// across entities, eg. qualifiedName. The REST request would look something like - /// this: DELETE - /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. - /// - /// The name of the type. - /// set of labels to be deleted. - /// - /// The qualified name of the entity. (This is only an example. qualifiedName can - /// be changed to other unique attributes) - /// - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response RemoveLabelsByUniqueAttribute(string typeName, IEnumerable body = null, string attribute = null, CancellationToken cancellationToken = default) + /// Add given labels to a given entity. + /// The globally unique identifier of the entity. + /// set of labels to be added. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task AddLabelAsync(string guid, IEnumerable body = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = RemoveLabelsByUniqueAttribute(typeName, content, attribute, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await AddLabelAsync(guid, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Delete given labels to a given entity identified by its type and unique /// attribute. - /// + /// /// If labels is null/empty, no labels will be removed. - /// + /// /// If any labels /// in labels set are non-existing labels, they will be ignored, only existing /// labels will be removed. In addition to the typeName path parameter, attribute @@ -4159,14 +3539,7 @@ public virtual Response RemoveLabelsByUniqueAttribute(string typeName, IEnumerab /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -4176,22 +3549,21 @@ public virtual Response RemoveLabelsByUniqueAttribute(string typeName, IEnumerab /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task RemoveLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual Response RemoveLabelsByUniqueAttribute(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveLabelsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveLabelsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateRemoveLabelsByUniqueAttributeRequest(typeName, content, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -4203,9 +3575,9 @@ public virtual async Task RemoveLabelsByUniqueAttributeAsync(string ty /// /// [Protocol Method] Delete given labels to a given entity identified by its type and unique /// attribute. - /// + /// /// If labels is null/empty, no labels will be removed. - /// + /// /// If any labels /// in labels set are non-existing labels, they will be ignored, only existing /// labels will be removed. In addition to the typeName path parameter, attribute @@ -4216,14 +3588,7 @@ public virtual async Task RemoveLabelsByUniqueAttributeAsync(string ty /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -4233,22 +3598,21 @@ public virtual async Task RemoveLabelsByUniqueAttributeAsync(string ty /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response RemoveLabelsByUniqueAttribute(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual async Task RemoveLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.RemoveLabelsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.RemoveLabelsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateRemoveLabelsByUniqueAttributeRequest(typeName, content, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -4258,105 +3622,90 @@ public virtual Response RemoveLabelsByUniqueAttribute(string typeName, RequestCo } /// - /// Set labels to a given entity identified by its type and unique attributes. - /// - /// If - /// labels is null/empty, existing labels will all be removed. - /// - /// In addition to the - /// typeName path parameter, attribute key-value pair(s) can be provided in the - /// following format: attr:<attrName>=<attrValue>. - /// - /// NOTE: The attrName and - /// attrValue should be unique across entities, eg. qualifiedName. - /// - /// The REST - /// request would look something like this: POST + /// Delete given labels to a given entity identified by its type and unique + /// attribute. + /// + /// If labels is null/empty, no labels will be removed. + /// + /// If any labels + /// in labels set are non-existing labels, they will be ignored, only existing + /// labels will be removed. In addition to the typeName path parameter, attribute + /// key-value pair(s) can be provided in the following format: + /// attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique + /// across entities, eg. qualifiedName. The REST request would look something like + /// this: DELETE /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. - /// set of labels to be set. + /// set of labels to be deleted. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, IEnumerable body = null, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response RemoveLabelsByUniqueAttribute(string typeName, IEnumerable body = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await SetLabelsByUniqueAttributeAsync(typeName, content, attribute, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return RemoveLabelsByUniqueAttribute(typeName, content, attribute, cancellationToken.ToRequestContext()); } /// - /// Set labels to a given entity identified by its type and unique attributes. - /// - /// If - /// labels is null/empty, existing labels will all be removed. - /// - /// In addition to the - /// typeName path parameter, attribute key-value pair(s) can be provided in the - /// following format: attr:<attrName>=<attrValue>. - /// - /// NOTE: The attrName and - /// attrValue should be unique across entities, eg. qualifiedName. - /// - /// The REST - /// request would look something like this: POST + /// Delete given labels to a given entity identified by its type and unique + /// attribute. + /// + /// If labels is null/empty, no labels will be removed. + /// + /// If any labels + /// in labels set are non-existing labels, they will be ignored, only existing + /// labels will be removed. In addition to the typeName path parameter, attribute + /// key-value pair(s) can be provided in the following format: + /// attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique + /// across entities, eg. qualifiedName. The REST request would look something like + /// this: DELETE /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. - /// set of labels to be set. + /// set of labels to be deleted. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response SetLabelsByUniqueAttribute(string typeName, IEnumerable body = null, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task RemoveLabelsByUniqueAttributeAsync(string typeName, IEnumerable body = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = SetLabelsByUniqueAttribute(typeName, content, attribute, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await RemoveLabelsByUniqueAttributeAsync(typeName, content, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Set labels to a given entity identified by its type and unique attributes. - /// + /// /// If /// labels is null/empty, existing labels will all be removed. - /// + /// /// In addition to the /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: attr:<attrName>=<attrValue>. - /// + /// /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: POST /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -4366,22 +3715,21 @@ public virtual Response SetLabelsByUniqueAttribute(string typeName, IEnumerable< /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.SetLabelsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.SetLabelsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateSetLabelsByUniqueAttributeRequest(typeName, content, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -4392,30 +3740,23 @@ public virtual async Task SetLabelsByUniqueAttributeAsync(string typeN /// /// [Protocol Method] Set labels to a given entity identified by its type and unique attributes. - /// + /// /// If /// labels is null/empty, existing labels will all be removed. - /// + /// /// In addition to the /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: attr:<attrName>=<attrValue>. - /// + /// /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: POST /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -4425,22 +3766,21 @@ public virtual async Task SetLabelsByUniqueAttributeAsync(string typeN /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.SetLabelsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.SetLabelsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateSetLabelsByUniqueAttributeRequest(typeName, content, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -4450,105 +3790,94 @@ public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestConte } /// - /// Add given labels to a given entity identified by its type and unique - /// attributes. - /// - /// If labels is null/empty, no labels will be added. - /// - /// In addition to - /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// Set labels to a given entity identified by its type and unique attributes. + /// + /// If + /// labels is null/empty, existing labels will all be removed. + /// + /// In addition to the + /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: attr:<attrName>=<attrValue>. - /// + /// /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST - /// request would look something like this: PUT + /// request would look something like this: POST /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. - /// set of labels to be added. + /// set of labels to be set. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, IEnumerable body = null, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response SetLabelsByUniqueAttribute(string typeName, IEnumerable body = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AddLabelsByUniqueAttributeAsync(typeName, content, attribute, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return SetLabelsByUniqueAttribute(typeName, content, attribute, cancellationToken.ToRequestContext()); } /// - /// Add given labels to a given entity identified by its type and unique - /// attributes. - /// - /// If labels is null/empty, no labels will be added. - /// - /// In addition to - /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// Set labels to a given entity identified by its type and unique attributes. + /// + /// If + /// labels is null/empty, existing labels will all be removed. + /// + /// In addition to the + /// typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: attr:<attrName>=<attrValue>. - /// + /// /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST - /// request would look something like this: PUT + /// request would look something like this: POST /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// The name of the type. - /// set of labels to be added. + /// set of labels to be set. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response AddLabelsByUniqueAttribute(string typeName, IEnumerable body = null, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, IEnumerable body = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using RequestContent content = body != null ? RequestContentHelper.FromEnumerable(body) : null; - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AddLabelsByUniqueAttribute(typeName, content, attribute, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await SetLabelsByUniqueAttributeAsync(typeName, content, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Add given labels to a given entity identified by its type and unique /// attributes. - /// + /// /// If labels is null/empty, no labels will be added. - /// + /// /// In addition to /// the typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: attr:<attrName>=<attrValue>. - /// + /// /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: PUT /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -4558,22 +3887,21 @@ public virtual Response AddLabelsByUniqueAttribute(string typeName, IEnumerable< /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual Response AddLabelsByUniqueAttribute(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddLabelsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddLabelsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateAddLabelsByUniqueAttributeRequest(typeName, content, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -4585,29 +3913,22 @@ public virtual async Task AddLabelsByUniqueAttributeAsync(string typeN /// /// [Protocol Method] Add given labels to a given entity identified by its type and unique /// attributes. - /// + /// /// If labels is null/empty, no labels will be added. - /// + /// /// In addition to /// the typeName path parameter, attribute key-value pair(s) can be provided in the /// following format: attr:<attrName>=<attrValue>. - /// + /// /// NOTE: The attrName and /// attrValue should be unique across entities, eg. qualifiedName. - /// + /// /// The REST /// request would look something like this: PUT /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -4617,22 +3938,21 @@ public virtual async Task AddLabelsByUniqueAttributeAsync(string typeN /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AddLabelsByUniqueAttribute(string typeName, RequestContent content, string attribute = null, RequestContext context = null) + public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - - using var scope = ClientDiagnostics.CreateScope("Entity.AddLabelsByUniqueAttribute"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.AddLabelsByUniqueAttribute"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using HttpMessage message = CreateAddLabelsByUniqueAttributeRequest(typeName, content, attribute, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -4641,73 +3961,102 @@ public virtual Response AddLabelsByUniqueAttribute(string typeName, RequestConte } } - /// Move existing entities to the target collection. - /// The collection where entities will be moved to. - /// Body parameter. - /// The cancellation token to use. - /// or is null. - /// - public virtual async Task> MoveEntitiesToCollectionAsync(string collectionId, MoveEntitiesConfig body, CancellationToken cancellationToken = default) + /// + /// Add given labels to a given entity identified by its type and unique + /// attributes. + /// + /// If labels is null/empty, no labels will be added. + /// + /// In addition to + /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// following format: attr:<attrName>=<attrValue>. + /// + /// NOTE: The attrName and + /// attrValue should be unique across entities, eg. qualifiedName. + /// + /// The REST + /// request would look something like this: PUT + /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. + /// + /// The name of the type. + /// set of labels to be added. + /// + /// The qualified name of the entity. (This is only an example. qualifiedName can + /// be changed to other unique attributes) + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response AddLabelsByUniqueAttribute(string typeName, IEnumerable body = default, string attribute = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(collectionId, nameof(collectionId)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await MoveEntitiesToCollectionAsync(collectionId, content, context).ConfigureAwait(false); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return AddLabelsByUniqueAttribute(typeName, content, attribute, cancellationToken.ToRequestContext()); } - /// Move existing entities to the target collection. - /// The collection where entities will be moved to. - /// Body parameter. - /// The cancellation token to use. - /// or is null. - /// - public virtual Response MoveEntitiesToCollection(string collectionId, MoveEntitiesConfig body, CancellationToken cancellationToken = default) + /// + /// Add given labels to a given entity identified by its type and unique + /// attributes. + /// + /// If labels is null/empty, no labels will be added. + /// + /// In addition to + /// the typeName path parameter, attribute key-value pair(s) can be provided in the + /// following format: attr:<attrName>=<attrValue>. + /// + /// NOTE: The attrName and + /// attrValue should be unique across entities, eg. qualifiedName. + /// + /// The REST + /// request would look something like this: PUT + /// /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. + /// + /// The name of the type. + /// set of labels to be added. + /// + /// The qualified name of the entity. (This is only an example. qualifiedName can + /// be changed to other unique attributes) + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, IEnumerable body = default, string attribute = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(collectionId, nameof(collectionId)); - Argument.AssertNotNull(body, nameof(body)); + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = MoveEntitiesToCollection(collectionId, content, context); - return Response.FromValue(EntityMutationResult.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await AddLabelsByUniqueAttributeAsync(typeName, content, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] Move existing entities to the target collection. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The collection where entities will be moved to. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task MoveEntitiesToCollectionAsync(string collectionId, RequestContent content, RequestContext context = null) + public virtual Response MoveEntitiesToCollection(string collectionId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(collectionId, nameof(collectionId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.MoveEntitiesToCollection"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.MoveEntitiesToCollection"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(collectionId, nameof(collectionId)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateMoveEntitiesToCollectionRequest(collectionId, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -4720,35 +4069,28 @@ public virtual async Task MoveEntitiesToCollectionAsync(string collect /// [Protocol Method] Move existing entities to the target collection. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The collection where entities will be moved to. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response MoveEntitiesToCollection(string collectionId, RequestContent content, RequestContext context = null) + public virtual async Task MoveEntitiesToCollectionAsync(string collectionId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(collectionId, nameof(collectionId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Entity.MoveEntitiesToCollection"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Entity.MoveEntitiesToCollection"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(collectionId, nameof(collectionId)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateMoveEntitiesToCollectionRequest(collectionId, content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -4757,699 +4099,36 @@ public virtual Response MoveEntitiesToCollection(string collectionId, RequestCon } } - internal HttpMessage CreateCreateOrUpdateRequest(RequestContent content, string businessAttributeUpdateBehavior, string collectionId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (businessAttributeUpdateBehavior != null) - { - uri.AppendQuery("businessAttributeUpdateBehavior", businessAttributeUpdateBehavior, true); - } - if (collectionId != null) - { - uri.AppendQuery("collectionId", collectionId, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetByIdsRequest(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/bulk", false); - if (guid != null && !(guid is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined)) - { - foreach (var param in guid) - { - uri.AppendQuery("guid", param, true); - } - } - uri.AppendQuery("api-version", _apiVersion, true); - if (minExtInfo != null) - { - uri.AppendQuery("minExtInfo", minExtInfo.Value, true); - } - if (ignoreRelationships != null) - { - uri.AppendQuery("ignoreRelationships", ignoreRelationships.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateBatchCreateOrUpdateRequest(RequestContent content, string collectionId, string businessAttributeUpdateBehavior, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/bulk", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (collectionId != null) - { - uri.AppendQuery("collectionId", collectionId, true); - } - if (businessAttributeUpdateBehavior != null) - { - uri.AppendQuery("businessAttributeUpdateBehavior", businessAttributeUpdateBehavior, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateBatchDeleteRequest(IEnumerable guid, RequestContext context) + /// Move existing entities to the target collection. + /// The collection where entities will be moved to. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response MoveEntitiesToCollection(string collectionId, MoveEntitiesConfig body, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/bulk", false); - if (guid != null && !(guid is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined)) - { - foreach (var param in guid) - { - uri.AppendQuery("guid", param, true); - } - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateAddClassificationRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/bulk/classification", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetEntityRequest(string guid, bool? minExtInfo, bool? ignoreRelationships, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - if (minExtInfo != null) - { - uri.AppendQuery("minExtInfo", minExtInfo.Value, true); - } - if (ignoreRelationships != null) - { - uri.AppendQuery("ignoreRelationships", ignoreRelationships.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateUpdateAttributeByIdRequest(string guid, string name, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendQuery("name", name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetClassificationRequest(string guid, string classificationName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/classification/", false); - uri.AppendPath(classificationName, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateRemoveClassificationRequest(string guid, string classificationName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/classification/", false); - uri.AppendPath(classificationName, true); - request.Uri = uri; - return message; - } - - internal HttpMessage CreateGetClassificationsRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/classifications", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateAddClassificationsRequest(string guid, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/classifications", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateUpdateClassificationsRequest(string guid, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/classifications", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetByUniqueAttributeRequest(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - if (minExtInfo != null) - { - uri.AppendQuery("minExtInfo", minExtInfo.Value, true); - } - if (ignoreRelationships != null) - { - uri.AppendQuery("ignoreRelationships", ignoreRelationships.Value, true); - } - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateUpdateByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteByUniqueAttributeRequest(string typeName, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateRemoveClassificationByUniqueAttributeRequest(string typeName, string classificationName, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendPath("/classification/", false); - uri.AppendPath(classificationName, true); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - return message; - } + Argument.AssertNotNullOrEmpty(collectionId, nameof(collectionId)); + Argument.AssertNotNull(body, nameof(body)); - internal HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendPath("/classifications", false); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; + Response result = MoveEntitiesToCollection(collectionId, body, cancellationToken.ToRequestContext()); + return Response.FromValue((EntityMutationResult)result, result); } - internal HttpMessage CreateUpdateClassificationsUniqueByAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) + /// Move existing entities to the target collection. + /// The collection where entities will be moved to. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> MoveEntitiesToCollectionAsync(string collectionId, MoveEntitiesConfig body, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendPath("/classifications", false); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateBatchSetClassificationsRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/bulk/setClassifications", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateBatchGetByUniqueAttributesRequest(string typeName, bool? minExtInfo, bool? ignoreRelationships, string attrNQualifiedName, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/bulk/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - if (minExtInfo != null) - { - uri.AppendQuery("minExtInfo", minExtInfo.Value, true); - } - if (ignoreRelationships != null) - { - uri.AppendQuery("ignoreRelationships", ignoreRelationships.Value, true); - } - if (attrNQualifiedName != null) - { - uri.AppendQuery("attr_N:qualifiedName", attrNQualifiedName, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetHeaderRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/header", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateRemoveBusinessMetadataRequest(string guid, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/businessmetadata", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateAddOrUpdateBusinessMetadataRequest(string guid, RequestContent content, bool? overwrite, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/businessmetadata", false); - if (overwrite != null) - { - uri.AppendQuery("isOverwrite", overwrite.Value, true); - } - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateRemoveBusinessMetadataAttributesRequest(string guid, string businessMetadataName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/businessmetadata/", false); - uri.AppendPath(businessMetadataName, true); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateAddOrUpdateBusinessMetadataAttributesRequest(string guid, string businessMetadataName, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/businessmetadata/", false); - uri.AppendPath(businessMetadataName, true); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetBusinessMetadataTemplateRequest(RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/businessmetadata/import/template", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/octet-stream"); - return message; - } - - internal HttpMessage CreateImportBusinessMetadataRequest(RequestContent content, string contentType, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/businessmetadata/import", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", contentType); - request.Content = content; - return message; - } - - internal HttpMessage CreateRemoveLabelsRequest(string guid, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/labels", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateSetLabelsRequest(string guid, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/labels", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateAddLabelRequest(string guid, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/guid/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/labels", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateRemoveLabelsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendPath("/labels", false); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateSetLabelsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendPath("/labels", false); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateAddLabelsByUniqueAttributeRequest(string typeName, RequestContent content, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendPath("/labels", false); - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateMoveEntitiesToCollectionRequest(string collectionId, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/entity/moveTo", false); - uri.AppendQuery("collectionId", collectionId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } + Argument.AssertNotNullOrEmpty(collectionId, nameof(collectionId)); + Argument.AssertNotNull(body, nameof(body)); - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) - { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } - - return new RequestContext() { CancellationToken = cancellationToken }; + Response result = await MoveEntitiesToCollectionAsync(collectionId, body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((EntityMutationResult)result, result); } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - private static ResponseClassifier _responseClassifier204; - private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 }); } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.Serialization.cs index ac522c2ea01f..0a803851e71f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class EntityMutationResult : IUtf8JsonSerializable, IJsonModel + /// The mutation response result of entity. + public partial class EntityMutationResult : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(EntityMutationResult)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(GuidAssignments)) { writer.WritePropertyName("guidAssignments"u8); @@ -41,6 +41,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in GuidAssignments) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -58,7 +63,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } writer.WriteStartArray(); - foreach (var item0 in item.Value) + foreach (AtlasEntityHeader item0 in item.Value) { writer.WriteObjectValue(item0, options); } @@ -70,21 +75,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("partialUpdatedEntities"u8); writer.WriteStartArray(); - foreach (var item in PartialUpdatedEntities) + foreach (AtlasEntityHeader item in PartialUpdatedEntities) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -93,81 +98,92 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - EntityMutationResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + EntityMutationResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual EntityMutationResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(EntityMutationResult)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeEntityMutationResult(document.RootElement, options); } - internal static EntityMutationResult DeserializeEntityMutationResult(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static EntityMutationResult DeserializeEntityMutationResult(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyDictionary guidAssignments = default; - IReadOnlyDictionary> mutatedEntities = default; - IReadOnlyList partialUpdatedEntities = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary guidAssignments = default; + IDictionary> mutatedEntities = default; + IList partialUpdatedEntities = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guidAssignments"u8)) + if (prop.NameEquals("guidAssignments"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } guidAssignments = dictionary; continue; } - if (property.NameEquals("mutatedEntities"u8)) + if (prop.NameEquals("mutatedEntities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) + foreach (var item in prop0.Value.EnumerateArray()) { array.Add(AtlasEntityHeader.DeserializeAtlasEntityHeader(item, options)); } - dictionary.Add(property0.Name, array); + dictionary.Add(prop0.Name, array); } } mutatedEntities = dictionary; continue; } - if (property.NameEquals("partialUpdatedEntities"u8)) + if (prop.NameEquals("partialUpdatedEntities"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasEntityHeader.DeserializeAtlasEntityHeader(item, options)); } @@ -176,17 +192,19 @@ internal static EntityMutationResult DeserializeEntityMutationResult(JsonElement } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new EntityMutationResult(guidAssignments ?? new ChangeTrackingDictionary(), mutatedEntities ?? new ChangeTrackingDictionary>(), partialUpdatedEntities ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new EntityMutationResult(guidAssignments ?? new ChangeTrackingDictionary(), mutatedEntities ?? new ChangeTrackingDictionary>(), partialUpdatedEntities ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -196,15 +214,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption } } - EntityMutationResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + EntityMutationResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual EntityMutationResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeEntityMutationResult(document.RootElement, options); } default: @@ -212,22 +235,14 @@ EntityMutationResult IPersistableModel.Create(BinaryData d } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static EntityMutationResult FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeEntityMutationResult(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator EntityMutationResult(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeEntityMutationResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.cs index 6dae80219cdd..2e3625f2764a 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The mutation response result of entity. public partial class EntityMutationResult { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal EntityMutationResult() @@ -57,20 +28,22 @@ internal EntityMutationResult() /// A map of GUID assignments with entities. /// The entity headers of mutated entities. /// An array of entity headers that partially updated. - /// Keeps track of any properties unknown to the library. - internal EntityMutationResult(IReadOnlyDictionary guidAssignments, IReadOnlyDictionary> mutatedEntities, IReadOnlyList partialUpdatedEntities, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal EntityMutationResult(IDictionary guidAssignments, IDictionary> mutatedEntities, IList partialUpdatedEntities, IDictionary additionalBinaryDataProperties) { GuidAssignments = guidAssignments; MutatedEntities = mutatedEntities; PartialUpdatedEntities = partialUpdatedEntities; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// A map of GUID assignments with entities. - public IReadOnlyDictionary GuidAssignments { get; } + public IDictionary GuidAssignments { get; } + /// The entity headers of mutated entities. - public IReadOnlyDictionary> MutatedEntities { get; } + public IDictionary> MutatedEntities { get; } + /// An array of entity headers that partially updated. - public IReadOnlyList PartialUpdatedEntities { get; } + public IList PartialUpdatedEntities { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityStatus.cs index fd4f04a65d39..8fda9b9d4829 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityStatus.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityStatus.cs @@ -14,38 +14,57 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct EntityStatus : IEquatable { private readonly string _value; + /// The status is active. + private const string ActiveValue = "ACTIVE"; + /// The status is deleted. + private const string DeletedValue = "DELETED"; /// Initializes a new instance of . + /// The value. /// is null. public EntityStatus(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string ActiveValue = "ACTIVE"; - private const string DeletedValue = "DELETED"; + _value = value; + } /// The status is active. public static EntityStatus Active { get; } = new EntityStatus(ActiveValue); + /// The status is deleted. public static EntityStatus Deleted { get; } = new EntityStatus(DeletedValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(EntityStatus left, EntityStatus right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(EntityStatus left, EntityStatus right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator EntityStatus(string value) => new EntityStatus(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator EntityStatus?(string value) => value == null ? null : new EntityStatus(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is EntityStatus other && Equals(other); - /// + + /// public bool Equals(EntityStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.RestClient.cs new file mode 100644 index 000000000000..5396d9b21a76 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.RestClient.cs @@ -0,0 +1,663 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class Glossary + { + private static ResponseClassifier _pipelineMessageClassifier200; + private static ResponseClassifier _pipelineMessageClassifier204; + + private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 }); + + private static ResponseClassifier PipelineMessageClassifier204 => _pipelineMessageClassifier204 = new StatusCodeClassifier(stackalloc ushort[] { 204 }); + + internal HttpMessage CreateBatchGetRequest(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + if (ignoreTermsAndCategories != null) + { + uri.AppendQuery("ignoreTermsAndCategories", TypeFormatters.ConvertToString(ignoreTermsAndCategories), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateCreateCategoriesRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/categories", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateCreateCategoryRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetCategoryRequest(string categoryId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category/", false); + uri.AppendPath(categoryId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateCategoryRequest(string categoryId, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category/", false); + uri.AppendPath(categoryId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteCategoryRequest(string categoryId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category/", false); + uri.AppendPath(categoryId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreatePartialUpdateCategoryRequest(string categoryId, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category/", false); + uri.AppendPath(categoryId, true); + uri.AppendPath("/partial", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetRelatedCategoriesRequest(string categoryId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category/", false); + uri.AppendPath(categoryId, true); + uri.AppendPath("/related", false); + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetCategoryTermsRequest(string categoryId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/category/", false); + uri.AppendPath(categoryId, true); + uri.AppendPath("/terms", false); + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateCreateTermRequest(RequestContent content, bool? includeTermHierarchy, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/term", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", TypeFormatters.ConvertToString(includeTermHierarchy), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetTermRequest(string termId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/term/", false); + uri.AppendPath(termId, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateTermRequest(string termId, RequestContent content, bool? includeTermHierarchy, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/term/", false); + uri.AppendPath(termId, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", TypeFormatters.ConvertToString(includeTermHierarchy), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteTermRequest(string termId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/term/", false); + uri.AppendPath(termId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreatePartialUpdateTermRequest(string termId, RequestContent content, bool? includeTermHierarchy, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/term/", false); + uri.AppendPath(termId, true); + uri.AppendPath("/partial", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", TypeFormatters.ConvertToString(includeTermHierarchy), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateCreateTermsRequest(RequestContent content, bool? includeTermHierarchy, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/terms", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", TypeFormatters.ConvertToString(includeTermHierarchy), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/terms/", false); + uri.AppendPath(termId, true); + uri.AppendPath("/assignedEntities", false); + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateAssignTermToEntitiesRequest(string termId, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/terms/", false); + uri.AppendPath(termId, true); + uri.AppendPath("/assignedEntities", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteTermAssignmentFromEntitiesRequest(string termId, RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/terms/", false); + uri.AppendPath(termId, true); + uri.AppendPath("/assignedEntities", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetRelatedTermsRequest(string termId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/terms/", false); + uri.AppendPath(termId, true); + uri.AppendPath("/related", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetRequest(string glossaryId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateRequest(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (ignoreTermsAndCategories != null) + { + uri.AppendQuery("ignoreTermsAndCategories", TypeFormatters.ConvertToString(ignoreTermsAndCategories), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateDeleteRequest(string glossaryId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetCategoriesRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + uri.AppendPath("/categories", false); + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetCategoriesHeadersRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + uri.AppendPath("/categories/headers", false); + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetDetailedRequest(string glossaryId, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + uri.AppendPath("/detailed", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreatePartialUpdateRequest(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + uri.AppendPath("/partial", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (ignoreTermsAndCategories != null) + { + uri.AppendQuery("ignoreTermsAndCategories", TypeFormatters.ConvertToString(ignoreTermsAndCategories), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetTermsRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + uri.AppendPath("/terms", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetTermHeadersRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/glossary/", false); + uri.AppendPath(glossaryId, true); + uri.AppendPath("/terms/headers", false); + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (sort != null) + { + uri.AppendQuery("sort", sort, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs index f55d04195040..66c0f93c4227 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Glossary.cs @@ -10,72 +10,108 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Analytics.Purview.DataMap { - // Data plane generated sub-client. /// The Glossary sub-client. public partial class Glossary { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of Glossary for mocking. protected Glossary() { } /// Initializes a new instance of Glossary. - /// The handler for diagnostic messaging in the client. + /// The ClientDiagnostics is used to provide tracing support for the client library. /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. - /// The to use. - /// The API version to use for this operation. - internal Glossary(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) + /// Service endpoint. + /// + internal Glossary(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) { ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; _endpoint = endpoint; + Pipeline = pipeline; _apiVersion = apiVersion; } + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + /// - /// Get all glossaries. Recommend using limit/offset to get pagination result. + /// [Protocol Method] 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'. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// /// /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. /// Whether ignore terms and categories. - /// The cancellation token to use. - /// - public virtual async Task>> BatchGetAsync(int? limit = null, int? offset = null, string sort = null, bool? ignoreTermsAndCategories = null, CancellationToken cancellationToken = default) + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual Response BatchGet(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchGetAsync(limit, offset, sort, ignoreTermsAndCategories, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.BatchGet"); + scope.Start(); + try + { + using HttpMessage message = CreateBatchGetRequest(limit, offset, sort, ignoreTermsAndCategories, context); + return Pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] 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'. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// Whether ignore terms and categories. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual async Task BatchGetAsync(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) + { + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.BatchGet"); + scope.Start(); + try + { + using HttpMessage message = CreateBatchGetRequest(limit, offset, sort, ignoreTermsAndCategories, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) { - array.Add(AtlasGlossary.DeserializeAtlasGlossary(item)); + scope.Failed(e); + throw; } - value = array; - return Response.FromValue(value, response); } /// @@ -88,57 +124,69 @@ public virtual async Task>> BatchGetAsync( /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. /// Whether ignore terms and categories. - /// The cancellation token to use. - /// - public virtual Response> BatchGet(int? limit = null, int? offset = null, string sort = null, bool? ignoreTermsAndCategories = null, CancellationToken cancellationToken = default) + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual Response> BatchGet(int? limit = default, int? offset = default, string sort = default, bool? ignoreTermsAndCategories = default, CancellationToken cancellationToken = default) { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchGet(limit, offset, sort, ignoreTermsAndCategories, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + Response result = BatchGet(limit, offset, sort, ignoreTermsAndCategories, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasGlossary.DeserializeAtlasGlossary(item)); + value.Add(AtlasGlossary.DeserializeAtlasGlossary(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// [Protocol Method] Get all glossaries. Recommend using limit/offset to get pagination result. + /// 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'. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// /// /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. /// Whether ignore terms and categories. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual async Task>> BatchGetAsync(int? limit = default, int? offset = default, string sort = default, bool? ignoreTermsAndCategories = default, CancellationToken cancellationToken = default) + { + Response result = await BatchGetAsync(limit, offset, sort, ignoreTermsAndCategories, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) + { + value.Add(AtlasGlossary.DeserializeAtlasGlossary(item, ModelSerializationExtensions.WireOptions)); + } + return Response.FromValue((IReadOnlyList)value, result); + } + + /// + /// [Protocol Method] Create a glossary. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchGetAsync(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) + public virtual Response Create(RequestContent content, RequestContext context = null) { - using var scope = ClientDiagnostics.CreateScope("Glossary.BatchGet"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Create"); scope.Start(); try { - using HttpMessage message = CreateBatchGetRequest(limit, offset, sort, ignoreTermsAndCategories, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateRequest(content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -148,39 +196,28 @@ public virtual async Task BatchGetAsync(int? limit, int? offset, strin } /// - /// [Protocol Method] 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'. + /// [Protocol Method] Create a glossary. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// Whether ignore terms and categories. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchGet(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) + public virtual async Task CreateAsync(RequestContent content, RequestContext context = null) { - using var scope = ClientDiagnostics.CreateScope("Glossary.BatchGet"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Create"); scope.Start(); try { - using HttpMessage message = CreateBatchGetRequest(limit, offset, sort, ignoreTermsAndCategories, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateRequest(content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -191,65 +228,53 @@ public virtual Response BatchGet(int? limit, int? offset, string sort, bool? ign /// Create a glossary. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> CreateAsync(AtlasGlossary body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Create(AtlasGlossary body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = Create(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossary)result, result); } /// Create a glossary. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response Create(AtlasGlossary body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> CreateAsync(AtlasGlossary body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Create(content, context); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = await CreateAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossary)result, result); } /// - /// [Protocol Method] Create a glossary. + /// [Protocol Method] Create glossary category in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateAsync(RequestContent content, RequestContext context = null) + public virtual Response CreateCategories(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.Create"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateCategories"); scope.Start(); try { - using HttpMessage message = CreateCreateRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateCategoriesRequest(content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -259,36 +284,28 @@ public virtual async Task CreateAsync(RequestContent content, RequestC } /// - /// [Protocol Method] Create a glossary. + /// [Protocol Method] Create glossary category in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Create(RequestContent content, RequestContext context = null) + public virtual async Task CreateCategoriesAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.Create"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateCategories"); scope.Start(); try { - using HttpMessage message = CreateCreateRequest(content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateCategoriesRequest(content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -299,81 +316,69 @@ public virtual Response Create(RequestContent content, RequestContext context = /// Create glossary category in bulk. /// An array of glossary category definitions to be created. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task>> CreateCategoriesAsync(IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> CreateCategories(IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateCategoriesAsync(content, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + Response result = CreateCategories(content, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item)); + value.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// Create glossary category in bulk. /// An array of glossary category definitions to be created. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response> CreateCategories(IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> CreateCategoriesAsync(IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = CreateCategories(content, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + Response result = await CreateCategoriesAsync(content, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item)); + value.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// [Protocol Method] Create glossary category in bulk. + /// [Protocol Method] Create a glossary category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateCategoriesAsync(RequestContent content, RequestContext context = null) + public virtual Response CreateCategory(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateCategories"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateCategory"); scope.Start(); try { - using HttpMessage message = CreateCreateCategoriesRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateCategoryRequest(content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -383,36 +388,28 @@ public virtual async Task CreateCategoriesAsync(RequestContent content } /// - /// [Protocol Method] Create glossary category in bulk. + /// [Protocol Method] Create a glossary category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response CreateCategories(RequestContent content, RequestContext context = null) + public virtual async Task CreateCategoryAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateCategories"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateCategory"); scope.Start(); try { - using HttpMessage message = CreateCreateCategoriesRequest(content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateCategoryRequest(content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -423,65 +420,54 @@ public virtual Response CreateCategories(RequestContent content, RequestContext /// Create a glossary category. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> CreateCategoryAsync(AtlasGlossaryCategory body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response CreateCategory(AtlasGlossaryCategory body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateCategoryAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + Response result = CreateCategory(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// Create a glossary category. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response CreateCategory(AtlasGlossaryCategory body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> CreateCategoryAsync(AtlasGlossaryCategory body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = CreateCategory(content, context); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + Response result = await CreateCategoryAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// - /// [Protocol Method] Create a glossary category. + /// [Protocol Method] Get specific glossary category by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The globally unique identifier of the category. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateCategoryAsync(RequestContent content, RequestContext context = null) + public virtual Response GetCategory(string categoryId, RequestContext context) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategory"); scope.Start(); try { - using HttpMessage message = CreateCreateCategoryRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateGetCategoryRequest(categoryId, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -491,36 +477,29 @@ public virtual async Task CreateCategoryAsync(RequestContent content, } /// - /// [Protocol Method] Create a glossary category. + /// [Protocol Method] Get specific glossary category by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The globally unique identifier of the category. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response CreateCategory(RequestContent content, RequestContext context = null) + public virtual async Task GetCategoryAsync(string categoryId, RequestContext context) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategory"); scope.Start(); try { - using HttpMessage message = CreateCreateCategoryRequest(content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateGetCategoryRequest(categoryId, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -531,66 +510,58 @@ public virtual Response CreateCategory(RequestContent content, RequestContext co /// Get specific glossary category by its GUID. /// The globally unique identifier of the category. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetCategoryAsync(string categoryId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response GetCategory(string categoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetCategoryAsync(categoryId, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + Response result = GetCategory(categoryId, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// Get specific glossary category by its GUID. /// The globally unique identifier of the category. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetCategory(string categoryId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetCategoryAsync(string categoryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetCategory(categoryId, context); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + Response result = await GetCategoryAsync(categoryId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// - /// [Protocol Method] Get specific glossary category by its GUID. + /// [Protocol Method] Update the given glossary category by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetCategoryAsync(string categoryId, RequestContext context) + public virtual Response UpdateCategory(string categoryId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.UpdateCategory"); scope.Start(); try { - using HttpMessage message = CreateGetCategoryRequest(categoryId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateUpdateCategoryRequest(categoryId, content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -600,37 +571,31 @@ public virtual async Task GetCategoryAsync(string categoryId, RequestC } /// - /// [Protocol Method] Get specific glossary category by its GUID. + /// [Protocol Method] Update the given glossary category by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetCategory(string categoryId, RequestContext context) + public virtual async Task UpdateCategoryAsync(string categoryId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.UpdateCategory"); scope.Start(); try { - using HttpMessage message = CreateGetCategoryRequest(categoryId, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateUpdateCategoryRequest(categoryId, content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -642,73 +607,59 @@ public virtual Response GetCategory(string categoryId, RequestContext context) /// Update the given glossary category by its GUID. /// The globally unique identifier of the category. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> UpdateCategoryAsync(string categoryId, AtlasGlossaryCategory body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response UpdateCategory(string categoryId, AtlasGlossaryCategory body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateCategoryAsync(categoryId, content, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + Response result = UpdateCategory(categoryId, body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// Update the given glossary category by its GUID. /// The globally unique identifier of the category. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response UpdateCategory(string categoryId, AtlasGlossaryCategory body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> UpdateCategoryAsync(string categoryId, AtlasGlossaryCategory body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = UpdateCategory(categoryId, content, context); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + Response result = await UpdateCategoryAsync(categoryId, body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// - /// [Protocol Method] Update the given glossary category by its GUID. + /// [Protocol Method] Delete a glossary category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateCategoryAsync(string categoryId, RequestContent content, RequestContext context = null) + public virtual Response DeleteCategory(string categoryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.UpdateCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.DeleteCategory"); scope.Start(); try { - using HttpMessage message = CreateUpdateCategoryRequest(categoryId, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateDeleteCategoryRequest(categoryId, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -718,39 +669,29 @@ public virtual async Task UpdateCategoryAsync(string categoryId, Reque } /// - /// [Protocol Method] Update the given glossary category by its GUID. + /// [Protocol Method] Delete a glossary category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response UpdateCategory(string categoryId, RequestContent content, RequestContext context = null) + public virtual async Task DeleteCategoryAsync(string categoryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.UpdateCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.DeleteCategory"); scope.Start(); try { - using HttpMessage message = CreateUpdateCategoryRequest(categoryId, content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateDeleteCategoryRequest(categoryId, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -759,34 +700,59 @@ public virtual Response UpdateCategory(string categoryId, RequestContent content } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// Delete a glossary category. + /// The globally unique identifier of the category. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response DeleteCategory(string categoryId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + return DeleteCategory(categoryId, cancellationToken.ToRequestContext()); + } + + /// Delete a glossary category. + /// The globally unique identifier of the category. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task DeleteCategoryAsync(string categoryId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + return await DeleteCategoryAsync(categoryId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + } + /// - /// [Protocol Method] Delete a glossary category. + /// [Protocol Method] Update the glossary category partially. So far we only supports partial + /// updating shortDescription and longDescription for category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteCategoryAsync(string categoryId, RequestContext context = null) + public virtual Response PartialUpdateCategory(string categoryId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.DeleteCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateCategory"); scope.Start(); try { - using HttpMessage message = CreateDeleteCategoryRequest(categoryId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreatePartialUpdateCategoryRequest(categoryId, content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -795,34 +761,33 @@ public virtual async Task DeleteCategoryAsync(string categoryId, Reque } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// - /// [Protocol Method] Delete a glossary category. + /// [Protocol Method] Update the glossary category partially. So far we only supports partial + /// updating shortDescription and longDescription for category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response DeleteCategory(string categoryId, RequestContext context = null) + public virtual async Task PartialUpdateCategoryAsync(string categoryId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.DeleteCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateCategory"); scope.Start(); try { - using HttpMessage message = CreateDeleteCategoryRequest(categoryId, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreatePartialUpdateCategoryRequest(categoryId, content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -840,19 +805,18 @@ public virtual Response DeleteCategory(string categoryId, RequestContext context /// A map containing keys as attribute names and values as corresponding attribute /// values for partial update. /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> PartialUpdateCategoryAsync(string categoryId, IDictionary body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response PartialUpdateCategory(string categoryId, IDictionary body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await PartialUpdateCategoryAsync(categoryId, content, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromDictionary(body); + Response result = PartialUpdateCategory(categoryId, content, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// @@ -864,56 +828,48 @@ public virtual async Task> PartialUpdateCategory /// A map containing keys as attribute names and values as corresponding attribute /// values for partial update. /// - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response PartialUpdateCategory(string categoryId, IDictionary body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> PartialUpdateCategoryAsync(string categoryId, IDictionary body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = PartialUpdateCategory(categoryId, content, context); - return Response.FromValue(AtlasGlossaryCategory.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromDictionary(body); + Response result = await PartialUpdateCategoryAsync(categoryId, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryCategory)result, result); } /// - /// [Protocol Method] Update the glossary category partially. So far we only supports partial - /// updating shortDescription and longDescription for category. + /// [Protocol Method] Get all related categories (parent and children). Limit, offset, and sort + /// parameters are currently not being enabled and won't work even they are passed. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task PartialUpdateCategoryAsync(string categoryId, RequestContent content, RequestContext context = null) + public virtual Response GetRelatedCategories(string categoryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedCategories"); scope.Start(); try { - using HttpMessage message = CreatePartialUpdateCategoryRequest(categoryId, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateGetRelatedCategoriesRequest(categoryId, limit, offset, sort, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -923,40 +879,33 @@ public virtual async Task PartialUpdateCategoryAsync(string categoryId } /// - /// [Protocol Method] Update the glossary category partially. So far we only supports partial - /// updating shortDescription and longDescription for category. + /// [Protocol Method] Get all related categories (parent and children). Limit, offset, and sort + /// parameters are currently not being enabled and won't work even they are passed. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the category. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response PartialUpdateCategory(string categoryId, RequestContent content, RequestContext context = null) + public virtual async Task GetRelatedCategoriesAsync(string categoryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateCategory"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedCategories"); scope.Start(); try { - using HttpMessage message = CreatePartialUpdateCategoryRequest(categoryId, content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateGetRelatedCategoriesRequest(categoryId, limit, offset, sort, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -973,37 +922,16 @@ public virtual Response PartialUpdateCategory(string categoryId, RequestContent /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>>> GetRelatedCategoriesAsync(string categoryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response>> GetRelatedCategories(string categoryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetRelatedCategoriesAsync(categoryId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyDictionary> value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - Dictionary> dictionary = new Dictionary>(); - foreach (var property in document.RootElement.EnumerateObject()) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - dictionary.Add(property.Name, null); - } - else - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item)); - } - dictionary.Add(property.Name, array); - } - } - value = dictionary; - return Response.FromValue(value, response); + Response result = GetRelatedCategories(categoryId, limit, offset, sort, cancellationToken.ToRequestContext()); + return Response.FromValue(result.Content.ToObjectFromJson>>(), result); } /// @@ -1014,52 +942,23 @@ public virtual async Task The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response>> GetRelatedCategories(string categoryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>>> GetRelatedCategoriesAsync(string categoryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetRelatedCategories(categoryId, limit, offset, sort, context); - IReadOnlyDictionary> value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - Dictionary> dictionary = new Dictionary>(); - foreach (var property in document.RootElement.EnumerateObject()) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - dictionary.Add(property.Name, null); - } - else - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item)); - } - dictionary.Add(property.Name, array); - } - } - value = dictionary; - return Response.FromValue(value, response); + Response result = await GetRelatedCategoriesAsync(categoryId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue(result.Content.ToObjectFromJson>>(), result); } /// - /// [Protocol Method] Get all related categories (parent and children). Limit, offset, and sort - /// parameters are currently not being enabled and won't work even they are passed. + /// [Protocol Method] Get all terms associated with the specific category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1067,22 +966,21 @@ public virtual Response The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetRelatedCategoriesAsync(string categoryId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response GetCategoryTerms(string categoryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedCategories"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategoryTerms"); scope.Start(); try { - using HttpMessage message = CreateGetRelatedCategoriesRequest(categoryId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateGetCategoryTermsRequest(categoryId, limit, offset, sort, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1092,18 +990,10 @@ public virtual async Task GetRelatedCategoriesAsync(string categoryId, } /// - /// [Protocol Method] Get all related categories (parent and children). Limit, offset, and sort - /// parameters are currently not being enabled and won't work even they are passed. + /// [Protocol Method] Get all terms associated with the specific category. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1111,22 +1001,21 @@ public virtual async Task GetRelatedCategoriesAsync(string categoryId, /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetRelatedCategories(string categoryId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task GetCategoryTermsAsync(string categoryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedCategories"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategoryTerms"); scope.Start(); try { - using HttpMessage message = CreateGetRelatedCategoriesRequest(categoryId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); + + using HttpMessage message = CreateGetCategoryTermsRequest(categoryId, limit, offset, sort, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1140,25 +1029,23 @@ public virtual Response GetRelatedCategories(string categoryId, int? limit, int? /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>> GetCategoryTermsAsync(string categoryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> GetCategoryTerms(string categoryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetCategoryTermsAsync(categoryId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); + Response result = GetCategoryTerms(categoryId, limit, offset, sort, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item)); + value.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// Get all terms associated with the specific category. @@ -1166,62 +1053,49 @@ public virtual async Task>> GetCa /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response> GetCategoryTerms(string categoryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> GetCategoryTermsAsync(string categoryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetCategoryTerms(categoryId, limit, offset, sort, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + Response result = await GetCategoryTermsAsync(categoryId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item)); + value.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// [Protocol Method] Get all terms associated with the specific category. + /// [Protocol Method] Create a glossary term. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier of the category. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// The content to send as the body of the request. + /// Whether include term hierarchy. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetCategoryTermsAsync(string categoryId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response CreateTerm(RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategoryTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateTerm"); scope.Start(); try { - using HttpMessage message = CreateGetCategoryTermsRequest(categoryId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateTermRequest(content, includeTermHierarchy, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1231,40 +1105,29 @@ public virtual async Task GetCategoryTermsAsync(string categoryId, int } /// - /// [Protocol Method] Get all terms associated with the specific category. + /// [Protocol Method] Create a glossary term. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier of the category. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// The content to send as the body of the request. + /// Whether include term hierarchy. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetCategoryTerms(string categoryId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task CreateTermAsync(RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(categoryId, nameof(categoryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategoryTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateTerm"); scope.Start(); try { - using HttpMessage message = CreateGetCategoryTermsRequest(categoryId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateTermRequest(content, includeTermHierarchy, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1276,67 +1139,55 @@ public virtual Response GetCategoryTerms(string categoryId, int? limit, int? off /// Create a glossary term. /// Body parameter. /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> CreateTermAsync(AtlasGlossaryTerm body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response CreateTerm(AtlasGlossaryTerm body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateTermAsync(content, includeTermHierarchy, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + Response result = CreateTerm(body, includeTermHierarchy, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// Create a glossary term. /// Body parameter. /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response CreateTerm(AtlasGlossaryTerm body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> CreateTermAsync(AtlasGlossaryTerm body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = CreateTerm(content, includeTermHierarchy, context); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + Response result = await CreateTermAsync(body, includeTermHierarchy, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// - /// [Protocol Method] Create a glossary term. + /// [Protocol Method] Get a specific glossary term by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The content to send as the body of the request. - /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The globally unique identifier for glossary term. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateTermAsync(RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual Response GetTerm(string termId, RequestContext context) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetTerm"); scope.Start(); try { - using HttpMessage message = CreateCreateTermRequest(content, includeTermHierarchy, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateGetTermRequest(termId, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1346,37 +1197,29 @@ public virtual async Task CreateTermAsync(RequestContent content, bool } /// - /// [Protocol Method] Create a glossary term. + /// [Protocol Method] Get a specific glossary term by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The content to send as the body of the request. - /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The globally unique identifier for glossary term. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response CreateTerm(RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual async Task GetTermAsync(string termId, RequestContext context) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetTerm"); scope.Start(); try { - using HttpMessage message = CreateCreateTermRequest(content, includeTermHierarchy, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateGetTermRequest(termId, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1385,68 +1228,61 @@ public virtual Response CreateTerm(RequestContent content, bool? includeTermHier } } - /// Get a specific glossary term by its GUID. + /// Get a specific glossary term by its GUID. . /// The globally unique identifier for glossary term. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetTermAsync(string termId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response GetTerm(string termId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTermAsync(termId, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + Response result = GetTerm(termId, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryTerm)result, result); } - /// Get a specific glossary term by its GUID. + /// Get a specific glossary term by its GUID. . /// The globally unique identifier for glossary term. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetTerm(string termId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetTermAsync(string termId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTerm(termId, context); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + Response result = await GetTermAsync(termId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// - /// [Protocol Method] Get a specific glossary term by its GUID. + /// [Protocol Method] Update the given glossary term by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// Whether include term hierarchy. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetTermAsync(string termId, RequestContext context) + public virtual Response UpdateTerm(string termId, RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.UpdateTerm"); scope.Start(); try { - using HttpMessage message = CreateGetTermRequest(termId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateUpdateTermRequest(termId, content, includeTermHierarchy, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1456,37 +1292,32 @@ public virtual async Task GetTermAsync(string termId, RequestContext c } /// - /// [Protocol Method] Get a specific glossary term by its GUID. + /// [Protocol Method] Update the given glossary term by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// Whether include term hierarchy. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetTerm(string termId, RequestContext context) + public virtual async Task UpdateTermAsync(string termId, RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.UpdateTerm"); scope.Start(); try { - using HttpMessage message = CreateGetTermRequest(termId, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateUpdateTermRequest(termId, content, includeTermHierarchy, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1499,75 +1330,60 @@ public virtual Response GetTerm(string termId, RequestContext context) /// The globally unique identifier for glossary term. /// Body parameter. /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> UpdateTermAsync(string termId, AtlasGlossaryTerm body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response UpdateTerm(string termId, AtlasGlossaryTerm body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateTermAsync(termId, content, includeTermHierarchy, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + Response result = UpdateTerm(termId, body, includeTermHierarchy, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// Update the given glossary term by its GUID. /// The globally unique identifier for glossary term. /// Body parameter. /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response UpdateTerm(string termId, AtlasGlossaryTerm body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> UpdateTermAsync(string termId, AtlasGlossaryTerm body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = UpdateTerm(termId, content, includeTermHierarchy, context); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + Response result = await UpdateTermAsync(termId, body, includeTermHierarchy, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// - /// [Protocol Method] Update the given glossary term by its GUID. + /// [Protocol Method] Delete a glossary term. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The content to send as the body of the request. - /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateTermAsync(string termId, RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual Response DeleteTerm(string termId, RequestContext context) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.UpdateTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.DeleteTerm"); scope.Start(); try { - using HttpMessage message = CreateUpdateTermRequest(termId, content, includeTermHierarchy, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateDeleteTermRequest(termId, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1577,40 +1393,29 @@ public virtual async Task UpdateTermAsync(string termId, RequestConten } /// - /// [Protocol Method] Update the given glossary term by its GUID. + /// [Protocol Method] Delete a glossary term. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The content to send as the body of the request. - /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response UpdateTerm(string termId, RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual async Task DeleteTermAsync(string termId, RequestContext context) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.UpdateTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.DeleteTerm"); scope.Start(); try { - using HttpMessage message = CreateUpdateTermRequest(termId, content, includeTermHierarchy, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateDeleteTermRequest(termId, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1619,34 +1424,60 @@ public virtual Response UpdateTerm(string termId, RequestContent content, bool? } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method - /// - /// [Protocol Method] Delete a glossary term. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// + /// Delete a glossary term. /// The globally unique identifier for glossary term. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task DeleteTermAsync(string termId, RequestContext context = null) + public virtual Response DeleteTerm(string termId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - using var scope = ClientDiagnostics.CreateScope("Glossary.DeleteTerm"); - scope.Start(); - try + return DeleteTerm(termId, cancellationToken.ToRequestContext()); + } + + /// Delete a glossary term. + /// The globally unique identifier for glossary term. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task DeleteTermAsync(string termId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + return await DeleteTermAsync(termId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + } + + /// + /// [Protocol Method] Update the glossary term partially. So far we only supports partial updating + /// shortDescription, longDescription, abbreviation, usage and status for term. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// The globally unique identifier for glossary term. + /// The content to send as the body of the request. + /// Whether include term hierarchy. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual Response PartialUpdateTerm(string termId, RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) + { + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateTerm"); + scope.Start(); + try { - using HttpMessage message = CreateDeleteTermRequest(termId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreatePartialUpdateTermRequest(termId, content, includeTermHierarchy, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1655,34 +1486,34 @@ public virtual async Task DeleteTermAsync(string termId, RequestContex } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// - /// [Protocol Method] Delete a glossary term. + /// [Protocol Method] Update the glossary term partially. So far we only supports partial updating + /// shortDescription, longDescription, abbreviation, usage and status for term. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// Whether include term hierarchy. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response DeleteTerm(string termId, RequestContext context = null) + public virtual async Task PartialUpdateTermAsync(string termId, RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.DeleteTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateTerm"); scope.Start(); try { - using HttpMessage message = CreateDeleteTermRequest(termId, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreatePartialUpdateTermRequest(termId, content, includeTermHierarchy, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1701,19 +1532,18 @@ public virtual Response DeleteTerm(string termId, RequestContext context = null) /// values to be updated. /// /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> PartialUpdateTermAsync(string termId, IDictionary body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response PartialUpdateTerm(string termId, IDictionary body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await PartialUpdateTermAsync(termId, content, includeTermHierarchy, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromDictionary(body); + Response result = PartialUpdateTerm(termId, content, includeTermHierarchy, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// @@ -1726,57 +1556,44 @@ public virtual async Task> PartialUpdateTermAsync(st /// values to be updated. /// /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response PartialUpdateTerm(string termId, IDictionary body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> PartialUpdateTermAsync(string termId, IDictionary body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = PartialUpdateTerm(termId, content, includeTermHierarchy, context); - return Response.FromValue(AtlasGlossaryTerm.FromResponse(response), response); + using RequestContent content = BinaryContentHelper.FromDictionary(body); + Response result = await PartialUpdateTermAsync(termId, content, includeTermHierarchy, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryTerm)result, result); } /// - /// [Protocol Method] Update the glossary term partially. So far we only supports partial updating - /// shortDescription, longDescription, abbreviation, usage and status for term. + /// [Protocol Method] Create glossary terms in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier for glossary term. /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task PartialUpdateTermAsync(string termId, RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual Response CreateTerms(RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateTerms"); scope.Start(); try { - using HttpMessage message = CreatePartialUpdateTermRequest(termId, content, includeTermHierarchy, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateTermsRequest(content, includeTermHierarchy, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1786,41 +1603,29 @@ public virtual async Task PartialUpdateTermAsync(string termId, Reques } /// - /// [Protocol Method] Update the glossary term partially. So far we only supports partial updating - /// shortDescription, longDescription, abbreviation, usage and status for term. + /// [Protocol Method] Create glossary terms in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier for glossary term. /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response PartialUpdateTerm(string termId, RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual async Task CreateTermsAsync(RequestContent content, bool? includeTermHierarchy = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdateTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.CreateTerms"); scope.Start(); try { - using HttpMessage message = CreatePartialUpdateTermRequest(termId, content, includeTermHierarchy, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateCreateTermsRequest(content, includeTermHierarchy, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1832,83 +1637,75 @@ public virtual Response PartialUpdateTerm(string termId, RequestContent content, /// Create glossary terms in bulk. /// An array of glossary term definitions to be created in bulk. /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task>> CreateTermsAsync(IEnumerable body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> CreateTerms(IEnumerable body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateTermsAsync(content, includeTermHierarchy, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + Response result = CreateTerms(content, includeTermHierarchy, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item)); + value.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// Create glossary terms in bulk. /// An array of glossary term definitions to be created in bulk. /// Whether include term hierarchy. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response> CreateTerms(IEnumerable body, bool? includeTermHierarchy = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> CreateTermsAsync(IEnumerable body, bool? includeTermHierarchy = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = CreateTerms(content, includeTermHierarchy, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + Response result = await CreateTermsAsync(content, includeTermHierarchy, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item)); + value.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// [Protocol Method] Create glossary terms in bulk. + /// [Protocol Method] List all related objects assigned with the specified term. Recommend using + /// limit/offset to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The content to send as the body of the request. - /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The globally unique identifier for glossary term. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateTermsAsync(RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual Response GetEntitiesAssignedWithTerm(string termId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetEntitiesAssignedWithTerm"); scope.Start(); try { - using HttpMessage message = CreateCreateTermsRequest(content, includeTermHierarchy, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termId, limit, offset, sort, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1918,37 +1715,33 @@ public virtual async Task CreateTermsAsync(RequestContent content, boo } /// - /// [Protocol Method] Create glossary terms in bulk. + /// [Protocol Method] List all related objects assigned with the specified term. Recommend using + /// limit/offset to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The content to send as the body of the request. - /// Whether include term hierarchy. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The globally unique identifier for glossary term. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response CreateTerms(RequestContent content, bool? includeTermHierarchy = null, RequestContext context = null) + public virtual async Task GetEntitiesAssignedWithTermAsync(string termId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.CreateTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetEntitiesAssignedWithTerm"); scope.Start(); try { - using HttpMessage message = CreateCreateTermsRequest(content, includeTermHierarchy, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termId, limit, offset, sort, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1965,25 +1758,23 @@ public virtual Response CreateTerms(RequestContent content, bool? includeTermHie /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>> GetEntitiesAssignedWithTermAsync(string termId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> GetEntitiesAssignedWithTerm(string termId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEntitiesAssignedWithTermAsync(termId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); + Response result = GetEntitiesAssignedWithTerm(termId, limit, offset, sort, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedObjectId.DeserializeAtlasRelatedObjectId(item)); + value.Add(AtlasRelatedObjectId.DeserializeAtlasRelatedObjectId(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// @@ -1994,63 +1785,56 @@ public virtual async Task>> GetEnti /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response> GetEntitiesAssignedWithTerm(string termId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> GetEntitiesAssignedWithTermAsync(string termId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEntitiesAssignedWithTerm(termId, limit, offset, sort, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + Response result = await GetEntitiesAssignedWithTermAsync(termId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedObjectId.DeserializeAtlasRelatedObjectId(item)); + value.Add(AtlasRelatedObjectId.DeserializeAtlasRelatedObjectId(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// [Protocol Method] List all related objects assigned with the specified term. Recommend using - /// limit/offset to get pagination result. + /// [Protocol Method] Assign the given term to the provided list of related objects. Recommend using + /// small batches with multiple API calls. + /// + /// [Entities Create Or Update + /// operation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP) + /// is an alternative to assign a term to multiple entities. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetEntitiesAssignedWithTermAsync(string termId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response AssignTermToEntities(string termId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetEntitiesAssignedWithTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.AssignTermToEntities"); scope.Start(); try { - using HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateAssignTermToEntitiesRequest(termId, content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2060,41 +1844,36 @@ public virtual async Task GetEntitiesAssignedWithTermAsync(string term } /// - /// [Protocol Method] List all related objects assigned with the specified term. Recommend using - /// limit/offset to get pagination result. + /// [Protocol Method] Assign the given term to the provided list of related objects. Recommend using + /// small batches with multiple API calls. + /// + /// [Entities Create Or Update + /// operation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP) + /// is an alternative to assign a term to multiple entities. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetEntitiesAssignedWithTerm(string termId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task AssignTermToEntitiesAsync(string termId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetEntitiesAssignedWithTerm"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.AssignTermToEntities"); scope.Start(); try { - using HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateAssignTermToEntitiesRequest(termId, content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2106,92 +1885,75 @@ public virtual Response GetEntitiesAssignedWithTerm(string termId, int? limit, i /// /// Assign the given term to the provided list of related objects. Recommend using /// small batches with multiple API calls. - /// + /// /// [Entities Create Or Update /// operation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP) /// is an alternative to assign a term to multiple entities. /// /// The globally unique identifier for glossary term. /// An array of related object IDs to which the term has to be associated. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task AssignTermToEntitiesAsync(string termId, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response AssignTermToEntities(string termId, IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await AssignTermToEntitiesAsync(termId, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return AssignTermToEntities(termId, content, cancellationToken.ToRequestContext()); } /// /// Assign the given term to the provided list of related objects. Recommend using /// small batches with multiple API calls. - /// + /// /// [Entities Create Or Update /// operation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP) /// is an alternative to assign a term to multiple entities. /// /// The globally unique identifier for glossary term. /// An array of related object IDs to which the term has to be associated. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response AssignTermToEntities(string termId, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task AssignTermToEntitiesAsync(string termId, IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = AssignTermToEntities(termId, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await AssignTermToEntitiesAsync(termId, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// - /// [Protocol Method] Assign the given term to the provided list of related objects. Recommend using - /// small batches with multiple API calls. - /// - /// [Entities Create Or Update - /// operation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP) - /// is an alternative to assign a term to multiple entities. + /// [Protocol Method] Delete the term assignment for the given list of related objects. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task AssignTermToEntitiesAsync(string termId, RequestContent content, RequestContext context = null) + public virtual Response DeleteTermAssignmentFromEntities(string termId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.AssignTermToEntities"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.DeleteTermAssignmentFromEntities"); scope.Start(); try { - using HttpMessage message = CreateAssignTermToEntitiesRequest(termId, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termId, content, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2201,44 +1963,31 @@ public virtual async Task AssignTermToEntitiesAsync(string termId, Req } /// - /// [Protocol Method] Assign the given term to the provided list of related objects. Recommend using - /// small batches with multiple API calls. - /// - /// [Entities Create Or Update - /// operation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP) - /// is an alternative to assign a term to multiple entities. + /// [Protocol Method] Delete the term assignment for the given list of related objects. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response AssignTermToEntities(string termId, RequestContent content, RequestContext context = null) + public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string termId, RequestContent content, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.AssignTermToEntities"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.DeleteTermAssignmentFromEntities"); scope.Start(); try { - using HttpMessage message = CreateAssignTermToEntitiesRequest(termId, content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termId, content, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2250,73 +1999,63 @@ public virtual Response AssignTermToEntities(string termId, RequestContent conte /// Delete the term assignment for the given list of related objects. /// The globally unique identifier for glossary term. /// An array of related object IDs from which the term has to be dissociated. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string termId, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response DeleteTermAssignmentFromEntities(string termId, IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await DeleteTermAssignmentFromEntitiesAsync(termId, content, context).ConfigureAwait(false); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return DeleteTermAssignmentFromEntities(termId, content, cancellationToken.ToRequestContext()); } /// Delete the term assignment for the given list of related objects. /// The globally unique identifier for glossary term. /// An array of related object IDs from which the term has to be dissociated. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response DeleteTermAssignmentFromEntities(string termId, IEnumerable body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string termId, IEnumerable body, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromEnumerable(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = DeleteTermAssignmentFromEntities(termId, content, context); - return response; + using RequestContent content = BinaryContentHelper.FromEnumerable(body); + return await DeleteTermAssignmentFromEntitiesAsync(termId, content, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// - /// [Protocol Method] Delete the term assignment for the given list of related objects. + /// [Protocol Method] Get all related terms for a specific term by its GUID. Limit, offset, and sort + /// parameters are currently not being enabled and won't work even they are passed. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string termId, RequestContent content, RequestContext context = null) + public virtual Response GetRelatedTerms(string termId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.DeleteTermAssignmentFromEntities"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedTerms"); scope.Start(); try { - using HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termId, content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateGetRelatedTermsRequest(termId, limit, offset, sort, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2326,39 +2065,33 @@ public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string } /// - /// [Protocol Method] Delete the term assignment for the given list of related objects. + /// [Protocol Method] Get all related terms for a specific term by its GUID. Limit, offset, and sort + /// parameters are currently not being enabled and won't work even they are passed. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary term. - /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response DeleteTermAssignmentFromEntities(string termId, RequestContent content, RequestContext context = null) + public virtual async Task GetRelatedTermsAsync(string termId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.DeleteTermAssignmentFromEntities"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedTerms"); scope.Start(); try { - using HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termId, content, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(termId, nameof(termId)); + + using HttpMessage message = CreateGetRelatedTermsRequest(termId, limit, offset, sort, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2375,37 +2108,16 @@ public virtual Response DeleteTermAssignmentFromEntities(string termId, RequestC /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>>> GetRelatedTermsAsync(string termId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response>> GetRelatedTerms(string termId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetRelatedTermsAsync(termId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyDictionary> value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - Dictionary> dictionary = new Dictionary>(); - foreach (var property in document.RootElement.EnumerateObject()) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - dictionary.Add(property.Name, null); - } - else - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item)); - } - dictionary.Add(property.Name, array); - } - } - value = dictionary; - return Response.FromValue(value, response); + Response result = GetRelatedTerms(termId, limit, offset, sort, cancellationToken.ToRequestContext()); + return Response.FromValue(result.Content.ToObjectFromJson>>(), result); } /// @@ -2416,75 +2128,42 @@ public virtual async Task The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response>> GetRelatedTerms(string termId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>>> GetRelatedTermsAsync(string termId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetRelatedTerms(termId, limit, offset, sort, context); - IReadOnlyDictionary> value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - Dictionary> dictionary = new Dictionary>(); - foreach (var property in document.RootElement.EnumerateObject()) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - dictionary.Add(property.Name, null); - } - else - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item)); - } - dictionary.Add(property.Name, array); - } - } - value = dictionary; - return Response.FromValue(value, response); + Response result = await GetRelatedTermsAsync(termId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue(result.Content.ToObjectFromJson>>(), result); } /// - /// [Protocol Method] Get all related terms for a specific term by its GUID. Limit, offset, and sort - /// parameters are currently not being enabled and won't work even they are passed. + /// [Protocol Method] Get a specific Glossary by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier for glossary term. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// The globally unique identifier for glossary. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetRelatedTermsAsync(string termId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response Get(string glossaryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Get"); scope.Start(); try { - using HttpMessage message = CreateGetRelatedTermsRequest(termId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + + using HttpMessage message = CreateGetRequest(glossaryId, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2494,41 +2173,29 @@ public virtual async Task GetRelatedTermsAsync(string termId, int? lim } /// - /// [Protocol Method] Get all related terms for a specific term by its GUID. Limit, offset, and sort - /// parameters are currently not being enabled and won't work even they are passed. + /// [Protocol Method] Get a specific Glossary by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// - /// The globally unique identifier for glossary term. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// The globally unique identifier for glossary. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetRelatedTerms(string termId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task GetAsync(string glossaryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(termId, nameof(termId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetRelatedTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Get"); scope.Start(); try { - using HttpMessage message = CreateGetRelatedTermsRequest(termId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + + using HttpMessage message = CreateGetRequest(glossaryId, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2539,66 +2206,59 @@ public virtual Response GetRelatedTerms(string termId, int? limit, int? offset, /// Get a specific Glossary by its GUID. /// The globally unique identifier for glossary. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetGlossaryAsync(string glossaryId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Get(string glossaryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetGlossaryAsync(glossaryId, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = Get(glossaryId, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossary)result, result); } /// Get a specific Glossary by its GUID. /// The globally unique identifier for glossary. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetGlossary(string glossaryId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetAsync(string glossaryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetGlossary(glossaryId, context); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = await GetAsync(glossaryId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossary)result, result); } /// - /// [Protocol Method] Get a specific Glossary by its GUID. + /// [Protocol Method] Update the given glossary. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// Whether ignore terms and categories. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetGlossaryAsync(string glossaryId, RequestContext context) + public virtual Response Update(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetGlossary"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Update"); scope.Start(); try { - using HttpMessage message = CreateGetGlossaryRequest(glossaryId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateUpdateRequest(glossaryId, content, ignoreTermsAndCategories, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2608,37 +2268,32 @@ public virtual async Task GetGlossaryAsync(string glossaryId, RequestC } /// - /// [Protocol Method] Get a specific Glossary by its GUID. + /// [Protocol Method] Update the given glossary. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. + /// The content to send as the body of the request. + /// Whether ignore terms and categories. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetGlossary(string glossaryId, RequestContext context) + public virtual async Task UpdateAsync(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetGlossary"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Update"); scope.Start(); try { - using HttpMessage message = CreateGetGlossaryRequest(glossaryId, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + Argument.AssertNotNull(content, nameof(content)); + + using HttpMessage message = CreateUpdateRequest(glossaryId, content, ignoreTermsAndCategories, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2651,155 +2306,61 @@ public virtual Response GetGlossary(string glossaryId, RequestContext context) /// The globally unique identifier for glossary. /// Body parameter. /// Whether ignore terms and categories. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> UpdateAsync(string glossaryId, AtlasGlossary body, bool? ignoreTermsAndCategories = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Update(string glossaryId, AtlasGlossary body, bool? ignoreTermsAndCategories = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateAsync(glossaryId, content, ignoreTermsAndCategories, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = Update(glossaryId, body, ignoreTermsAndCategories, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossary)result, result); } /// Update the given glossary. /// The globally unique identifier for glossary. /// Body parameter. /// Whether ignore terms and categories. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response Update(string glossaryId, AtlasGlossary body, bool? ignoreTermsAndCategories = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Update(glossaryId, content, ignoreTermsAndCategories, context); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); - } - - /// - /// [Protocol Method] Update the given glossary. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// - /// - /// The globally unique identifier for glossary. - /// The content to send as the body of the request. - /// Whether ignore terms and categories. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task UpdateAsync(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = null, RequestContext context = null) + public virtual async Task> UpdateAsync(string glossaryId, AtlasGlossary body, bool? ignoreTermsAndCategories = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.Update"); - scope.Start(); - try - { - using HttpMessage message = CreateUpdateRequest(glossaryId, content, ignoreTermsAndCategories, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// [Protocol Method] Update the given glossary. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// - /// - /// The globally unique identifier for glossary. - /// The content to send as the body of the request. - /// Whether ignore terms and categories. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// is an empty string, and was expected to be non-empty. - /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response Update(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = null, RequestContext context = null) - { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(body, nameof(body)); - using var scope = ClientDiagnostics.CreateScope("Glossary.Update"); - scope.Start(); - try - { - using HttpMessage message = CreateUpdateRequest(glossaryId, content, ignoreTermsAndCategories, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + Response result = await UpdateAsync(glossaryId, body, ignoreTermsAndCategories, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossary)result, result); } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// /// [Protocol Method] Delete a glossary. Will delete underlying terms/categories together. Recommend /// separate delete terms and categories. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteAsync(string glossaryId, RequestContext context = null) + public virtual Response Delete(string glossaryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateDeleteRequest(glossaryId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2808,35 +2369,31 @@ public virtual async Task DeleteAsync(string glossaryId, RequestContex } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// /// [Protocol Method] Delete a glossary. Will delete underlying terms/categories together. Recommend /// separate delete terms and categories. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Delete(string glossaryId, RequestContext context = null) + public virtual async Task DeleteAsync(string glossaryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateDeleteRequest(glossaryId, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2846,61 +2403,35 @@ public virtual Response Delete(string glossaryId, RequestContext context = null) } /// - /// Get the categories belonging to a specific glossary. Recommend using - /// limit/offset to get pagination result. + /// Delete a glossary. Will delete underlying terms/categories together. Recommend + /// separate delete terms and categories. /// /// The globally unique identifier for glossary. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>> GetCategoriesAsync(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Delete(string glossaryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetCategoriesAsync(glossaryId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item)); - } - value = array; - return Response.FromValue(value, response); + return Delete(glossaryId, cancellationToken.ToRequestContext()); } /// - /// Get the categories belonging to a specific glossary. Recommend using - /// limit/offset to get pagination result. + /// Delete a glossary. Will delete underlying terms/categories together. Recommend + /// separate delete terms and categories. /// /// The globally unique identifier for glossary. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response> GetCategories(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task DeleteAsync(string glossaryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetCategories(glossaryId, limit, offset, sort, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item)); - } - value = array; - return Response.FromValue(value, response); + return await DeleteAsync(glossaryId, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// @@ -2908,14 +2439,7 @@ public virtual Response> GetCategories(stri /// limit/offset to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2923,22 +2447,21 @@ public virtual Response> GetCategories(stri /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetCategoriesAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response GetCategories(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategories"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategories"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetCategoriesRequest(glossaryId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2952,14 +2475,7 @@ public virtual async Task GetCategoriesAsync(string glossaryId, int? l /// limit/offset to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2967,22 +2483,21 @@ public virtual async Task GetCategoriesAsync(string glossaryId, int? l /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetCategories(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task GetCategoriesAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategories"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategories"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetCategoriesRequest(glossaryId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2992,61 +2507,57 @@ public virtual Response GetCategories(string glossaryId, int? limit, int? offset } /// - /// Get the category headers belonging to a specific glossary. Recommend using + /// Get the categories belonging to a specific glossary. Recommend using /// limit/offset to get pagination result. /// /// The globally unique identifier for glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>> GetCategoriesHeadersAsync(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> GetCategories(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetCategoriesHeadersAsync(glossaryId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); + Response result = GetCategories(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item)); + value.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// Get the category headers belonging to a specific glossary. Recommend using + /// Get the categories belonging to a specific glossary. Recommend using /// limit/offset to get pagination result. /// /// The globally unique identifier for glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response> GetCategoriesHeaders(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> GetCategoriesAsync(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetCategoriesHeaders(glossaryId, limit, offset, sort, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + Response result = await GetCategoriesAsync(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item)); + value.Add(AtlasGlossaryCategory.DeserializeAtlasGlossaryCategory(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// @@ -3054,14 +2565,7 @@ public virtual Response> GetCategories /// limit/offset to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3069,22 +2573,21 @@ public virtual Response> GetCategories /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetCategoriesHeadersAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response GetCategoriesHeaders(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategoriesHeaders"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategoriesHeaders"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetCategoriesHeadersRequest(glossaryId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3098,14 +2601,7 @@ public virtual async Task GetCategoriesHeadersAsync(string glossaryId, /// limit/offset to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3113,22 +2609,21 @@ public virtual async Task GetCategoriesHeadersAsync(string glossaryId, /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetCategoriesHeaders(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task GetCategoriesHeadersAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetCategoriesHeaders"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetCategoriesHeaders"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetCategoriesHeadersRequest(glossaryId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3138,92 +2633,90 @@ public virtual Response GetCategoriesHeaders(string glossaryId, int? limit, int? } /// - /// Get a specific glossary with detailed information. This API is not - /// recommend. - /// - /// Recommend to fetch terms/categories details separately using - /// - /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and - /// - /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/categories. + /// Get the category headers belonging to a specific glossary. Recommend using + /// limit/offset to get pagination result. /// /// The globally unique identifier for glossary. - /// The cancellation token to use. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetDetailedAsync(string glossaryId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> GetCategoriesHeaders(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetDetailedAsync(glossaryId, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossaryExtInfo.FromResponse(response), response); + Response result = GetCategoriesHeaders(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) + { + value.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item, ModelSerializationExtensions.WireOptions)); + } + return Response.FromValue((IReadOnlyList)value, result); } /// - /// Get a specific glossary with detailed information. This API is not - /// recommend. - /// - /// Recommend to fetch terms/categories details separately using - /// - /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and - /// - /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/categories. + /// Get the category headers belonging to a specific glossary. Recommend using + /// limit/offset to get pagination result. /// /// The globally unique identifier for glossary. - /// The cancellation token to use. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetDetailed(string glossaryId, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> GetCategoriesHeadersAsync(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetDetailed(glossaryId, context); - return Response.FromValue(AtlasGlossaryExtInfo.FromResponse(response), response); + Response result = await GetCategoriesHeadersAsync(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) + { + value.Add(AtlasRelatedCategoryHeader.DeserializeAtlasRelatedCategoryHeader(item, ModelSerializationExtensions.WireOptions)); + } + return Response.FromValue((IReadOnlyList)value, result); } /// /// [Protocol Method] Get a specific glossary with detailed information. This API is not /// recommend. - /// - /// Recommend to fetch terms/categories details separately using - /// - /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and - /// + /// + /// Recommend to fetch terms/categories details separately using + /// + /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and + /// /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/categories. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetDetailedAsync(string glossaryId, RequestContext context) + public virtual Response GetDetailed(string glossaryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetDetailed"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetDetailed"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetDetailedRequest(glossaryId, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3235,42 +2728,34 @@ public virtual async Task GetDetailedAsync(string glossaryId, RequestC /// /// [Protocol Method] Get a specific glossary with detailed information. This API is not /// recommend. - /// - /// Recommend to fetch terms/categories details separately using - /// - /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and - /// + /// + /// Recommend to fetch terms/categories details separately using + /// + /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and + /// /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/categories. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetDetailed(string glossaryId, RequestContext context) + public virtual async Task GetDetailedAsync(string glossaryId, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetDetailed"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetDetailed"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetDetailedRequest(glossaryId, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3280,109 +2765,85 @@ public virtual Response GetDetailed(string glossaryId, RequestContext context) } /// - /// Update the glossary partially. Some properties such as qualifiedName are not - /// allowed to be updated. - /// - /// So far we only supports partial updating - /// shortDescription, longDescription, language and usage for glossary. - /// - /// Recommend - /// using 'ignoreTermsAndCategories=true' to reduce response body size. + /// Get a specific glossary with detailed information. This API is not + /// recommend. + /// + /// Recommend to fetch terms/categories details separately using + /// + /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and + /// + /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/categories. /// /// The globally unique identifier for glossary. - /// - /// A map containing keys as attribute names and values as corresponding attribute - /// values. - /// - /// Whether ignore terms and categories. - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> PartialUpdateAsync(string glossaryId, IDictionary body, bool? ignoreTermsAndCategories = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response GetDetailed(string glossaryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await PartialUpdateAsync(glossaryId, content, ignoreTermsAndCategories, context).ConfigureAwait(false); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = GetDetailed(glossaryId, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossaryExtInfo)result, result); } /// - /// Update the glossary partially. Some properties such as qualifiedName are not - /// allowed to be updated. - /// - /// So far we only supports partial updating - /// shortDescription, longDescription, language and usage for glossary. - /// - /// Recommend - /// using 'ignoreTermsAndCategories=true' to reduce response body size. + /// Get a specific glossary with detailed information. This API is not + /// recommend. + /// + /// Recommend to fetch terms/categories details separately using + /// + /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and + /// + /// GET /datamap/api/atlas/v2/glossary/{glossaryId}/categories. /// /// The globally unique identifier for glossary. - /// - /// A map containing keys as attribute names and values as corresponding attribute - /// values. - /// - /// Whether ignore terms and categories. - /// The cancellation token to use. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response PartialUpdate(string glossaryId, IDictionary body, bool? ignoreTermsAndCategories = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetDetailedAsync(string glossaryId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = RequestContentHelper.FromDictionary(body); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = PartialUpdate(glossaryId, content, ignoreTermsAndCategories, context); - return Response.FromValue(AtlasGlossary.FromResponse(response), response); + Response result = await GetDetailedAsync(glossaryId, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossaryExtInfo)result, result); } /// /// [Protocol Method] Update the glossary partially. Some properties such as qualifiedName are not /// allowed to be updated. - /// + /// /// So far we only supports partial updating - /// shortDescription, longDescription, language and usage for glossary. - /// + /// shortDescription, longDescription, language and usage for glossary. + /// /// Recommend /// using 'ignoreTermsAndCategories=true' to reduce response body size. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. /// The content to send as the body of the request. /// Whether ignore terms and categories. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task PartialUpdateAsync(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = null, RequestContext context = null) + public virtual Response PartialUpdate(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdate"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreatePartialUpdateRequest(glossaryId, content, ignoreTermsAndCategories, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3394,45 +2855,37 @@ public virtual async Task PartialUpdateAsync(string glossaryId, Reques /// /// [Protocol Method] Update the glossary partially. Some properties such as qualifiedName are not /// allowed to be updated. - /// + /// /// So far we only supports partial updating - /// shortDescription, longDescription, language and usage for glossary. - /// + /// shortDescription, longDescription, language and usage for glossary. + /// /// Recommend /// using 'ignoreTermsAndCategories=true' to reduce response body size. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier for glossary. /// The content to send as the body of the request. /// Whether ignore terms and categories. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// or is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response PartialUpdate(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = null, RequestContext context = null) + public virtual async Task PartialUpdateAsync(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.PartialUpdate"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreatePartialUpdateRequest(glossaryId, content, ignoreTermsAndCategories, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3442,61 +2895,63 @@ public virtual Response PartialUpdate(string glossaryId, RequestContent content, } /// - /// Get terms belonging to a specific glossary. Recommend using limit/offset to get - /// pagination result. + /// Update the glossary partially. Some properties such as qualifiedName are not + /// allowed to be updated. + /// + /// So far we only supports partial updating + /// shortDescription, longDescription, language and usage for glossary. + /// + /// Recommend + /// using 'ignoreTermsAndCategories=true' to reduce response body size. /// /// The globally unique identifier for glossary. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. - /// is null. + /// + /// A map containing keys as attribute names and values as corresponding attribute + /// values. + /// + /// Whether ignore terms and categories. + /// The cancellation token that can be used to cancel the operation. + /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>> GetTermsAsync(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response PartialUpdate(string glossaryId, IDictionary body, bool? ignoreTermsAndCategories = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTermsAsync(glossaryId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item)); - } - value = array; - return Response.FromValue(value, response); + using RequestContent content = BinaryContentHelper.FromDictionary(body); + Response result = PartialUpdate(glossaryId, content, ignoreTermsAndCategories, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasGlossary)result, result); } /// - /// Get terms belonging to a specific glossary. Recommend using limit/offset to get - /// pagination result. + /// Update the glossary partially. Some properties such as qualifiedName are not + /// allowed to be updated. + /// + /// So far we only supports partial updating + /// shortDescription, longDescription, language and usage for glossary. + /// + /// Recommend + /// using 'ignoreTermsAndCategories=true' to reduce response body size. /// /// The globally unique identifier for glossary. - /// The page size - by default there is no paging. - /// The offset for pagination purpose. - /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. - /// is null. + /// + /// A map containing keys as attribute names and values as corresponding attribute + /// values. + /// + /// Whether ignore terms and categories. + /// The cancellation token that can be used to cancel the operation. + /// or is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response> GetTerms(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> PartialUpdateAsync(string glossaryId, IDictionary body, bool? ignoreTermsAndCategories = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTerms(glossaryId, limit, offset, sort, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item)); - } - value = array; - return Response.FromValue(value, response); + using RequestContent content = BinaryContentHelper.FromDictionary(body); + Response result = await PartialUpdateAsync(glossaryId, content, ignoreTermsAndCategories, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasGlossary)result, result); } /// @@ -3504,14 +2959,7 @@ public virtual Response> GetTerms(string glossa /// pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3519,22 +2967,21 @@ public virtual Response> GetTerms(string glossa /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetTermsAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response GetTerms(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetTerms"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetTermsRequest(glossaryId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3548,14 +2995,7 @@ public virtual async Task GetTermsAsync(string glossaryId, int? limit, /// pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3563,22 +3003,21 @@ public virtual async Task GetTermsAsync(string glossaryId, int? limit, /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetTerms(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task GetTermsAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetTerms"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetTerms"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetTermsRequest(glossaryId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3588,61 +3027,57 @@ public virtual Response GetTerms(string glossaryId, int? limit, int? offset, str } /// - /// Get term headers belonging to a specific glossary. Recommend using limit/offset - /// to get pagination result. + /// Get terms belonging to a specific glossary. Recommend using limit/offset to get + /// pagination result. /// /// The globally unique identifier for glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task>> GetTermHeadersAsync(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response> GetTerms(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTermHeadersAsync(glossaryId, limit, offset, sort, context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); + Response result = GetTerms(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item)); + value.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// - /// Get term headers belonging to a specific glossary. Recommend using limit/offset - /// to get pagination result. + /// Get terms belonging to a specific glossary. Recommend using limit/offset to get + /// pagination result. /// /// The globally unique identifier for glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response> GetTermHeaders(string glossaryId, int? limit = null, int? offset = null, string sort = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task>> GetTermsAsync(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTermHeaders(glossaryId, limit, offset, sort, context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); + Response result = await GetTermsAsync(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); foreach (var item in document.RootElement.EnumerateArray()) { - array.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item)); + value.Add(AtlasGlossaryTerm.DeserializeAtlasGlossaryTerm(item, ModelSerializationExtensions.WireOptions)); } - value = array; - return Response.FromValue(value, response); + return Response.FromValue((IReadOnlyList)value, result); } /// @@ -3650,14 +3085,7 @@ public virtual Response> GetTermHeaders(st /// to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3665,22 +3093,21 @@ public virtual Response> GetTermHeaders(st /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetTermHeadersAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual Response GetTermHeaders(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetTermHeaders"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetTermHeaders"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetTermHeadersRequest(glossaryId, limit, offset, sort, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -3694,14 +3121,7 @@ public virtual async Task GetTermHeadersAsync(string glossaryId, int? /// to get pagination result. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -3709,22 +3129,21 @@ public virtual async Task GetTermHeadersAsync(string glossaryId, int? /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetTermHeaders(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + public virtual async Task GetTermHeadersAsync(string glossaryId, int? limit, int? offset, string sort, RequestContext context) { - Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - - using var scope = ClientDiagnostics.CreateScope("Glossary.GetTermHeaders"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Glossary.GetTermHeaders"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); + using HttpMessage message = CreateGetTermHeadersRequest(glossaryId, limit, offset, sort, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -3733,630 +3152,58 @@ public virtual Response GetTermHeaders(string glossaryId, int? limit, int? offse } } - internal HttpMessage CreateBatchGetRequest(int? limit, int? offset, string sort, bool? ignoreTermsAndCategories, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - if (ignoreTermsAndCategories != null) - { - uri.AppendQuery("ignoreTermsAndCategories", ignoreTermsAndCategories.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateCreateCategoriesRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/categories", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateCreateCategoryRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetCategoryRequest(string categoryId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category/", false); - uri.AppendPath(categoryId, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateUpdateCategoryRequest(string categoryId, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category/", false); - uri.AppendPath(categoryId, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteCategoryRequest(string categoryId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category/", false); - uri.AppendPath(categoryId, true); - request.Uri = uri; - return message; - } - - internal HttpMessage CreatePartialUpdateCategoryRequest(string categoryId, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category/", false); - uri.AppendPath(categoryId, true); - uri.AppendPath("/partial", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetRelatedCategoriesRequest(string categoryId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category/", false); - uri.AppendPath(categoryId, true); - uri.AppendPath("/related", false); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetCategoryTermsRequest(string categoryId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/category/", false); - uri.AppendPath(categoryId, true); - uri.AppendPath("/terms", false); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateCreateTermRequest(RequestContent content, bool? includeTermHierarchy, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/term", false); - if (includeTermHierarchy != null) - { - uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetTermRequest(string termId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/term/", false); - uri.AppendPath(termId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateUpdateTermRequest(string termId, RequestContent content, bool? includeTermHierarchy, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/term/", false); - uri.AppendPath(termId, true); - uri.AppendQuery("api-version", _apiVersion, true); - if (includeTermHierarchy != null) - { - uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteTermRequest(string termId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/term/", false); - uri.AppendPath(termId, true); - request.Uri = uri; - return message; - } - - internal HttpMessage CreatePartialUpdateTermRequest(string termId, RequestContent content, bool? includeTermHierarchy, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/term/", false); - uri.AppendPath(termId, true); - uri.AppendPath("/partial", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (includeTermHierarchy != null) - { - uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateCreateTermsRequest(RequestContent content, bool? includeTermHierarchy, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/terms", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (includeTermHierarchy != null) - { - uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/terms/", false); - uri.AppendPath(termId, true); - uri.AppendPath("/assignedEntities", false); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateAssignTermToEntitiesRequest(string termId, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/terms/", false); - uri.AppendPath(termId, true); - uri.AppendPath("/assignedEntities", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteTermAssignmentFromEntitiesRequest(string termId, RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/terms/", false); - uri.AppendPath(termId, true); - uri.AppendPath("/assignedEntities", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetRelatedTermsRequest(string termId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/terms/", false); - uri.AppendPath(termId, true); - uri.AppendPath("/related", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetGlossaryRequest(string glossaryId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateUpdateRequest(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendQuery("api-version", _apiVersion, true); - if (ignoreTermsAndCategories != null) - { - uri.AppendQuery("ignoreTermsAndCategories", ignoreTermsAndCategories.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateDeleteRequest(string glossaryId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - request.Uri = uri; - return message; - } - - internal HttpMessage CreateGetCategoriesRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendPath("/categories", false); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetCategoriesHeadersRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendPath("/categories/headers", false); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetDetailedRequest(string glossaryId, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendPath("/detailed", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreatePartialUpdateRequest(string glossaryId, RequestContent content, bool? ignoreTermsAndCategories, RequestContext context) + /// + /// Get term headers belonging to a specific glossary. Recommend using limit/offset + /// to get pagination result. + /// + /// The globally unique identifier for glossary. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response> GetTermHeaders(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendPath("/partial", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (ignoreTermsAndCategories != null) - { - uri.AppendQuery("ignoreTermsAndCategories", ignoreTermsAndCategories.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - internal HttpMessage CreateGetTermsRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendPath("/terms", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) + Response result = GetTermHeaders(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) { - uri.AppendQuery("sort", sort, true); + value.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, ModelSerializationExtensions.WireOptions)); } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; + return Response.FromValue((IReadOnlyList)value, result); } - internal HttpMessage CreateGetTermHeadersRequest(string glossaryId, int? limit, int? offset, string sort, RequestContext context) + /// + /// Get term headers belonging to a specific glossary. Recommend using limit/offset + /// to get pagination result. + /// + /// The globally unique identifier for glossary. + /// The page size - by default there is no paging. + /// The offset for pagination purpose. + /// The sort order, ASC (default) or DESC. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task>> GetTermHeadersAsync(string glossaryId, int? limit = default, int? offset = default, string sort = default, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/glossary/", false); - uri.AppendPath(glossaryId, true); - uri.AppendPath("/terms/headers", false); - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (sort != null) - { - uri.AppendQuery("sort", sort, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } + Argument.AssertNotNullOrEmpty(glossaryId, nameof(glossaryId)); - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) - { - if (!cancellationToken.CanBeCanceled) + Response result = await GetTermHeadersAsync(glossaryId, limit, offset, sort, cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) { - return DefaultRequestContext; + value.Add(AtlasRelatedTermHeader.DeserializeAtlasRelatedTermHeader(item, ModelSerializationExtensions.WireOptions)); } - - return new RequestContext() { CancellationToken = cancellationToken }; + return Response.FromValue((IReadOnlyList)value, result); } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - private static ResponseClassifier _responseClassifier204; - private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 }); } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.Serialization.cs index c4772ccb09a9..8d4e467136b8 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class ImportInfo : IUtf8JsonSerializable, IJsonModel + /// ImportInfo. + public partial class ImportInfo : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOption /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ImportInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(ChildObjectName)) { writer.WritePropertyName("childObjectName"u8); @@ -54,15 +53,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("remarks"u8); writer.WriteStringValue(Remarks); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -71,22 +70,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ImportInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + ImportInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ImportInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ImportInfo)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeImportInfo(document.RootElement, options); } - internal static ImportInfo DeserializeImportInfo(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ImportInfo DeserializeImportInfo(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -95,47 +99,48 @@ internal static ImportInfo DeserializeImportInfo(JsonElement element, ModelReade ImportStatus? importStatus = default; string parentObjectName = default; string remarks = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("childObjectName"u8)) + if (prop.NameEquals("childObjectName"u8)) { - childObjectName = property.Value.GetString(); + childObjectName = prop.Value.GetString(); continue; } - if (property.NameEquals("importStatus"u8)) + if (prop.NameEquals("importStatus"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - importStatus = new ImportStatus(property.Value.GetString()); + importStatus = new ImportStatus(prop.Value.GetString()); continue; } - if (property.NameEquals("parentObjectName"u8)) + if (prop.NameEquals("parentObjectName"u8)) { - parentObjectName = property.Value.GetString(); + parentObjectName = prop.Value.GetString(); continue; } - if (property.NameEquals("remarks"u8)) + if (prop.NameEquals("remarks"u8)) { - remarks = property.Value.GetString(); + remarks = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new ImportInfo(childObjectName, importStatus, parentObjectName, remarks, serializedAdditionalRawData); + return new ImportInfo(childObjectName, importStatus, parentObjectName, remarks, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -145,15 +150,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) } } - ImportInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + ImportInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ImportInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeImportInfo(document.RootElement, options); } default: @@ -161,22 +171,7 @@ ImportInfo IPersistableModel.Create(BinaryData data, ModelReaderWrit } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static ImportInfo FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeImportInfo(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.cs index 59b5699413d7..93422cae9543 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// ImportInfo. public partial class ImportInfo { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal ImportInfo() @@ -55,22 +26,25 @@ internal ImportInfo() /// importStatus. /// parentObjectName. /// remarks. - /// Keeps track of any properties unknown to the library. - internal ImportInfo(string childObjectName, ImportStatus? importStatus, string parentObjectName, string remarks, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal ImportInfo(string childObjectName, ImportStatus? importStatus, string parentObjectName, string remarks, IDictionary additionalBinaryDataProperties) { ChildObjectName = childObjectName; ImportStatus = importStatus; ParentObjectName = parentObjectName; Remarks = remarks; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// childObjectName. public string ChildObjectName { get; } + /// importStatus. public ImportStatus? ImportStatus { get; } + /// parentObjectName. public string ParentObjectName { get; } + /// remarks. public string Remarks { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportStatus.cs index c6b8ebcb4ced..690b39272279 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportStatus.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportStatus.cs @@ -14,38 +14,57 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct ImportStatus : IEquatable { private readonly string _value; + /// Success. + private const string SuccessValue = "SUCCESS"; + /// Failed. + private const string FailedValue = "FAILED"; /// Initializes a new instance of . + /// The value. /// is null. public ImportStatus(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string SuccessValue = "SUCCESS"; - private const string FailedValue = "FAILED"; + _value = value; + } /// Success. public static ImportStatus Success { get; } = new ImportStatus(SuccessValue); + /// Failed. public static ImportStatus Failed { get; } = new ImportStatus(FailedValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(ImportStatus left, ImportStatus right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(ImportStatus left, ImportStatus right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator ImportStatus(string value) => new ImportStatus(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator ImportStatus?(string value) => value == null ? null : new ImportStatus(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ImportStatus other && Equals(other); - /// + + /// public bool Equals(ImportStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Argument.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Argument.cs index 4ce87a7fadc3..5ad7432ee92f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Argument.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Argument.cs @@ -11,8 +11,10 @@ namespace Azure.Analytics.Purview.DataMap { - internal static class Argument + internal static partial class Argument { + /// The value. + /// The name. public static void AssertNotNull(T value, string name) { if (value is null) @@ -21,8 +23,10 @@ public static void AssertNotNull(T value, string name) } } + /// The value. + /// The name. public static void AssertNotNull(T? value, string name) - where T : struct + where T : struct { if (!value.HasValue) { @@ -30,6 +34,8 @@ public static void AssertNotNull(T? value, string name) } } + /// The value. + /// The name. public static void AssertNotNullOrEmpty(IEnumerable value, string name) { if (value is null) @@ -51,6 +57,8 @@ public static void AssertNotNullOrEmpty(IEnumerable value, string name) } } + /// The value. + /// The name. public static void AssertNotNullOrEmpty(string value, string name) { if (value is null) @@ -62,68 +70,5 @@ public static void AssertNotNullOrEmpty(string value, string name) throw new ArgumentException("Value cannot be an empty string.", name); } } - - public static void AssertNotNullOrWhiteSpace(string value, string name) - { - if (value is null) - { - throw new ArgumentNullException(name); - } - if (string.IsNullOrWhiteSpace(value)) - { - throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); - } - } - - public static void AssertNotDefault(ref T value, string name) - where T : struct, IEquatable - { - if (value.Equals(default)) - { - throw new ArgumentException("Value cannot be empty.", name); - } - } - - public static void AssertInRange(T value, T minimum, T maximum, string name) - where T : notnull, IComparable - { - if (minimum.CompareTo(value) > 0) - { - throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); - } - if (maximum.CompareTo(value) < 0) - { - throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); - } - } - - public static void AssertEnumDefined(Type enumType, object value, string name) - { - if (!Enum.IsDefined(enumType, value)) - { - throw new ArgumentException($"Value not defined for {enumType.FullName}.", name); - } - } - - public static T CheckNotNull(T value, string name) - where T : class - { - AssertNotNull(value, name); - return value; - } - - public static string CheckNotNullOrEmpty(string value, string name) - { - AssertNotNullOrEmpty(value, name); - return value; - } - - public static void AssertNull(T value, string name, string message = null) - { - if (value != null) - { - throw new ArgumentException(message ?? "Value must be null.", name); - } - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContentHelper.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/BinaryContentHelper.cs similarity index 84% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContentHelper.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/BinaryContentHelper.cs index 20fd3b4f0847..c41ffadc64af 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContentHelper.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/BinaryContentHelper.cs @@ -12,10 +12,11 @@ namespace Azure.Analytics.Purview.DataMap { - internal static class RequestContentHelper + internal static partial class BinaryContentHelper { + /// public static RequestContent FromEnumerable(IEnumerable enumerable) - where T : notnull + where T : notnull { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); content.JsonWriter.WriteStartArray(); @@ -28,6 +29,7 @@ public static RequestContent FromEnumerable(IEnumerable enumerable) return content; } + /// public static RequestContent FromEnumerable(IEnumerable enumerable) { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); @@ -41,9 +43,9 @@ public static RequestContent FromEnumerable(IEnumerable enumerable) else { #if NET6_0_OR_GREATER - content.JsonWriter.WriteRawValue(item); + content.JsonWriter.WriteRawValue(item); #else - using (JsonDocument document = JsonDocument.Parse(item, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item)) { JsonSerializer.Serialize(content.JsonWriter, document.RootElement); } @@ -55,12 +57,14 @@ public static RequestContent FromEnumerable(IEnumerable enumerable) return content; } + /// public static RequestContent FromEnumerable(ReadOnlySpan span) - where T : notnull + where T : notnull { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); content.JsonWriter.WriteStartArray(); - for (int i = 0; i < span.Length; i++) + int i = 0; + for (; i < span.Length; i++) { content.JsonWriter.WriteObjectValue(span[i], ModelSerializationExtensions.WireOptions); } @@ -69,8 +73,9 @@ public static RequestContent FromEnumerable(ReadOnlySpan span) return content; } + /// public static RequestContent FromDictionary(IDictionary dictionary) - where TValue : notnull + where TValue : notnull { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); content.JsonWriter.WriteStartObject(); @@ -84,6 +89,7 @@ public static RequestContent FromDictionary(IDictionary return content; } + /// public static RequestContent FromDictionary(IDictionary dictionary) { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); @@ -98,9 +104,9 @@ public static RequestContent FromDictionary(IDictionary dict else { #if NET6_0_OR_GREATER - content.JsonWriter.WriteRawValue(item.Value); + content.JsonWriter.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(content.JsonWriter, document.RootElement); } @@ -112,6 +118,7 @@ public static RequestContent FromDictionary(IDictionary dict return content; } + /// public static RequestContent FromObject(object value) { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); @@ -119,13 +126,14 @@ public static RequestContent FromObject(object value) return content; } + /// public static RequestContent FromObject(BinaryData value) { Utf8JsonRequestContent content = new Utf8JsonRequestContent(); #if NET6_0_OR_GREATER - content.JsonWriter.WriteRawValue(value); + content.JsonWriter.WriteRawValue(value); #else - using (JsonDocument document = JsonDocument.Parse(value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(value)) { JsonSerializer.Serialize(content.JsonWriter, document.RootElement); } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CancellationTokenExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CancellationTokenExtensions.cs new file mode 100644 index 000000000000..4857e771f110 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CancellationTokenExtensions.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Threading; +using Azure; + +namespace Azure.Analytics.Purview.DataMap +{ + internal static partial class CancellationTokenExtensions + { + public static RequestContext ToRequestContext(this CancellationToken cancellationToken) => cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingDictionary.cs index 9be8d6d59c61..55aaa4f46be0 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingDictionary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingDictionary.cs @@ -11,7 +11,8 @@ namespace Azure.Analytics.Purview.DataMap { - internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull + internal partial class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary + where TKey : notnull { private IDictionary _innerDictionary; @@ -19,6 +20,7 @@ public ChangeTrackingDictionary() { } + /// The inner dictionary. public ChangeTrackingDictionary(IDictionary dictionary) { if (dictionary == null) @@ -28,6 +30,7 @@ public ChangeTrackingDictionary(IDictionary dictionary) _innerDictionary = new Dictionary(dictionary); } + /// The inner dictionary. public ChangeTrackingDictionary(IReadOnlyDictionary dictionary) { if (dictionary == null) @@ -41,16 +44,22 @@ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary) } } + /// Gets the IsUndefined. public bool IsUndefined => _innerDictionary == null; + /// Gets the Count. public int Count => IsUndefined ? 0 : EnsureDictionary().Count; + /// Gets the IsReadOnly. public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly; + /// Gets the Keys. public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys; + /// Gets the Values. public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values; + /// Gets or sets the value associated with the specified key. public TValue this[TKey key] { get @@ -67,8 +76,10 @@ public TValue this[TKey key] } } + /// Gets the Keys. IEnumerable IReadOnlyDictionary.Keys => Keys; + /// Gets the Values. IEnumerable IReadOnlyDictionary.Values => Values; public IEnumerator> GetEnumerator() @@ -89,6 +100,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetEnumerator(); } + /// The item to add. public void Add(KeyValuePair item) { EnsureDictionary().Add(item); @@ -99,6 +111,7 @@ public void Clear() EnsureDictionary().Clear(); } + /// The item to search for. public bool Contains(KeyValuePair item) { if (IsUndefined) @@ -108,6 +121,8 @@ public bool Contains(KeyValuePair item) return EnsureDictionary().Contains(item); } + /// The array to copy. + /// The index. public void CopyTo(KeyValuePair[] array, int index) { if (IsUndefined) @@ -117,6 +132,7 @@ public void CopyTo(KeyValuePair[] array, int index) EnsureDictionary().CopyTo(array, index); } + /// The item to remove. public bool Remove(KeyValuePair item) { if (IsUndefined) @@ -126,11 +142,14 @@ public bool Remove(KeyValuePair item) return EnsureDictionary().Remove(item); } + /// The key. + /// The value to add. public void Add(TKey key, TValue value) { EnsureDictionary().Add(key, value); } + /// The key to search for. public bool ContainsKey(TKey key) { if (IsUndefined) @@ -140,6 +159,7 @@ public bool ContainsKey(TKey key) return EnsureDictionary().ContainsKey(key); } + /// The key. public bool Remove(TKey key) { if (IsUndefined) @@ -149,6 +169,8 @@ public bool Remove(TKey key) return EnsureDictionary().Remove(key); } + /// The key to search for. + /// The value. public bool TryGetValue(TKey key, out TValue value) { if (IsUndefined) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingList.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingList.cs index 775cf24dbf0b..d89a43aa06ad 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingList.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ChangeTrackingList.cs @@ -12,7 +12,7 @@ namespace Azure.Analytics.Purview.DataMap { - internal class ChangeTrackingList : IList, IReadOnlyList + internal partial class ChangeTrackingList : IList, IReadOnlyList { private IList _innerList; @@ -20,6 +20,7 @@ public ChangeTrackingList() { } + /// The inner list. public ChangeTrackingList(IList innerList) { if (innerList != null) @@ -28,6 +29,7 @@ public ChangeTrackingList(IList innerList) } } + /// The inner list. public ChangeTrackingList(IReadOnlyList innerList) { if (innerList != null) @@ -36,12 +38,16 @@ public ChangeTrackingList(IReadOnlyList innerList) } } + /// Gets the IsUndefined. public bool IsUndefined => _innerList == null; + /// Gets the Count. public int Count => IsUndefined ? 0 : EnsureList().Count; + /// Gets the IsReadOnly. public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + /// Gets or sets the value associated with the specified key. public T this[int index] { get @@ -85,6 +91,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetEnumerator(); } + /// The item to add. public void Add(T item) { EnsureList().Add(item); @@ -95,6 +102,7 @@ public void Clear() EnsureList().Clear(); } + /// The item. public bool Contains(T item) { if (IsUndefined) @@ -104,6 +112,8 @@ public bool Contains(T item) return EnsureList().Contains(item); } + /// The array to copy to. + /// The array index. public void CopyTo(T[] array, int arrayIndex) { if (IsUndefined) @@ -113,6 +123,7 @@ public void CopyTo(T[] array, int arrayIndex) EnsureList().CopyTo(array, arrayIndex); } + /// The item. public bool Remove(T item) { if (IsUndefined) @@ -122,6 +133,7 @@ public bool Remove(T item) return EnsureList().Remove(item); } + /// The item. public int IndexOf(T item) { if (IsUndefined) @@ -131,11 +143,14 @@ public int IndexOf(T item) return EnsureList().IndexOf(item); } + /// The inner list. + /// The item. public void Insert(int index, T item) { EnsureList().Insert(index, item); } + /// The inner list. public void RemoveAt(int index) { if (IsUndefined) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ClientPipelineExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ClientPipelineExtensions.cs new file mode 100644 index 000000000000..8c1899364454 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ClientPipelineExtensions.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Analytics.Purview.DataMap +{ + internal static partial class ClientPipelineExtensions + { + public static async ValueTask ProcessMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + (CancellationToken userCancellationToken, ErrorOptions statusOption) = context.Parse(); + await pipeline.SendAsync(message, userCancellationToken).ConfigureAwait(false); + + if (message.Response.IsError && (context?.ErrorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) + { + throw new RequestFailedException(message.Response); + } + + return message.Response; + } + + public static Response ProcessMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + (CancellationToken userCancellationToken, ErrorOptions statusOption) = context.Parse(); + pipeline.Send(message, userCancellationToken); + + if (message.Response.IsError && (context?.ErrorOptions & ErrorOptions.NoThrow) != ErrorOptions.NoThrow) + { + throw new RequestFailedException(message.Response); + } + + return message.Response; + } + + public static async ValueTask> ProcessHeadAsBoolMessageAsync(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + Response response = await pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + switch (response.Status) + { + case >= 200 and < 300: + return Response.FromValue(true, response); + case >= 400 and < 500: + return Response.FromValue(false, response); + default: + return new ErrorResult(response, new RequestFailedException(response)); + } + } + + public static Response ProcessHeadAsBoolMessage(this HttpPipeline pipeline, HttpMessage message, RequestContext context) + { + Response response = pipeline.ProcessMessage(message, context); + switch (response.Status) + { + case >= 200 and < 300: + return Response.FromValue(true, response); + case >= 400 and < 500: + return Response.FromValue(false, response); + default: + return new ErrorResult(response, new RequestFailedException(response)); + } + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenMemberAttribute.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenMemberAttribute.cs new file mode 100644 index 000000000000..1ac459d5e7db --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenMemberAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Analytics.Purview.DataMap +{ + [AttributeUsage((AttributeTargets.Property | AttributeTargets.Field))] + internal partial class CodeGenMemberAttribute : CodeGenTypeAttribute + { + /// The original name of the member. + public CodeGenMemberAttribute(string originalName) : base(originalName) + { + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSerializationAttribute.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSerializationAttribute.cs new file mode 100644 index 000000000000..8a1d9f910f34 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSerializationAttribute.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Analytics.Purview.DataMap +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct), AllowMultiple = true, Inherited = true)] + internal partial class CodeGenSerializationAttribute : Attribute + { + /// The property name which these hooks apply to. + public CodeGenSerializationAttribute(string propertyName) + { + PropertyName = propertyName; + } + + /// The property name which these hooks apply to. + /// The serialization name of the property. + public CodeGenSerializationAttribute(string propertyName, string serializationName) + { + PropertyName = propertyName; + SerializationName = serializationName; + } + + /// Gets or sets the property name which these hooks should apply to. + public string PropertyName { get; } + + /// Gets or sets the serialization name of the property. + public string SerializationName { get; set; } + + /// + /// Gets or sets the method name to use when serializing the property value (property name excluded). + /// The signature of the serialization hook method must be or compatible with when invoking: private void SerializeHook(Utf8JsonWriter writer); + /// + public string SerializationValueHook { get; set; } + + /// + /// Gets or sets the method name to use when deserializing the property value from the JSON. + /// private static void DeserializationHook(JsonProperty property, ref TypeOfTheProperty propertyValue); // if the property is required + /// private static void DeserializationHook(JsonProperty property, ref Optional<TypeOfTheProperty> propertyValue); // if the property is optional + /// + public string DeserializationValueHook { get; set; } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSuppressAttribute.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSuppressAttribute.cs new file mode 100644 index 000000000000..4d234cc6e01c --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenSuppressAttribute.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Analytics.Purview.DataMap +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct), AllowMultiple = true)] + internal partial class CodeGenSuppressAttribute : Attribute + { + /// The member to suppress. + /// The types of the parameters of the member. + public CodeGenSuppressAttribute(string member, params Type[] parameters) + { + Member = member; + Parameters = parameters; + } + + /// Gets the Member. + public string Member { get; } + + /// Gets the Parameters. + public Type[] Parameters { get; } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenTypeAttribute.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenTypeAttribute.cs new file mode 100644 index 000000000000..5b2082e378af --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/CodeGenTypeAttribute.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Analytics.Purview.DataMap +{ + [AttributeUsage((AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct))] + internal partial class CodeGenTypeAttribute : Attribute + { + /// The original name of the type. + public CodeGenTypeAttribute(string originalName) + { + OriginalName = originalName; + } + + /// Gets the OriginalName. + public string OriginalName { get; } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ErrorResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ErrorResult.cs new file mode 100644 index 000000000000..fb9cf6c7d54f --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ErrorResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; + +namespace Azure.Analytics.Purview.DataMap +{ + internal partial class ErrorResult : Response + { + private readonly Response _response; + private readonly RequestFailedException _exception; + + public ErrorResult(Response response, RequestFailedException exception) + { + _response = response; + _exception = exception; + } + + /// Gets the Value. + public override T Value => throw _exception; + + /// + public override Response GetRawResponse() + { + return _response; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ModelSerializationExtensions.cs index 39ac9a2eb974..4846e539885c 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ModelSerializationExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/ModelSerializationExtensions.cs @@ -11,18 +11,16 @@ using System.Diagnostics; using System.Globalization; using System.Text.Json; -using System.Xml; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - internal static class ModelSerializationExtensions + internal static partial class ModelSerializationExtensions { - internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions { MaxDepth = 256 }; internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); - internal static readonly ModelReaderWriterOptions WireV3Options = new ModelReaderWriterOptions("W|v3"); - internal static readonly ModelReaderWriterOptions JsonV3Options = new ModelReaderWriterOptions("J|v3"); - internal static readonly BinaryData SentinelValue = BinaryData.FromBytes("\"__EMPTY__\""u8.ToArray()); + internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions + { + MaxDepth = 256 + }; public static object GetObject(this JsonElement element) { @@ -48,14 +46,14 @@ public static object GetObject(this JsonElement element) case JsonValueKind.Null: return null; case JsonValueKind.Object: - var dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var jsonProperty in element.EnumerateObject()) { dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); } return dictionary; case JsonValueKind.Array: - var list = new List(); + List list = new List(); foreach (var item in element.EnumerateArray()) { list.Add(item.GetObject()); @@ -93,7 +91,7 @@ public static char GetChar(this JsonElement element) { if (element.ValueKind == JsonValueKind.String) { - var text = element.GetString(); + string text = element.GetString(); if (text == null || text.Length != 1) { throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); @@ -107,14 +105,14 @@ public static char GetChar(this JsonElement element) } [Conditional("DEBUG")] - public static void ThrowNonNullablePropertyIsNull(this JsonProperty property) + public static void ThrowNonNullablePropertyIsNull(this JsonProperty @property) { - throw new JsonException($"A property '{property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); + throw new JsonException($"A property '{@property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); } public static string GetRequiredString(this JsonElement element) { - var value = element.GetString(); + string value = element.GetString(); if (value == null) { throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); @@ -181,9 +179,6 @@ public static void WriteObjectValue(this Utf8JsonWriter writer, T value, Mode case IJsonModel jsonModel: jsonModel.Write(writer, options ?? WireOptions); break; - case IUtf8JsonSerializable serializable: - serializable.Write(writer); - break; case byte[] bytes: writer.WriteBase64StringValue(bytes); break; @@ -259,151 +254,5 @@ public static void WriteObjectValue(this Utf8JsonWriter writer, object value, Mo { writer.WriteObjectValue(value, options); } - - internal static bool IsSentinelValue(BinaryData value) - { - ReadOnlySpan sentinelSpan = SentinelValue.ToMemory().Span; - ReadOnlySpan valueSpan = value.ToMemory().Span; - return sentinelSpan.SequenceEqual(valueSpan); - } - - internal static class TypeFormatters - { - private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; - public const string DefaultNumberFormat = "G"; - - public static string ToString(bool value) => value ? "true" : "false"; - - public static string ToString(DateTime value, string format) => value.Kind switch - { - DateTimeKind.Utc => ToString((DateTimeOffset)value, format), - _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Azure SDK requires it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") - }; - - public static string ToString(DateTimeOffset value, string format) => format switch - { - "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), - "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), - "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), - "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), - "R" => value.ToString("r", CultureInfo.InvariantCulture), - _ => value.ToString(format, CultureInfo.InvariantCulture) - }; - - public static string ToString(TimeSpan value, string format) => format switch - { - "P" => XmlConvert.ToString(value), - _ => value.ToString(format, CultureInfo.InvariantCulture) - }; - - public static string ToString(byte[] value, string format) => format switch - { - "U" => ToBase64UrlString(value), - "D" => Convert.ToBase64String(value), - _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) - }; - - public static string ToBase64UrlString(byte[] value) - { - int numWholeOrPartialInputBlocks = checked(value.Length + 2) / 3; - int size = checked(numWholeOrPartialInputBlocks * 4); - char[] output = new char[size]; - - int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); - - int i = 0; - for (; i < numBase64Chars; i++) - { - char ch = output[i]; - if (ch == '+') - { - output[i] = '-'; - } - else - { - if (ch == '/') - { - output[i] = '_'; - } - else - { - if (ch == '=') - { - break; - } - } - } - } - - return new string(output, 0, i); - } - - public static byte[] FromBase64UrlString(string value) - { - int paddingCharsToAdd = (value.Length % 4) switch - { - 0 => 0, - 2 => 2, - 3 => 1, - _ => throw new InvalidOperationException("Malformed input") - }; - char[] output = new char[(value.Length + paddingCharsToAdd)]; - int i = 0; - for (; i < value.Length; i++) - { - char ch = value[i]; - if (ch == '-') - { - output[i] = '+'; - } - else - { - if (ch == '_') - { - output[i] = '/'; - } - else - { - output[i] = ch; - } - } - } - - for (; i < output.Length; i++) - { - output[i] = '='; - } - - return Convert.FromBase64CharArray(output, 0, output.Length); - } - - public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch - { - "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), - _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) - }; - - public static TimeSpan ParseTimeSpan(string value, string format) => format switch - { - "P" => XmlConvert.ToTimeSpan(value), - _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) - }; - - public static string ConvertToString(object value, string format = null) => value switch - { - null => "null", - string s => s, - bool b => ToString(b), - int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), - byte[] b0 when format != null => ToString(b0, format), - IEnumerable s0 => string.Join(",", s0), - DateTimeOffset dateTime when format != null => ToString(dateTime, format), - TimeSpan timeSpan when format != null => ToString(timeSpan, format), - TimeSpan timeSpan0 => XmlConvert.ToString(timeSpan0), - Guid guid => guid.ToString(), - BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), - _ => value.ToString() - }; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/MultipartFormDataRequestContent.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/MultiPartFormDataBinaryContent.cs similarity index 61% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/MultipartFormDataRequestContent.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/MultiPartFormDataBinaryContent.cs index 5c15978a5f7f..ff39c4aca7be 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/MultipartFormDataRequestContent.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/MultiPartFormDataBinaryContent.cs @@ -17,17 +17,18 @@ namespace Azure.Analytics.Purview.DataMap { - internal class MultipartFormDataRequestContent : RequestContent + internal partial class MultiPartFormDataBinaryContent : RequestContent { - private readonly System.Net.Http.MultipartFormDataContent _multipartContent; + private readonly MultipartFormDataContent _multipartContent; private static readonly Random _random = new Random(); private static readonly char[] _boundaryValues = "0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".ToCharArray(); - public MultipartFormDataRequestContent() + public MultiPartFormDataBinaryContent() { - _multipartContent = new System.Net.Http.MultipartFormDataContent(CreateBoundary()); + _multipartContent = new MultipartFormDataContent(CreateBoundary()); } + /// Gets the ContentType. public string ContentType { get @@ -36,6 +37,7 @@ public string ContentType } } + /// Gets the HttpContent. internal HttpContent HttpContent => _multipartContent; private static string CreateBoundary() @@ -44,14 +46,19 @@ private static string CreateBoundary() byte[] random = new byte[70]; _random.NextBytes(random); int mask = 255 >> 2; - for (int i = 0; i < 70; i++) + int i = 0; + for (; i < 70; i++) { chars[i] = _boundaryValues[random[i] & mask]; } return chars.ToString(); } - public void Add(string content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(string content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -59,7 +66,11 @@ public void Add(string content, string name, string filename = null, string cont Add(new StringContent(content), name, filename, contentType); } - public void Add(int content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(int content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -68,7 +79,11 @@ public void Add(int content, string name, string filename = null, string content Add(new StringContent(value), name, filename, contentType); } - public void Add(long content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(long content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -77,7 +92,11 @@ public void Add(long content, string name, string filename = null, string conten Add(new StringContent(value), name, filename, contentType); } - public void Add(float content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(float content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -86,7 +105,11 @@ public void Add(float content, string name, string filename = null, string conte Add(new StringContent(value), name, filename, contentType); } - public void Add(double content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(double content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -95,7 +118,11 @@ public void Add(double content, string name, string filename = null, string cont Add(new StringContent(value), name, filename, contentType); } - public void Add(decimal content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(decimal content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -104,7 +131,11 @@ public void Add(decimal content, string name, string filename = null, string con Add(new StringContent(value), name, filename, contentType); } - public void Add(bool content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(bool content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -113,7 +144,11 @@ public void Add(bool content, string name, string filename = null, string conten Add(new StringContent(value), name, filename, contentType); } - public void Add(Stream content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(Stream content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -121,7 +156,11 @@ public void Add(Stream content, string name, string filename = null, string cont Add(new StreamContent(content), name, filename, contentType); } - public void Add(byte[] content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(byte[] content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -129,7 +168,11 @@ public void Add(byte[] content, string name, string filename = null, string cont Add(new ByteArrayContent(content), name, filename, contentType); } - public void Add(BinaryData content, string name, string filename = null, string contentType = null) + /// + /// + /// + /// + public void Add(BinaryData content, string name, string filename = default, string contentType = default) { Argument.AssertNotNull(content, nameof(content)); Argument.AssertNotNullOrEmpty(name, nameof(name)); @@ -137,33 +180,37 @@ public void Add(BinaryData content, string name, string filename = null, string Add(new ByteArrayContent(content.ToArray()), name, filename, contentType); } + /// + /// + /// + /// private void Add(HttpContent content, string name, string filename, string contentType) { + if (contentType != null) + { + Argument.AssertNotNullOrEmpty(contentType, nameof(contentType)); + AddContentTypeHeader(content, contentType); + } if (filename != null) { Argument.AssertNotNullOrEmpty(filename, nameof(filename)); - AddFilenameHeader(content, name, filename); + _multipartContent.Add(content, name, filename); } - if (contentType != null) + else { - Argument.AssertNotNullOrEmpty(contentType, nameof(contentType)); - AddContentTypeHeader(content, contentType); + _multipartContent.Add(content, name); } - _multipartContent.Add(content, name); - } - - public static void AddFilenameHeader(HttpContent content, string name, string filename) - { - ContentDispositionHeaderValue header = new ContentDispositionHeaderValue("form-data") { Name = name, FileName = filename }; - content.Headers.ContentDisposition = header; } + /// + /// public static void AddContentTypeHeader(HttpContent content, string contentType) { MediaTypeHeaderValue header = new MediaTypeHeaderValue(contentType); content.Headers.ContentType = header; } + /// public override bool TryComputeLength(out long length) { if (_multipartContent.Headers.ContentLength is long contentLength) @@ -175,21 +222,25 @@ public override bool TryComputeLength(out long length) return false; } + /// + /// The cancellation token to use. public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) { #if NET6_0_OR_GREATER - _multipartContent.CopyTo(stream, default, cancellationToken); + _multipartContent.CopyTo(stream, default, cancellationToken); #else -#pragma warning disable AZC0107 +#pragma warning disable AZC0107 // Public asynchronous method shouldn't be called in synchronous scope. Use synchronous version of the method if it is available. _multipartContent.CopyToAsync(stream).EnsureCompleted(); -#pragma warning restore AZC0107 +#pragma warning restore AZC0107 // Public asynchronous method shouldn't be called in synchronous scope. Use synchronous version of the method if it is available. #endif } + /// + /// The cancellation token to use. public override async Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) { #if NET6_0_OR_GREATER - await _multipartContent.CopyToAsync(stream, cancellationToken).ConfigureAwait(false); + await _multipartContent.CopyToAsync(stream, cancellationToken).ConfigureAwait(false); #else await _multipartContent.CopyToAsync(stream).ConfigureAwait(false); #endif diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Optional.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Optional.cs index c3ea348e3885..27230c1be3ce 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Optional.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Optional.cs @@ -10,7 +10,7 @@ namespace Azure.Analytics.Purview.DataMap { - internal static class Optional + internal static partial class Optional { public static bool IsCollectionDefined(IEnumerable collection) { @@ -28,7 +28,7 @@ public static bool IsCollectionDefined(IReadOnlyDictionary(T? value) - where T : struct + where T : struct { return value.HasValue; } @@ -38,14 +38,14 @@ public static bool IsDefined(object value) return value != null; } - public static bool IsDefined(JsonElement value) + public static bool IsDefined(string value) { - return value.ValueKind != JsonValueKind.Undefined; + return value != null; } - public static bool IsDefined(string value) + public static bool IsDefined(JsonElement value) { - return value != null; + return value.ValueKind != JsonValueKind.Undefined; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RawRequestUriBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RawRequestUriBuilderExtensions.cs new file mode 100644 index 000000000000..5ade2b6bd4a0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RawRequestUriBuilderExtensions.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + internal static partial class RawRequestUriBuilderExtensions + { + public static void AppendQueryDelimited(this RawRequestUriBuilder builder, string name, IEnumerable value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true) + { + delimiter ??= ","; + IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format)); + builder.AppendQuery(name, string.Join(delimiter, stringValues), escape); + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContextExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContextExtensions.cs new file mode 100644 index 000000000000..b50bd0972696 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/RequestContextExtensions.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using Azure; + +namespace Azure.Analytics.Purview.DataMap +{ + internal static partial class RequestContextExtensions + { + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + public static ValueTuple Parse(this RequestContext context) + { + if (context == null) + { + return (CancellationToken.None, ErrorOptions.Default); + } + return (context.CancellationToken, context.ErrorOptions); + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/SerializationFormat.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/SerializationFormat.cs new file mode 100644 index 000000000000..7d11b02e0d01 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/SerializationFormat.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Analytics.Purview.DataMap +{ + internal enum SerializationFormat + { + /// The default serialization format. + Default = 0, + /// The RFC1123 date time format. + DateTime_RFC1123 = 1, + /// The RFC3339 date time format. + DateTime_RFC3339 = 2, + /// The RFC7231 date time format. + DateTime_RFC7231 = 3, + /// The ISO8601 date time format. + DateTime_ISO8601 = 4, + /// The Unix date time format. + DateTime_Unix = 5, + /// The ISO8601 date format. + Date_ISO8601 = 6, + /// The ISO8601 duration format. + Duration_ISO8601 = 7, + /// The constant duration format. + Duration_Constant = 8, + /// The seconds duration format. + Duration_Seconds = 9, + /// The seconds duration format with float precision. + Duration_Seconds_Float = 10, + /// The seconds duration format with double precision. + Duration_Seconds_Double = 11, + /// The milliseconds duration format. + Duration_Milliseconds = 12, + /// The milliseconds duration format with float precision. + Duration_Milliseconds_Float = 13, + /// The milliseconds duration format with double precision. + Duration_Milliseconds_Double = 14, + /// The ISO8601 time format. + Time_ISO8601 = 15, + /// The Base64Url bytes format. + Bytes_Base64Url = 16, + /// The Base64 bytes format. + Bytes_Base64 = 17 + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/TypeFormatters.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/TypeFormatters.cs new file mode 100644 index 000000000000..c2b804bfafd9 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/TypeFormatters.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; + +namespace Azure.Analytics.Purview.DataMap +{ + internal static partial class TypeFormatters + { + private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; + public const string DefaultNumberFormat = "G"; + + public static string ToString(bool value) => value ? "true" : "false"; + + public static string ToString(DateTime value, string format) => value.Kind switch + { + DateTimeKind.Utc => ToString((DateTimeOffset)value, format), + _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Generated clients require it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") + }; + + public static string ToString(DateTimeOffset value, string format) => format switch + { + "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), + "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), + "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "R" => value.ToString("r", CultureInfo.InvariantCulture), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(TimeSpan value, string format) => format switch + { + "P" => System.Xml.XmlConvert.ToString(value), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(byte[] value, string format) => format switch + { + "U" => ToBase64UrlString(value), + "D" => Convert.ToBase64String(value), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + + public static string ToBase64UrlString(byte[] value) + { + int numWholeOrPartialInputBlocks = checked (value.Length + 2) / 3; + int size = checked (numWholeOrPartialInputBlocks * 4); + char[] output = new char[size]; + + int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); + + int i = 0; + for (; i < numBase64Chars; i++) + { + char ch = output[i]; + if (ch == '+') + { + output[i] = '-'; + } + else + { + if (ch == '/') + { + output[i] = '_'; + } + else + { + if (ch == '=') + { + break; + } + } + } + } + + return new string(output, 0, i); + } + + public static byte[] FromBase64UrlString(string value) + { + int paddingCharsToAdd = (value.Length % 4) switch + { + 0 => 0, + 2 => 2, + 3 => 1, + _ => throw new InvalidOperationException("Malformed input") + }; + char[] output = new char[(value.Length + paddingCharsToAdd)]; + int i = 0; + for (; i < value.Length; i++) + { + char ch = value[i]; + if (ch == '-') + { + output[i] = '+'; + } + else + { + if (ch == '_') + { + output[i] = '/'; + } + else + { + output[i] = ch; + } + } + } + + for (; i < output.Length; i++) + { + output[i] = '='; + } + + return Convert.FromBase64CharArray(output, 0, output.Length); + } + + public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch + { + "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), + _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) + }; + + public static TimeSpan ParseTimeSpan(string value, string format) => format switch + { + "P" => System.Xml.XmlConvert.ToTimeSpan(value), + _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) + }; + + public static string ToFormatSpecifier(SerializationFormat format) => format switch + { + SerializationFormat.DateTime_RFC1123 => "R", + SerializationFormat.DateTime_RFC3339 => "O", + SerializationFormat.DateTime_RFC7231 => "R", + SerializationFormat.DateTime_ISO8601 => "O", + SerializationFormat.Date_ISO8601 => "D", + SerializationFormat.DateTime_Unix => "U", + SerializationFormat.Bytes_Base64Url => "U", + SerializationFormat.Bytes_Base64 => "D", + SerializationFormat.Duration_ISO8601 => "P", + SerializationFormat.Duration_Constant => "c", + SerializationFormat.Duration_Seconds => "%s", + SerializationFormat.Duration_Seconds_Float => "s\\.FFF", + SerializationFormat.Duration_Seconds_Double => "s\\.FFFFFF", + SerializationFormat.Time_ISO8601 => "T", + _ => null + }; + + public static string ConvertToString(object value, SerializationFormat format = SerializationFormat.Default) + { + string formatSpecifier = ToFormatSpecifier(format); + + return value switch + { + null => "null", + string s => s, + bool b => ToString(b), + int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), + byte[] b0 when formatSpecifier != null => ToString(b0, formatSpecifier), + IEnumerable s0 => string.Join(",", s0), + DateTimeOffset dateTime when formatSpecifier != null => ToString(dateTime, formatSpecifier), + TimeSpan timeSpan when format == SerializationFormat.Duration_Seconds => Convert.ToInt32(timeSpan.TotalSeconds).ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan0 when format == SerializationFormat.Duration_Seconds_Float || format == SerializationFormat.Duration_Seconds_Double => timeSpan0.TotalSeconds.ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan1 when format == SerializationFormat.Duration_Milliseconds => Convert.ToInt32(timeSpan1.TotalMilliseconds).ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan2 when format == SerializationFormat.Duration_Milliseconds_Float || format == SerializationFormat.Duration_Milliseconds_Double => timeSpan2.TotalMilliseconds.ToString(CultureInfo.InvariantCulture), + TimeSpan timeSpan3 when formatSpecifier != null => ToString(timeSpan3, formatSpecifier), + TimeSpan timeSpan4 => System.Xml.XmlConvert.ToString(timeSpan4), + Guid guid => guid.ToString(), + BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), + _ => value.ToString() + }; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Utf8JsonRequestContent.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Utf8JsonRequestContent.cs index cf1ab2e49f8c..ed2879c6f560 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Utf8JsonRequestContent.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Internal/Utf8JsonRequestContent.cs @@ -13,7 +13,7 @@ namespace Azure.Analytics.Purview.DataMap { - internal class Utf8JsonRequestContent : RequestContent + internal partial class Utf8JsonRequestContent : RequestContent { private readonly MemoryStream _stream; private readonly RequestContent _content; @@ -25,20 +25,26 @@ public Utf8JsonRequestContent() JsonWriter = new Utf8JsonWriter(_stream); } + /// Gets the JsonWriter. public Utf8JsonWriter JsonWriter { get; } + /// The stream containing the data to be written. + /// The cancellation token to use. public override async Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) { await JsonWriter.FlushAsync().ConfigureAwait(false); await _content.WriteToAsync(stream, cancellationToken).ConfigureAwait(false); } + /// The stream containing the data to be written. + /// The cancellation token to use. public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) { JsonWriter.Flush(); _content.WriteTo(stream, cancellationToken); } + /// public override bool TryComputeLength(out long length) { length = JsonWriter.BytesCommitted + JsonWriter.BytesPending; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.RestClient.cs new file mode 100644 index 000000000000..5ae3fc073fc0 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.RestClient.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class Lineage + { + private static ResponseClassifier _pipelineMessageClassifier200; + + private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 }); + + internal HttpMessage CreateGetRequest(string guid, string direction, int? depth, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/lineage/", false); + uri.AppendPath(guid, true); + if (depth != null) + { + uri.AppendQuery("depth", TypeFormatters.ConvertToString(depth), true); + } + uri.AppendQuery("direction", direction, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetNextPageRequest(string guid, string direction, int? offset, int? limit, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/lineage/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/next", false); + uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("direction", direction, true); + if (offset != null) + { + uri.AppendQuery("offset", TypeFormatters.ConvertToString(offset), true); + } + if (limit != null) + { + uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetByUniqueAttributeRequest(string typeName, string direction, int? depth, string attribute, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/lineage/uniqueAttribute/type/", false); + uri.AppendPath(typeName, true); + if (depth != null) + { + uri.AppendQuery("depth", TypeFormatters.ConvertToString(depth), true); + } + uri.AppendQuery("direction", direction, true); + if (attribute != null) + { + uri.AppendQuery("attr:qualifiedName", attribute, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs index a7a8e053873d..2608b9d8aac5 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Lineage.cs @@ -8,116 +8,68 @@ using System; using System.Threading; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Analytics.Purview.DataMap { - // Data plane generated sub-client. /// The Lineage sub-client. public partial class Lineage { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of Lineage for mocking. protected Lineage() { } /// Initializes a new instance of Lineage. - /// The handler for diagnostic messaging in the client. + /// The ClientDiagnostics is used to provide tracing support for the client library. /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. - /// The to use. - /// The API version to use for this operation. - internal Lineage(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) + /// Service endpoint. + /// + internal Lineage(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) { ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; _endpoint = endpoint; + Pipeline = pipeline; _apiVersion = apiVersion; } - /// Get lineage info of the entity specified by GUID. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The number of hops for lineage. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetLineageAsync(string guid, LineageDirection direction, int? depth = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetLineageAsync(guid, direction.ToString(), depth, context).ConfigureAwait(false); - return Response.FromValue(AtlasLineageInfo.FromResponse(response), response); - } - - /// Get lineage info of the entity specified by GUID. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The number of hops for lineage. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetLineage(string guid, LineageDirection direction, int? depth = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetLineage(guid, direction.ToString(), depth, context); - return Response.FromValue(AtlasLineageInfo.FromResponse(response), response); - } + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } /// /// [Protocol Method] Get lineage info of the entity specified by GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH". + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. /// The number of hops for lineage. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetLineageAsync(string guid, string direction, int? depth = null, RequestContext context = null) + public virtual Response Get(string guid, string direction, int? depth = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(direction, nameof(direction)); - - using var scope = ClientDiagnostics.CreateScope("Lineage.GetLineage"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Lineage.Get"); scope.Start(); try { - using HttpMessage message = CreateGetLineageRequest(guid, direction, depth, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + using HttpMessage message = CreateGetRequest(guid, direction, depth, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -130,37 +82,28 @@ public virtual async Task GetLineageAsync(string guid, string directio /// [Protocol Method] Get lineage info of the entity specified by GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH". + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. /// The number of hops for lineage. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetLineage(string guid, string direction, int? depth = null, RequestContext context = null) + public virtual async Task GetAsync(string guid, string direction, int? depth = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(direction, nameof(direction)); - - using var scope = ClientDiagnostics.CreateScope("Lineage.GetLineage"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Lineage.Get"); scope.Start(); try { - using HttpMessage message = CreateGetLineageRequest(guid, direction, depth, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + using HttpMessage message = CreateGetRequest(guid, direction, depth, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -169,78 +112,65 @@ public virtual Response GetLineage(string guid, string direction, int? depth = n } } - /// Return immediate next page lineage info about entity with pagination. + /// Get lineage info of the entity specified by GUID. /// The globally unique identifier of the entity. /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The offset for pagination purpose. - /// The page size - by default there is no paging. - /// The cancellation token to use. + /// The number of hops for lineage. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetNextPageAsync(string guid, LineageDirection direction, int? offset = null, int? limit = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Get(string guid, LineageDirection direction, int? depth = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetNextPageAsync(guid, direction.ToString(), offset, limit, context).ConfigureAwait(false); - return Response.FromValue(AtlasLineageInfo.FromResponse(response), response); + Response result = Get(guid, direction.ToString(), depth, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasLineageInfo)result, result); } - /// Return immediate next page lineage info about entity with pagination. + /// Get lineage info of the entity specified by GUID. /// The globally unique identifier of the entity. /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The offset for pagination purpose. - /// The page size - by default there is no paging. - /// The cancellation token to use. + /// The number of hops for lineage. + /// The cancellation token that can be used to cancel the operation. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetNextPage(string guid, LineageDirection direction, int? offset = null, int? limit = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> GetAsync(string guid, LineageDirection direction, int? depth = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetNextPage(guid, direction.ToString(), offset, limit, context); - return Response.FromValue(AtlasLineageInfo.FromResponse(response), response); + Response result = await GetAsync(guid, direction.ToString(), depth, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasLineageInfo)result, result); } /// /// [Protocol Method] Return immediate next page lineage info about entity with pagination /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH". + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. /// The offset for pagination purpose. /// The page size - by default there is no paging. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetNextPageAsync(string guid, string direction, int? offset = null, int? limit = null, RequestContext context = null) + public virtual Response GetNextPage(string guid, string direction, int? offset = default, int? limit = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(direction, nameof(direction)); - - using var scope = ClientDiagnostics.CreateScope("Lineage.GetNextPage"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Lineage.GetNextPage"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetNextPageRequest(guid, direction, offset, limit, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -253,38 +183,29 @@ public virtual async Task GetNextPageAsync(string guid, string directi /// [Protocol Method] Return immediate next page lineage info about entity with pagination /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH". + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. /// The offset for pagination purpose. /// The page size - by default there is no paging. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetNextPage(string guid, string direction, int? offset = null, int? limit = null, RequestContext context = null) + public virtual async Task GetNextPageAsync(string guid, string direction, int? offset = default, int? limit = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - Argument.AssertNotNull(direction, nameof(direction)); - - using var scope = ClientDiagnostics.CreateScope("Lineage.GetNextPage"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Lineage.GetNextPage"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetNextPageRequest(guid, direction, offset, limit, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -293,23 +214,62 @@ public virtual Response GetNextPage(string guid, string direction, int? offset = } } + /// Return immediate next page lineage info about entity with pagination. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// The offset for pagination purpose. + /// The page size - by default there is no paging. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetNextPage(string guid, LineageDirection direction, int? offset = default, int? limit = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + Response result = GetNextPage(guid, direction.ToString(), offset, limit, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasLineageInfo)result, result); + } + + /// Return immediate next page lineage info about entity with pagination. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// The offset for pagination purpose. + /// The page size - by default there is no paging. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetNextPageAsync(string guid, LineageDirection direction, int? offset = default, int? limit = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + Response result = await GetNextPageAsync(guid, direction.ToString(), offset, limit, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasLineageInfo)result, result); + } + /// - /// Return lineage info about entity. - /// + /// [Protocol Method] Return lineage info about entity. + /// /// In addition to the typeName path parameter, /// attribute key-value pair(s) can be provided in the following /// format - /// + /// /// attr:[attrName]=[attrValue] - /// + /// /// NOTE: The attrName and attrValue should be /// unique across entities, eg. qualifiedName. - /// + /// /// The REST request would look /// something like this: - /// + /// /// GET /// /v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// /// /// The name of the type. /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. @@ -318,36 +278,51 @@ public virtual Response GetNextPage(string guid, string direction, int? offset = /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetByUniqueAttributeAsync(string typeName, LineageDirection direction, int? depth = null, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual Response GetByUniqueAttribute(string typeName, string direction, int? depth = default, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Lineage.GetByUniqueAttribute"); + scope.Start(); + try + { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetByUniqueAttributeAsync(typeName, direction.ToString(), depth, attribute, context).ConfigureAwait(false); - return Response.FromValue(AtlasLineageInfo.FromResponse(response), response); + using HttpMessage message = CreateGetByUniqueAttributeRequest(typeName, direction, depth, attribute, context); + return Pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// Return lineage info about entity. - /// + /// [Protocol Method] Return lineage info about entity. + /// /// In addition to the typeName path parameter, /// attribute key-value pair(s) can be provided in the following /// format - /// + /// /// attr:[attrName]=[attrValue] - /// + /// /// NOTE: The attrName and attrValue should be /// unique across entities, eg. qualifiedName. - /// + /// /// The REST request would look /// something like this: - /// + /// /// GET /// /v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// /// /// The name of the type. /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. @@ -356,225 +331,101 @@ public virtual async Task> GetByUniqueAttributeAsync( /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The cancellation token to use. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetByUniqueAttribute(string typeName, LineageDirection direction, int? depth = null, string attribute = null, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + /// The response returned from the service. + public virtual async Task GetByUniqueAttributeAsync(string typeName, string direction, int? depth = default, string attribute = default, RequestContext context = null) { - Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Lineage.GetByUniqueAttribute"); + scope.Start(); + try + { + Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetByUniqueAttribute(typeName, direction.ToString(), depth, attribute, context); - return Response.FromValue(AtlasLineageInfo.FromResponse(response), response); + using HttpMessage message = CreateGetByUniqueAttributeRequest(typeName, direction, depth, attribute, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// [Protocol Method] Return lineage info about entity. - /// + /// Return lineage info about entity. + /// /// In addition to the typeName path parameter, /// attribute key-value pair(s) can be provided in the following /// format - /// + /// /// attr:[attrName]=[attrValue] - /// + /// /// NOTE: The attrName and attrValue should be /// unique across entities, eg. qualifiedName. - /// + /// /// The REST request would look /// something like this: - /// + /// /// GET /// /v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// /// /// The name of the type. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH". + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. /// The number of hops for lineage. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual async Task GetByUniqueAttributeAsync(string typeName, string direction, int? depth = null, string attribute = null, RequestContext context = null) + public virtual Response GetByUniqueAttribute(string typeName, LineageDirection direction, int? depth = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(direction, nameof(direction)); - using var scope = ClientDiagnostics.CreateScope("Lineage.GetByUniqueAttribute"); - scope.Start(); - try - { - using HttpMessage message = CreateGetByUniqueAttributeRequest(typeName, direction, depth, attribute, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + Response result = GetByUniqueAttribute(typeName, direction.ToString(), depth, attribute, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasLineageInfo)result, result); } /// - /// [Protocol Method] Return lineage info about entity. - /// + /// Return lineage info about entity. + /// /// In addition to the typeName path parameter, /// attribute key-value pair(s) can be provided in the following /// format - /// + /// /// attr:[attrName]=[attrValue] - /// + /// /// NOTE: The attrName and attrValue should be /// unique across entities, eg. qualifiedName. - /// + /// /// The REST request would look /// something like this: - /// + /// /// GET /// /v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. - /// - /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// - /// - /// /// /// The name of the type. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH". + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. /// The number of hops for lineage. /// /// The qualified name of the entity. (This is only an example. qualifiedName can /// be changed to other unique attributes) /// - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. + /// The cancellation token that can be used to cancel the operation. + /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. - /// The response returned from the service. - /// - public virtual Response GetByUniqueAttribute(string typeName, string direction, int? depth = null, string attribute = null, RequestContext context = null) + public virtual async Task> GetByUniqueAttributeAsync(string typeName, LineageDirection direction, int? depth = default, string attribute = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Argument.AssertNotNull(direction, nameof(direction)); - - using var scope = ClientDiagnostics.CreateScope("Lineage.GetByUniqueAttribute"); - scope.Start(); - try - { - using HttpMessage message = CreateGetByUniqueAttributeRequest(typeName, direction, depth, attribute, context); - return _pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - internal HttpMessage CreateGetLineageRequest(string guid, string direction, int? depth, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/lineage/", false); - uri.AppendPath(guid, true); - uri.AppendQuery("direction", direction, true); - if (depth != null) - { - uri.AppendQuery("depth", depth.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; + Response result = await GetByUniqueAttributeAsync(typeName, direction.ToString(), depth, attribute, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasLineageInfo)result, result); } - - internal HttpMessage CreateGetNextPageRequest(string guid, string direction, int? offset, int? limit, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/lineage/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/next", false); - uri.AppendQuery("direction", direction, true); - uri.AppendQuery("api-version", _apiVersion, true); - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetByUniqueAttributeRequest(string typeName, string direction, int? depth, string attribute, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/lineage/uniqueAttribute/type/", false); - uri.AppendPath(typeName, true); - uri.AppendQuery("direction", direction, true); - if (depth != null) - { - uri.AppendQuery("depth", depth.Value, true); - } - if (attribute != null) - { - uri.AppendQuery("attr:qualifiedName", attribute, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) - { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } - - return new RequestContext() { CancellationToken = cancellationToken }; - } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageDirection.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageDirection.cs index 23654daeb4bf..d030b833003c 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageDirection.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageDirection.cs @@ -14,41 +14,62 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct LineageDirection : IEquatable { private readonly string _value; + /// input. + private const string InputValue = "INPUT"; + /// output. + private const string OutputValue = "OUTPUT"; + /// both. + private const string BothValue = "BOTH"; /// Initializes a new instance of . + /// The value. /// is null. public LineageDirection(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string InputValue = "INPUT"; - private const string OutputValue = "OUTPUT"; - private const string BothValue = "BOTH"; + _value = value; + } /// input. public static LineageDirection Input { get; } = new LineageDirection(InputValue); + /// output. public static LineageDirection Output { get; } = new LineageDirection(OutputValue); + /// both. public static LineageDirection Both { get; } = new LineageDirection(BothValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(LineageDirection left, LineageDirection right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(LineageDirection left, LineageDirection right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator LineageDirection(string value) => new LineageDirection(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator LineageDirection?(string value) => value == null ? null : new LineageDirection(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is LineageDirection other && Equals(other); - /// + + /// public bool Equals(LineageDirection other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.Serialization.cs index d8ab64be9ef6..47d1d0ed1531 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class LineageRelation : IUtf8JsonSerializable, IJsonModel + /// The lineage relation with GUID of the from and to entity. + public partial class LineageRelation : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(LineageRelation)} does not support writing '{format}' format."); } - if (Optional.IsDefined(FromEntityId)) { writer.WritePropertyName("fromEntityId"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("toEntityId"u8); writer.WriteStringValue(ToEntityId); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - LineageRelation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + LineageRelation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual LineageRelation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(LineageRelation)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeLineageRelation(document.RootElement, options); } - internal static LineageRelation DeserializeLineageRelation(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static LineageRelation DeserializeLineageRelation(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,38 +93,39 @@ internal static LineageRelation DeserializeLineageRelation(JsonElement element, string fromEntityId = default; string relationshipId = default; string toEntityId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("fromEntityId"u8)) + if (prop.NameEquals("fromEntityId"u8)) { - fromEntityId = property.Value.GetString(); + fromEntityId = prop.Value.GetString(); continue; } - if (property.NameEquals("relationshipId"u8)) + if (prop.NameEquals("relationshipId"u8)) { - relationshipId = property.Value.GetString(); + relationshipId = prop.Value.GetString(); continue; } - if (property.NameEquals("toEntityId"u8)) + if (prop.NameEquals("toEntityId"u8)) { - toEntityId = property.Value.GetString(); + toEntityId = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new LineageRelation(fromEntityId, relationshipId, toEntityId, serializedAdditionalRawData); + return new LineageRelation(fromEntityId, relationshipId, toEntityId, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -130,15 +135,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opt } } - LineageRelation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + LineageRelation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual LineageRelation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeLineageRelation(document.RootElement, options); } default: @@ -146,22 +156,7 @@ LineageRelation IPersistableModel.Create(BinaryData data, Model } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static LineageRelation FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeLineageRelation(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.cs index 412ed41ecbc4..c2eb694b325d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The lineage relation with GUID of the from and to entity. public partial class LineageRelation { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal LineageRelation() @@ -54,19 +25,21 @@ internal LineageRelation() /// The GUID of from-entity. /// The GUID of relationship. /// The GUID of to-entity. - /// Keeps track of any properties unknown to the library. - internal LineageRelation(string fromEntityId, string relationshipId, string toEntityId, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal LineageRelation(string fromEntityId, string relationshipId, string toEntityId, IDictionary additionalBinaryDataProperties) { FromEntityId = fromEntityId; RelationshipId = relationshipId; ToEntityId = toEntityId; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of from-entity. public string FromEntityId { get; } + /// The GUID of relationship. public string RelationshipId { get; } + /// The GUID of to-entity. public string ToEntityId { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AzureAnalyticsPurviewDataMapContext.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AzureAnalyticsPurviewDataMapContext.cs index 61d8c0868f90..4d23cd7ed210 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AzureAnalyticsPurviewDataMapContext.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AzureAnalyticsPurviewDataMapContext.cs @@ -11,7 +11,7 @@ namespace Azure.Analytics.Purview.DataMap { /// /// Context class which will be filled in by the System.ClientModel.SourceGeneration. - /// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md' + /// For more information /// [ModelReaderWriterBuildable(typeof(AtlasAttributeDef))] [ModelReaderWriterBuildable(typeof(AtlasBusinessMetadataDef))] diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.Serialization.cs index 763d15452569..badda4edea26 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.Serialization.cs @@ -13,10 +13,11 @@ namespace Azure.Analytics.Purview.DataMap { - public partial class MoveEntitiesConfig : IUtf8JsonSerializable, IJsonModel + /// MoveEntitiesOptions. + public partial class MoveEntitiesConfig : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,31 +29,35 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(MoveEntitiesConfig)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(EntityGuids)) { writer.WritePropertyName("entityGuids"u8); writer.WriteStartArray(); - foreach (var item in EntityGuids) + foreach (string item in EntityGuids) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,58 +66,71 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - MoveEntitiesConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + MoveEntitiesConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual MoveEntitiesConfig JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(MoveEntitiesConfig)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeMoveEntitiesConfig(document.RootElement, options); } - internal static MoveEntitiesConfig DeserializeMoveEntitiesConfig(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static MoveEntitiesConfig DeserializeMoveEntitiesConfig(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } IList entityGuids = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("entityGuids"u8)) + if (prop.NameEquals("entityGuids"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } entityGuids = array; continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new MoveEntitiesConfig(entityGuids ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new MoveEntitiesConfig(entityGuids ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -122,15 +140,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - MoveEntitiesConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + MoveEntitiesConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual MoveEntitiesConfig PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeMoveEntitiesConfig(document.RootElement, options); } default: @@ -138,21 +161,18 @@ MoveEntitiesConfig IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MoveEntitiesConfig FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeMoveEntitiesConfig(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to serialize into . + public static implicit operator RequestContent(MoveEntitiesConfig moveEntitiesConfig) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + if (moveEntitiesConfig == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(moveEntitiesConfig, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.cs index 112ad5709b69..af16f0ba0225 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// MoveEntitiesOptions. public partial class MoveEntitiesConfig { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public MoveEntitiesConfig() @@ -53,11 +24,11 @@ public MoveEntitiesConfig() /// Initializes a new instance of . /// An array of entity guids to be moved to target collection. - /// Keeps track of any properties unknown to the library. - internal MoveEntitiesConfig(IList entityGuids, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal MoveEntitiesConfig(IList entityGuids, IDictionary additionalBinaryDataProperties) { EntityGuids = entityGuids; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// An array of entity guids to be moved to target collection. diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.Serialization.cs index 96e623d373e2..e5adff5bdbb6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class ParentRelation : IUtf8JsonSerializable, IJsonModel + /// The lineage parents relation with GUID of the parent entity and to child entity. + public partial class ParentRelation : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOp /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ParentRelation)} does not support writing '{format}' format."); } - if (Optional.IsDefined(ChildEntityId)) { writer.WritePropertyName("childEntityId"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("parentEntityId"u8); writer.WriteStringValue(ParentEntityId); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ParentRelation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + ParentRelation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ParentRelation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ParentRelation)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeParentRelation(document.RootElement, options); } - internal static ParentRelation DeserializeParentRelation(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ParentRelation DeserializeParentRelation(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,38 +93,39 @@ internal static ParentRelation DeserializeParentRelation(JsonElement element, Mo string childEntityId = default; string relationshipId = default; string parentEntityId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("childEntityId"u8)) + if (prop.NameEquals("childEntityId"u8)) { - childEntityId = property.Value.GetString(); + childEntityId = prop.Value.GetString(); continue; } - if (property.NameEquals("relationshipId"u8)) + if (prop.NameEquals("relationshipId"u8)) { - relationshipId = property.Value.GetString(); + relationshipId = prop.Value.GetString(); continue; } - if (property.NameEquals("parentEntityId"u8)) + if (prop.NameEquals("parentEntityId"u8)) { - parentEntityId = property.Value.GetString(); + parentEntityId = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new ParentRelation(childEntityId, relationshipId, parentEntityId, serializedAdditionalRawData); + return new ParentRelation(childEntityId, relationshipId, parentEntityId, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -130,15 +135,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opti } } - ParentRelation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + ParentRelation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ParentRelation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeParentRelation(document.RootElement, options); } default: @@ -146,22 +156,7 @@ ParentRelation IPersistableModel.Create(BinaryData data, ModelRe } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static ParentRelation FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeParentRelation(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.cs index db974366bcdf..00643f2441d1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The lineage parents relation with GUID of the parent entity and to child entity. public partial class ParentRelation { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal ParentRelation() @@ -54,19 +25,21 @@ internal ParentRelation() /// The GUID of child entity. /// The GUID of relationship. /// The GUID of parent entity. - /// Keeps track of any properties unknown to the library. - internal ParentRelation(string childEntityId, string relationshipId, string parentEntityId, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal ParentRelation(string childEntityId, string relationshipId, string parentEntityId, IDictionary additionalBinaryDataProperties) { ChildEntityId = childEntityId; RelationshipId = relationshipId; ParentEntityId = parentEntityId; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The GUID of child entity. public string ChildEntityId { get; } + /// The GUID of relationship. public string RelationshipId { get; } + /// The GUID of parent entity. public string ParentEntityId { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapClientBuilderExtensions.cs similarity index 53% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapClientBuilderExtensions.cs index 0bdaf18e1213..c4e3ac3eb78f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapClientBuilderExtensions.cs @@ -12,25 +12,28 @@ namespace Microsoft.Extensions.Azure { - /// Extension methods to add to client builder. - public static partial class AnalyticsPurviewDataMapClientBuilderExtensions + /// Extension methods to add clients to . + public static partial class PurviewDataMapClientBuilderExtensions { - /// Registers a instance. + /// Registers a client with the specified . /// The builder to register with. - /// The to use. + /// Service endpoint. + /// is null. public static IAzureClientBuilder AddDataMapClient(this TBuilder builder, Uri endpoint) - where TBuilder : IAzureClientFactoryBuilderWithCredential + where TBuilder : IAzureClientFactoryBuilderWithCredential { - return builder.RegisterClientFactory((options, cred) => new DataMapClient(endpoint, cred, options)); + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + return builder.RegisterClientFactory((options, credential) => new DataMapClient(endpoint, credential, options)); } - /// Registers a instance. + /// Registers a client with the specified . /// The builder to register with. - /// The configuration values. + /// The configuration to use for the client. [RequiresUnreferencedCode("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] [RequiresDynamicCode("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] public static IAzureClientBuilder AddDataMapClient(this TBuilder builder, TConfiguration configuration) - where TBuilder : IAzureClientFactoryBuilderWithConfiguration + where TBuilder : IAzureClientFactoryBuilderWithConfiguration { return builder.RegisterClientFactory(configuration); } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs new file mode 100644 index 000000000000..d35abf36b220 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs @@ -0,0 +1,2004 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Purview.DataMap +{ + /// A factory class for creating instances of the models for mocking. + public static partial class PurviewDataMapModelFactory + { + /// + /// An instance of an entity along with extended info - like hive_table, + /// hive_database. + /// + /// The referred entities. + /// An instance of an entity - like hive_table, hive_database. + /// A new instance for mocking. + public static AtlasEntityWithExtInfo AtlasEntityWithExtInfo(IDictionary referredEntities = default, AtlasEntity entity = default) + { + referredEntities ??= new ChangeTrackingDictionary(); + + return new AtlasEntityWithExtInfo(referredEntities, entity, additionalBinaryDataProperties: null); + } + + /// An instance of an entity - like hive_table, hive_database. + /// The attributes of the struct. + /// The name of the type. + /// ETag for concurrency control. + /// Business attributes. + /// An array of classifications. + /// The created time of the record. + /// The user who created the record. + /// Custom Attribute. + /// The GUID of the entity. + /// The home ID of the entity. + /// The collection ID of the entity. + /// Whether it is a shell entity. + /// labels. + /// An array of term assignment headers indicating the meanings of the entity. + /// Used to record the provenance of an instance of an entity or relationship. + /// Determines if there's a proxy. + /// The attributes of relationship. + /// + /// Status of the entity - can be active or deleted. Deleted entities are not + /// removed. + /// + /// The update time of the record. + /// The user who updated the record. + /// The version of the entity. + /// The dictionary of contacts for entities. Key could be Expert or Owner. + /// A new instance for mocking. + public static AtlasEntity AtlasEntity(IDictionary attributes = default, string typeName = default, string lastModifiedTS = default, IDictionary businessAttributes = default, IEnumerable classifications = default, long? createTime = default, string createdBy = default, IDictionary customAttributes = default, string guid = default, string homeId = default, string collectionId = default, bool? isIncomplete = default, IEnumerable labels = default, IEnumerable meanings = default, int? provenanceType = default, bool? proxy = default, IDictionary relationshipAttributes = default, EntityStatus? status = default, long? updateTime = default, string updatedBy = default, long? version = default, IDictionary> contacts = default) + { + attributes ??= new ChangeTrackingDictionary(); + businessAttributes ??= new ChangeTrackingDictionary(); + classifications ??= new ChangeTrackingList(); + customAttributes ??= new ChangeTrackingDictionary(); + labels ??= new ChangeTrackingList(); + meanings ??= new ChangeTrackingList(); + relationshipAttributes ??= new ChangeTrackingDictionary(); + contacts ??= new ChangeTrackingDictionary>(); + + return new AtlasEntity( + attributes, + typeName, + lastModifiedTS, + businessAttributes, + classifications.ToList(), + createTime, + createdBy, + customAttributes, + guid, + homeId, + collectionId, + isIncomplete, + labels.ToList(), + meanings.ToList(), + provenanceType, + proxy, + relationshipAttributes, + status, + updateTime, + updatedBy, + version, + contacts, + additionalBinaryDataProperties: null); + } + + /// + /// An instance of a classification; it doesn't have an identity, this object + /// exists only when associated with an entity. + /// + /// The attributes of the struct. + /// The name of the type. + /// ETag for concurrency control. + /// The GUID of the entity. + /// + /// Status of the entity - can be active or deleted. Deleted entities are not + /// removed. + /// + /// Determines if propagations will be removed on entity deletion. + /// An array of time boundaries indicating validity periods. + /// A new instance for mocking. + public static AtlasClassification AtlasClassification(IDictionary attributes = default, string typeName = default, string lastModifiedTS = default, string entityGuid = default, EntityStatus? entityStatus = default, bool? removePropagationsOnEntityDelete = default, IEnumerable validityPeriods = default) + { + attributes ??= new ChangeTrackingDictionary(); + validityPeriods ??= new ChangeTrackingList(); + + return new AtlasClassification( + attributes, + typeName, + lastModifiedTS, + entityGuid, + entityStatus, + removePropagationsOnEntityDelete, + validityPeriods.ToList(), + additionalBinaryDataProperties: null); + } + + /// Captures time-boundary details. + /// The end of the time boundary. + /// The start of the time boundary. + /// The timezone of the time boundary. + /// A new instance for mocking. + public static TimeBoundary TimeBoundary(string endTime = default, string startTime = default, string timeZone = default) + { + return new TimeBoundary(endTime, startTime, timeZone, additionalBinaryDataProperties: null); + } + + /// The header for term assignment. + /// The confidence of the term assignment. + /// The user who created the record. + /// The description of the term assignment. + /// The display text. + /// The expression of the term assignment. + /// The GUID of the relationship. + /// The status of terms assignment. + /// The steward of the term. + /// The GUID of the term. + /// A new instance for mocking. + public static AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default, string createdBy = default, string description = default, string displayText = default, string expression = default, Guid? relationGuid = default, AtlasTermAssignmentStatus? status = default, string steward = default, Guid? termGuid = default) + { + return new AtlasTermAssignmentHeader( + confidence, + createdBy, + description, + displayText, + expression, + relationGuid, + status, + steward, + termGuid, + additionalBinaryDataProperties: null); + } + + /// ContactInfo. + /// Azure Active Directory object Id. + /// additional information to describe this contact. + /// A new instance for mocking. + public static ContactInfo ContactInfo(string id = default, string info = default) + { + return new ContactInfo(id, info, additionalBinaryDataProperties: null); + } + + /// The mutation response result of entity. + /// A map of GUID assignments with entities. + /// The entity headers of mutated entities. + /// An array of entity headers that partially updated. + /// A new instance for mocking. + public static EntityMutationResult EntityMutationResult(IDictionary guidAssignments = default, IDictionary> mutatedEntities = default, IEnumerable partialUpdatedEntities = default) + { + guidAssignments ??= new ChangeTrackingDictionary(); + mutatedEntities ??= new ChangeTrackingDictionary>(); + partialUpdatedEntities ??= new ChangeTrackingList(); + + return new EntityMutationResult(guidAssignments, mutatedEntities, partialUpdatedEntities.ToList(), additionalBinaryDataProperties: null); + } + + /// An instance of an entity - like hive_table, hive_database. + /// The attributes of the struct. + /// The name of the type. + /// ETag for concurrency control. + /// An array of classification names. + /// An array of classifications. + /// The display text. + /// The GUID of the record. + /// Whether it is a shell entity. + /// labels. + /// An array of meanings. + /// An array of term assignment headers. + /// + /// Status of the entity - can be active or deleted. Deleted entities are not + /// removed. + /// + /// A new instance for mocking. + public static AtlasEntityHeader AtlasEntityHeader(IDictionary attributes = default, string typeName = default, string lastModifiedTS = default, IEnumerable classificationNames = default, IEnumerable classifications = default, string displayText = default, string guid = default, bool? isIncomplete = default, IEnumerable labels = default, IEnumerable meaningNames = default, IEnumerable meanings = default, EntityStatus? status = default) + { + attributes ??= new ChangeTrackingDictionary(); + classificationNames ??= new ChangeTrackingList(); + classifications ??= new ChangeTrackingList(); + labels ??= new ChangeTrackingList(); + meaningNames ??= new ChangeTrackingList(); + meanings ??= new ChangeTrackingList(); + + return new AtlasEntityHeader( + attributes, + typeName, + lastModifiedTS, + classificationNames.ToList(), + classifications.ToList(), + displayText, + guid, + isIncomplete, + labels.ToList(), + meaningNames.ToList(), + meanings.ToList(), + status, + additionalBinaryDataProperties: null); + } + + /// + /// An instance of an entity along with extended info - like hive_table, + /// hive_database. + /// + /// The referred entities. + /// An array of entities. + /// A new instance for mocking. + public static AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(IDictionary referredEntities = default, IEnumerable entities = default) + { + referredEntities ??= new ChangeTrackingDictionary(); + entities ??= new ChangeTrackingList(); + + return new AtlasEntitiesWithExtInfo(referredEntities, entities.ToList(), additionalBinaryDataProperties: null); + } + + /// The request payload for classification association. + /// + /// An instance of a classification; it doesn't have an identity, this object + /// exists only when associated with an entity. + /// + /// The GUID of the entity. + /// A new instance for mocking. + public static ClassificationAssociateConfig ClassificationAssociateConfig(AtlasClassification classification = default, IEnumerable entityGuids = default) + { + entityGuids ??= new ChangeTrackingList(); + + return new ClassificationAssociateConfig(classification, entityGuids.ToList(), additionalBinaryDataProperties: null); + } + + /// REST serialization friendly list. + /// An array of objects. + /// The size of the page. + /// The sorted by field. + /// to specify whether the result should be sorted? If yes, whether asc or desc. + /// The start index of the page. + /// The total count of items. + /// A new instance for mocking. + public static AtlasClassifications AtlasClassifications(IEnumerable list = default, int? pageSize = default, string sortBy = default, AtlasSortType? sortType = default, int? startIndex = default, int? totalCount = default) + { + list ??= new ChangeTrackingList(); + + return new AtlasClassifications( + list.ToList(), + pageSize, + sortBy, + sortType, + startIndex, + totalCount, + additionalBinaryDataProperties: null); + } + + /// An instance of an entity header map. + /// The description of the guid header map,. + /// A new instance for mocking. + public static AtlasEntityHeaders AtlasEntityHeaders(IDictionary guidHeaderMap = default) + { + guidHeaderMap ??= new ChangeTrackingDictionary(); + + return new AtlasEntityHeaders(guidHeaderMap, additionalBinaryDataProperties: null); + } + + /// Business metadata to send to the service. + /// InputStream of file. + /// A new instance for mocking. + public static BusinessMetadataOptions BusinessMetadataOptions(BinaryData @file = default) + { + return new BusinessMetadataOptions(@file, additionalBinaryDataProperties: null); + } + + /// Bulk import result. + /// failed importInfoList. + /// successful importInfoList. + /// A new instance for mocking. + public static BulkImportResult BulkImportResult(IEnumerable failedImportInfoList = default, IEnumerable successImportInfoList = default) + { + failedImportInfoList ??= new ChangeTrackingList(); + successImportInfoList ??= new ChangeTrackingList(); + + return new BulkImportResult(failedImportInfoList.ToList(), successImportInfoList.ToList(), additionalBinaryDataProperties: null); + } + + /// ImportInfo. + /// childObjectName. + /// importStatus. + /// parentObjectName. + /// remarks. + /// A new instance for mocking. + public static ImportInfo ImportInfo(string childObjectName = default, ImportStatus? importStatus = default, string parentObjectName = default, string remarks = default) + { + return new ImportInfo(childObjectName, importStatus, parentObjectName, remarks, additionalBinaryDataProperties: null); + } + + /// MoveEntitiesOptions. + /// An array of entity guids to be moved to target collection. + /// A new instance for mocking. + public static MoveEntitiesConfig MoveEntitiesConfig(IEnumerable entityGuids = default) + { + entityGuids ??= new ChangeTrackingList(); + + return new MoveEntitiesConfig(entityGuids.ToList(), additionalBinaryDataProperties: null); + } + + /// The glossary object. + /// The GUID of the object. + /// An array of classifications. + /// The long version description. + /// The name of the glossary object. + /// The qualified name of the glossary object. + /// The short version of description. + /// ETag for concurrency control. + /// The created time of the record. + /// The user who created the record. + /// The update time of the record. + /// The user who updated the record. + /// An array of categories. + /// The language of the glossary. + /// An array of related term headers. + /// The usage of the glossary. + /// A new instance for mocking. + public static AtlasGlossary AtlasGlossary(string guid = default, IEnumerable classifications = default, string longDescription = default, string name = default, string qualifiedName = default, string shortDescription = default, string lastModifiedTS = default, long? createTime = default, string createdBy = default, long? updateTime = default, string updatedBy = default, IEnumerable categories = default, string language = default, IEnumerable terms = default, string usage = default) + { + classifications ??= new ChangeTrackingList(); + categories ??= new ChangeTrackingList(); + terms ??= new ChangeTrackingList(); + + return new AtlasGlossary( + guid, + classifications.ToList(), + longDescription, + name, + qualifiedName, + shortDescription, + lastModifiedTS, + createTime, + createdBy, + updateTime, + updatedBy, + categories.ToList(), + language, + terms.ToList(), + usage, + additionalBinaryDataProperties: null); + } + + /// The header of the related category. + /// The GUID of the category. + /// The description of the category header. + /// The display text. + /// The GUID of the parent category. + /// The GUID of the relationship. + /// A new instance for mocking. + public static AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = default, string description = default, string displayText = default, string parentCategoryGuid = default, string relationGuid = default) + { + return new AtlasRelatedCategoryHeader( + categoryGuid, + description, + displayText, + parentCategoryGuid, + relationGuid, + additionalBinaryDataProperties: null); + } + + /// The header of the related term. + /// The description of the related term. + /// The display text. + /// The expression of the term. + /// The GUID of the relationship. + /// The status of term relationship. + /// The steward of the term. + /// The GUID of the term. + /// A new instance for mocking. + public static AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = default, string displayText = default, string expression = default, string relationGuid = default, AtlasTermRelationshipStatus? status = default, string steward = default, string termGuid = default) + { + return new AtlasRelatedTermHeader( + description, + displayText, + expression, + relationGuid, + status, + steward, + termGuid, + additionalBinaryDataProperties: null); + } + + /// The glossary category. + /// The GUID of the object. + /// An array of classifications. + /// The long version description. + /// The name of the glossary object. + /// The qualified name of the glossary object. + /// The short version of description. + /// ETag for concurrency control. + /// The created time of the record. + /// The user who created the record. + /// The update time of the record. + /// The user who updated the record. + /// The glossary header with basic information. + /// An array of children categories. + /// The header of the related category. + /// An array of related term headers. + /// A new instance for mocking. + public static AtlasGlossaryCategory AtlasGlossaryCategory(string guid = default, IEnumerable classifications = default, string longDescription = default, string name = default, string qualifiedName = default, string shortDescription = default, string lastModifiedTS = default, long? createTime = default, string createdBy = default, long? updateTime = default, string updatedBy = default, AtlasGlossaryHeader anchor = default, IEnumerable childrenCategories = default, AtlasRelatedCategoryHeader parentCategory = default, IEnumerable terms = default) + { + classifications ??= new ChangeTrackingList(); + childrenCategories ??= new ChangeTrackingList(); + terms ??= new ChangeTrackingList(); + + return new AtlasGlossaryCategory( + guid, + classifications.ToList(), + longDescription, + name, + qualifiedName, + shortDescription, + lastModifiedTS, + createTime, + createdBy, + updateTime, + updatedBy, + anchor, + childrenCategories.ToList(), + parentCategory, + terms.ToList(), + additionalBinaryDataProperties: null); + } + + /// The glossary header with basic information. + /// The display text. + /// The GUID of the glossary. + /// The GUID of the relationship. + /// A new instance for mocking. + public static AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = default, string glossaryGuid = default, string relationGuid = default) + { + return new AtlasGlossaryHeader(displayText, glossaryGuid, relationGuid, additionalBinaryDataProperties: null); + } + + /// The glossary term. + /// The GUID of the object. + /// An array of classifications. + /// The long version description. + /// The name of the glossary object. + /// The qualified name of the glossary object. + /// The short version of description. + /// ETag for concurrency control. + /// The created time of the record. + /// The user who created the record. + /// The update time of the record. + /// The user who updated the record. + /// The abbreviation of the term. + /// The name of the template. + /// The glossary header with basic information. + /// An array of related term headers as antonyms. + /// Status of the AtlasGlossaryTerm. + /// The nick name of the term. + /// The hierarchy information of the term. + /// An array of resource link for term. + /// The dictionary of contacts for terms. Key could be Expert or Steward. + /// + /// The custom attributes of the term, which is map<string,map<string,object>>. + /// The + /// key of the first layer map is term template name. + /// + /// An array of related object IDs. + /// An array of term categorization headers. + /// An array of related term headers. + /// An array of examples. + /// An array of related term headers indicating the is-a relationship. + /// An array of preferred related term headers. + /// An array of related term headers that are preferred to. + /// An array of related term headers that are replaced by. + /// An array of related term headers for replacement. + /// An array of related term headers for see also. + /// An array of related term headers as synonyms. + /// An array of translated related term headers. + /// An array of related term headers for translation. + /// The usage of the term. + /// An array of related term headers as valid values. + /// An array of related term headers as valid values for other records. + /// A new instance for mocking. + public static AtlasGlossaryTerm AtlasGlossaryTerm(string guid = default, IEnumerable classifications = default, string longDescription = default, string name = default, string qualifiedName = default, string shortDescription = default, string lastModifiedTS = default, long? createTime = default, string createdBy = default, long? updateTime = default, string updatedBy = default, string abbreviation = default, IEnumerable templateName = default, AtlasGlossaryHeader anchor = default, IEnumerable antonyms = default, TermStatus? status = default, string nickName = default, IEnumerable hierarchyInfo = default, IEnumerable resources = default, IDictionary> contacts = default, IDictionary> attributes = default, IEnumerable assignedEntities = default, IEnumerable categories = default, IEnumerable classifies = default, IEnumerable examples = default, IEnumerable isA = default, IEnumerable preferredTerms = default, IEnumerable preferredToTerms = default, IEnumerable replacedBy = default, IEnumerable replacementTerms = default, IEnumerable seeAlso = default, IEnumerable synonyms = default, IEnumerable translatedTerms = default, IEnumerable translationTerms = default, string usage = default, IEnumerable validValues = default, IEnumerable validValuesFor = default) + { + classifications ??= new ChangeTrackingList(); + templateName ??= new ChangeTrackingList(); + antonyms ??= new ChangeTrackingList(); + hierarchyInfo ??= new ChangeTrackingList(); + resources ??= new ChangeTrackingList(); + contacts ??= new ChangeTrackingDictionary>(); + attributes ??= new ChangeTrackingDictionary>(); + assignedEntities ??= new ChangeTrackingList(); + categories ??= new ChangeTrackingList(); + classifies ??= new ChangeTrackingList(); + examples ??= new ChangeTrackingList(); + isA ??= new ChangeTrackingList(); + preferredTerms ??= new ChangeTrackingList(); + preferredToTerms ??= new ChangeTrackingList(); + replacedBy ??= new ChangeTrackingList(); + replacementTerms ??= new ChangeTrackingList(); + seeAlso ??= new ChangeTrackingList(); + synonyms ??= new ChangeTrackingList(); + translatedTerms ??= new ChangeTrackingList(); + translationTerms ??= new ChangeTrackingList(); + validValues ??= new ChangeTrackingList(); + validValuesFor ??= new ChangeTrackingList(); + + return new AtlasGlossaryTerm( + guid, + classifications.ToList(), + longDescription, + name, + qualifiedName, + shortDescription, + lastModifiedTS, + createTime, + createdBy, + updateTime, + updatedBy, + abbreviation, + templateName.ToList(), + anchor, + antonyms.ToList(), + status, + nickName, + hierarchyInfo.ToList(), + resources.ToList(), + contacts, + attributes, + assignedEntities.ToList(), + categories.ToList(), + classifies.ToList(), + examples.ToList(), + isA.ToList(), + preferredTerms.ToList(), + preferredToTerms.ToList(), + replacedBy.ToList(), + replacementTerms.ToList(), + seeAlso.ToList(), + synonyms.ToList(), + translatedTerms.ToList(), + translationTerms.ToList(), + usage, + validValues.ToList(), + validValuesFor.ToList(), + additionalBinaryDataProperties: null); + } + + /// PurviewObjectId. + /// The GUID of the object. + /// The name of the type. + /// The unique attributes of the object. + /// Name. + /// Display text. + /// Item path. + /// Resource Id. + /// Dictionary of <any>. + /// A new instance for mocking. + public static PurviewObjectId PurviewObjectId(string guid = default, string typeName = default, IDictionary uniqueAttributes = default, string name = default, string displayText = default, string itemPath = default, string resourceId = default, IDictionary properties = default) + { + uniqueAttributes ??= new ChangeTrackingDictionary(); + properties ??= new ChangeTrackingDictionary(); + + return new PurviewObjectId( + guid, + typeName, + uniqueAttributes, + name, + displayText, + itemPath, + resourceId, + properties, + additionalBinaryDataProperties: null); + } + + /// ResourceLink. + /// Display name for url. + /// web url. http or https. + /// A new instance for mocking. + public static ResourceLink ResourceLink(string displayName = default, string url = default) + { + return new ResourceLink(displayName, url, additionalBinaryDataProperties: null); + } + + /// + /// Reference to an object-instance of AtlasEntity type used in relationship + /// attribute values + /// + /// The GUID of the object. + /// The name of the type. + /// The unique attributes of the object. + /// The display text. + /// + /// Status of the entity - can be active or deleted. Deleted entities are not + /// removed. + /// + /// Relationship type. + /// + /// Captures details of struct contents. Not instantiated directly, used only via + /// AtlasEntity, AtlasClassification. + /// + /// The GUID of the relationship. + /// The enum of relationship status. + /// A new instance for mocking. + public static AtlasRelatedObjectId AtlasRelatedObjectId(string guid = default, string typeName = default, IDictionary uniqueAttributes = default, string displayText = default, EntityStatus? entityStatus = default, string relationshipType = default, AtlasStruct relationshipAttributes = default, Guid? relationshipGuid = default, StatusAtlasRelationship? relationshipStatus = default) + { + uniqueAttributes ??= new ChangeTrackingDictionary(); + + return new AtlasRelatedObjectId( + guid, + typeName, + uniqueAttributes, + displayText, + entityStatus, + relationshipType, + relationshipAttributes, + relationshipGuid, + relationshipStatus, + additionalBinaryDataProperties: null); + } + + /// + /// Captures details of struct contents. Not instantiated directly, used only via + /// AtlasEntity, AtlasClassification. + /// + /// The attributes of the struct. + /// The name of the type. + /// ETag for concurrency control. + /// A new instance for mocking. + public static AtlasStruct AtlasStruct(IDictionary attributes = default, string typeName = default, string lastModifiedTS = default) + { + attributes ??= new ChangeTrackingDictionary(); + + return new AtlasStruct(attributes, typeName, lastModifiedTS, additionalBinaryDataProperties: null); + } + + /// The basic information for term categorization. + /// The GUID of the category. + /// The description of the record. + /// The display text. + /// The GUID of the relationship. + /// The status of term relationship. + /// A new instance for mocking. + public static AtlasTermCategorizationHeader AtlasTermCategorizationHeader(Guid? categoryGuid = default, string description = default, string displayText = default, Guid? relationGuid = default, AtlasTermRelationshipStatus? status = default) + { + return new AtlasTermCategorizationHeader( + categoryGuid, + description, + displayText, + relationGuid, + status, + additionalBinaryDataProperties: null); + } + + /// The extended information of glossary. + /// The GUID of the object. + /// An array of classifications. + /// The long version description. + /// The name of the glossary object. + /// The qualified name of the glossary object. + /// The short version of description. + /// ETag for concurrency control. + /// The created time of the record. + /// The user who created the record. + /// The update time of the record. + /// The user who updated the record. + /// An array of categories. + /// The language of the glossary. + /// An array of related term headers. + /// The usage of the glossary. + /// The glossary category information. + /// The glossary term information. + /// A new instance for mocking. + public static AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = default, IEnumerable classifications = default, string longDescription = default, string name = default, string qualifiedName = default, string shortDescription = default, string lastModifiedTS = default, long? createTime = default, string createdBy = default, long? updateTime = default, string updatedBy = default, IEnumerable categories = default, string language = default, IEnumerable terms = default, string usage = default, IDictionary categoryInfo = default, IDictionary termInfo = default) + { + classifications ??= new ChangeTrackingList(); + categories ??= new ChangeTrackingList(); + terms ??= new ChangeTrackingList(); + categoryInfo ??= new ChangeTrackingDictionary(); + termInfo ??= new ChangeTrackingDictionary(); + + return new AtlasGlossaryExtInfo( + guid, + classifications.ToList(), + longDescription, + name, + qualifiedName, + shortDescription, + lastModifiedTS, + createTime, + createdBy, + updateTime, + updatedBy, + categories.ToList(), + language, + terms.ToList(), + usage, + categoryInfo, + termInfo, + additionalBinaryDataProperties: null); + } + + /// The search query of advanced search request. + /// The keywords applied to all searchable fields. + /// + /// The limit of the number of the search result. default value is 50; maximum + /// value is 1000. + /// + /// + /// The token used to get next batch of data. Default 'Null' to get the first + /// batch, and will return new token in each response unless there's no more data. + /// + /// The sort order of search results, can specify multiple fields. + /// The filter for the search. See examples for the usage of supported filters. + /// The facets for search. See examples for the usage of supported facets. + /// The taxonomy setting for search. + /// A new instance for mocking. + public static QueryConfig QueryConfig(string keywords = default, int? limit = default, string continuationToken = default, IEnumerable @orderby = default, BinaryData filter = default, IEnumerable facets = default, SearchTaxonomySetting taxonomySetting = default) + { + @orderby ??= new ChangeTrackingList(); + facets ??= new ChangeTrackingList(); + + return new QueryConfig( + keywords, + limit, + continuationToken, + @orderby.ToList(), + filter, + facets.ToList(), + taxonomySetting, + additionalBinaryDataProperties: null); + } + + /// The content of a search facet result item. + /// The count of the facet item. + /// The name of the facet item. + /// Define the sorting criteria for items. + /// A new instance for mocking. + public static SearchFacetItem SearchFacetItem(int? count = default, string facet = default, SearchFacetSort sort = default) + { + return new SearchFacetItem(count, facet, sort, additionalBinaryDataProperties: null); + } + + /// The sorting criteria. + /// Order by count. + /// Order by value. + /// A new instance for mocking. + public static SearchFacetSort SearchFacetSort(SearchSortOrder? count = default, SearchSortOrder? value = default) + { + return new SearchFacetSort(count, value, additionalBinaryDataProperties: null); + } + + /// Taxonomy setting for search request. + /// Asset types. + /// The content of a search facet result item. + /// A new instance for mocking. + public static SearchTaxonomySetting SearchTaxonomySetting(IEnumerable assetTypes = default, SearchFacetItem facet = default) + { + assetTypes ??= new ChangeTrackingList(); + + return new SearchTaxonomySetting(assetTypes.ToList(), facet, additionalBinaryDataProperties: null); + } + + /// The result of the search result. + /// + /// The total number of search results (not the number of documents in a single + /// page). + /// + /// 'True' if the '@search.count' is an approximate value and vise versa. + /// The token used to get next batch of data. Absent if there's no more data. + /// + /// A facet list that consists of index fields assetType ,classification, + /// contactId, and label. When the facet is specified in the request, the value of + /// the facet is returned as an element of @search.facets. + /// + /// Search result value. + /// A new instance for mocking. + public static QueryResult QueryResult(int? searchCount = default, bool? searchCountApproximate = default, string continuationToken = default, SearchFacetResultValue searchFacets = default, IEnumerable value = default) + { + value ??= new ChangeTrackingList(); + + return new QueryResult( + searchCount, + searchCountApproximate, + continuationToken, + searchFacets, + value.ToList(), + additionalBinaryDataProperties: null); + } + + /// + /// A facet list that consists of index fields assetType ,classification, + /// contactId, and label. When the facet is specified in the request, the value of + /// the facet is returned as an element of @search.facets. + /// + /// Entity type. + /// Asset type. + /// Classification. + /// Term. + /// Contact id. + /// Contact type. + /// Label. + /// Glossary type. + /// Term status. + /// Term template. + /// A new instance for mocking. + public static SearchFacetResultValue SearchFacetResultValue(IEnumerable entityType = default, IEnumerable assetType = default, IEnumerable classification = default, IEnumerable term = default, IEnumerable contactId = default, IEnumerable contactType = default, IEnumerable label = default, IEnumerable glossaryType = default, IEnumerable termStatus = default, IEnumerable termTemplate = default) + { + entityType ??= new ChangeTrackingList(); + assetType ??= new ChangeTrackingList(); + classification ??= new ChangeTrackingList(); + term ??= new ChangeTrackingList(); + contactId ??= new ChangeTrackingList(); + contactType ??= new ChangeTrackingList(); + label ??= new ChangeTrackingList(); + glossaryType ??= new ChangeTrackingList(); + termStatus ??= new ChangeTrackingList(); + termTemplate ??= new ChangeTrackingList(); + + return new SearchFacetResultValue( + entityType.ToList(), + assetType.ToList(), + classification.ToList(), + term.ToList(), + contactId.ToList(), + contactType.ToList(), + label.ToList(), + glossaryType.ToList(), + termStatus.ToList(), + termTemplate.ToList(), + additionalBinaryDataProperties: null); + } + + /// The content of a search facet result item. + /// The count of the facet item. + /// The name of the facet item. + /// A new instance for mocking. + public static SearchFacetItemValue SearchFacetItemValue(int? count = default, string value = default) + { + return new SearchFacetItemValue(count, value, additionalBinaryDataProperties: null); + } + + /// The value item of the search result. + /// + /// The search score calculated by the search engine. The results are ordered by + /// search score by default. + /// + /// + /// 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. + /// + /// + /// The object type of the record. Object type is the top-level property to + /// distinguish whether a record is an asset or a term. + /// + /// The create time of the record. The Unix epoch format. + /// The last update time of the record. The Unix epoch format. + /// The GUID of the record. + /// The name of the record. + /// The qualified name of the record. + /// The type name of the asset. + /// The description of the asset. + /// The endorsement of the asset. + /// The owner of the record. + /// The classifications of the record. + /// The labels of the asset. + /// The terms assigned to the asset. + /// The contacts of the asset. + /// The asset types of the asset. + /// + /// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or + /// AtlasGlossaryCategory. + /// + /// The glossary name of the term. + /// The status of the term. + /// The term template names used by the term. + /// The definition of the term. + /// A new instance for mocking. + public static SearchResultValue SearchResultValue(float? searchScore = default, SearchHighlights searchHighlights = default, string objectType = default, long? createTime = default, long? updateTime = default, string id = default, string name = default, string qualifiedName = default, string entityType = default, string description = default, IEnumerable endorsement = default, string owner = default, IEnumerable classification = default, IEnumerable label = default, IEnumerable term = default, IEnumerable contact = default, IEnumerable assetType = default, string glossaryType = default, string glossary = default, string termStatus = default, IEnumerable termTemplate = default, string longDescription = default) + { + endorsement ??= new ChangeTrackingList(); + classification ??= new ChangeTrackingList(); + label ??= new ChangeTrackingList(); + term ??= new ChangeTrackingList(); + contact ??= new ChangeTrackingList(); + assetType ??= new ChangeTrackingList(); + termTemplate ??= new ChangeTrackingList(); + + return new SearchResultValue( + searchScore, + searchHighlights, + objectType, + createTime, + updateTime, + id, + name, + qualifiedName, + entityType, + description, + endorsement.ToList(), + owner, + classification.ToList(), + label.ToList(), + term.ToList(), + contact.ToList(), + assetType.ToList(), + glossaryType, + glossary, + termStatus, + termTemplate.ToList(), + longDescription, + additionalBinaryDataProperties: null); + } + + /// + /// 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. + /// + /// Id. + /// Qualified name. + /// Name. + /// Description. + /// Entity type. + /// A new instance for mocking. + public static SearchHighlights SearchHighlights(IEnumerable id = default, IEnumerable qualifiedName = default, IEnumerable name = default, IEnumerable description = default, IEnumerable entityType = default) + { + id ??= new ChangeTrackingList(); + qualifiedName ??= new ChangeTrackingList(); + name ??= new ChangeTrackingList(); + description ??= new ChangeTrackingList(); + entityType ??= new ChangeTrackingList(); + + return new SearchHighlights( + id.ToList(), + qualifiedName.ToList(), + name.ToList(), + description.ToList(), + entityType.ToList(), + additionalBinaryDataProperties: null); + } + + /// The context. + /// The name of the term. + /// The name of the glossary which contains the term. + /// The GUID of the term. + /// A new instance for mocking. + public static TermSearchResultValue TermSearchResultValue(string name = default, string glossaryName = default, string guid = default) + { + return new TermSearchResultValue(name, glossaryName, guid, additionalBinaryDataProperties: null); + } + + /// The contact in the search and suggest result. + /// The GUID of the contact. + /// The description of the contact. + /// + /// The type of the contact. It can be Expert or Owner for an entity. It can be + /// Expert or Steward for a glossary term. + /// + /// A new instance for mocking. + public static ContactSearchResultValue ContactSearchResultValue(string id = default, string info = default, string contactType = default) + { + return new ContactSearchResultValue(id, info, contactType, additionalBinaryDataProperties: null); + } + + /// The payload of suggest request. + /// + /// The keywords applied to all fields that support suggest operation. It must be + /// at least 1 character, and no more than 100 characters. In the index schema we + /// defined a default suggester which lists all the supported fields and specifies + /// a search mode. + /// + /// + /// The number of suggestions we hope to return. The default value is 5. The value + /// must be a number between 1 and 100. + /// + /// The filter for the search. + /// A new instance for mocking. + public static SuggestConfig SuggestConfig(string keywords = default, int? limit = default, BinaryData filter = default) + { + return new SuggestConfig(keywords, limit, filter, additionalBinaryDataProperties: null); + } + + /// The result item of the search suggest. + /// The result value. + /// A new instance for mocking. + public static SuggestResult SuggestResult(IEnumerable value = default) + { + value ??= new ChangeTrackingList(); + + return new SuggestResult(value.ToList(), additionalBinaryDataProperties: null); + } + + /// The value item of the search suggest. + /// + /// The search score calculated by the search engine. The results are ordered by + /// search score by default. + /// + /// + /// The target text that contains the keyword as prefix. The keyword is wrapped + /// with emphasis mark. + /// + /// + /// The object type of the record. Object type is the top-level property to + /// distinguish whether a record is an asset or a term. + /// + /// The create time of the record. The Unix epoch format. + /// The last update time of the record. The Unix epoch format. + /// The GUID of the record. + /// The name of the record. + /// The qualified name of the record. + /// The type name of the asset. + /// The description of the asset. + /// The endorsement of the asset. + /// The owner of the record. + /// The classifications of the record. + /// The labels of the asset. + /// The terms assigned to the asset. + /// The contacts of the asset. + /// The asset types of the asset. + /// + /// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or + /// AtlasGlossaryCategory. + /// + /// The glossary name of the term. + /// The status of the term. + /// The term template names used by the term. + /// The definition of the term. + /// A new instance for mocking. + public static SuggestResultValue SuggestResultValue(float? searchScore = default, string searchText = default, string objectType = default, long? createTime = default, long? updateTime = default, string id = default, string name = default, string qualifiedName = default, string entityType = default, string description = default, IEnumerable endorsement = default, string owner = default, IEnumerable classification = default, IEnumerable label = default, IEnumerable term = default, IEnumerable contact = default, IEnumerable assetType = default, string glossaryType = default, string glossary = default, string termStatus = default, IEnumerable termTemplate = default, string longDescription = default) + { + endorsement ??= new ChangeTrackingList(); + classification ??= new ChangeTrackingList(); + label ??= new ChangeTrackingList(); + term ??= new ChangeTrackingList(); + contact ??= new ChangeTrackingList(); + assetType ??= new ChangeTrackingList(); + termTemplate ??= new ChangeTrackingList(); + + return new SuggestResultValue( + searchScore, + searchText, + objectType, + createTime, + updateTime, + id, + name, + qualifiedName, + entityType, + description, + endorsement.ToList(), + owner, + classification.ToList(), + label.ToList(), + term.ToList(), + contact.ToList(), + assetType.ToList(), + glossaryType, + glossary, + termStatus, + termTemplate.ToList(), + longDescription, + additionalBinaryDataProperties: null); + } + + /// The payload of autocomplete request. + /// + /// The keywords applied to all fields that support autocomplete operation. It must + /// be at least 1 character, and no more than 100 characters. + /// + /// + /// The number of autocomplete results we hope to return. The default value is 50. + /// The value must be a number between 1 and 100. + /// + /// The filter for the autocomplete request. + /// A new instance for mocking. + public static AutoCompleteConfig AutoCompleteConfig(string keywords = default, int? limit = default, BinaryData filter = default) + { + return new AutoCompleteConfig(keywords, limit, filter, additionalBinaryDataProperties: null); + } + + /// The result of the autocomplete request. + /// The result value. + /// A new instance for mocking. + public static AutoCompleteResult AutoCompleteResult(IEnumerable value = default) + { + value ??= new ChangeTrackingList(); + + return new AutoCompleteResult(value.ToList(), additionalBinaryDataProperties: null); + } + + /// The value item of the autocomplete suggest. + /// The completed term or phrase. + /// The completed search query text. + /// A new instance for mocking. + public static AutoCompleteResultValue AutoCompleteResultValue(string text = default, string queryPlusText = default) + { + return new AutoCompleteResultValue(text, queryPlusText, additionalBinaryDataProperties: null); + } + + /// The lineage information. + /// The GUID of the base entity. + /// The GUID entity map. + /// The entity count in specific direction. + /// The depth of lineage. + /// The width of lineage. + /// The number of children node. + /// The enum of lineage direction. + /// An array of parentRelations relations. + /// An array of lineage relations. + /// A new instance for mocking. + public static AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = default, IDictionary guidEntityMap = default, IDictionary> widthCounts = default, int? lineageDepth = default, int? lineageWidth = default, int? childrenCount = default, LineageDirection? lineageDirection = default, IEnumerable parentRelations = default, IEnumerable relations = default) + { + guidEntityMap ??= new ChangeTrackingDictionary(); + widthCounts ??= new ChangeTrackingDictionary>(); + parentRelations ??= new ChangeTrackingList(); + relations ??= new ChangeTrackingList(); + + return new AtlasLineageInfo( + baseEntityGuid, + guidEntityMap, + widthCounts, + lineageDepth, + lineageWidth, + childrenCount, + lineageDirection, + parentRelations.ToList(), + relations.ToList(), + additionalBinaryDataProperties: null); + } + + /// The lineage parents relation with GUID of the parent entity and to child entity. + /// The GUID of child entity. + /// The GUID of relationship. + /// The GUID of parent entity. + /// A new instance for mocking. + public static ParentRelation ParentRelation(string childEntityId = default, string relationshipId = default, string parentEntityId = default) + { + return new ParentRelation(childEntityId, relationshipId, parentEntityId, additionalBinaryDataProperties: null); + } + + /// The lineage relation with GUID of the from and to entity. + /// The GUID of from-entity. + /// The GUID of relationship. + /// The GUID of to-entity. + /// A new instance for mocking. + public static LineageRelation LineageRelation(string fromEntityId = default, string relationshipId = default, string toEntityId = default) + { + return new LineageRelation(fromEntityId, relationshipId, toEntityId, additionalBinaryDataProperties: null); + } + + /// Atlas relationship instance. + /// The attributes of the struct. + /// The name of the type. + /// ETag for concurrency control. + /// The created time of the record. + /// The user who created the record. + /// Reference to an object-instance of a type - like entity. + /// Reference to an object-instance of a type - like entity. + /// The GUID of the relationship. + /// The home ID of the relationship. + /// The label of the relationship. + /// Used to record the provenance of an instance of an entity or relationship. + /// The enum of relationship status. + /// The update time of the record. + /// The user who updated the record. + /// The version of the relationship. + /// A new instance for mocking. + public static AtlasRelationship AtlasRelationship(IDictionary attributes = default, string typeName = default, string lastModifiedTS = default, long? createTime = default, string createdBy = default, AtlasObjectId end1 = default, AtlasObjectId end2 = default, string guid = default, string homeId = default, string label = default, int? provenanceType = default, StatusAtlasRelationship? status = default, long? updateTime = default, string updatedBy = default, long? version = default) + { + attributes ??= new ChangeTrackingDictionary(); + + return new AtlasRelationship( + attributes, + typeName, + lastModifiedTS, + createTime, + createdBy, + end1, + end2, + guid, + homeId, + label, + provenanceType, + status, + updateTime, + updatedBy, + version, + additionalBinaryDataProperties: null); + } + + /// Reference to an object-instance of a type - like entity. + /// The GUID of the object. + /// The name of the type. + /// The unique attributes of the object. + /// A new instance for mocking. + public static AtlasObjectId AtlasObjectId(string guid = default, string typeName = default, IDictionary uniqueAttributes = default) + { + uniqueAttributes ??= new ChangeTrackingDictionary(); + + return new AtlasObjectId(guid, typeName, uniqueAttributes, additionalBinaryDataProperties: null); + } + + /// The relationship with extended information. + /// The referred entity header. + /// Atlas relationship instance. + /// A new instance for mocking. + public static AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(IDictionary referredEntities = default, AtlasRelationship relationship = default) + { + referredEntities ??= new ChangeTrackingDictionary(); + + return new AtlasRelationshipWithExtInfo(referredEntities, relationship, additionalBinaryDataProperties: null); + } + + /// class that captures details of a struct-type. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// An array of attribute definitions. + /// A new instance for mocking. + public static AtlasBusinessMetadataDef AtlasBusinessMetadataDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable attributeDefs = default) + { + options ??= new ChangeTrackingDictionary(); + attributeDefs ??= new ChangeTrackingList(); + + return new AtlasBusinessMetadataDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + attributeDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// The date format. + /// An array of available locales. + /// Calendar. + /// The date format. + /// The date format. + /// The date format. + /// Determines the leniency of the date format. + /// The number format. + /// The date format. + /// The timezone information. + /// A new instance for mocking. + public static AtlasDateFormat AtlasDateFormat(IEnumerable availableLocales = default, float? calendar = default, AtlasDateFormat dateInstance = default, AtlasDateFormat dateTimeInstance = default, AtlasDateFormat instance = default, bool? lenient = default, AtlasNumberFormat numberFormat = default, AtlasDateFormat timeInstance = default, AtlasTimeZone timeZone = default) + { + availableLocales ??= new ChangeTrackingList(); + + return new AtlasDateFormat( + availableLocales.ToList(), + calendar, + dateInstance, + dateTimeInstance, + instance, + lenient, + numberFormat, + timeInstance, + timeZone, + additionalBinaryDataProperties: null); + } + + /// The number format. + /// The number format. + /// The currency. + /// The number format. + /// Determines if grouping is used. + /// The number format. + /// The number format. + /// The maximum of fraction digits. + /// The maximum of integer digits. + /// The minimum of fraction digits. + /// The minimum of integer digits. + /// The number format. + /// Determines if only integer is parsed. + /// The number format. + /// The enum of rounding mode. + /// A new instance for mocking. + public static AtlasNumberFormat AtlasNumberFormat(IEnumerable availableLocales = default, string currency = default, AtlasNumberFormat currencyInstance = default, bool? groupingUsed = default, AtlasNumberFormat instance = default, AtlasNumberFormat integerInstance = default, int? maximumFractionDigits = default, int? maximumIntegerDigits = default, int? minimumFractionDigits = default, int? minimumIntegerDigits = default, AtlasNumberFormat numberInstance = default, bool? parseIntegerOnly = default, AtlasNumberFormat percentInstance = default, RoundingMode? roundingMode = default) + { + availableLocales ??= new ChangeTrackingList(); + + return new AtlasNumberFormat( + availableLocales.ToList(), + currency, + currencyInstance, + groupingUsed, + instance, + integerInstance, + maximumFractionDigits, + maximumIntegerDigits, + minimumFractionDigits, + minimumIntegerDigits, + numberInstance, + parseIntegerOnly, + percentInstance, + roundingMode, + additionalBinaryDataProperties: null); + } + + /// The timezone information. + /// The value of the daylight saving time. + /// The ID of the timezone. + /// An array of available IDs. + /// The timezone information. + /// The display name of the timezone. + /// The raw offset of the timezone. + /// A new instance for mocking. + public static AtlasTimeZone AtlasTimeZone(int? dstSavings = default, string id = default, IEnumerable availableIds = default, AtlasTimeZone @default = default, string displayName = default, int? rawOffset = default) + { + availableIds ??= new ChangeTrackingList(); + + return new AtlasTimeZone( + dstSavings, + id, + availableIds.ToList(), + @default, + displayName, + rawOffset, + additionalBinaryDataProperties: null); + } + + /// class that captures details of a struct-attribute. + /// single-valued attribute or multi-valued attribute. + /// An array of constraints. + /// The default value of the attribute. + /// The description of the attribute. + /// Determines if it is included in notification. + /// Determines if it is indexable. + /// Determines if it is optional. + /// Determines if it unique. + /// The name of the attribute. + /// The options for the attribute. + /// The name of the type. + /// The maximum count of the values. + /// The minimum count of the values. + /// A new instance for mocking. + public static AtlasAttributeDef AtlasAttributeDef(CardinalityValue? cardinality = default, IEnumerable constraints = default, string defaultValue = default, string description = default, bool? includeInNotification = default, bool? isIndexable = default, bool? isOptional = default, bool? isUnique = default, string name = default, IDictionary options = default, string typeName = default, int? valuesMaxCount = default, int? valuesMinCount = default) + { + constraints ??= new ChangeTrackingList(); + options ??= new ChangeTrackingDictionary(); + + return new AtlasAttributeDef( + cardinality, + constraints.ToList(), + defaultValue, + description, + includeInNotification, + isIndexable, + isOptional, + isUnique, + name, + options, + typeName, + valuesMaxCount, + valuesMinCount, + additionalBinaryDataProperties: null); + } + + /// class that captures details of a constraint. + /// The parameters of the constraint definition. + /// The type of the constraint. + /// A new instance for mocking. + public static AtlasConstraintDef AtlasConstraintDef(IDictionary @params = default, string @type = default) + { + @params ??= new ChangeTrackingDictionary(); + + return new AtlasConstraintDef(@params, @type, additionalBinaryDataProperties: null); + } + + /// class that captures details of a classification-type. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// An array of attribute definitions. + /// + /// Specifying a list of entityType names in the classificationDef, ensures that + /// classifications can + /// only be applied to those entityTypes. + /// + /// Any subtypes of the entity types inherit the restriction. + /// + /// Any classificationDef subtypes inherit the parents entityTypes restrictions. + /// + /// Any classificationDef subtypes can further restrict the parents entityTypes + /// restrictions by specifying a subset of the entityTypes. + /// + /// An empty entityTypes list when there are no parent restrictions means there are no + /// restrictions. + /// + /// An empty entityTypes list when there are parent + /// restrictions means that the subtype picks up the parents + /// restrictions. + /// + /// If a list of entityTypes are supplied, where one inherits + /// from another, this will be rejected. This should encourage cleaner + /// classificationsDefs. + /// + /// + /// An array of sub types. + /// An array of super types. + /// A new instance for mocking. + public static AtlasClassificationDef AtlasClassificationDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable attributeDefs = default, IEnumerable entityTypes = default, IEnumerable subTypes = default, IEnumerable superTypes = default) + { + options ??= new ChangeTrackingDictionary(); + attributeDefs ??= new ChangeTrackingList(); + entityTypes ??= new ChangeTrackingList(); + subTypes ??= new ChangeTrackingList(); + superTypes ??= new ChangeTrackingList(); + + return new AtlasClassificationDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + attributeDefs.ToList(), + entityTypes.ToList(), + subTypes.ToList(), + superTypes.ToList(), + additionalBinaryDataProperties: null); + } + + /// class that captures details of a entity-type. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// An array of attribute definitions. + /// An array of sub types. + /// An array of super types. + /// An array of relationship attributes. + /// A new instance for mocking. + public static AtlasEntityDef AtlasEntityDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable attributeDefs = default, IEnumerable subTypes = default, IEnumerable superTypes = default, IEnumerable relationshipAttributeDefs = default) + { + options ??= new ChangeTrackingDictionary(); + attributeDefs ??= new ChangeTrackingList(); + subTypes ??= new ChangeTrackingList(); + superTypes ??= new ChangeTrackingList(); + relationshipAttributeDefs ??= new ChangeTrackingList(); + + return new AtlasEntityDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + attributeDefs.ToList(), + subTypes.ToList(), + superTypes.ToList(), + relationshipAttributeDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// single-valued attribute or multi-valued attribute. + /// An array of constraints. + /// The default value of the attribute. + /// The description of the attribute. + /// Determines if it is included in notification. + /// Determines if it is indexable. + /// Determines if it is optional. + /// Determines if it unique. + /// The name of the attribute. + /// The options for the attribute. + /// The name of the type. + /// The maximum count of the values. + /// The minimum count of the values. + /// Determines if it is a legacy attribute. + /// The name of the relationship type. + /// A new instance for mocking. + public static AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(CardinalityValue? cardinality = default, IEnumerable constraints = default, string defaultValue = default, string description = default, bool? includeInNotification = default, bool? isIndexable = default, bool? isOptional = default, bool? isUnique = default, string name = default, IDictionary options = default, string typeName = default, int? valuesMaxCount = default, int? valuesMinCount = default, bool? isLegacyAttribute = default, string relationshipTypeName = default) + { + constraints ??= new ChangeTrackingList(); + options ??= new ChangeTrackingDictionary(); + + return new AtlasRelationshipAttributeDef( + cardinality, + constraints.ToList(), + defaultValue, + description, + includeInNotification, + isIndexable, + isOptional, + isUnique, + name, + options, + typeName, + valuesMaxCount, + valuesMinCount, + isLegacyAttribute, + relationshipTypeName, + additionalBinaryDataProperties: null); + } + + /// class that captures details of an enum-type. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// The default value. + /// An array of enum element definitions. + /// A new instance for mocking. + public static AtlasEnumDef AtlasEnumDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, string defaultValue = default, IEnumerable elementDefs = default) + { + options ??= new ChangeTrackingDictionary(); + elementDefs ??= new ChangeTrackingList(); + + return new AtlasEnumDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + defaultValue, + elementDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// class that captures details of an enum-element. + /// The description of the enum element definition. + /// The ordinal of the enum element definition. + /// The value of the enum element definition. + /// A new instance for mocking. + public static AtlasEnumElementDef AtlasEnumElementDef(string description = default, int? ordinal = default, string value = default) + { + return new AtlasEnumElementDef(description, ordinal, value, additionalBinaryDataProperties: null); + } + + /// + /// AtlasRelationshipDef is a TypeDef that defines a relationship. + /// As with other typeDefs the AtlasRelationshipDef has a name. Once created the + /// RelationshipDef has a guid. + /// The name and the guid are the 2 ways that the + /// RelationshipDef is identified. + /// RelationshipDefs have 2 ends, each of which + /// specify cardinality, an EntityDef type name and name and optionally + /// whether the + /// end is a container. + /// RelationshipDefs can have AttributeDefs - though only + /// primitive types are allowed. + /// RelationshipDefs have a relationshipCategory + /// specifying the UML type of relationship required + /// The way EntityDefs and + /// RelationshipDefs are intended to be used is that EntityDefs will define + /// AttributeDefs these AttributeDefs + /// will not specify an EntityDef type name as + /// their types. + /// RelationshipDefs introduce new attributes to the entity + /// instances. For example + /// EntityDef A might have attributes attr1,attr2,attr3 + /// + /// EntityDef B might have attributes attr4,attr5,attr6 + /// RelationshipDef + /// AtoB might define 2 ends + /// + /// end1: type A, name attr7 + /// end2: type B, name attr8 + /// + /// When an instance of EntityDef A is created, it + /// will have attributes attr1,attr2,attr3,attr7 + /// When an instance of EntityDef + /// B is created, it will have attributes attr4,attr5,attr6,attr8 + /// + /// In this way + /// relationshipDefs can be authored separately from entityDefs and can inject + /// relationship attributes into + /// the entity instances + /// + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// An array of attribute definitions. + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// + /// The Relationship category determines the style of relationship around + /// containment and lifecycle. + /// UML terminology is used for the values. + /// ASSOCIATION is a relationship with no containment. + /// COMPOSITION and AGGREGATION are containment relationships. + /// 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. + /// + /// The label of the relationship. + /// A new instance for mocking. + public static AtlasRelationshipDef AtlasRelationshipDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable attributeDefs = default, AtlasRelationshipEndDef endDef1 = default, AtlasRelationshipEndDef endDef2 = default, RelationshipCategory? relationshipCategory = default, string relationshipLabel = default) + { + options ??= new ChangeTrackingDictionary(); + attributeDefs ??= new ChangeTrackingList(); + + return new AtlasRelationshipDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + attributeDefs.ToList(), + endDef1, + endDef2, + relationshipCategory, + relationshipLabel, + additionalBinaryDataProperties: null); + } + + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// single-valued attribute or multi-valued attribute. + /// The description of the relationship end definition. + /// Determines if it is container. + /// Determines if it is a legacy attribute. + /// The name of the relationship end definition. + /// The type of the relationship end. + /// A new instance for mocking. + public static AtlasRelationshipEndDef AtlasRelationshipEndDef(CardinalityValue? cardinality = default, string description = default, bool? isContainer = default, bool? isLegacyAttribute = default, string name = default, string @type = default) + { + return new AtlasRelationshipEndDef( + cardinality, + description, + isContainer, + isLegacyAttribute, + name, + @type, + additionalBinaryDataProperties: null); + } + + /// class that captures details of a struct-type. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// An array of attribute definitions. + /// A new instance for mocking. + public static AtlasStructDef AtlasStructDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable attributeDefs = default) + { + options ??= new ChangeTrackingDictionary(); + attributeDefs ??= new ChangeTrackingList(); + + return new AtlasStructDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + attributeDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// The definitions of type. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// + /// Specifying a list of entityType names in the classificationDef, ensures that + /// classifications can + /// only be applied to those entityTypes. + /// + /// Any subtypes of the entity types inherit the restriction. + /// + /// Any classificationDef subtypes inherit the parents entityTypes restrictions. + /// + /// Any classificationDef subtypes can further restrict the parents entityTypes + /// restrictions by specifying a subset of the entityTypes. + /// + /// An empty entityTypes list when there are no parent restrictions means there are no + /// restrictions. + /// + /// An empty entityTypes list when there are parent + /// restrictions means that the subtype picks up the parents + /// restrictions. + /// + /// If a list of entityTypes are supplied, where one inherits + /// from another, this will be rejected. This should encourage cleaner + /// classificationsDefs. + /// + /// + /// An array of sub types. + /// An array of super types. + /// An array of relationship attributes. + /// The default value. + /// An array of enum element definitions. + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// + /// The relationshipEndDef represents an end of the relationship. The end of the + /// relationship is defined by a type, an + /// attribute name, cardinality and whether + /// it is the container end of the relationship. + /// + /// + /// The Relationship category determines the style of relationship around + /// containment and lifecycle. + /// UML terminology is used for the values. + /// + /// ASSOCIATION is a relationship with no containment. + /// COMPOSITION and AGGREGATION are containment relationships. + /// + /// 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. + /// + /// The label of the relationship. + /// An array of attribute definitions. + /// A new instance for mocking. + public static AtlasTypeDef AtlasTypeDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable entityTypes = default, IEnumerable subTypes = default, IEnumerable superTypes = default, IEnumerable relationshipAttributeDefs = default, string defaultValue = default, IEnumerable elementDefs = default, AtlasRelationshipEndDef endDef1 = default, AtlasRelationshipEndDef endDef2 = default, RelationshipCategory? relationshipCategory = default, string relationshipLabel = default, IEnumerable attributeDefs = default) + { + options ??= new ChangeTrackingDictionary(); + entityTypes ??= new ChangeTrackingList(); + subTypes ??= new ChangeTrackingList(); + superTypes ??= new ChangeTrackingList(); + relationshipAttributeDefs ??= new ChangeTrackingList(); + elementDefs ??= new ChangeTrackingList(); + attributeDefs ??= new ChangeTrackingList(); + + return new AtlasTypeDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + entityTypes.ToList(), + subTypes.ToList(), + superTypes.ToList(), + relationshipAttributeDefs.ToList(), + defaultValue, + elementDefs.ToList(), + endDef1, + endDef2, + relationshipCategory, + relationshipLabel, + attributeDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// The definitions of types. + /// businessMetadataDefs. + /// An array of classification definitions. + /// An array of entity definitions. + /// An array of enum definitions. + /// An array of relationship definitions. + /// An array of struct definitions. + /// An array of term template definitions. + /// A new instance for mocking. + public static AtlasTypesDef AtlasTypesDef(IEnumerable businessMetadataDefs = default, IEnumerable classificationDefs = default, IEnumerable entityDefs = default, IEnumerable enumDefs = default, IEnumerable relationshipDefs = default, IEnumerable structDefs = default, IEnumerable termTemplateDefs = default) + { + businessMetadataDefs ??= new ChangeTrackingList(); + classificationDefs ??= new ChangeTrackingList(); + entityDefs ??= new ChangeTrackingList(); + enumDefs ??= new ChangeTrackingList(); + relationshipDefs ??= new ChangeTrackingList(); + structDefs ??= new ChangeTrackingList(); + termTemplateDefs ??= new ChangeTrackingList(); + + return new AtlasTypesDef( + businessMetadataDefs.ToList(), + classificationDefs.ToList(), + entityDefs.ToList(), + enumDefs.ToList(), + relationshipDefs.ToList(), + structDefs.ToList(), + termTemplateDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// Term template definition for glossary term. + /// The enum of type category. + /// The created time of the record. + /// The user who created the record. + /// The date format. + /// The description of the type definition. + /// The GUID of the type definition. + /// The name of the type definition. + /// The options for the type definition. + /// The service type. + /// The version of the type. + /// The update time of the record. + /// The user who updated the record. + /// The version of the record. + /// ETag for concurrency control. + /// An array of attribute definitions. + /// A new instance for mocking. + public static TermTemplateDef TermTemplateDef(TypeCategory? category = default, long? createTime = default, string createdBy = default, AtlasDateFormat dateFormatter = default, string description = default, string guid = default, string name = default, IDictionary options = default, string serviceType = default, string typeVersion = default, long? updateTime = default, string updatedBy = default, long? version = default, string lastModifiedTS = default, IEnumerable attributeDefs = default) + { + options ??= new ChangeTrackingDictionary(); + attributeDefs ??= new ChangeTrackingList(); + + return new TermTemplateDef( + category, + createTime, + createdBy, + dateFormatter, + description, + guid, + name, + options, + serviceType, + typeVersion, + updateTime, + updatedBy, + version, + lastModifiedTS, + attributeDefs.ToList(), + additionalBinaryDataProperties: null); + } + + /// The basic information of the type definition. + /// The enum of type category. + /// The GUID of the type definition. + /// The name of the type definition. + /// A new instance for mocking. + public static AtlasTypeDefHeader AtlasTypeDefHeader(TypeCategory? category = default, string guid = default, string name = default) + { + return new AtlasTypeDefHeader(category, guid, name, additionalBinaryDataProperties: null); + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.Serialization.cs index 3887c57b6b30..318d370eb478 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class PurviewObjectId : IUtf8JsonSerializable, IJsonModel + /// PurviewObjectId. + public partial class PurviewObjectId : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(PurviewObjectId)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Guid)) { writer.WritePropertyName("guid"u8); @@ -57,9 +56,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -100,9 +99,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -110,15 +109,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -127,22 +126,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - PurviewObjectId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + PurviewObjectId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual PurviewObjectId JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(PurviewObjectId)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializePurviewObjectId(document.RootElement, options); } - internal static PurviewObjectId DeserializePurviewObjectId(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static PurviewObjectId DeserializePurviewObjectId(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -155,77 +159,76 @@ internal static PurviewObjectId DeserializePurviewObjectId(JsonElement element, string itemPath = default; string resourceId = default; IDictionary properties = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("typeName"u8)) + if (prop.NameEquals("typeName"u8)) { - typeName = property.Value.GetString(); + typeName = prop.Value.GetString(); continue; } - if (property.NameEquals("uniqueAttributes"u8)) + if (prop.NameEquals("uniqueAttributes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } uniqueAttributes = dictionary; continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("displayText"u8)) + if (prop.NameEquals("displayText"u8)) { - displayText = property.Value.GetString(); + displayText = prop.Value.GetString(); continue; } - if (property.NameEquals("itemPath"u8)) + if (prop.NameEquals("itemPath"u8)) { - itemPath = property.Value.GetString(); + itemPath = prop.Value.GetString(); continue; } - if (property.NameEquals("resourceId"u8)) + if (prop.NameEquals("resourceId"u8)) { - resourceId = property.Value.GetString(); + resourceId = prop.Value.GetString(); continue; } - if (property.NameEquals("properties"u8)) + if (prop.NameEquals("properties"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (prop0.Value.ValueKind == JsonValueKind.Null) { - dictionary.Add(property0.Name, null); + dictionary.Add(prop0.Name, null); } else { - dictionary.Add(property0.Name, BinaryData.FromString(property0.Value.GetRawText())); + dictionary.Add(prop0.Name, BinaryData.FromString(prop0.Value.GetRawText())); } } properties = dictionary; @@ -233,10 +236,9 @@ internal static PurviewObjectId DeserializePurviewObjectId(JsonElement element, } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new PurviewObjectId( guid, typeName, @@ -246,13 +248,16 @@ internal static PurviewObjectId DeserializePurviewObjectId(JsonElement element, itemPath, resourceId, properties ?? new ChangeTrackingDictionary(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -262,15 +267,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opt } } - PurviewObjectId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + PurviewObjectId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual PurviewObjectId PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializePurviewObjectId(document.RootElement, options); } default: @@ -278,22 +288,7 @@ PurviewObjectId IPersistableModel.Create(BinaryData data, Model } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static PurviewObjectId FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializePurviewObjectId(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.cs index d6e547d7a4ce..311715375971 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// PurviewObjectId. public partial class PurviewObjectId { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public PurviewObjectId() @@ -61,8 +33,8 @@ public PurviewObjectId() /// Item path. /// Resource Id. /// Dictionary of <any>. - /// Keeps track of any properties unknown to the library. - internal PurviewObjectId(string guid, string typeName, IDictionary uniqueAttributes, string name, string displayText, string itemPath, string resourceId, IDictionary properties, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal PurviewObjectId(string guid, string typeName, IDictionary uniqueAttributes, string name, string displayText, string itemPath, string resourceId, IDictionary properties, IDictionary additionalBinaryDataProperties) { Guid = guid; TypeName = typeName; @@ -72,78 +44,77 @@ internal PurviewObjectId(string guid, string typeName, IDictionary The GUID of the object. public string Guid { get; set; } + /// The name of the type. public string TypeName { get; set; } + /// /// The unique attributes of the object. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IDictionary UniqueAttributes { get; } + /// Name. public string Name { get; set; } + /// Display text. public string DisplayText { get; set; } + /// Item path. public string ItemPath { get; set; } + /// Resource Id. public string ResourceId { get; set; } + /// /// Dictionary of <any> - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the value of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.Serialization.cs index f3398c1e2e3d..b46bd71e0558 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.Serialization.cs @@ -13,10 +13,11 @@ namespace Azure.Analytics.Purview.DataMap { - public partial class QueryConfig : IUtf8JsonSerializable, IJsonModel + /// The search query of advanced search request. + public partial class QueryConfig : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptio /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(QueryConfig)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Keywords)) { writer.WritePropertyName("keywords"u8); @@ -53,7 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("orderby"u8); writer.WriteStartArray(); - foreach (var item in Orderby) + foreach (BinaryData item in Orderby) { if (item == null) { @@ -61,9 +61,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit continue; } #if NET6_0_OR_GREATER - writer.WriteRawValue(item); + writer.WriteRawValue(item); #else - using (JsonDocument document = JsonDocument.Parse(item, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -75,9 +75,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("filter"u8); #if NET6_0_OR_GREATER - writer.WriteRawValue(Filter); + writer.WriteRawValue(Filter); #else - using (JsonDocument document = JsonDocument.Parse(Filter, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(Filter)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -87,7 +87,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("facets"u8); writer.WriteStartArray(); - foreach (var item in Facets) + foreach (SearchFacetItem item in Facets) { writer.WriteObjectValue(item, options); } @@ -98,15 +98,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("taxonomySetting"u8); writer.WriteObjectValue(TaxonomySetting, options); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -115,22 +115,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - QueryConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + QueryConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual QueryConfig JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(QueryConfig)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeQueryConfig(document.RootElement, options); } - internal static QueryConfig DeserializeQueryConfig(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static QueryConfig DeserializeQueryConfig(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -138,41 +143,40 @@ internal static QueryConfig DeserializeQueryConfig(JsonElement element, ModelRea string keywords = default; int? limit = default; string continuationToken = default; - IList orderby = default; + IList @orderby = default; BinaryData filter = default; IList facets = default; SearchTaxonomySetting taxonomySetting = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("keywords"u8)) + if (prop.NameEquals("keywords"u8)) { - keywords = property.Value.GetString(); + keywords = prop.Value.GetString(); continue; } - if (property.NameEquals("limit"u8)) + if (prop.NameEquals("limit"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - limit = property.Value.GetInt32(); + limit = prop.Value.GetInt32(); continue; } - if (property.NameEquals("continuationToken"u8)) + if (prop.NameEquals("continuationToken"u8)) { - continuationToken = property.Value.GetString(); + continuationToken = prop.Value.GetString(); continue; } - if (property.NameEquals("orderby"u8)) + if (prop.NameEquals("orderby"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { @@ -183,62 +187,64 @@ internal static QueryConfig DeserializeQueryConfig(JsonElement element, ModelRea array.Add(BinaryData.FromString(item.GetRawText())); } } - orderby = array; + @orderby = array; continue; } - if (property.NameEquals("filter"u8)) + if (prop.NameEquals("filter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - filter = BinaryData.FromString(property.Value.GetRawText()); + filter = BinaryData.FromString(prop.Value.GetRawText()); continue; } - if (property.NameEquals("facets"u8)) + if (prop.NameEquals("facets"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItem.DeserializeSearchFacetItem(item, options)); } facets = array; continue; } - if (property.NameEquals("taxonomySetting"u8)) + if (prop.NameEquals("taxonomySetting"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - taxonomySetting = SearchTaxonomySetting.DeserializeSearchTaxonomySetting(property.Value, options); + taxonomySetting = SearchTaxonomySetting.DeserializeSearchTaxonomySetting(prop.Value, options); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new QueryConfig( keywords, limit, continuationToken, - orderby ?? new ChangeTrackingList(), + @orderby ?? new ChangeTrackingList(), filter, facets ?? new ChangeTrackingList(), taxonomySetting, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -248,15 +254,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options } } - QueryConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + QueryConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual QueryConfig PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeQueryConfig(document.RootElement, options); } default: @@ -264,21 +275,18 @@ QueryConfig IPersistableModel.Create(BinaryData data, ModelReaderWr } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static QueryConfig FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(QueryConfig queryConfig) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeQueryConfig(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + if (queryConfig == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(queryConfig, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.cs index ef106784dbe3..ab2a4ea743fe 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// The search query of advanced search request. public partial class QueryConfig { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public QueryConfig() @@ -66,95 +38,93 @@ public QueryConfig() /// The filter for the search. See examples for the usage of supported filters. /// The facets for search. See examples for the usage of supported facets. /// The taxonomy setting for search. - /// Keeps track of any properties unknown to the library. - internal QueryConfig(string keywords, int? limit, string continuationToken, IList orderby, BinaryData filter, IList facets, SearchTaxonomySetting taxonomySetting, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal QueryConfig(string keywords, int? limit, string continuationToken, IList @orderby, BinaryData filter, IList facets, SearchTaxonomySetting taxonomySetting, IDictionary additionalBinaryDataProperties) { Keywords = keywords; Limit = limit; ContinuationToken = continuationToken; - Orderby = orderby; + Orderby = @orderby; Filter = filter; Facets = facets; TaxonomySetting = taxonomySetting; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The keywords applied to all searchable fields. public string Keywords { get; set; } + /// /// The limit of the number of the search result. default value is 50; maximum /// value is 1000. /// public int? Limit { get; set; } + /// /// The token used to get next batch of data. Default 'Null' to get the first /// batch, and will return new token in each response unless there's no more data. /// public string ContinuationToken { get; set; } + /// /// The sort order of search results, can specify multiple fields. - /// - /// To assign an object to the element of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to the element of this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public IList Orderby { get; } + /// /// The filter for the search. See examples for the usage of supported filters. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// /// public BinaryData Filter { get; set; } + /// The facets for search. See examples for the usage of supported facets. public IList Facets { get; } + /// The taxonomy setting for search. public SearchTaxonomySetting TaxonomySetting { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.Serialization.cs index 02fba6df9264..27b30dda8e64 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class QueryResult : IUtf8JsonSerializable, IJsonModel + /// The result of the search result. + public partial class QueryResult : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptio /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(QueryResult)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SearchCount)) { writer.WritePropertyName("@search.count"u8); @@ -58,21 +58,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("value"u8); writer.WriteStartArray(); - foreach (var item in Value) + foreach (SearchResultValue item in Value) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -81,22 +81,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - QueryResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + QueryResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual QueryResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(QueryResult)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeQueryResult(document.RootElement, options); } - internal static QueryResult DeserializeQueryResult(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static QueryResult DeserializeQueryResult(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -105,51 +110,50 @@ internal static QueryResult DeserializeQueryResult(JsonElement element, ModelRea bool? searchCountApproximate = default; string continuationToken = default; SearchFacetResultValue searchFacets = default; - IReadOnlyList value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList value = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("@search.count"u8)) + if (prop.NameEquals("@search.count"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - searchCount = property.Value.GetInt32(); + searchCount = prop.Value.GetInt32(); continue; } - if (property.NameEquals("@search.count.approximate"u8)) + if (prop.NameEquals("@search.count.approximate"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - searchCountApproximate = property.Value.GetBoolean(); + searchCountApproximate = prop.Value.GetBoolean(); continue; } - if (property.NameEquals("continuationToken"u8)) + if (prop.NameEquals("continuationToken"u8)) { - continuationToken = property.Value.GetString(); + continuationToken = prop.Value.GetString(); continue; } - if (property.NameEquals("@search.facets"u8)) + if (prop.NameEquals("@search.facets"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - searchFacets = SearchFacetResultValue.DeserializeSearchFacetResultValue(property.Value, options); + searchFacets = SearchFacetResultValue.DeserializeSearchFacetResultValue(prop.Value, options); continue; } - if (property.NameEquals("value"u8)) + if (prop.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchResultValue.DeserializeSearchResultValue(item, options)); } @@ -158,23 +162,25 @@ internal static QueryResult DeserializeQueryResult(JsonElement element, ModelRea } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new QueryResult( searchCount, searchCountApproximate, continuationToken, searchFacets, value ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -184,15 +190,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options } } - QueryResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + QueryResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual QueryResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeQueryResult(document.RootElement, options); } default: @@ -200,22 +211,14 @@ QueryResult IPersistableModel.Create(BinaryData data, ModelReaderWr } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static QueryResult FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeQueryResult(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator QueryResult(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeQueryResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.cs index 25c76005beab..f4c7891f7881 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The result of the search result. public partial class QueryResult { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal QueryResult() @@ -64,15 +35,15 @@ internal QueryResult() /// the facet is returned as an element of @search.facets. /// /// Search result value. - /// Keeps track of any properties unknown to the library. - internal QueryResult(int? searchCount, bool? searchCountApproximate, string continuationToken, SearchFacetResultValue searchFacets, IReadOnlyList value, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal QueryResult(int? searchCount, bool? searchCountApproximate, string continuationToken, SearchFacetResultValue searchFacets, IList value, IDictionary additionalBinaryDataProperties) { SearchCount = searchCount; SearchCountApproximate = searchCountApproximate; ContinuationToken = continuationToken; SearchFacets = searchFacets; Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// @@ -80,17 +51,21 @@ internal QueryResult(int? searchCount, bool? searchCountApproximate, string cont /// page). /// public int? SearchCount { get; } + /// 'True' if the '@search.count' is an approximate value and vise versa. public bool? SearchCountApproximate { get; } + /// The token used to get next batch of data. Absent if there's no more data. public string ContinuationToken { get; } + /// /// A facet list that consists of index fields assetType ,classification, /// contactId, and label. When the facet is specified in the request, the value of /// the facet is returned as an element of @search.facets. /// public SearchFacetResultValue SearchFacets { get; } + /// Search result value. - public IReadOnlyList Value { get; } + public IList Value { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.RestClient.cs new file mode 100644 index 000000000000..66177af9c659 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.RestClient.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class Relationship + { + private static ResponseClassifier _pipelineMessageClassifier200; + private static ResponseClassifier _pipelineMessageClassifier204; + + private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 }); + + private static ResponseClassifier PipelineMessageClassifier204 => _pipelineMessageClassifier204 = new StatusCodeClassifier(stackalloc ushort[] { 204 }); + + internal HttpMessage CreateCreateRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/relationship", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateUpdateRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/relationship", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetRequest(string guid, bool? extendedInfo, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/relationship/guid/", false); + uri.AppendPath(guid, true); + if (extendedInfo != null) + { + uri.AppendQuery("extendedInfo", TypeFormatters.ConvertToString(extendedInfo), true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeleteRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/relationship/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs index 922e49450525..2f6eb3788e62 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Relationship.cs @@ -8,105 +8,62 @@ using System; using System.Threading; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Analytics.Purview.DataMap { - // Data plane generated sub-client. /// The Relationship sub-client. public partial class Relationship { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of Relationship for mocking. protected Relationship() { } /// Initializes a new instance of Relationship. - /// The handler for diagnostic messaging in the client. + /// The ClientDiagnostics is used to provide tracing support for the client library. /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. - /// The to use. - internal Relationship(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint) + /// Service endpoint. + internal Relationship(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; _endpoint = endpoint; + Pipeline = pipeline; } - /// Create a new relationship between entities. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> CreateAsync(AtlasRelationship body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await CreateAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AtlasRelationship.FromResponse(response), response); - } - - /// Create a new relationship between entities. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual Response Create(AtlasRelationship body, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(body, nameof(body)); + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Create(content, context); - return Response.FromValue(AtlasRelationship.FromResponse(response), response); - } + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } /// /// [Protocol Method] Create a new relationship between entities. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task CreateAsync(RequestContent content, RequestContext context = null) + public virtual Response Create(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.Create"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Create"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateCreateRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -119,33 +76,25 @@ public virtual async Task CreateAsync(RequestContent content, RequestC /// [Protocol Method] Create a new relationship between entities. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Create(RequestContent content, RequestContext context = null) + public virtual async Task CreateAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.Create"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Create"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateCreateRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -154,67 +103,55 @@ public virtual Response Create(RequestContent content, RequestContext context = } } - /// Update an existing relationship between entities. + /// Create a new relationship between entities. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> UpdateAsync(AtlasRelationship body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response Create(AtlasRelationship body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await UpdateAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AtlasRelationship.FromResponse(response), response); + Response result = Create(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasRelationship)result, result); } - /// Update an existing relationship between entities. + /// Create a new relationship between entities. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response Update(AtlasRelationship body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> CreateAsync(AtlasRelationship body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = Update(content, context); - return Response.FromValue(AtlasRelationship.FromResponse(response), response); + Response result = await CreateAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasRelationship)result, result); } /// /// [Protocol Method] Update an existing relationship between entities. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task UpdateAsync(RequestContent content, RequestContext context = null) + public virtual Response Update(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.Update"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Update"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -227,33 +164,25 @@ public virtual async Task UpdateAsync(RequestContent content, RequestC /// [Protocol Method] Update an existing relationship between entities. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Update(RequestContent content, RequestContext context = null) + public virtual async Task UpdateAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.Update"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Update"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateUpdateRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -262,71 +191,57 @@ public virtual Response Update(RequestContent content, RequestContext context = } } - /// Get relationship information between entities by its GUID. - /// The globally unique identifier of the relationship. - /// Limits whether includes extended information. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetRelationshipAsync(string guid, bool? extendedInfo = null, CancellationToken cancellationToken = default) + /// Update an existing relationship between entities. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response Update(AtlasRelationship body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetRelationshipAsync(guid, extendedInfo, context).ConfigureAwait(false); - return Response.FromValue(AtlasRelationshipWithExtInfo.FromResponse(response), response); + Response result = Update(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasRelationship)result, result); } - /// Get relationship information between entities by its GUID. - /// The globally unique identifier of the relationship. - /// Limits whether includes extended information. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetRelationship(string guid, bool? extendedInfo = null, CancellationToken cancellationToken = default) + /// Update an existing relationship between entities. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> UpdateAsync(AtlasRelationship body, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNull(body, nameof(body)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetRelationship(guid, extendedInfo, context); - return Response.FromValue(AtlasRelationshipWithExtInfo.FromResponse(response), response); + Response result = await UpdateAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasRelationship)result, result); } /// /// [Protocol Method] Get relationship information between entities by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the relationship. /// Limits whether includes extended information. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetRelationshipAsync(string guid, bool? extendedInfo, RequestContext context) + public virtual Response Get(string guid, bool? extendedInfo, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.GetRelationship"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Get"); scope.Start(); try { - using HttpMessage message = CreateGetRelationshipRequest(guid, extendedInfo, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + using HttpMessage message = CreateGetRequest(guid, extendedInfo, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -339,35 +254,27 @@ public virtual async Task GetRelationshipAsync(string guid, bool? exte /// [Protocol Method] Get relationship information between entities by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the relationship. /// Limits whether includes extended information. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetRelationship(string guid, bool? extendedInfo, RequestContext context) + public virtual async Task GetAsync(string guid, bool? extendedInfo, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.GetRelationship"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Get"); scope.Start(); try { - using HttpMessage message = CreateGetRelationshipRequest(guid, extendedInfo, context); - return _pipeline.ProcessMessage(message, context); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + using HttpMessage message = CreateGetRequest(guid, extendedInfo, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -376,34 +283,60 @@ public virtual Response GetRelationship(string guid, bool? extendedInfo, Request } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// Get relationship information between entities by its GUID. + /// The globally unique identifier of the relationship. + /// Limits whether includes extended information. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response Get(string guid, bool? extendedInfo = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + Response result = Get(guid, extendedInfo, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasRelationshipWithExtInfo)result, result); + } + + /// Get relationship information between entities by its GUID. + /// The globally unique identifier of the relationship. + /// Limits whether includes extended information. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetAsync(string guid, bool? extendedInfo = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + + Response result = await GetAsync(guid, extendedInfo, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasRelationshipWithExtInfo)result, result); + } + /// /// [Protocol Method] Delete a relationship between entities by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the relationship. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteAsync(string guid, RequestContext context = null) + public virtual Response Delete(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateDeleteRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -412,34 +345,30 @@ public virtual async Task DeleteAsync(string guid, RequestContext cont } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// /// [Protocol Method] Delete a relationship between entities by its GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the relationship. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Delete(string guid, RequestContext context = null) + public virtual async Task DeleteAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("Relationship.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("Relationship.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateDeleteRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -448,85 +377,30 @@ public virtual Response Delete(string guid, RequestContext context = null) } } - internal HttpMessage CreateCreateRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/relationship", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateUpdateRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/relationship", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetRelationshipRequest(string guid, bool? extendedInfo, RequestContext context) + /// Delete a relationship between entities by its GUID. + /// The globally unique identifier of the relationship. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response Delete(string guid, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/relationship/guid/", false); - uri.AppendPath(guid, true); - if (extendedInfo != null) - { - uri.AppendQuery("extendedInfo", extendedInfo.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - internal HttpMessage CreateDeleteRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/relationship/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - return message; + return Delete(guid, cancellationToken.ToRequestContext()); } - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) + /// Delete a relationship between entities by its GUID. + /// The globally unique identifier of the relationship. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task DeleteAsync(string guid, CancellationToken cancellationToken = default) { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - return new RequestContext() { CancellationToken = cancellationToken }; + return await DeleteAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - private static ResponseClassifier _responseClassifier204; - private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 }); } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RelationshipCategory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RelationshipCategory.cs index 7b7458cfe22a..81a74619aebd 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RelationshipCategory.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RelationshipCategory.cs @@ -14,41 +14,62 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct RelationshipCategory : IEquatable { private readonly string _value; + /// association. + private const string AssociationValue = "ASSOCIATION"; + /// aggregation. + private const string AggregationValue = "AGGREGATION"; + /// composition. + private const string CompositionValue = "COMPOSITION"; /// Initializes a new instance of . + /// The value. /// is null. public RelationshipCategory(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string AssociationValue = "ASSOCIATION"; - private const string AggregationValue = "AGGREGATION"; - private const string CompositionValue = "COMPOSITION"; + _value = value; + } /// association. public static RelationshipCategory Association { get; } = new RelationshipCategory(AssociationValue); + /// aggregation. public static RelationshipCategory Aggregation { get; } = new RelationshipCategory(AggregationValue); + /// composition. public static RelationshipCategory Composition { get; } = new RelationshipCategory(CompositionValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(RelationshipCategory left, RelationshipCategory right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(RelationshipCategory left, RelationshipCategory right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator RelationshipCategory(string value) => new RelationshipCategory(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator RelationshipCategory?(string value) => value == null ? null : new RelationshipCategory(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RelationshipCategory other && Equals(other); - /// + + /// public bool Equals(RelationshipCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.Serialization.cs index b4e658c43bb9..e2931b27556e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class ResourceLink : IUtf8JsonSerializable, IJsonModel + /// ResourceLink. + public partial class ResourceLink : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ResourceLink)} does not support writing '{format}' format."); } - if (Optional.IsDefined(DisplayName)) { writer.WritePropertyName("displayName"u8); @@ -44,15 +43,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("url"u8); writer.WriteStringValue(Url); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,55 +60,61 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ResourceLink IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + ResourceLink IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual ResourceLink JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(ResourceLink)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeResourceLink(document.RootElement, options); } - internal static ResourceLink DeserializeResourceLink(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static ResourceLink DeserializeResourceLink(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } string displayName = default; string url = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("displayName"u8)) + if (prop.NameEquals("displayName"u8)) { - displayName = property.Value.GetString(); + displayName = prop.Value.GetString(); continue; } - if (property.NameEquals("url"u8)) + if (prop.NameEquals("url"u8)) { - url = property.Value.GetString(); + url = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new ResourceLink(displayName, url, serializedAdditionalRawData); + return new ResourceLink(displayName, url, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -119,15 +124,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions option } } - ResourceLink IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + ResourceLink IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual ResourceLink PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeResourceLink(document.RootElement, options); } default: @@ -135,22 +145,7 @@ ResourceLink IPersistableModel.Create(BinaryData data, ModelReader } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static ResourceLink FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeResourceLink(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.cs index a99aed57db91..0f84ea684484 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// ResourceLink. public partial class ResourceLink { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public ResourceLink() @@ -53,16 +24,17 @@ public ResourceLink() /// Initializes a new instance of . /// Display name for url. /// web url. http or https. - /// Keeps track of any properties unknown to the library. - internal ResourceLink(string displayName, string url, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal ResourceLink(string displayName, string url, IDictionary additionalBinaryDataProperties) { DisplayName = displayName; Url = url; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Display name for url. public string DisplayName { get; set; } + /// web url. http or https. public string Url { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RoundingMode.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RoundingMode.cs index 08c4f044381b..d5699ef57376 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RoundingMode.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RoundingMode.cs @@ -14,56 +14,87 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct RoundingMode : IEquatable { private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RoundingMode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - + /// up. private const string UpValue = "UP"; + /// down. private const string DownValue = "DOWN"; + /// ceiling. private const string CeilingValue = "CEILING"; + /// floor. private const string FloorValue = "FLOOR"; + /// half up. private const string HalfUpValue = "HALF_UP"; + /// half down. private const string HalfDownValue = "HALF_DOWN"; + /// half even. private const string HalfEvenValue = "HALF_EVEN"; + /// unnecessary. private const string UnnecessaryValue = "UNNECESSARY"; + /// Initializes a new instance of . + /// The value. + /// is null. + public RoundingMode(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + /// up. public static RoundingMode Up { get; } = new RoundingMode(UpValue); + /// down. public static RoundingMode Down { get; } = new RoundingMode(DownValue); + /// ceiling. public static RoundingMode Ceiling { get; } = new RoundingMode(CeilingValue); + /// floor. public static RoundingMode Floor { get; } = new RoundingMode(FloorValue); + /// half up. public static RoundingMode HalfUp { get; } = new RoundingMode(HalfUpValue); + /// half down. public static RoundingMode HalfDown { get; } = new RoundingMode(HalfDownValue); + /// half even. public static RoundingMode HalfEven { get; } = new RoundingMode(HalfEvenValue); + /// unnecessary. public static RoundingMode Unnecessary { get; } = new RoundingMode(UnnecessaryValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(RoundingMode left, RoundingMode right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(RoundingMode left, RoundingMode right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator RoundingMode(string value) => new RoundingMode(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator RoundingMode?(string value) => value == null ? null : new RoundingMode(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RoundingMode other && Equals(other); - /// + + /// public bool Equals(RoundingMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.Serialization.cs index fbb44fe27659..dc7aee08f395 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchFacetItem : IUtf8JsonSerializable, IJsonModel + /// The content of a search facet result item. + public partial class SearchFacetItem : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetItem)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Count)) { writer.WritePropertyName("count"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("sort"u8); writer.WriteObjectValue(Sort, options); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchFacetItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchFacetItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchFacetItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetItem)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchFacetItem(document.RootElement, options); } - internal static SearchFacetItem DeserializeSearchFacetItem(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchFacetItem DeserializeSearchFacetItem(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,46 +93,47 @@ internal static SearchFacetItem DeserializeSearchFacetItem(JsonElement element, int? count = default; string facet = default; SearchFacetSort sort = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("count"u8)) + if (prop.NameEquals("count"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - count = property.Value.GetInt32(); + count = prop.Value.GetInt32(); continue; } - if (property.NameEquals("facet"u8)) + if (prop.NameEquals("facet"u8)) { - facet = property.Value.GetString(); + facet = prop.Value.GetString(); continue; } - if (property.NameEquals("sort"u8)) + if (prop.NameEquals("sort"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - sort = SearchFacetSort.DeserializeSearchFacetSort(property.Value, options); + sort = SearchFacetSort.DeserializeSearchFacetSort(prop.Value, options); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new SearchFacetItem(count, facet, sort, serializedAdditionalRawData); + return new SearchFacetItem(count, facet, sort, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -138,15 +143,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opt } } - SearchFacetItem IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchFacetItem IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchFacetItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchFacetItem(document.RootElement, options); } default: @@ -154,22 +164,7 @@ SearchFacetItem IPersistableModel.Create(BinaryData data, Model } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchFacetItem FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchFacetItem(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.cs index 2cd438f9479a..01d8b46333cc 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The content of a search facet result item. public partial class SearchFacetItem { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public SearchFacetItem() @@ -54,19 +25,21 @@ public SearchFacetItem() /// The count of the facet item. /// The name of the facet item. /// Define the sorting criteria for items. - /// Keeps track of any properties unknown to the library. - internal SearchFacetItem(int? count, string facet, SearchFacetSort sort, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchFacetItem(int? count, string facet, SearchFacetSort sort, IDictionary additionalBinaryDataProperties) { Count = count; Facet = facet; Sort = sort; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The count of the facet item. public int? Count { get; set; } + /// The name of the facet item. public string Facet { get; set; } + /// Define the sorting criteria for items. public SearchFacetSort Sort { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.Serialization.cs index f88febdddeed..9ad931be5fd2 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchFacetItemValue : IUtf8JsonSerializable, IJsonModel + /// The content of a search facet result item. + public partial class SearchFacetItemValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetItemValue)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Count)) { writer.WritePropertyName("count"u8); @@ -44,15 +43,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("value"u8); writer.WriteStringValue(Value); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,59 +60,65 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchFacetItemValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchFacetItemValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchFacetItemValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetItemValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchFacetItemValue(document.RootElement, options); } - internal static SearchFacetItemValue DeserializeSearchFacetItemValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchFacetItemValue DeserializeSearchFacetItemValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } int? count = default; string value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("count"u8)) + if (prop.NameEquals("count"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - count = property.Value.GetInt32(); + count = prop.Value.GetInt32(); continue; } - if (property.NameEquals("value"u8)) + if (prop.NameEquals("value"u8)) { - value = property.Value.GetString(); + value = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new SearchFacetItemValue(count, value, serializedAdditionalRawData); + return new SearchFacetItemValue(count, value, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -123,15 +128,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption } } - SearchFacetItemValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchFacetItemValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchFacetItemValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchFacetItemValue(document.RootElement, options); } default: @@ -139,22 +149,7 @@ SearchFacetItemValue IPersistableModel.Create(BinaryData d } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchFacetItemValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchFacetItemValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.cs index 75070e4c5ec5..13e0ab9ae4a8 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The content of a search facet result item. public partial class SearchFacetItemValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal SearchFacetItemValue() @@ -53,16 +24,17 @@ internal SearchFacetItemValue() /// Initializes a new instance of . /// The count of the facet item. /// The name of the facet item. - /// Keeps track of any properties unknown to the library. - internal SearchFacetItemValue(int? count, string value, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchFacetItemValue(int? count, string value, IDictionary additionalBinaryDataProperties) { Count = count; Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The count of the facet item. public int? Count { get; } + /// The name of the facet item. public string Value { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.Serialization.cs index faaabf976bf5..f31be7734bd5 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.Serialization.cs @@ -9,14 +9,18 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchFacetResultValue : IUtf8JsonSerializable, IJsonModel + /// + /// A facet list that consists of index fields assetType ,classification, + /// contactId, and label. When the facet is specified in the request, the value of + /// the facet is returned as an element of @search.facets. + /// + public partial class SearchFacetResultValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,17 +32,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetResultValue)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(EntityType)) { writer.WritePropertyName("entityType"u8); writer.WriteStartArray(); - foreach (var item in EntityType) + foreach (SearchFacetItemValue item in EntityType) { writer.WriteObjectValue(item, options); } @@ -48,7 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("assetType"u8); writer.WriteStartArray(); - foreach (var item in AssetType) + foreach (SearchFacetItemValue item in AssetType) { writer.WriteObjectValue(item, options); } @@ -58,7 +61,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classification"u8); writer.WriteStartArray(); - foreach (var item in Classification) + foreach (SearchFacetItemValue item in Classification) { writer.WriteObjectValue(item, options); } @@ -68,7 +71,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("term"u8); writer.WriteStartArray(); - foreach (var item in Term) + foreach (SearchFacetItemValue item in Term) { writer.WriteObjectValue(item, options); } @@ -78,7 +81,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("contactId"u8); writer.WriteStartArray(); - foreach (var item in ContactId) + foreach (SearchFacetItemValue item in ContactId) { writer.WriteObjectValue(item, options); } @@ -88,7 +91,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("contactType"u8); writer.WriteStartArray(); - foreach (var item in ContactType) + foreach (SearchFacetItemValue item in ContactType) { writer.WriteObjectValue(item, options); } @@ -98,7 +101,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("label"u8); writer.WriteStartArray(); - foreach (var item in Label) + foreach (SearchFacetItemValue item in Label) { writer.WriteObjectValue(item, options); } @@ -108,7 +111,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("glossaryType"u8); writer.WriteStartArray(); - foreach (var item in GlossaryType) + foreach (SearchFacetItemValue item in GlossaryType) { writer.WriteObjectValue(item, options); } @@ -118,7 +121,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("termStatus"u8); writer.WriteStartArray(); - foreach (var item in TermStatus) + foreach (SearchFacetItemValue item in TermStatus) { writer.WriteObjectValue(item, options); } @@ -128,21 +131,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("termTemplate"u8); writer.WriteStartArray(); - foreach (var item in TermTemplate) + foreach (SearchFacetItemValue item in TermTemplate) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -151,174 +154,178 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchFacetResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchFacetResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchFacetResultValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetResultValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchFacetResultValue(document.RootElement, options); } - internal static SearchFacetResultValue DeserializeSearchFacetResultValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchFacetResultValue DeserializeSearchFacetResultValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList entityType = default; - IReadOnlyList assetType = default; - IReadOnlyList classification = default; - IReadOnlyList term = default; - IReadOnlyList contactId = default; - IReadOnlyList contactType = default; - IReadOnlyList label = default; - IReadOnlyList glossaryType = default; - IReadOnlyList termStatus = default; - IReadOnlyList termTemplate = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList entityType = default; + IList assetType = default; + IList classification = default; + IList term = default; + IList contactId = default; + IList contactType = default; + IList label = default; + IList glossaryType = default; + IList termStatus = default; + IList termTemplate = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("entityType"u8)) + if (prop.NameEquals("entityType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } entityType = array; continue; } - if (property.NameEquals("assetType"u8)) + if (prop.NameEquals("assetType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } assetType = array; continue; } - if (property.NameEquals("classification"u8)) + if (prop.NameEquals("classification"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } classification = array; continue; } - if (property.NameEquals("term"u8)) + if (prop.NameEquals("term"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } term = array; continue; } - if (property.NameEquals("contactId"u8)) + if (prop.NameEquals("contactId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } contactId = array; continue; } - if (property.NameEquals("contactType"u8)) + if (prop.NameEquals("contactType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } contactType = array; continue; } - if (property.NameEquals("label"u8)) + if (prop.NameEquals("label"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } label = array; continue; } - if (property.NameEquals("glossaryType"u8)) + if (prop.NameEquals("glossaryType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } glossaryType = array; continue; } - if (property.NameEquals("termStatus"u8)) + if (prop.NameEquals("termStatus"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } termStatus = array; continue; } - if (property.NameEquals("termTemplate"u8)) + if (prop.NameEquals("termTemplate"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SearchFacetItemValue.DeserializeSearchFacetItemValue(item, options)); } @@ -327,10 +334,9 @@ internal static SearchFacetResultValue DeserializeSearchFacetResultValue(JsonEle } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new SearchFacetResultValue( entityType ?? new ChangeTrackingList(), assetType ?? new ChangeTrackingList(), @@ -342,13 +348,16 @@ internal static SearchFacetResultValue DeserializeSearchFacetResultValue(JsonEle glossaryType ?? new ChangeTrackingList(), termStatus ?? new ChangeTrackingList(), termTemplate ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -358,15 +367,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpti } } - SearchFacetResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchFacetResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchFacetResultValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchFacetResultValue(document.RootElement, options); } default: @@ -374,22 +388,7 @@ SearchFacetResultValue IPersistableModel.Create(BinaryDa } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchFacetResultValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchFacetResultValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.cs index e8e5163d958f..663587f203a8 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.cs @@ -17,37 +17,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class SearchFacetResultValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal SearchFacetResultValue() @@ -75,8 +46,8 @@ internal SearchFacetResultValue() /// Glossary type. /// Term status. /// Term template. - /// Keeps track of any properties unknown to the library. - internal SearchFacetResultValue(IReadOnlyList entityType, IReadOnlyList assetType, IReadOnlyList classification, IReadOnlyList term, IReadOnlyList contactId, IReadOnlyList contactType, IReadOnlyList label, IReadOnlyList glossaryType, IReadOnlyList termStatus, IReadOnlyList termTemplate, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchFacetResultValue(IList entityType, IList assetType, IList classification, IList term, IList contactId, IList contactType, IList label, IList glossaryType, IList termStatus, IList termTemplate, IDictionary additionalBinaryDataProperties) { EntityType = entityType; AssetType = assetType; @@ -88,28 +59,37 @@ internal SearchFacetResultValue(IReadOnlyList entityType, GlossaryType = glossaryType; TermStatus = termStatus; TermTemplate = termTemplate; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Entity type. - public IReadOnlyList EntityType { get; } + public IList EntityType { get; } + /// Asset type. - public IReadOnlyList AssetType { get; } + public IList AssetType { get; } + /// Classification. - public IReadOnlyList Classification { get; } + public IList Classification { get; } + /// Term. - public IReadOnlyList Term { get; } + public IList Term { get; } + /// Contact id. - public IReadOnlyList ContactId { get; } + public IList ContactId { get; } + /// Contact type. - public IReadOnlyList ContactType { get; } + public IList ContactType { get; } + /// Label. - public IReadOnlyList Label { get; } + public IList Label { get; } + /// Glossary type. - public IReadOnlyList GlossaryType { get; } + public IList GlossaryType { get; } + /// Term status. - public IReadOnlyList TermStatus { get; } + public IList TermStatus { get; } + /// Term template. - public IReadOnlyList TermTemplate { get; } + public IList TermTemplate { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.Serialization.cs index 72ee4449b4c8..930baacb02bc 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchFacetSort : IUtf8JsonSerializable, IJsonModel + /// The sorting criteria. + public partial class SearchFacetSort : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetSort)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Count)) { writer.WritePropertyName("count"u8); @@ -44,15 +43,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("value"u8); writer.WriteStringValue(Value.Value.ToString()); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,63 +60,69 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchFacetSort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchFacetSort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchFacetSort JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchFacetSort)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchFacetSort(document.RootElement, options); } - internal static SearchFacetSort DeserializeSearchFacetSort(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchFacetSort DeserializeSearchFacetSort(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } SearchSortOrder? count = default; SearchSortOrder? value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("count"u8)) + if (prop.NameEquals("count"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - count = new SearchSortOrder(property.Value.GetString()); + count = new SearchSortOrder(prop.Value.GetString()); continue; } - if (property.NameEquals("value"u8)) + if (prop.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - value = new SearchSortOrder(property.Value.GetString()); + value = new SearchSortOrder(prop.Value.GetString()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new SearchFacetSort(count, value, serializedAdditionalRawData); + return new SearchFacetSort(count, value, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -127,15 +132,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opt } } - SearchFacetSort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchFacetSort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchFacetSort PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchFacetSort(document.RootElement, options); } default: @@ -143,22 +153,7 @@ SearchFacetSort IPersistableModel.Create(BinaryData data, Model } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchFacetSort FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchFacetSort(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.cs index b6fa57ed5c5f..1f7bd9a5de67 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The sorting criteria. public partial class SearchFacetSort { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public SearchFacetSort() @@ -53,16 +24,17 @@ public SearchFacetSort() /// Initializes a new instance of . /// Order by count. /// Order by value. - /// Keeps track of any properties unknown to the library. - internal SearchFacetSort(SearchSortOrder? count, SearchSortOrder? value, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchFacetSort(SearchSortOrder? count, SearchSortOrder? value, IDictionary additionalBinaryDataProperties) { Count = count; Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Order by count. public SearchSortOrder? Count { get; set; } + /// Order by value. public SearchSortOrder? Value { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.Serialization.cs index 16513460a43e..4004dfe33e82 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.Serialization.cs @@ -9,14 +9,19 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchHighlights : IUtf8JsonSerializable, IJsonModel + /// + /// 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. + /// + public partial class SearchHighlights : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,18 +33,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchHighlights)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Id)) { writer.WritePropertyName("id"u8); writer.WriteStartArray(); - foreach (var item in Id) + foreach (string item in Id) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -48,8 +57,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("qualifiedName"u8); writer.WriteStartArray(); - foreach (var item in QualifiedName) + foreach (string item in QualifiedName) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -58,8 +72,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("name"u8); writer.WriteStartArray(); - foreach (var item in Name) + foreach (string item in Name) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -68,8 +87,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("description"u8); writer.WriteStartArray(); - foreach (var item in Description) + foreach (string item in Description) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -78,21 +102,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("entityType"u8); writer.WriteStartArray(); - foreach (var item in EntityType) + foreach (string item in EntityType) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -101,124 +130,165 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchHighlights IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchHighlights IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchHighlights JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchHighlights)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchHighlights(document.RootElement, options); } - internal static SearchHighlights DeserializeSearchHighlights(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchHighlights DeserializeSearchHighlights(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList id = default; - IReadOnlyList qualifiedName = default; - IReadOnlyList name = default; - IReadOnlyList description = default; - IReadOnlyList entityType = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList id = default; + IList qualifiedName = default; + IList name = default; + IList description = default; + IList entityType = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("id"u8)) + if (prop.NameEquals("id"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } id = array; continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } qualifiedName = array; continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } name = array; continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } description = array; continue; } - if (property.NameEquals("entityType"u8)) + if (prop.NameEquals("entityType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } entityType = array; continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new SearchHighlights( id ?? new ChangeTrackingList(), qualifiedName ?? new ChangeTrackingList(), name ?? new ChangeTrackingList(), description ?? new ChangeTrackingList(), entityType ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -228,15 +298,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions op } } - SearchHighlights IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchHighlights IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchHighlights PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchHighlights(document.RootElement, options); } default: @@ -244,22 +319,7 @@ SearchHighlights IPersistableModel.Create(BinaryData data, Mod } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchHighlights FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchHighlights(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.cs index 8f347dda1f6e..5148c4b6569e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.cs @@ -18,37 +18,8 @@ namespace Azure.Analytics.Purview.DataMap /// public partial class SearchHighlights { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal SearchHighlights() @@ -66,26 +37,30 @@ internal SearchHighlights() /// Name. /// Description. /// Entity type. - /// Keeps track of any properties unknown to the library. - internal SearchHighlights(IReadOnlyList id, IReadOnlyList qualifiedName, IReadOnlyList name, IReadOnlyList description, IReadOnlyList entityType, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchHighlights(IList id, IList qualifiedName, IList name, IList description, IList entityType, IDictionary additionalBinaryDataProperties) { Id = id; QualifiedName = qualifiedName; Name = name; Description = description; EntityType = entityType; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Id. - public IReadOnlyList Id { get; } + public IList Id { get; } + /// Qualified name. - public IReadOnlyList QualifiedName { get; } + public IList QualifiedName { get; } + /// Name. - public IReadOnlyList Name { get; } + public IList Name { get; } + /// Description. - public IReadOnlyList Description { get; } + public IList Description { get; } + /// Entity type. - public IReadOnlyList EntityType { get; } + public IList EntityType { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.Serialization.cs index 0b29ac98d0f9..020c120f6f7c 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchResultValue : IUtf8JsonSerializable, IJsonModel + /// The value item of the search result. + public partial class SearchResultValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchResultValue)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SearchScore)) { writer.WritePropertyName("@search.score"u8); @@ -88,8 +87,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("endorsement"u8); writer.WriteStartArray(); - foreach (var item in Endorsement) + foreach (string item in Endorsement) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -103,8 +107,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classification"u8); writer.WriteStartArray(); - foreach (var item in Classification) + foreach (string item in Classification) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -113,8 +122,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("label"u8); writer.WriteStartArray(); - foreach (var item in Label) + foreach (string item in Label) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -123,7 +137,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("term"u8); writer.WriteStartArray(); - foreach (var item in Term) + foreach (TermSearchResultValue item in Term) { writer.WriteObjectValue(item, options); } @@ -133,7 +147,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("contact"u8); writer.WriteStartArray(); - foreach (var item in Contact) + foreach (ContactSearchResultValue item in Contact) { writer.WriteObjectValue(item, options); } @@ -143,8 +157,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("assetType"u8); writer.WriteStartArray(); - foreach (var item in AssetType) + foreach (string item in AssetType) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -168,8 +187,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("termTemplate"u8); writer.WriteStartArray(); - foreach (var item in TermTemplate) + foreach (string item in TermTemplate) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -179,15 +203,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("longDescription"u8); writer.WriteStringValue(LongDescription); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -196,22 +220,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchResultValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchResultValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchResultValue(document.RootElement, options); } - internal static SearchResultValue DeserializeSearchResultValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchResultValue DeserializeSearchResultValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -226,217 +255,250 @@ internal static SearchResultValue DeserializeSearchResultValue(JsonElement eleme string qualifiedName = default; string entityType = default; string description = default; - IReadOnlyList endorsement = default; + IList endorsement = default; string owner = default; - IReadOnlyList classification = default; - IReadOnlyList label = default; - IReadOnlyList term = default; - IReadOnlyList contact = default; - IReadOnlyList assetType = default; + IList classification = default; + IList label = default; + IList term = default; + IList contact = default; + IList assetType = default; string glossaryType = default; string glossary = default; string termStatus = default; - IReadOnlyList termTemplate = default; + IList termTemplate = default; string longDescription = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("@search.score"u8)) + if (prop.NameEquals("@search.score"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - searchScore = property.Value.GetSingle(); + searchScore = prop.Value.GetSingle(); continue; } - if (property.NameEquals("@search.highlights"u8)) + if (prop.NameEquals("@search.highlights"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - searchHighlights = SearchHighlights.DeserializeSearchHighlights(property.Value, options); + searchHighlights = SearchHighlights.DeserializeSearchHighlights(prop.Value, options); continue; } - if (property.NameEquals("objectType"u8)) + if (prop.NameEquals("objectType"u8)) { - objectType = property.Value.GetString(); + objectType = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("id"u8)) + if (prop.NameEquals("id"u8)) { - id = property.Value.GetString(); + id = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - qualifiedName = property.Value.GetString(); + qualifiedName = prop.Value.GetString(); continue; } - if (property.NameEquals("entityType"u8)) + if (prop.NameEquals("entityType"u8)) { - entityType = property.Value.GetString(); + entityType = prop.Value.GetString(); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("endorsement"u8)) + if (prop.NameEquals("endorsement"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } endorsement = array; continue; } - if (property.NameEquals("owner"u8)) + if (prop.NameEquals("owner"u8)) { - owner = property.Value.GetString(); + owner = prop.Value.GetString(); continue; } - if (property.NameEquals("classification"u8)) + if (prop.NameEquals("classification"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } classification = array; continue; } - if (property.NameEquals("label"u8)) + if (prop.NameEquals("label"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } label = array; continue; } - if (property.NameEquals("term"u8)) + if (prop.NameEquals("term"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(TermSearchResultValue.DeserializeTermSearchResultValue(item, options)); } term = array; continue; } - if (property.NameEquals("contact"u8)) + if (prop.NameEquals("contact"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(ContactSearchResultValue.DeserializeContactSearchResultValue(item, options)); } contact = array; continue; } - if (property.NameEquals("assetType"u8)) + if (prop.NameEquals("assetType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } assetType = array; continue; } - if (property.NameEquals("glossaryType"u8)) + if (prop.NameEquals("glossaryType"u8)) { - glossaryType = property.Value.GetString(); + glossaryType = prop.Value.GetString(); continue; } - if (property.NameEquals("glossary"u8)) + if (prop.NameEquals("glossary"u8)) { - glossary = property.Value.GetString(); + glossary = prop.Value.GetString(); continue; } - if (property.NameEquals("termStatus"u8)) + if (prop.NameEquals("termStatus"u8)) { - termStatus = property.Value.GetString(); + termStatus = prop.Value.GetString(); continue; } - if (property.NameEquals("termTemplate"u8)) + if (prop.NameEquals("termTemplate"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } termTemplate = array; continue; } - if (property.NameEquals("longDescription"u8)) + if (prop.NameEquals("longDescription"u8)) { - longDescription = property.Value.GetString(); + longDescription = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new SearchResultValue( searchScore, searchHighlights, @@ -460,13 +522,16 @@ internal static SearchResultValue DeserializeSearchResultValue(JsonElement eleme termStatus, termTemplate ?? new ChangeTrackingList(), longDescription, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -476,15 +541,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions o } } - SearchResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchResultValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchResultValue(document.RootElement, options); } default: @@ -492,22 +562,7 @@ SearchResultValue IPersistableModel.Create(BinaryData data, M } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchResultValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchResultValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.cs index 300d91f3df01..d873358ed922 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The value item of the search result. public partial class SearchResultValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal SearchResultValue() @@ -94,8 +65,8 @@ internal SearchResultValue() /// The status of the term. /// The term template names used by the term. /// The definition of the term. - /// Keeps track of any properties unknown to the library. - internal SearchResultValue(float? searchScore, SearchHighlights searchHighlights, string objectType, long? createTime, long? updateTime, string id, string name, string qualifiedName, string entityType, string description, IReadOnlyList endorsement, string owner, IReadOnlyList classification, IReadOnlyList label, IReadOnlyList term, IReadOnlyList contact, IReadOnlyList assetType, string glossaryType, string glossary, string termStatus, IReadOnlyList termTemplate, string longDescription, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchResultValue(float? searchScore, SearchHighlights searchHighlights, string objectType, long? createTime, long? updateTime, string id, string name, string qualifiedName, string entityType, string description, IList endorsement, string owner, IList classification, IList label, IList term, IList contact, IList assetType, string glossaryType, string glossary, string termStatus, IList termTemplate, string longDescription, IDictionary additionalBinaryDataProperties) { SearchScore = searchScore; SearchHighlights = searchHighlights; @@ -119,7 +90,7 @@ internal SearchResultValue(float? searchScore, SearchHighlights searchHighlights TermStatus = termStatus; TermTemplate = termTemplate; LongDescription = longDescription; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// @@ -127,6 +98,7 @@ internal SearchResultValue(float? searchScore, SearchHighlights searchHighlights /// search score by default. /// public float? SearchScore { get; } + /// /// A highlight list that consists of index fields id ,qualifiedName, name, /// description, entityType. When the keyword appears in those fields, the value of @@ -134,50 +106,70 @@ internal SearchResultValue(float? searchScore, SearchHighlights searchHighlights /// @search.highlights. /// public SearchHighlights SearchHighlights { get; } + /// /// The object type of the record. Object type is the top-level property to /// distinguish whether a record is an asset or a term. /// public string ObjectType { get; } + /// The create time of the record. The Unix epoch format. public long? CreateTime { get; } + /// The last update time of the record. The Unix epoch format. public long? UpdateTime { get; } + /// The GUID of the record. public string Id { get; } + /// The name of the record. public string Name { get; } + /// The qualified name of the record. public string QualifiedName { get; } + /// The type name of the asset. public string EntityType { get; } + /// The description of the asset. public string Description { get; } + /// The endorsement of the asset. - public IReadOnlyList Endorsement { get; } + public IList Endorsement { get; } + /// The owner of the record. public string Owner { get; } + /// The classifications of the record. - public IReadOnlyList Classification { get; } + public IList Classification { get; } + /// The labels of the asset. - public IReadOnlyList Label { get; } + public IList Label { get; } + /// The terms assigned to the asset. - public IReadOnlyList Term { get; } + public IList Term { get; } + /// The contacts of the asset. - public IReadOnlyList Contact { get; } + public IList Contact { get; } + /// The asset types of the asset. - public IReadOnlyList AssetType { get; } + public IList AssetType { get; } + /// /// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or /// AtlasGlossaryCategory. /// public string GlossaryType { get; } + /// The glossary name of the term. public string Glossary { get; } + /// The status of the term. public string TermStatus { get; } + /// The term template names used by the term. - public IReadOnlyList TermTemplate { get; } + public IList TermTemplate { get; } + /// The definition of the term. public string LongDescription { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchSortOrder.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchSortOrder.cs index a984a1b059ad..78c8ba3cd4fb 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchSortOrder.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchSortOrder.cs @@ -14,38 +14,57 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct SearchSortOrder : IEquatable { private readonly string _value; + /// Use ascending order for sorting. + private const string AscendValue = "asc"; + /// Use descending order for sorting. + private const string DescendValue = "desc"; /// Initializes a new instance of . + /// The value. /// is null. public SearchSortOrder(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string AscendValue = "asc"; - private const string DescendValue = "desc"; + _value = value; + } /// Use ascending order for sorting. public static SearchSortOrder Ascend { get; } = new SearchSortOrder(AscendValue); + /// Use descending order for sorting. public static SearchSortOrder Descend { get; } = new SearchSortOrder(DescendValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(SearchSortOrder left, SearchSortOrder right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(SearchSortOrder left, SearchSortOrder right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator SearchSortOrder(string value) => new SearchSortOrder(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator SearchSortOrder?(string value) => value == null ? null : new SearchSortOrder(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is SearchSortOrder other && Equals(other); - /// + + /// public bool Equals(SearchSortOrder other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.Serialization.cs index 30a16ad0ce5e..8338e2d4b9d1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SearchTaxonomySetting : IUtf8JsonSerializable, IJsonModel + /// Taxonomy setting for search request. + public partial class SearchTaxonomySetting : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,18 +28,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchTaxonomySetting)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(AssetTypes)) { writer.WritePropertyName("assetTypes"u8); writer.WriteStartArray(); - foreach (var item in AssetTypes) + foreach (string item in AssetTypes) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -49,15 +53,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("facet"u8); writer.WriteObjectValue(Facet, options); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,68 +70,81 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SearchTaxonomySetting IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SearchTaxonomySetting IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SearchTaxonomySetting JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SearchTaxonomySetting)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSearchTaxonomySetting(document.RootElement, options); } - internal static SearchTaxonomySetting DeserializeSearchTaxonomySetting(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SearchTaxonomySetting DeserializeSearchTaxonomySetting(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } IList assetTypes = default; SearchFacetItem facet = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("assetTypes"u8)) + if (prop.NameEquals("assetTypes"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } assetTypes = array; continue; } - if (property.NameEquals("facet"u8)) + if (prop.NameEquals("facet"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - facet = SearchFacetItem.DeserializeSearchFacetItem(property.Value, options); + facet = SearchFacetItem.DeserializeSearchFacetItem(prop.Value, options); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new SearchTaxonomySetting(assetTypes ?? new ChangeTrackingList(), facet, serializedAdditionalRawData); + return new SearchTaxonomySetting(assetTypes ?? new ChangeTrackingList(), facet, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -137,15 +154,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptio } } - SearchTaxonomySetting IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SearchTaxonomySetting IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SearchTaxonomySetting PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSearchTaxonomySetting(document.RootElement, options); } default: @@ -153,22 +175,7 @@ SearchTaxonomySetting IPersistableModel.Create(BinaryData } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SearchTaxonomySetting FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSearchTaxonomySetting(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.cs index 6be79c3758b2..98b4efb5f769 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// Taxonomy setting for search request. public partial class SearchTaxonomySetting { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public SearchTaxonomySetting() @@ -54,16 +25,17 @@ public SearchTaxonomySetting() /// Initializes a new instance of . /// Asset types. /// The content of a search facet result item. - /// Keeps track of any properties unknown to the library. - internal SearchTaxonomySetting(IList assetTypes, SearchFacetItem facet, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SearchTaxonomySetting(IList assetTypes, SearchFacetItem facet, IDictionary additionalBinaryDataProperties) { AssetTypes = assetTypes; Facet = facet; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// Asset types. public IList AssetTypes { get; } + /// The content of a search facet result item. public SearchFacetItem Facet { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/StatusAtlasRelationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/StatusAtlasRelationship.cs index 942c9d445978..a9a47e8c4f89 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/StatusAtlasRelationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/StatusAtlasRelationship.cs @@ -14,38 +14,57 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct StatusAtlasRelationship : IEquatable { private readonly string _value; + /// active. + private const string ActiveValue = "ACTIVE"; + /// deleted. + private const string DeletedValue = "DELETED"; /// Initializes a new instance of . + /// The value. /// is null. public StatusAtlasRelationship(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string ActiveValue = "ACTIVE"; - private const string DeletedValue = "DELETED"; + _value = value; + } /// active. public static StatusAtlasRelationship Active { get; } = new StatusAtlasRelationship(ActiveValue); + /// deleted. public static StatusAtlasRelationship Deleted { get; } = new StatusAtlasRelationship(DeletedValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(StatusAtlasRelationship left, StatusAtlasRelationship right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(StatusAtlasRelationship left, StatusAtlasRelationship right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator StatusAtlasRelationship(string value) => new StatusAtlasRelationship(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator StatusAtlasRelationship?(string value) => value == null ? null : new StatusAtlasRelationship(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is StatusAtlasRelationship other && Equals(other); - /// + + /// public bool Equals(StatusAtlasRelationship other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.Serialization.cs index a1b3c57a215f..2f7c2b0c1d9d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.Serialization.cs @@ -13,10 +13,11 @@ namespace Azure.Analytics.Purview.DataMap { - public partial class SuggestConfig : IUtf8JsonSerializable, IJsonModel + /// The payload of suggest request. + public partial class SuggestConfig : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SuggestConfig)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Keywords)) { writer.WritePropertyName("keywords"u8); @@ -48,23 +48,23 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("filter"u8); #if NET6_0_OR_GREATER - writer.WriteRawValue(Filter); + writer.WriteRawValue(Filter); #else - using (JsonDocument document = JsonDocument.Parse(Filter, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(Filter)) { JsonSerializer.Serialize(writer, document.RootElement); } #endif } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -73,22 +73,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SuggestConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SuggestConfig IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SuggestConfig JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SuggestConfig)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSuggestConfig(document.RootElement, options); } - internal static SuggestConfig DeserializeSuggestConfig(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SuggestConfig DeserializeSuggestConfig(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -96,46 +101,47 @@ internal static SuggestConfig DeserializeSuggestConfig(JsonElement element, Mode string keywords = default; int? limit = default; BinaryData filter = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("keywords"u8)) + if (prop.NameEquals("keywords"u8)) { - keywords = property.Value.GetString(); + keywords = prop.Value.GetString(); continue; } - if (property.NameEquals("limit"u8)) + if (prop.NameEquals("limit"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - limit = property.Value.GetInt32(); + limit = prop.Value.GetInt32(); continue; } - if (property.NameEquals("filter"u8)) + if (prop.NameEquals("filter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - filter = BinaryData.FromString(property.Value.GetRawText()); + filter = BinaryData.FromString(prop.Value.GetRawText()); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new SuggestConfig(keywords, limit, filter, serializedAdditionalRawData); + return new SuggestConfig(keywords, limit, filter, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -145,15 +151,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions optio } } - SuggestConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SuggestConfig IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SuggestConfig PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSuggestConfig(document.RootElement, options); } default: @@ -161,21 +172,18 @@ SuggestConfig IPersistableModel.Create(BinaryData data, ModelRead } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SuggestConfig FromResponse(Response response) + /// The to serialize into . + public static implicit operator RequestContent(SuggestConfig suggestConfig) { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSuggestConfig(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + if (suggestConfig == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(suggestConfig, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.cs index e7460baf7ba8..de2395c0a6ca 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.cs @@ -7,43 +7,15 @@ using System; using System.Collections.Generic; +using System.Text.Json; namespace Azure.Analytics.Purview.DataMap { /// The payload of suggest request. public partial class SuggestConfig { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public SuggestConfig() @@ -62,13 +34,13 @@ public SuggestConfig() /// must be a number between 1 and 100. /// /// The filter for the search. - /// Keeps track of any properties unknown to the library. - internal SuggestConfig(string keywords, int? limit, BinaryData filter, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SuggestConfig(string keywords, int? limit, BinaryData filter, IDictionary additionalBinaryDataProperties) { Keywords = keywords; Limit = limit; Filter = filter; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// @@ -78,37 +50,35 @@ internal SuggestConfig(string keywords, int? limit, BinaryData filter, IDictiona /// a search mode. /// public string Keywords { get; set; } + /// /// The number of suggestions we hope to return. The default value is 5. The value /// must be a number between 1 and 100. /// public int? Limit { get; set; } + /// /// The filter for the search. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// + /// To assign an object to this property use . + /// To assign an already formatted json string to this property use . /// /// Examples: /// /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". /// /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. /// /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. /// /// /// diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.Serialization.cs index 99e811f6ca21..290f1254ea37 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class SuggestResult : IUtf8JsonSerializable, IJsonModel + /// The result item of the search suggest. + public partial class SuggestResult : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,31 +29,30 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpt /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SuggestResult)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); writer.WriteStartArray(); - foreach (var item in Value) + foreach (SuggestResultValue item in Value) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -61,39 +61,43 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SuggestResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SuggestResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SuggestResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SuggestResult)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSuggestResult(document.RootElement, options); } - internal static SuggestResult DeserializeSuggestResult(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SuggestResult DeserializeSuggestResult(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList value = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IList value = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("value"u8)) + if (prop.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(SuggestResultValue.DeserializeSuggestResultValue(item, options)); } @@ -102,17 +106,19 @@ internal static SuggestResult DeserializeSuggestResult(JsonElement element, Mode } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new SuggestResult(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new SuggestResult(value ?? new ChangeTrackingList(), additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -122,15 +128,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions optio } } - SuggestResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SuggestResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SuggestResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSuggestResult(document.RootElement, options); } default: @@ -138,22 +149,14 @@ SuggestResult IPersistableModel.Create(BinaryData data, ModelRead } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SuggestResult FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSuggestResult(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator SuggestResult(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSuggestResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.cs index c6ca8a2087f1..7e027cc7bac9 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The result item of the search suggest. public partial class SuggestResult { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal SuggestResult() @@ -53,14 +24,14 @@ internal SuggestResult() /// Initializes a new instance of . /// The result value. - /// Keeps track of any properties unknown to the library. - internal SuggestResult(IReadOnlyList value, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SuggestResult(IList value, IDictionary additionalBinaryDataProperties) { Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The result value. - public IReadOnlyList Value { get; } + public IList Value { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.Serialization.cs index a6267cc8eb51..acdf1661c07b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class SuggestResultValue : IUtf8JsonSerializable, IJsonModel + /// The value item of the search suggest. + public partial class SuggestResultValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SuggestResultValue)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SearchScore)) { writer.WritePropertyName("@search.score"u8); @@ -88,8 +87,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("endorsement"u8); writer.WriteStartArray(); - foreach (var item in Endorsement) + foreach (string item in Endorsement) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -103,8 +107,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("classification"u8); writer.WriteStartArray(); - foreach (var item in Classification) + foreach (string item in Classification) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -113,8 +122,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("label"u8); writer.WriteStartArray(); - foreach (var item in Label) + foreach (string item in Label) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -123,7 +137,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("term"u8); writer.WriteStartArray(); - foreach (var item in Term) + foreach (TermSearchResultValue item in Term) { writer.WriteObjectValue(item, options); } @@ -133,7 +147,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("contact"u8); writer.WriteStartArray(); - foreach (var item in Contact) + foreach (ContactSearchResultValue item in Contact) { writer.WriteObjectValue(item, options); } @@ -143,8 +157,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("assetType"u8); writer.WriteStartArray(); - foreach (var item in AssetType) + foreach (string item in AssetType) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -168,8 +187,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("termTemplate"u8); writer.WriteStartArray(); - foreach (var item in TermTemplate) + foreach (string item in TermTemplate) { + if (item == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item); } writer.WriteEndArray(); @@ -179,15 +203,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("longDescription"u8); writer.WriteStringValue(LongDescription); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -196,22 +220,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SuggestResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + SuggestResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual SuggestResultValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(SuggestResultValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeSuggestResultValue(document.RootElement, options); } - internal static SuggestResultValue DeserializeSuggestResultValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static SuggestResultValue DeserializeSuggestResultValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -226,213 +255,246 @@ internal static SuggestResultValue DeserializeSuggestResultValue(JsonElement ele string qualifiedName = default; string entityType = default; string description = default; - IReadOnlyList endorsement = default; + IList endorsement = default; string owner = default; - IReadOnlyList classification = default; - IReadOnlyList label = default; - IReadOnlyList term = default; - IReadOnlyList contact = default; - IReadOnlyList assetType = default; + IList classification = default; + IList label = default; + IList term = default; + IList contact = default; + IList assetType = default; string glossaryType = default; string glossary = default; string termStatus = default; - IReadOnlyList termTemplate = default; + IList termTemplate = default; string longDescription = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("@search.score"u8)) + if (prop.NameEquals("@search.score"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - searchScore = property.Value.GetSingle(); + searchScore = prop.Value.GetSingle(); continue; } - if (property.NameEquals("@search.text"u8)) + if (prop.NameEquals("@search.text"u8)) { - searchText = property.Value.GetString(); + searchText = prop.Value.GetString(); continue; } - if (property.NameEquals("objectType"u8)) + if (prop.NameEquals("objectType"u8)) { - objectType = property.Value.GetString(); + objectType = prop.Value.GetString(); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("id"u8)) + if (prop.NameEquals("id"u8)) { - id = property.Value.GetString(); + id = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("qualifiedName"u8)) + if (prop.NameEquals("qualifiedName"u8)) { - qualifiedName = property.Value.GetString(); + qualifiedName = prop.Value.GetString(); continue; } - if (property.NameEquals("entityType"u8)) + if (prop.NameEquals("entityType"u8)) { - entityType = property.Value.GetString(); + entityType = prop.Value.GetString(); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("endorsement"u8)) + if (prop.NameEquals("endorsement"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } endorsement = array; continue; } - if (property.NameEquals("owner"u8)) + if (prop.NameEquals("owner"u8)) { - owner = property.Value.GetString(); + owner = prop.Value.GetString(); continue; } - if (property.NameEquals("classification"u8)) + if (prop.NameEquals("classification"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } classification = array; continue; } - if (property.NameEquals("label"u8)) + if (prop.NameEquals("label"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } label = array; continue; } - if (property.NameEquals("term"u8)) + if (prop.NameEquals("term"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(TermSearchResultValue.DeserializeTermSearchResultValue(item, options)); } term = array; continue; } - if (property.NameEquals("contact"u8)) + if (prop.NameEquals("contact"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(ContactSearchResultValue.DeserializeContactSearchResultValue(item, options)); } contact = array; continue; } - if (property.NameEquals("assetType"u8)) + if (prop.NameEquals("assetType"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } assetType = array; continue; } - if (property.NameEquals("glossaryType"u8)) + if (prop.NameEquals("glossaryType"u8)) { - glossaryType = property.Value.GetString(); + glossaryType = prop.Value.GetString(); continue; } - if (property.NameEquals("glossary"u8)) + if (prop.NameEquals("glossary"u8)) { - glossary = property.Value.GetString(); + glossary = prop.Value.GetString(); continue; } - if (property.NameEquals("termStatus"u8)) + if (prop.NameEquals("termStatus"u8)) { - termStatus = property.Value.GetString(); + termStatus = prop.Value.GetString(); continue; } - if (property.NameEquals("termTemplate"u8)) + if (prop.NameEquals("termTemplate"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { - array.Add(item.GetString()); + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } } termTemplate = array; continue; } - if (property.NameEquals("longDescription"u8)) + if (prop.NameEquals("longDescription"u8)) { - longDescription = property.Value.GetString(); + longDescription = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new SuggestResultValue( searchScore, searchText, @@ -456,13 +518,16 @@ internal static SuggestResultValue DeserializeSuggestResultValue(JsonElement ele termStatus, termTemplate ?? new ChangeTrackingList(), longDescription, - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -472,15 +537,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions } } - SuggestResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + SuggestResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual SuggestResultValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeSuggestResultValue(document.RootElement, options); } default: @@ -488,22 +558,7 @@ SuggestResultValue IPersistableModel.Create(BinaryData data, } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static SuggestResultValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeSuggestResultValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.cs index 3ecb7411c775..dc149d382e53 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The value item of the search suggest. public partial class SuggestResultValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal SuggestResultValue() @@ -92,8 +63,8 @@ internal SuggestResultValue() /// The status of the term. /// The term template names used by the term. /// The definition of the term. - /// Keeps track of any properties unknown to the library. - internal SuggestResultValue(float? searchScore, string searchText, string objectType, long? createTime, long? updateTime, string id, string name, string qualifiedName, string entityType, string description, IReadOnlyList endorsement, string owner, IReadOnlyList classification, IReadOnlyList label, IReadOnlyList term, IReadOnlyList contact, IReadOnlyList assetType, string glossaryType, string glossary, string termStatus, IReadOnlyList termTemplate, string longDescription, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal SuggestResultValue(float? searchScore, string searchText, string objectType, long? createTime, long? updateTime, string id, string name, string qualifiedName, string entityType, string description, IList endorsement, string owner, IList classification, IList label, IList term, IList contact, IList assetType, string glossaryType, string glossary, string termStatus, IList termTemplate, string longDescription, IDictionary additionalBinaryDataProperties) { SearchScore = searchScore; SearchText = searchText; @@ -117,7 +88,7 @@ internal SuggestResultValue(float? searchScore, string searchText, string object TermStatus = termStatus; TermTemplate = termTemplate; LongDescription = longDescription; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// @@ -125,55 +96,76 @@ internal SuggestResultValue(float? searchScore, string searchText, string object /// search score by default. /// public float? SearchScore { get; } + /// /// The target text that contains the keyword as prefix. The keyword is wrapped /// with emphasis mark. /// public string SearchText { get; } + /// /// The object type of the record. Object type is the top-level property to /// distinguish whether a record is an asset or a term. /// public string ObjectType { get; } + /// The create time of the record. The Unix epoch format. public long? CreateTime { get; } + /// The last update time of the record. The Unix epoch format. public long? UpdateTime { get; } + /// The GUID of the record. public string Id { get; } + /// The name of the record. public string Name { get; } + /// The qualified name of the record. public string QualifiedName { get; } + /// The type name of the asset. public string EntityType { get; } + /// The description of the asset. public string Description { get; } + /// The endorsement of the asset. - public IReadOnlyList Endorsement { get; } + public IList Endorsement { get; } + /// The owner of the record. public string Owner { get; } + /// The classifications of the record. - public IReadOnlyList Classification { get; } + public IList Classification { get; } + /// The labels of the asset. - public IReadOnlyList Label { get; } + public IList Label { get; } + /// The terms assigned to the asset. - public IReadOnlyList Term { get; } + public IList Term { get; } + /// The contacts of the asset. - public IReadOnlyList Contact { get; } + public IList Contact { get; } + /// The asset types of the asset. - public IReadOnlyList AssetType { get; } + public IList AssetType { get; } + /// /// The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or /// AtlasGlossaryCategory. /// public string GlossaryType { get; } + /// The glossary name of the term. public string Glossary { get; } + /// The status of the term. public string TermStatus { get; } + /// The term template names used by the term. - public IReadOnlyList TermTemplate { get; } + public IList TermTemplate { get; } + /// The definition of the term. public string LongDescription { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.Serialization.cs index 6734d7767783..f921b429d0a9 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class TermSearchResultValue : IUtf8JsonSerializable, IJsonModel + /// The context. + public partial class TermSearchResultValue : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(TermSearchResultValue)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("guid"u8); writer.WriteStringValue(Guid); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - TermSearchResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + TermSearchResultValue IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual TermSearchResultValue JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(TermSearchResultValue)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeTermSearchResultValue(document.RootElement, options); } - internal static TermSearchResultValue DeserializeTermSearchResultValue(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static TermSearchResultValue DeserializeTermSearchResultValue(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,38 +93,39 @@ internal static TermSearchResultValue DeserializeTermSearchResultValue(JsonEleme string name = default; string glossaryName = default; string guid = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("glossaryName"u8)) + if (prop.NameEquals("glossaryName"u8)) { - glossaryName = property.Value.GetString(); + glossaryName = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new TermSearchResultValue(name, glossaryName, guid, serializedAdditionalRawData); + return new TermSearchResultValue(name, glossaryName, guid, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -130,15 +135,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptio } } - TermSearchResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + TermSearchResultValue IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual TermSearchResultValue PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeTermSearchResultValue(document.RootElement, options); } default: @@ -146,22 +156,7 @@ TermSearchResultValue IPersistableModel.Create(BinaryData } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static TermSearchResultValue FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTermSearchResultValue(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.cs index 5ce2c5ca6672..5681d7db7f68 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// The context. public partial class TermSearchResultValue { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . internal TermSearchResultValue() @@ -54,19 +25,21 @@ internal TermSearchResultValue() /// The name of the term. /// The name of the glossary which contains the term. /// The GUID of the term. - /// Keeps track of any properties unknown to the library. - internal TermSearchResultValue(string name, string glossaryName, string guid, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal TermSearchResultValue(string name, string glossaryName, string guid, IDictionary additionalBinaryDataProperties) { Name = name; GlossaryName = glossaryName; Guid = guid; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The name of the term. public string Name { get; } + /// The name of the glossary which contains the term. public string GlossaryName { get; } + /// The GUID of the term. public string Guid { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermStatus.cs index 0fdd3a1be80d..84ba67c23c4e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermStatus.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermStatus.cs @@ -14,44 +14,67 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct TermStatus : IEquatable { private readonly string _value; + /// draft. + private const string DraftValue = "Draft"; + /// approved. + private const string ApprovedValue = "Approved"; + /// alert. + private const string AlertValue = "Alert"; + /// expired. + private const string ExpiredValue = "Expired"; /// Initializes a new instance of . + /// The value. /// is null. public TermStatus(string value) { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } + Argument.AssertNotNull(value, nameof(value)); - private const string DraftValue = "Draft"; - private const string ApprovedValue = "Approved"; - private const string AlertValue = "Alert"; - private const string ExpiredValue = "Expired"; + _value = value; + } /// draft. public static TermStatus Draft { get; } = new TermStatus(DraftValue); + /// approved. public static TermStatus Approved { get; } = new TermStatus(ApprovedValue); + /// alert. public static TermStatus Alert { get; } = new TermStatus(AlertValue); + /// expired. public static TermStatus Expired { get; } = new TermStatus(ExpiredValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(TermStatus left, TermStatus right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(TermStatus left, TermStatus right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator TermStatus(string value) => new TermStatus(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator TermStatus?(string value) => value == null ? null : new TermStatus(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is TermStatus other && Equals(other); - /// + + /// public bool Equals(TermStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.Serialization.cs index 6489b0048b28..39f5485e649e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.Serialization.cs @@ -9,14 +9,15 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure; namespace Azure.Analytics.Purview.DataMap { - public partial class TermTemplateDef : IUtf8JsonSerializable, IJsonModel + /// Term template definition for glossary term. + public partial class TermTemplateDef : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +29,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterO /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(TermTemplateDef)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Category)) { writer.WritePropertyName("category"u8); @@ -76,6 +76,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit foreach (var item in Options) { writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } writer.WriteStringValue(item.Value); } writer.WriteEndObject(); @@ -114,21 +119,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit { writer.WritePropertyName("attributeDefs"u8); writer.WriteStartArray(); - foreach (var item in AttributeDefs) + foreach (AtlasAttributeDef item in AttributeDefs) { writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -137,22 +142,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - TermTemplateDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + TermTemplateDef IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual TermTemplateDef JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(TermTemplateDef)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeTermTemplateDef(document.RootElement, options); } - internal static TermTemplateDef DeserializeTermTemplateDef(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static TermTemplateDef DeserializeTermTemplateDef(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -172,117 +182,123 @@ internal static TermTemplateDef DeserializeTermTemplateDef(JsonElement element, long? version = default; string lastModifiedTS = default; IList attributeDefs = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("category"u8)) + if (prop.NameEquals("category"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - category = new TypeCategory(property.Value.GetString()); + category = new TypeCategory(prop.Value.GetString()); continue; } - if (property.NameEquals("createTime"u8)) + if (prop.NameEquals("createTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - createTime = property.Value.GetInt64(); + createTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("createdBy"u8)) + if (prop.NameEquals("createdBy"u8)) { - createdBy = property.Value.GetString(); + createdBy = prop.Value.GetString(); continue; } - if (property.NameEquals("dateFormatter"u8)) + if (prop.NameEquals("dateFormatter"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(property.Value, options); + dateFormatter = AtlasDateFormat.DeserializeAtlasDateFormat(prop.Value, options); continue; } - if (property.NameEquals("description"u8)) + if (prop.NameEquals("description"u8)) { - description = property.Value.GetString(); + description = prop.Value.GetString(); continue; } - if (property.NameEquals("guid"u8)) + if (prop.NameEquals("guid"u8)) { - guid = property.Value.GetString(); + guid = prop.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (prop.NameEquals("name"u8)) { - name = property.Value.GetString(); + name = prop.Value.GetString(); continue; } - if (property.NameEquals("options"u8)) + if (prop.NameEquals("options"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) + foreach (var prop0 in prop.Value.EnumerateObject()) { - dictionary.Add(property0.Name, property0.Value.GetString()); + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } } options0 = dictionary; continue; } - if (property.NameEquals("serviceType"u8)) + if (prop.NameEquals("serviceType"u8)) { - serviceType = property.Value.GetString(); + serviceType = prop.Value.GetString(); continue; } - if (property.NameEquals("typeVersion"u8)) + if (prop.NameEquals("typeVersion"u8)) { - typeVersion = property.Value.GetString(); + typeVersion = prop.Value.GetString(); continue; } - if (property.NameEquals("updateTime"u8)) + if (prop.NameEquals("updateTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - updateTime = property.Value.GetInt64(); + updateTime = prop.Value.GetInt64(); continue; } - if (property.NameEquals("updatedBy"u8)) + if (prop.NameEquals("updatedBy"u8)) { - updatedBy = property.Value.GetString(); + updatedBy = prop.Value.GetString(); continue; } - if (property.NameEquals("version"u8)) + if (prop.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } - version = property.Value.GetInt64(); + version = prop.Value.GetInt64(); continue; } - if (property.NameEquals("lastModifiedTS"u8)) + if (prop.NameEquals("lastModifiedTS"u8)) { - lastModifiedTS = property.Value.GetString(); + lastModifiedTS = prop.Value.GetString(); continue; } - if (property.NameEquals("attributeDefs"u8)) + if (prop.NameEquals("attributeDefs"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (prop.Value.ValueKind == JsonValueKind.Null) { continue; } List array = new List(); - foreach (var item in property.Value.EnumerateArray()) + foreach (var item in prop.Value.EnumerateArray()) { array.Add(AtlasAttributeDef.DeserializeAtlasAttributeDef(item, options)); } @@ -291,10 +307,9 @@ internal static TermTemplateDef DeserializeTermTemplateDef(JsonElement element, } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; return new TermTemplateDef( category, createTime, @@ -311,13 +326,16 @@ internal static TermTemplateDef DeserializeTermTemplateDef(JsonElement element, version, lastModifiedTS, attributeDefs ?? new ChangeTrackingList(), - serializedAdditionalRawData); + additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -327,15 +345,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions opt } } - TermTemplateDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + TermTemplateDef IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual TermTemplateDef PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeTermTemplateDef(document.RootElement, options); } default: @@ -343,22 +366,14 @@ TermTemplateDef IPersistableModel.Create(BinaryData data, Model } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static TermTemplateDef FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTermTemplateDef(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() + /// The to deserialize the from. + public static explicit operator TermTemplateDef(Response response) { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; + using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeTermTemplateDef(document.RootElement, ModelSerializationExtensions.WireOptions); } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.cs index 593f4807ba4a..35113bc4b636 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// Term template definition for glossary term. public partial class TermTemplateDef { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public TermTemplateDef() @@ -68,8 +39,8 @@ public TermTemplateDef() /// The version of the record. /// ETag for concurrency control. /// An array of attribute definitions. - /// Keeps track of any properties unknown to the library. - internal TermTemplateDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal TermTemplateDef(TypeCategory? category, long? createTime, string createdBy, AtlasDateFormat dateFormatter, string description, string guid, string name, IDictionary options, string serviceType, string typeVersion, long? updateTime, string updatedBy, long? version, string lastModifiedTS, IList attributeDefs, IDictionary additionalBinaryDataProperties) { Category = category; CreateTime = createTime; @@ -86,37 +57,51 @@ internal TermTemplateDef(TypeCategory? category, long? createTime, string create Version = version; LastModifiedTS = lastModifiedTS; AttributeDefs = attributeDefs; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The enum of type category. public TypeCategory? Category { get; set; } + /// The created time of the record. public long? CreateTime { get; set; } + /// The user who created the record. public string CreatedBy { get; set; } + /// The date format. public AtlasDateFormat DateFormatter { get; set; } + /// The description of the type definition. public string Description { get; set; } + /// The GUID of the type definition. public string Guid { get; set; } + /// The name of the type definition. public string Name { get; set; } + /// The options for the type definition. public IDictionary Options { get; } + /// The service type. public string ServiceType { get; set; } + /// The version of the type. public string TypeVersion { get; set; } + /// The update time of the record. public long? UpdateTime { get; set; } + /// The user who updated the record. public string UpdatedBy { get; set; } + /// The version of the record. public long? Version { get; set; } + /// ETag for concurrency control. public string LastModifiedTS { get; set; } + /// An array of attribute definitions. public IList AttributeDefs { get; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.Serialization.cs index 035e9cf789a7..80f2d8a00e5f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.Serialization.cs @@ -9,14 +9,14 @@ using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Analytics.Purview.DataMap { - public partial class TimeBoundary : IUtf8JsonSerializable, IJsonModel + /// Captures time-boundary details. + public partial class TimeBoundary : IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - + /// The JSON writer. + /// The client options for reading and writing models. void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); @@ -28,12 +28,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(TimeBoundary)} does not support writing '{format}' format."); } - if (Optional.IsDefined(EndTime)) { writer.WritePropertyName("endTime"u8); @@ -49,15 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timeZone"u8); writer.WriteStringValue(TimeZone); } - if (options.Format != "W" && _serializedAdditionalRawData != null) + if (options.Format != "W" && _additionalBinaryDataProperties != null) { - foreach (var item in _serializedAdditionalRawData) + foreach (var item in _additionalBinaryDataProperties) { writer.WritePropertyName(item.Key); #if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); + writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + using (JsonDocument document = JsonDocument.Parse(item.Value)) { JsonSerializer.Serialize(writer, document.RootElement); } @@ -66,22 +65,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - TimeBoundary IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + /// The JSON reader. + /// The client options for reading and writing models. + TimeBoundary IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual TimeBoundary JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(TimeBoundary)} does not support reading '{format}' format."); } - using JsonDocument document = JsonDocument.ParseValue(ref reader); return DeserializeTimeBoundary(document.RootElement, options); } - internal static TimeBoundary DeserializeTimeBoundary(JsonElement element, ModelReaderWriterOptions options = null) + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static TimeBoundary DeserializeTimeBoundary(JsonElement element, ModelReaderWriterOptions options) { - options ??= ModelSerializationExtensions.WireOptions; - if (element.ValueKind == JsonValueKind.Null) { return null; @@ -89,38 +93,39 @@ internal static TimeBoundary DeserializeTimeBoundary(JsonElement element, ModelR string endTime = default; string startTime = default; string timeZone = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) { - if (property.NameEquals("endTime"u8)) + if (prop.NameEquals("endTime"u8)) { - endTime = property.Value.GetString(); + endTime = prop.Value.GetString(); continue; } - if (property.NameEquals("startTime"u8)) + if (prop.NameEquals("startTime"u8)) { - startTime = property.Value.GetString(); + startTime = prop.Value.GetString(); continue; } - if (property.NameEquals("timeZone"u8)) + if (prop.NameEquals("timeZone"u8)) { - timeZone = property.Value.GetString(); + timeZone = prop.Value.GetString(); continue; } if (options.Format != "W") { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); } } - serializedAdditionalRawData = rawDataDictionary; - return new TimeBoundary(endTime, startTime, timeZone, serializedAdditionalRawData); + return new TimeBoundary(endTime, startTime, timeZone, additionalBinaryDataProperties); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": @@ -130,15 +135,20 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions option } } - TimeBoundary IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + /// The data to parse. + /// The client options for reading and writing models. + TimeBoundary IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + /// The data to parse. + /// The client options for reading and writing models. + protected virtual TimeBoundary PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); return DeserializeTimeBoundary(document.RootElement, options); } default: @@ -146,22 +156,7 @@ TimeBoundary IPersistableModel.Create(BinaryData data, ModelReader } } + /// The client options for reading and writing models. string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static TimeBoundary FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTimeBoundary(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.cs index aa7489881351..a6ddf192a82c 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.cs @@ -13,37 +13,8 @@ namespace Azure.Analytics.Purview.DataMap /// Captures time-boundary details. public partial class TimeBoundary { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; /// Initializes a new instance of . public TimeBoundary() @@ -54,19 +25,21 @@ public TimeBoundary() /// The end of the time boundary. /// The start of the time boundary. /// The timezone of the time boundary. - /// Keeps track of any properties unknown to the library. - internal TimeBoundary(string endTime, string startTime, string timeZone, IDictionary serializedAdditionalRawData) + /// Keeps track of any properties unknown to the library. + internal TimeBoundary(string endTime, string startTime, string timeZone, IDictionary additionalBinaryDataProperties) { EndTime = endTime; StartTime = startTime; TimeZone = timeZone; - _serializedAdditionalRawData = serializedAdditionalRawData; + _additionalBinaryDataProperties = additionalBinaryDataProperties; } /// The end of the time boundary. public string EndTime { get; set; } + /// The start of the time boundary. public string StartTime { get; set; } + /// The timezone of the time boundary. public string TimeZone { get; set; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeCategory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeCategory.cs index cfe10326912d..dc9679ec5a49 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeCategory.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeCategory.cs @@ -14,62 +14,97 @@ namespace Azure.Analytics.Purview.DataMap public readonly partial struct TypeCategory : IEquatable { private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public TypeCategory(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - + /// primitive. private const string PrimitiveValue = "PRIMITIVE"; + /// object id type. private const string ObjectIdTypeValue = "OBJECT_ID_TYPE"; + /// enum. private const string EnumValue = "ENUM"; + /// struct. private const string StructValue = "STRUCT"; + /// classification. private const string ClassificationValue = "CLASSIFICATION"; + /// entity. private const string EntityValue = "ENTITY"; + /// array. private const string ArrayValue = "ARRAY"; + /// map. private const string MapValue = "MAP"; + /// relationship. private const string RelationshipValue = "RELATIONSHIP"; + /// term template. private const string TermTemplateValue = "TERM_TEMPLATE"; + /// Initializes a new instance of . + /// The value. + /// is null. + public TypeCategory(string value) + { + Argument.AssertNotNull(value, nameof(value)); + + _value = value; + } + /// primitive. public static TypeCategory Primitive { get; } = new TypeCategory(PrimitiveValue); + /// object id type. public static TypeCategory ObjectIdType { get; } = new TypeCategory(ObjectIdTypeValue); + /// enum. public static TypeCategory Enum { get; } = new TypeCategory(EnumValue); + /// struct. public static TypeCategory Struct { get; } = new TypeCategory(StructValue); + /// classification. public static TypeCategory Classification { get; } = new TypeCategory(ClassificationValue); + /// entity. public static TypeCategory Entity { get; } = new TypeCategory(EntityValue); + /// array. public static TypeCategory Array { get; } = new TypeCategory(ArrayValue); + /// map. public static TypeCategory Map { get; } = new TypeCategory(MapValue); + /// relationship. public static TypeCategory Relationship { get; } = new TypeCategory(RelationshipValue); + /// term template. public static TypeCategory TermTemplate { get; } = new TypeCategory(TermTemplateValue); + /// Determines if two values are the same. + /// The left value to compare. + /// The right value to compare. public static bool operator ==(TypeCategory left, TypeCategory right) => left.Equals(right); + /// Determines if two values are not the same. + /// The left value to compare. + /// The right value to compare. public static bool operator !=(TypeCategory left, TypeCategory right) => !left.Equals(right); - /// Converts a to a . + + /// Converts a string to a . + /// The value. public static implicit operator TypeCategory(string value) => new TypeCategory(value); - /// + /// Converts a string to a . + /// The value. + public static implicit operator TypeCategory?(string value) => value == null ? null : new TypeCategory(value); + + /// [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is TypeCategory other && Equals(other); - /// + + /// public bool Equals(TypeCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// + + /// public override string ToString() => _value; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.RestClient.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.RestClient.cs new file mode 100644 index 000000000000..2ba9cec949b2 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.RestClient.cs @@ -0,0 +1,384 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap +{ + /// + public partial class TypeDefinition + { + private static ResponseClassifier _pipelineMessageClassifier200; + private static ResponseClassifier _pipelineMessageClassifier204; + + private static ResponseClassifier PipelineMessageClassifier200 => _pipelineMessageClassifier200 = new StatusCodeClassifier(stackalloc ushort[] { 200 }); + + private static ResponseClassifier PipelineMessageClassifier204 => _pipelineMessageClassifier204 = new StatusCodeClassifier(stackalloc ushort[] { 204 }); + + internal HttpMessage CreateGetBusinessMetadataByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/businessmetadatadef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetBusinessMetadataByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/businessmetadatadef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetClassificationByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/classificationdef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetClassificationByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/classificationdef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetEntityByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/entitydef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetEntityByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/entitydef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetEnumByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/enumdef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetEnumByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/enumdef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetRelationshipByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/relationshipdef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetRelationshipByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/relationshipdef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetStructByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/structdef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetStructByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/structdef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedef/guid/", false); + uri.AppendPath(guid, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateDeleteRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedef/name/", false); + uri.AppendPath(name, true); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + return message; + } + + internal HttpMessage CreateGetRequest(bool? includeTermTemplate, string @type, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedefs", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (includeTermTemplate != null) + { + uri.AppendQuery("includeTermTemplate", TypeFormatters.ConvertToString(includeTermTemplate), true); + } + if (@type != null) + { + uri.AppendQuery("type", @type, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateBatchCreateRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedefs", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Post; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateBatchUpdateRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedefs", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Put; + request.Headers.SetValue("Content-Type", "application/json"); + request.Headers.SetValue("Accept", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateBatchDeleteRequest(RequestContent content, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedefs", false); + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier204); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Delete; + request.Headers.SetValue("Content-Type", "application/json"); + request.Content = content; + return message; + } + + internal HttpMessage CreateGetHeadersRequest(bool? includeTermTemplate, string @type, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/atlas/v2/types/typedefs/headers", false); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + if (includeTermTemplate != null) + { + uri.AppendQuery("includeTermTemplate", TypeFormatters.ConvertToString(includeTermTemplate), true); + } + if (@type != null) + { + uri.AppendQuery("type", @type, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetTermTemplateByIdRequest(string guid, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/types/termtemplatedef/guid/", false); + uri.AppendPath(guid, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetTermTemplateByNameRequest(string name, RequestContext context) + { + RawRequestUriBuilder uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/datamap/api", false); + uri.AppendPath("/types/termtemplatedef/name/", false); + uri.AppendPath(name, true); + if (_apiVersion != null) + { + uri.AppendQuery("api-version", _apiVersion, true); + } + HttpMessage message = Pipeline.CreateMessage(context, PipelineMessageClassifier200); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs index 14505559b6ed..e2919a6a8b40 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeDefinition.cs @@ -10,109 +10,66 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; +using Azure; using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Analytics.Purview.DataMap { - // Data plane generated sub-client. /// The TypeDefinition sub-client. public partial class TypeDefinition { - private static readonly string[] AuthorizationScopes = new string[] { "https://purview.azure.net/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of TypeDefinition for mocking. protected TypeDefinition() { } /// Initializes a new instance of TypeDefinition. - /// The handler for diagnostic messaging in the client. + /// The ClientDiagnostics is used to provide tracing support for the client library. /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. - /// The to use. - /// The API version to use for this operation. - internal TypeDefinition(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string apiVersion) + /// Service endpoint. + /// + internal TypeDefinition(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) { ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; _endpoint = endpoint; + Pipeline = pipeline; _apiVersion = apiVersion; } - /// Get the businessMetadata definition for the given guid. - /// businessMetadata guid. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetBusinessMetadataByIdAsync(string guid, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetBusinessMetadataByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasBusinessMetadataDef.FromResponse(response), response); - } - - /// Get the businessMetadata definition for the given guid. - /// businessMetadata guid. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetBusinessMetadataById(string guid, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline { get; } - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetBusinessMetadataById(guid, context); - return Response.FromValue(AtlasBusinessMetadataDef.FromResponse(response), response); - } + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } /// /// [Protocol Method] Get the businessMetadata definition for the given guid. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// businessMetadata guid. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetBusinessMetadataByIdAsync(string guid, RequestContext context) + public virtual Response GetBusinessMetadataById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetBusinessMetadataByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -125,34 +82,26 @@ public virtual async Task GetBusinessMetadataByIdAsync(string guid, Re /// [Protocol Method] Get the businessMetadata definition for the given guid. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// businessMetadata guid. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetBusinessMetadataById(string guid, RequestContext context) + public virtual async Task GetBusinessMetadataByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetBusinessMetadataByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -161,68 +110,58 @@ public virtual Response GetBusinessMetadataById(string guid, RequestContext cont } } - /// Get the businessMetadata definition by it's name (unique). - /// businessMetadata name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetBusinessMetadataByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the businessMetadata definition for the given guid. + /// businessMetadata guid. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetBusinessMetadataById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetBusinessMetadataByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasBusinessMetadataDef.FromResponse(response), response); + Response result = GetBusinessMetadataById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasBusinessMetadataDef)result, result); } - /// Get the businessMetadata definition by it's name (unique). - /// businessMetadata name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetBusinessMetadataByName(string name, CancellationToken cancellationToken = default) + /// Get the businessMetadata definition for the given guid. + /// businessMetadata guid. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetBusinessMetadataByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetBusinessMetadataByName(name, context); - return Response.FromValue(AtlasBusinessMetadataDef.FromResponse(response), response); + Response result = await GetBusinessMetadataByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasBusinessMetadataDef)result, result); } /// /// [Protocol Method] Get the businessMetadata definition by it's name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// businessMetadata name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetBusinessMetadataByNameAsync(string name, RequestContext context) + public virtual Response GetBusinessMetadataByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetBusinessMetadataByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -235,34 +174,26 @@ public virtual async Task GetBusinessMetadataByNameAsync(string name, /// [Protocol Method] Get the businessMetadata definition by it's name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// businessMetadata name. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetBusinessMetadataByName(string name, RequestContext context) + public virtual async Task GetBusinessMetadataByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetBusinessMetadataByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetBusinessMetadataByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -271,68 +202,58 @@ public virtual Response GetBusinessMetadataByName(string name, RequestContext co } } - /// Get the classification definition for the given GUID. - /// The globally unique identifier of the classification. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetClassificationByIdAsync(string guid, CancellationToken cancellationToken = default) + /// Get the businessMetadata definition by it's name (unique). + /// businessMetadata name. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetBusinessMetadataByName(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetClassificationByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasClassificationDef.FromResponse(response), response); + Response result = GetBusinessMetadataByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasBusinessMetadataDef)result, result); } - /// Get the classification definition for the given GUID. - /// The globally unique identifier of the classification. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetClassificationById(string guid, CancellationToken cancellationToken = default) + /// Get the businessMetadata definition by it's name (unique). + /// businessMetadata name. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetBusinessMetadataByNameAsync(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetClassificationById(guid, context); - return Response.FromValue(AtlasClassificationDef.FromResponse(response), response); + Response result = await GetBusinessMetadataByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasBusinessMetadataDef)result, result); } /// /// [Protocol Method] Get the classification definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetClassificationByIdAsync(string guid, RequestContext context) + public virtual Response GetClassificationById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetClassificationByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -345,34 +266,26 @@ public virtual async Task GetClassificationByIdAsync(string guid, Requ /// [Protocol Method] Get the classification definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetClassificationById(string guid, RequestContext context) + public virtual async Task GetClassificationByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetClassificationByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -381,68 +294,58 @@ public virtual Response GetClassificationById(string guid, RequestContext contex } } - /// Get the classification definition by its name (unique). - /// The name of the classification. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetClassificationByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the classification definition for the given GUID. + /// The globally unique identifier of the classification. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetClassificationById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetClassificationByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasClassificationDef.FromResponse(response), response); + Response result = GetClassificationById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasClassificationDef)result, result); } - /// Get the classification definition by its name (unique). - /// The name of the classification. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetClassificationByName(string name, CancellationToken cancellationToken = default) + /// Get the classification definition for the given GUID. + /// The globally unique identifier of the classification. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetClassificationByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetClassificationByName(name, context); - return Response.FromValue(AtlasClassificationDef.FromResponse(response), response); + Response result = await GetClassificationByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasClassificationDef)result, result); } /// /// [Protocol Method] Get the classification definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetClassificationByNameAsync(string name, RequestContext context) + public virtual Response GetClassificationByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetClassificationByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -455,34 +358,26 @@ public virtual async Task GetClassificationByNameAsync(string name, Re /// [Protocol Method] Get the classification definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the classification. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetClassificationByName(string name, RequestContext context) + public virtual async Task GetClassificationByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetClassificationByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetClassificationByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -491,68 +386,58 @@ public virtual Response GetClassificationByName(string name, RequestContext cont } } - /// Get the Entity definition for the given GUID. - /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetEntityByIdAsync(string guid, CancellationToken cancellationToken = default) + /// Get the classification definition by its name (unique). + /// The name of the classification. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetClassificationByName(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEntityByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntityDef.FromResponse(response), response); + Response result = GetClassificationByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasClassificationDef)result, result); } - /// Get the Entity definition for the given GUID. - /// The globally unique identifier of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetEntityById(string guid, CancellationToken cancellationToken = default) + /// Get the classification definition by its name (unique). + /// The name of the classification. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetClassificationByNameAsync(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEntityById(guid, context); - return Response.FromValue(AtlasEntityDef.FromResponse(response), response); + Response result = await GetClassificationByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasClassificationDef)result, result); } /// /// [Protocol Method] Get the Entity definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetEntityByIdAsync(string guid, RequestContext context) + public virtual Response GetEntityById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetEntityByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -565,34 +450,26 @@ public virtual async Task GetEntityByIdAsync(string guid, RequestConte /// [Protocol Method] Get the Entity definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetEntityById(string guid, RequestContext context) + public virtual async Task GetEntityByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetEntityByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -601,68 +478,58 @@ public virtual Response GetEntityById(string guid, RequestContext context) } } - /// Get the entity definition by its name (unique). - /// The name of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetEntityByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the Entity definition for the given GUID. + /// The globally unique identifier of the entity. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetEntityById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEntityByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasEntityDef.FromResponse(response), response); + Response result = GetEntityById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntityDef)result, result); } - /// Get the entity definition by its name (unique). - /// The name of the entity. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetEntityByName(string name, CancellationToken cancellationToken = default) + /// Get the Entity definition for the given GUID. + /// The globally unique identifier of the entity. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetEntityByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEntityByName(name, context); - return Response.FromValue(AtlasEntityDef.FromResponse(response), response); + Response result = await GetEntityByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntityDef)result, result); } /// /// [Protocol Method] Get the entity definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetEntityByNameAsync(string name, RequestContext context) + public virtual Response GetEntityByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetEntityByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -675,34 +542,26 @@ public virtual async Task GetEntityByNameAsync(string name, RequestCon /// [Protocol Method] Get the entity definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the entity. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetEntityByName(string name, RequestContext context) + public virtual async Task GetEntityByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEntityByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetEntityByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -711,68 +570,58 @@ public virtual Response GetEntityByName(string name, RequestContext context) } } - /// Get the enum definition for the given GUID. - /// The globally unique identifier of the enum. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetEnumByIdAsync(string guid, CancellationToken cancellationToken = default) + /// Get the entity definition by its name (unique). + /// The name of the entity. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetEntityByName(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEnumByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasEnumDef.FromResponse(response), response); + Response result = GetEntityByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEntityDef)result, result); } - /// Get the enum definition for the given GUID. - /// The globally unique identifier of the enum. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetEnumById(string guid, CancellationToken cancellationToken = default) + /// Get the entity definition by its name (unique). + /// The name of the entity. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetEntityByNameAsync(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEnumById(guid, context); - return Response.FromValue(AtlasEnumDef.FromResponse(response), response); + Response result = await GetEntityByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEntityDef)result, result); } /// /// [Protocol Method] Get the enum definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the enum. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetEnumByIdAsync(string guid, RequestContext context) + public virtual Response GetEnumById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetEnumByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -785,34 +634,26 @@ public virtual async Task GetEnumByIdAsync(string guid, RequestContext /// [Protocol Method] Get the enum definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the enum. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetEnumById(string guid, RequestContext context) + public virtual async Task GetEnumByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetEnumByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -821,68 +662,58 @@ public virtual Response GetEnumById(string guid, RequestContext context) } } - /// Get the enum definition by its name (unique). - /// The name of the enum. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetEnumByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the enum definition for the given GUID. + /// The globally unique identifier of the enum. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetEnumById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetEnumByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasEnumDef.FromResponse(response), response); + Response result = GetEnumById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEnumDef)result, result); } - /// Get the enum definition by its name (unique). - /// The name of the enum. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetEnumByName(string name, CancellationToken cancellationToken = default) + /// Get the enum definition for the given GUID. + /// The globally unique identifier of the enum. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetEnumByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetEnumByName(name, context); - return Response.FromValue(AtlasEnumDef.FromResponse(response), response); + Response result = await GetEnumByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEnumDef)result, result); } /// /// [Protocol Method] Get the enum definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the enum. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetEnumByNameAsync(string name, RequestContext context) + public virtual Response GetEnumByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetEnumByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -895,34 +726,26 @@ public virtual async Task GetEnumByNameAsync(string name, RequestConte /// [Protocol Method] Get the enum definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the enum. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetEnumByName(string name, RequestContext context) + public virtual async Task GetEnumByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetEnumByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetEnumByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -931,68 +754,58 @@ public virtual Response GetEnumByName(string name, RequestContext context) } } - /// Get the relationship definition for the given GUID. - /// The globally unique identifier of the relationship. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetRelationshipByIdAsync(string guid, CancellationToken cancellationToken = default) + /// Get the enum definition by its name (unique). + /// The name of the enum. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetEnumByName(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetRelationshipByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasRelationshipDef.FromResponse(response), response); + Response result = GetEnumByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasEnumDef)result, result); } - /// Get the relationship definition for the given GUID. - /// The globally unique identifier of the relationship. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetRelationshipById(string guid, CancellationToken cancellationToken = default) + /// Get the enum definition by its name (unique). + /// The name of the enum. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetEnumByNameAsync(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetRelationshipById(guid, context); - return Response.FromValue(AtlasRelationshipDef.FromResponse(response), response); + Response result = await GetEnumByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasEnumDef)result, result); } /// /// [Protocol Method] Get the relationship definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the relationship. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetRelationshipByIdAsync(string guid, RequestContext context) + public virtual Response GetRelationshipById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetRelationshipByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1005,34 +818,26 @@ public virtual async Task GetRelationshipByIdAsync(string guid, Reques /// [Protocol Method] Get the relationship definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the relationship. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetRelationshipById(string guid, RequestContext context) + public virtual async Task GetRelationshipByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetRelationshipByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1040,69 +845,59 @@ public virtual Response GetRelationshipById(string guid, RequestContext context) throw; } } - - /// Get the relationship definition by its name (unique). - /// The name of the relationship. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetRelationshipByNameAsync(string name, CancellationToken cancellationToken = default) + + /// Get the relationship definition for the given GUID. + /// The globally unique identifier of the relationship. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetRelationshipById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetRelationshipByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasRelationshipDef.FromResponse(response), response); + Response result = GetRelationshipById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasRelationshipDef)result, result); } - /// Get the relationship definition by its name (unique). - /// The name of the relationship. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetRelationshipByName(string name, CancellationToken cancellationToken = default) + /// Get the relationship definition for the given GUID. + /// The globally unique identifier of the relationship. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetRelationshipByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetRelationshipByName(name, context); - return Response.FromValue(AtlasRelationshipDef.FromResponse(response), response); + Response result = await GetRelationshipByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasRelationshipDef)result, result); } /// /// [Protocol Method] Get the relationship definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the relationship. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetRelationshipByNameAsync(string name, RequestContext context) + public virtual Response GetRelationshipByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetRelationshipByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1115,34 +910,26 @@ public virtual async Task GetRelationshipByNameAsync(string name, Requ /// [Protocol Method] Get the relationship definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the relationship. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetRelationshipByName(string name, RequestContext context) + public virtual async Task GetRelationshipByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetRelationshipByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetRelationshipByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1151,68 +938,58 @@ public virtual Response GetRelationshipByName(string name, RequestContext contex } } - /// Get the struct definition for the given GUID. - /// The globally unique identifier of the struct. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetStructByIdAsync(string guid, CancellationToken cancellationToken = default) + /// Get the relationship definition by its name (unique). + /// The name of the relationship. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetRelationshipByName(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetStructByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasStructDef.FromResponse(response), response); + Response result = GetRelationshipByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasRelationshipDef)result, result); } - /// Get the struct definition for the given GUID. - /// The globally unique identifier of the struct. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetStructById(string guid, CancellationToken cancellationToken = default) + /// Get the relationship definition by its name (unique). + /// The name of the relationship. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetRelationshipByNameAsync(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetStructById(guid, context); - return Response.FromValue(AtlasStructDef.FromResponse(response), response); + Response result = await GetRelationshipByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasRelationshipDef)result, result); } /// /// [Protocol Method] Get the struct definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the struct. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetStructByIdAsync(string guid, RequestContext context) + public virtual Response GetStructById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetStructByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1225,34 +1002,26 @@ public virtual async Task GetStructByIdAsync(string guid, RequestConte /// [Protocol Method] Get the struct definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the struct. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetStructById(string guid, RequestContext context) + public virtual async Task GetStructByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetStructByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1261,68 +1030,58 @@ public virtual Response GetStructById(string guid, RequestContext context) } } - /// Get the struct definition by its name (unique). - /// The name of the struct. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetStructByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the struct definition for the given GUID. + /// The globally unique identifier of the struct. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetStructById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetStructByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasStructDef.FromResponse(response), response); + Response result = GetStructById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasStructDef)result, result); } - /// Get the struct definition by its name (unique). - /// The name of the struct. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetStructByName(string name, CancellationToken cancellationToken = default) + /// Get the struct definition for the given GUID. + /// The globally unique identifier of the struct. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetStructByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetStructByName(name, context); - return Response.FromValue(AtlasStructDef.FromResponse(response), response); + Response result = await GetStructByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasStructDef)result, result); } /// /// [Protocol Method] Get the struct definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the struct. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetStructByNameAsync(string name, RequestContext context) + public virtual Response GetStructByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetStructByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1335,34 +1094,26 @@ public virtual async Task GetStructByNameAsync(string name, RequestCon /// [Protocol Method] Get the struct definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the struct. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetStructByName(string name, RequestContext context) + public virtual async Task GetStructByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetStructByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetStructByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1371,68 +1122,58 @@ public virtual Response GetStructByName(string name, RequestContext context) } } - /// Get the type definition for the given GUID. - /// The globally unique identifier of the type. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetByIdAsync(string guid, CancellationToken cancellationToken = default) + /// Get the struct definition by its name (unique). + /// The name of the struct. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetStructByName(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(AtlasTypeDef.FromResponse(response), response); + Response result = GetStructByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasStructDef)result, result); } - /// Get the type definition for the given GUID. - /// The globally unique identifier of the type. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetById(string guid, CancellationToken cancellationToken = default) + /// Get the struct definition by its name (unique). + /// The name of the struct. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetStructByNameAsync(string name, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + Argument.AssertNotNullOrEmpty(name, nameof(name)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetById(guid, context); - return Response.FromValue(AtlasTypeDef.FromResponse(response), response); + Response result = await GetStructByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasStructDef)result, result); } /// /// [Protocol Method] Get the type definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the type. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetByIdAsync(string guid, RequestContext context) + public virtual Response GetById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1445,34 +1186,26 @@ public virtual async Task GetByIdAsync(string guid, RequestContext con /// [Protocol Method] Get the type definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the type. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetById(string guid, RequestContext context) + public virtual async Task GetByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1481,68 +1214,58 @@ public virtual Response GetById(string guid, RequestContext context) } } - /// Get the type definition by its name (unique). - /// The name of the type. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the type definition for the given GUID. + /// The globally unique identifier of the type. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(AtlasTypeDef.FromResponse(response), response); + Response result = GetById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasTypeDef)result, result); } - /// Get the type definition by its name (unique). - /// The name of the type. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetByName(string name, CancellationToken cancellationToken = default) + /// Get the type definition for the given GUID. + /// The globally unique identifier of the type. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetByName(name, context); - return Response.FromValue(AtlasTypeDef.FromResponse(response), response); + Response result = await GetByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasTypeDef)result, result); } /// /// [Protocol Method] Get the type definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the type. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetByNameAsync(string name, RequestContext context) + public virtual Response GetByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1555,34 +1278,26 @@ public virtual async Task GetByNameAsync(string name, RequestContext c /// [Protocol Method] Get the type definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the type. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetByName(string name, RequestContext context) + public virtual async Task GetByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1591,34 +1306,58 @@ public virtual Response GetByName(string name, RequestContext context) } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method + /// Get the type definition by its name (unique). + /// The name of the type. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetByName(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + Response result = GetByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasTypeDef)result, result); + } + + /// Get the type definition by its name (unique). + /// The name of the type. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetByNameAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + Response result = await GetByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasTypeDef)result, result); + } + /// /// [Protocol Method] Delete API for type identified by its name. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the type. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task DeleteAsync(string name, RequestContext context = null) + public virtual Response Delete(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateDeleteRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1627,34 +1366,30 @@ public virtual async Task DeleteAsync(string name, RequestContext cont } } - // The convenience method is omitted here because it has exactly the same parameter list as the corresponding protocol method /// /// [Protocol Method] Delete API for type identified by its name. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The name of the type. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response Delete(string name, RequestContext context = null) + public virtual async Task DeleteAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.Delete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.Delete"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateDeleteRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1663,50 +1398,37 @@ public virtual Response Delete(string name, RequestContext context = null) } } - /// List all type definitions in bulk. - /// - /// Whether include termtemplatedef when return all typedefs. - /// This is always true - /// when search filter type=term_template - /// - /// Typedef name as search filter when get typedefs. - /// The cancellation token to use. - /// - public virtual async Task> GetTypeDefinitionAsync(bool? includeTermTemplate = null, TypeCategory? type = null, CancellationToken cancellationToken = default) + /// Delete API for type identified by its name. + /// The name of the type. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response Delete(string name, CancellationToken cancellationToken = default) { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTypeDefinitionAsync(includeTermTemplate, type?.ToString(), context).ConfigureAwait(false); - return Response.FromValue(AtlasTypesDef.FromResponse(response), response); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + return Delete(name, cancellationToken.ToRequestContext()); } - /// List all type definitions in bulk. - /// - /// Whether include termtemplatedef when return all typedefs. - /// This is always true - /// when search filter type=term_template - /// - /// Typedef name as search filter when get typedefs. - /// The cancellation token to use. - /// - public virtual Response GetTypeDefinition(bool? includeTermTemplate = null, TypeCategory? type = null, CancellationToken cancellationToken = default) + /// Delete API for type identified by its name. + /// The name of the type. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task DeleteAsync(string name, CancellationToken cancellationToken = default) { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTypeDefinition(includeTermTemplate, type?.ToString(), context); - return Response.FromValue(AtlasTypesDef.FromResponse(response), response); + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + return await DeleteAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] List all type definitions in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1715,19 +1437,18 @@ public virtual Response GetTypeDefinition(bool? includeTermTempla /// This is always true /// when search filter type=term_template /// - /// Typedef name as search filter when get typedefs. Allowed values: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Typedef name as search filter when get typedefs. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetTypeDefinitionAsync(bool? includeTermTemplate, string type, RequestContext context) + public virtual Response Get(bool? includeTermTemplate, string @type, RequestContext context) { - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTypeDefinition"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.Get"); scope.Start(); try { - using HttpMessage message = CreateGetTypeDefinitionRequest(includeTermTemplate, type, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + using HttpMessage message = CreateGetRequest(includeTermTemplate, @type, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1740,14 +1461,7 @@ public virtual async Task GetTypeDefinitionAsync(bool? includeTermTemp /// [Protocol Method] List all type definitions in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -1756,19 +1470,18 @@ public virtual async Task GetTypeDefinitionAsync(bool? includeTermTemp /// This is always true /// when search filter type=term_template /// - /// Typedef name as search filter when get typedefs. Allowed values: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Typedef name as search filter when get typedefs. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetTypeDefinition(bool? includeTermTemplate, string type, RequestContext context) + public virtual async Task GetAsync(bool? includeTermTemplate, string @type, RequestContext context) { - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTypeDefinition"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.Get"); scope.Start(); try { - using HttpMessage message = CreateGetTypeDefinitionRequest(includeTermTemplate, type, context); - return _pipeline.ProcessMessage(message, context); + using HttpMessage message = CreateGetRequest(includeTermTemplate, @type, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1777,67 +1490,59 @@ public virtual Response GetTypeDefinition(bool? includeTermTemplate, string type } } - /// Create all atlas type definitions in bulk. Please avoid recreating existing types. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual async Task> BatchCreateAsync(AtlasTypesDef body, CancellationToken cancellationToken = default) + /// List all type definitions in bulk. + /// + /// Whether include termtemplatedef when return all typedefs. + /// This is always true + /// when search filter type=term_template + /// + /// Typedef name as search filter when get typedefs. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual Response Get(bool? includeTermTemplate = default, TypeCategory? @type = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchCreateAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AtlasTypesDef.FromResponse(response), response); + Response result = Get(includeTermTemplate, @type?.ToString(), cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasTypesDef)result, result); } - /// Create all atlas type definitions in bulk. Please avoid recreating existing types. - /// Body parameter. - /// The cancellation token to use. - /// is null. - /// - public virtual Response BatchCreate(AtlasTypesDef body, CancellationToken cancellationToken = default) + /// List all type definitions in bulk. + /// + /// Whether include termtemplatedef when return all typedefs. + /// This is always true + /// when search filter type=term_template + /// + /// Typedef name as search filter when get typedefs. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual async Task> GetAsync(bool? includeTermTemplate = default, TypeCategory? @type = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(body, nameof(body)); - - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchCreate(content, context); - return Response.FromValue(AtlasTypesDef.FromResponse(response), response); + Response result = await GetAsync(includeTermTemplate, @type?.ToString(), cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasTypesDef)result, result); } /// /// [Protocol Method] Create all atlas type definitions in bulk. Please avoid recreating existing types. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchCreateAsync(RequestContent content, RequestContext context = null) + public virtual Response BatchCreate(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchCreate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchCreate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchCreateRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1850,33 +1555,25 @@ public virtual async Task BatchCreateAsync(RequestContent content, Req /// [Protocol Method] Create all atlas type definitions in bulk. Please avoid recreating existing types. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchCreate(RequestContent content, RequestContext context = null) + public virtual async Task BatchCreateAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchCreate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchCreate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchCreateRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -1885,40 +1582,30 @@ public virtual Response BatchCreate(RequestContent content, RequestContext conte } } - /// - /// Update all types in bulk, changes detected in the type definitions would be - /// persisted. - /// + /// Create all atlas type definitions in bulk. Please avoid recreating existing types. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task> BatchUpdateAsync(AtlasTypesDef body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response BatchCreate(AtlasTypesDef body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchUpdateAsync(content, context).ConfigureAwait(false); - return Response.FromValue(AtlasTypesDef.FromResponse(response), response); + Response result = BatchCreate(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasTypesDef)result, result); } - /// - /// Update all types in bulk, changes detected in the type definitions would be - /// persisted. - /// + /// Create all atlas type definitions in bulk. Please avoid recreating existing types. /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response BatchUpdate(AtlasTypesDef body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> BatchCreateAsync(AtlasTypesDef body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchUpdate(content, context); - return Response.FromValue(AtlasTypesDef.FromResponse(response), response); + Response result = await BatchCreateAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasTypesDef)result, result); } /// @@ -1926,33 +1613,25 @@ public virtual Response BatchUpdate(AtlasTypesDef body, Cancellat /// persisted. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchUpdateAsync(RequestContent content, RequestContext context = null) + public virtual Response BatchUpdate(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchUpdate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchUpdateRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -1966,33 +1645,25 @@ public virtual async Task BatchUpdateAsync(RequestContent content, Req /// persisted. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchUpdate(RequestContent content, RequestContext context = null) + public virtual async Task BatchUpdateAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchUpdate"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchUpdate"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchUpdateRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2001,67 +1672,61 @@ public virtual Response BatchUpdate(RequestContent content, RequestContext conte } } - /// Delete API for all types in bulk. + /// + /// Update all types in bulk, changes detected in the type definitions would be + /// persisted. + /// /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual async Task BatchDeleteAsync(AtlasTypesDef body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual Response BatchUpdate(AtlasTypesDef body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await BatchDeleteAsync(content, context).ConfigureAwait(false); - return response; + Response result = BatchUpdate(body, cancellationToken.ToRequestContext()); + return Response.FromValue((AtlasTypesDef)result, result); } - /// Delete API for all types in bulk. + /// + /// Update all types in bulk, changes detected in the type definitions would be + /// persisted. + /// /// Body parameter. - /// The cancellation token to use. + /// The cancellation token that can be used to cancel the operation. /// is null. - /// - public virtual Response BatchDelete(AtlasTypesDef body, CancellationToken cancellationToken = default) + /// Service returned a non-success status code. + public virtual async Task> BatchUpdateAsync(AtlasTypesDef body, CancellationToken cancellationToken = default) { Argument.AssertNotNull(body, nameof(body)); - using RequestContent content = body.ToRequestContent(); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = BatchDelete(content, context); - return response; + Response result = await BatchUpdateAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((AtlasTypesDef)result, result); } /// /// [Protocol Method] Delete API for all types in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task BatchDeleteAsync(RequestContent content, RequestContext context = null) + public virtual Response BatchDelete(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchDelete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchDelete"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchDeleteRequest(content, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2074,33 +1739,25 @@ public virtual async Task BatchDeleteAsync(RequestContent content, Req /// [Protocol Method] Delete API for all types in bulk. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The content to send as the body of the request. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response BatchDelete(RequestContent content, RequestContext context = null) + public virtual async Task BatchDeleteAsync(RequestContent content, RequestContext context = null) { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchDelete"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.BatchDelete"); scope.Start(); try { + Argument.AssertNotNull(content, nameof(content)); + using HttpMessage message = CreateBatchDeleteRequest(content, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2109,66 +1766,35 @@ public virtual Response BatchDelete(RequestContent content, RequestContext conte } } - /// List all type definitions returned as a list of minimal information header. - /// - /// Whether include termtemplatedef when return all typedefs. - /// This is always true - /// when search filter type=term_template - /// - /// Typedef name as search filter when get typedefs. - /// The cancellation token to use. - /// - public virtual async Task>> GetHeadersAsync(bool? includeTermTemplate = null, TypeCategory? type = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetHeadersAsync(includeTermTemplate, type?.ToString(), context).ConfigureAwait(false); - IReadOnlyList value = default; - using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AtlasTypeDefHeader.DeserializeAtlasTypeDefHeader(item)); - } - value = array; - return Response.FromValue(value, response); + /// Delete API for all types in bulk. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual Response BatchDelete(AtlasTypesDef body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + return BatchDelete(body, cancellationToken.ToRequestContext()); } - /// List all type definitions returned as a list of minimal information header. - /// - /// Whether include termtemplatedef when return all typedefs. - /// This is always true - /// when search filter type=term_template - /// - /// Typedef name as search filter when get typedefs. - /// The cancellation token to use. - /// - public virtual Response> GetHeaders(bool? includeTermTemplate = null, TypeCategory? type = null, CancellationToken cancellationToken = default) - { - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetHeaders(includeTermTemplate, type?.ToString(), context); - IReadOnlyList value = default; - using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - List array = new List(); - foreach (var item in document.RootElement.EnumerateArray()) - { - array.Add(AtlasTypeDefHeader.DeserializeAtlasTypeDefHeader(item)); - } - value = array; - return Response.FromValue(value, response); + /// Delete API for all types in bulk. + /// Body parameter. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task BatchDeleteAsync(AtlasTypesDef body, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + return await BatchDeleteAsync(body, cancellationToken.ToRequestContext()).ConfigureAwait(false); } /// /// [Protocol Method] List all type definitions returned as a list of minimal information header. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2177,19 +1803,18 @@ public virtual Response> GetHeaders(bool? incl /// This is always true /// when search filter type=term_template /// - /// Typedef name as search filter when get typedefs. Allowed values: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Typedef name as search filter when get typedefs. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetHeadersAsync(bool? includeTermTemplate, string type, RequestContext context) + public virtual Response GetHeaders(bool? includeTermTemplate, string @type, RequestContext context) { - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetHeaders"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetHeaders"); scope.Start(); try { - using HttpMessage message = CreateGetHeadersRequest(includeTermTemplate, type, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + using HttpMessage message = CreateGetHeadersRequest(includeTermTemplate, @type, context); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2202,14 +1827,7 @@ public virtual async Task GetHeadersAsync(bool? includeTermTemplate, s /// [Protocol Method] List all type definitions returned as a list of minimal information header. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// @@ -2218,19 +1836,18 @@ public virtual async Task GetHeadersAsync(bool? includeTermTemplate, s /// This is always true /// when search filter type=term_template /// - /// Typedef name as search filter when get typedefs. Allowed values: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE". - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Typedef name as search filter when get typedefs. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetHeaders(bool? includeTermTemplate, string type, RequestContext context) + public virtual async Task GetHeadersAsync(bool? includeTermTemplate, string @type, RequestContext context) { - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetHeaders"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetHeaders"); scope.Start(); try { - using HttpMessage message = CreateGetHeadersRequest(includeTermTemplate, type, context); - return _pipeline.ProcessMessage(message, context); + using HttpMessage message = CreateGetHeadersRequest(includeTermTemplate, @type, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2239,68 +1856,74 @@ public virtual Response GetHeaders(bool? includeTermTemplate, string type, Reque } } - /// Get the term template definition for the given GUID. - /// The globally unique identifier of the term template. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetTermTemplateByIdAsync(string guid, CancellationToken cancellationToken = default) + /// List all type definitions returned as a list of minimal information header. + /// + /// Whether include termtemplatedef when return all typedefs. + /// This is always true + /// when search filter type=term_template + /// + /// Typedef name as search filter when get typedefs. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual Response> GetHeaders(bool? includeTermTemplate = default, TypeCategory? @type = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTermTemplateByIdAsync(guid, context).ConfigureAwait(false); - return Response.FromValue(TermTemplateDef.FromResponse(response), response); + Response result = GetHeaders(includeTermTemplate, @type?.ToString(), cancellationToken.ToRequestContext()); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) + { + value.Add(AtlasTypeDefHeader.DeserializeAtlasTypeDefHeader(item, ModelSerializationExtensions.WireOptions)); + } + return Response.FromValue((IReadOnlyList)value, result); } - /// Get the term template definition for the given GUID. - /// The globally unique identifier of the term template. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetTermTemplateById(string guid, CancellationToken cancellationToken = default) + /// List all type definitions returned as a list of minimal information header. + /// + /// Whether include termtemplatedef when return all typedefs. + /// This is always true + /// when search filter type=term_template + /// + /// Typedef name as search filter when get typedefs. + /// The cancellation token that can be used to cancel the operation. + /// Service returned a non-success status code. + public virtual async Task>> GetHeadersAsync(bool? includeTermTemplate = default, TypeCategory? @type = default, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTermTemplateById(guid, context); - return Response.FromValue(TermTemplateDef.FromResponse(response), response); + Response result = await GetHeadersAsync(includeTermTemplate, @type?.ToString(), cancellationToken.ToRequestContext()).ConfigureAwait(false); + IList value = new List(); + BinaryData data = result.Content; + using JsonDocument document = JsonDocument.Parse(data); + foreach (var item in document.RootElement.EnumerateArray()) + { + value.Add(AtlasTypeDefHeader.DeserializeAtlasTypeDefHeader(item, ModelSerializationExtensions.WireOptions)); + } + return Response.FromValue((IReadOnlyList)value, result); } /// /// [Protocol Method] Get the term template definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the term template. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetTermTemplateByIdAsync(string guid, RequestContext context) + public virtual Response GetTermTemplateById(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetTermTemplateByIdRequest(guid, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2313,34 +1936,26 @@ public virtual async Task GetTermTemplateByIdAsync(string guid, Reques /// [Protocol Method] Get the term template definition for the given GUID. /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The globally unique identifier of the term template. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetTermTemplateById(string guid, RequestContext context) + public virtual async Task GetTermTemplateByIdAsync(string guid, RequestContext context) { - Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateById"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateById"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); + using HttpMessage message = CreateGetTermTemplateByIdRequest(guid, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2349,68 +1964,58 @@ public virtual Response GetTermTemplateById(string guid, RequestContext context) } } - /// Get the term template definition by its name (unique). - /// The unique name of the term template. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual async Task> GetTermTemplateByNameAsync(string name, CancellationToken cancellationToken = default) + /// Get the term template definition for the given GUID. + /// The globally unique identifier of the term template. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetTermTemplateById(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = await GetTermTemplateByNameAsync(name, context).ConfigureAwait(false); - return Response.FromValue(TermTemplateDef.FromResponse(response), response); + Response result = GetTermTemplateById(guid, cancellationToken.ToRequestContext()); + return Response.FromValue((TermTemplateDef)result, result); } - /// Get the term template definition by its name (unique). - /// The unique name of the term template. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// - public virtual Response GetTermTemplateByName(string name, CancellationToken cancellationToken = default) + /// Get the term template definition for the given GUID. + /// The globally unique identifier of the term template. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetTermTemplateByIdAsync(string guid, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); + Argument.AssertNotNullOrEmpty(guid, nameof(guid)); - RequestContext context = FromCancellationToken(cancellationToken); - Response response = GetTermTemplateByName(name, context); - return Response.FromValue(TermTemplateDef.FromResponse(response), response); + Response result = await GetTermTemplateByIdAsync(guid, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((TermTemplateDef)result, result); } /// /// [Protocol Method] Get the term template definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The unique name of the term template. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual async Task GetTermTemplateByNameAsync(string name, RequestContext context) + public virtual Response GetTermTemplateByName(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetTermTemplateByNameRequest(name, context); - return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + return Pipeline.ProcessMessage(message, context); } catch (Exception e) { @@ -2423,34 +2028,26 @@ public virtual async Task GetTermTemplateByNameAsync(string name, Requ /// [Protocol Method] Get the term template definition by its name (unique). /// /// - /// - /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. - /// - /// - /// - /// - /// Please try the simpler convenience overload with strongly typed models first. - /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. /// /// /// /// The unique name of the term template. - /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// The request options, which can override default behaviors of the client pipeline on a per-call basis. /// is null. /// is an empty string, and was expected to be non-empty. /// Service returned a non-success status code. /// The response returned from the service. - /// - public virtual Response GetTermTemplateByName(string name, RequestContext context) + public virtual async Task GetTermTemplateByNameAsync(string name, RequestContext context) { - Argument.AssertNotNullOrEmpty(name, nameof(name)); - - using var scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateByName"); + using DiagnosticScope scope = ClientDiagnostics.CreateScope("TypeDefinition.GetTermTemplateByName"); scope.Start(); try { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + using HttpMessage message = CreateGetTermTemplateByNameRequest(name, context); - return _pipeline.ProcessMessage(message, context); + return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); } catch (Exception e) { @@ -2459,369 +2056,32 @@ public virtual Response GetTermTemplateByName(string name, RequestContext contex } } - internal HttpMessage CreateGetBusinessMetadataByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/businessmetadatadef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetBusinessMetadataByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/businessmetadatadef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetClassificationByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/classificationdef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetClassificationByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/classificationdef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetEntityByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/entitydef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetEntityByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/entitydef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetEnumByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/enumdef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetEnumByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/enumdef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetRelationshipByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/relationshipdef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetRelationshipByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/relationshipdef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetStructByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/structdef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetStructByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/structdef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetByIdRequest(string guid, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedef/guid/", false); - uri.AppendPath(guid, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetByNameRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateDeleteRequest(string name, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedef/name/", false); - uri.AppendPath(name, true); - request.Uri = uri; - return message; - } - - internal HttpMessage CreateGetTypeDefinitionRequest(bool? includeTermTemplate, string type, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedefs", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (includeTermTemplate != null) - { - uri.AppendQuery("includeTermTemplate", includeTermTemplate.Value, true); - } - if (type != null) - { - uri.AppendQuery("type", type, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateBatchCreateRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedefs", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateBatchUpdateRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedefs", false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateBatchDeleteRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier204); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedefs", false); - request.Uri = uri; - request.Headers.Add("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetHeadersRequest(bool? includeTermTemplate, string type, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/types/typedefs/headers", false); - uri.AppendQuery("api-version", _apiVersion, true); - if (includeTermTemplate != null) - { - uri.AppendQuery("includeTermTemplate", includeTermTemplate.Value, true); - } - if (type != null) - { - uri.AppendQuery("type", type, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateGetTermTemplateByIdRequest(string guid, RequestContext context) + /// Get the term template definition by its name (unique). + /// The unique name of the term template. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual Response GetTermTemplateByName(string name, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/types/termtemplatedef/guid/", false); - uri.AppendPath(guid, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + Response result = GetTermTemplateByName(name, cancellationToken.ToRequestContext()); + return Response.FromValue((TermTemplateDef)result, result); } - internal HttpMessage CreateGetTermTemplateByNameRequest(string name, RequestContext context) + /// Get the term template definition by its name (unique). + /// The unique name of the term template. + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + public virtual async Task> GetTermTemplateByNameAsync(string name, CancellationToken cancellationToken = default) { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/types/termtemplatedef/name/", false); - uri.AppendPath(name, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) - { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } + Argument.AssertNotNullOrEmpty(name, nameof(name)); - return new RequestContext() { CancellationToken = cancellationToken }; + Response result = await GetTermTemplateByNameAsync(name, cancellationToken.ToRequestContext()).ConfigureAwait(false); + return Response.FromValue((TermTemplateDef)result, result); } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - private static ResponseClassifier _responseClassifier204; - private static ResponseClassifier ResponseClassifier204 => _responseClassifier204 ??= new StatusCodeClassifier(stackalloc ushort[] { 204 }); } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json b/sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json new file mode 100644 index 000000000000..a9e10f59b4d8 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json @@ -0,0 +1,75154 @@ +{ + "name": "Azure.Analytics.Purview.DataMap", + "apiVersions": [ + "2023-09-01" + ], + "enums": [ + { + "$id": "1", + "kind": "enum", + "name": "EntityStatus", + "crossLanguageDefinitionId": "PurviewDataMap.EntityStatus", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Active", + "value": "ACTIVE", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The status is active.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "Deleted", + "value": "DELETED", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "The status is deleted.", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Status - can be active or deleted", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "5", + "kind": "enum", + "name": "AtlasTermAssignmentStatus", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentStatus", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "7", + "kind": "enumvalue", + "name": "Discovered", + "value": "DISCOVERED", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "The status is discovered.", + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "Proposed", + "value": "PROPOSED", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "The status is proposed.", + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "Imported", + "value": "IMPORTED", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "The status is imported.", + "decorators": [] + }, + { + "$id": "10", + "kind": "enumvalue", + "name": "Validated", + "value": "VALIDATED", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "The status is validated.", + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "Deprecated", + "value": "DEPRECATED", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "The status is deprecated.", + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "Obsolete", + "value": "OBSOLETE", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "The status is obsolete.", + "decorators": [] + }, + { + "$id": "13", + "kind": "enumvalue", + "name": "Other", + "value": "OTHER", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "doc": "Other status.", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Status for term assignment", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "14", + "kind": "enum", + "name": "AtlasSortType", + "crossLanguageDefinitionId": "PurviewDataMap.SortType", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "16", + "kind": "enumvalue", + "name": "None", + "value": "NONE", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "doc": "No sorting order", + "decorators": [] + }, + { + "$id": "17", + "kind": "enumvalue", + "name": "Ascend", + "value": "ASC", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "doc": "Use ascending order for sorting", + "decorators": [] + }, + { + "$id": "18", + "kind": "enumvalue", + "name": "Descend", + "value": "DESC", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "doc": "Use descending order for sorting", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Type for sorting", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "19", + "kind": "enum", + "name": "ImportStatus", + "crossLanguageDefinitionId": "PurviewDataMap.ImportStatus", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "21", + "kind": "enumvalue", + "name": "Success", + "value": "SUCCESS", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "doc": "Success", + "decorators": [] + }, + { + "$id": "22", + "kind": "enumvalue", + "name": "Failed", + "value": "FAILED", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "doc": "Failed", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Status for import", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "23", + "kind": "enum", + "name": "AtlasTermRelationshipStatus", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermRelationshipStatus", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "25", + "kind": "enumvalue", + "name": "Draft", + "value": "DRAFT", + "valueType": { + "$ref": "24" + }, + "enumType": { + "$ref": "23" + }, + "doc": "draft", + "decorators": [] + }, + { + "$id": "26", + "kind": "enumvalue", + "name": "Active", + "value": "ACTIVE", + "valueType": { + "$ref": "24" + }, + "enumType": { + "$ref": "23" + }, + "doc": "active", + "decorators": [] + }, + { + "$id": "27", + "kind": "enumvalue", + "name": "Deprecated", + "value": "DEPRECATED", + "valueType": { + "$ref": "24" + }, + "enumType": { + "$ref": "23" + }, + "doc": "deprecated", + "decorators": [] + }, + { + "$id": "28", + "kind": "enumvalue", + "name": "Obsolete", + "value": "OBSOLETE", + "valueType": { + "$ref": "24" + }, + "enumType": { + "$ref": "23" + }, + "doc": "obsolete", + "decorators": [] + }, + { + "$id": "29", + "kind": "enumvalue", + "name": "Other", + "value": "OTHER", + "valueType": { + "$ref": "24" + }, + "enumType": { + "$ref": "23" + }, + "doc": "other", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Status for atlas term relationship", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "30", + "kind": "enum", + "name": "TermStatus", + "crossLanguageDefinitionId": "PurviewDataMap.TermStatus", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "32", + "kind": "enumvalue", + "name": "Draft", + "value": "Draft", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + }, + "doc": "draft", + "decorators": [] + }, + { + "$id": "33", + "kind": "enumvalue", + "name": "Approved", + "value": "Approved", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + }, + "doc": "approved", + "decorators": [] + }, + { + "$id": "34", + "kind": "enumvalue", + "name": "Alert", + "value": "Alert", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + }, + "doc": "alert", + "decorators": [] + }, + { + "$id": "35", + "kind": "enumvalue", + "name": "Expired", + "value": "Expired", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + }, + "doc": "expired", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Status for term", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "36", + "kind": "enum", + "name": "StatusAtlasRelationship", + "crossLanguageDefinitionId": "PurviewDataMap.StatusAtlasRelationship", + "valueType": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "38", + "kind": "enumvalue", + "name": "Active", + "value": "ACTIVE", + "valueType": { + "$ref": "37" + }, + "enumType": { + "$ref": "36" + }, + "doc": "active", + "decorators": [] + }, + { + "$id": "39", + "kind": "enumvalue", + "name": "Deleted", + "value": "DELETED", + "valueType": { + "$ref": "37" + }, + "enumType": { + "$ref": "36" + }, + "doc": "deleted", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Status for atlas relationship", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "40", + "kind": "enum", + "name": "SearchSortOrder", + "crossLanguageDefinitionId": "PurviewDataMap.SearchSortOrder", + "valueType": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "42", + "kind": "enumvalue", + "name": "Ascend", + "value": "asc", + "valueType": { + "$ref": "41" + }, + "enumType": { + "$ref": "40" + }, + "doc": "Use ascending order for sorting", + "decorators": [] + }, + { + "$id": "43", + "kind": "enumvalue", + "name": "Descend", + "value": "desc", + "valueType": { + "$ref": "41" + }, + "enumType": { + "$ref": "40" + }, + "doc": "Use descending order for sorting", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Search sort order", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "44", + "kind": "enum", + "name": "LineageDirection", + "crossLanguageDefinitionId": "PurviewDataMap.LineageDirection", + "valueType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "46", + "kind": "enumvalue", + "name": "Input", + "value": "INPUT", + "valueType": { + "$ref": "45" + }, + "enumType": { + "$ref": "44" + }, + "doc": "input", + "decorators": [] + }, + { + "$id": "47", + "kind": "enumvalue", + "name": "Output", + "value": "OUTPUT", + "valueType": { + "$ref": "45" + }, + "enumType": { + "$ref": "44" + }, + "doc": "output", + "decorators": [] + }, + { + "$id": "48", + "kind": "enumvalue", + "name": "Both", + "value": "BOTH", + "valueType": { + "$ref": "45" + }, + "enumType": { + "$ref": "44" + }, + "doc": "both", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Lineage direction", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "49", + "kind": "enum", + "name": "TypeCategory", + "crossLanguageDefinitionId": "PurviewDataMap.TypeCategory", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "51", + "kind": "enumvalue", + "name": "Primitive", + "value": "PRIMITIVE", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "primitive", + "decorators": [] + }, + { + "$id": "52", + "kind": "enumvalue", + "name": "ObjectIdType", + "value": "OBJECT_ID_TYPE", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "object id type", + "decorators": [] + }, + { + "$id": "53", + "kind": "enumvalue", + "name": "Enum", + "value": "ENUM", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "enum", + "decorators": [] + }, + { + "$id": "54", + "kind": "enumvalue", + "name": "Struct", + "value": "STRUCT", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "struct", + "decorators": [] + }, + { + "$id": "55", + "kind": "enumvalue", + "name": "Classification", + "value": "CLASSIFICATION", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "classification", + "decorators": [] + }, + { + "$id": "56", + "kind": "enumvalue", + "name": "Entity", + "value": "ENTITY", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "entity", + "decorators": [] + }, + { + "$id": "57", + "kind": "enumvalue", + "name": "Array", + "value": "ARRAY", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "array", + "decorators": [] + }, + { + "$id": "58", + "kind": "enumvalue", + "name": "Map", + "value": "MAP", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "map", + "decorators": [] + }, + { + "$id": "59", + "kind": "enumvalue", + "name": "Relationship", + "value": "RELATIONSHIP", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "relationship", + "decorators": [] + }, + { + "$id": "60", + "kind": "enumvalue", + "name": "TermTemplate", + "value": "TERM_TEMPLATE", + "valueType": { + "$ref": "50" + }, + "enumType": { + "$ref": "49" + }, + "doc": "term template", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Type Category", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "61", + "kind": "enum", + "name": "RoundingMode", + "crossLanguageDefinitionId": "PurviewDataMap.RoundingMode", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "63", + "kind": "enumvalue", + "name": "Up", + "value": "UP", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "up", + "decorators": [] + }, + { + "$id": "64", + "kind": "enumvalue", + "name": "Down", + "value": "DOWN", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "down", + "decorators": [] + }, + { + "$id": "65", + "kind": "enumvalue", + "name": "Ceiling", + "value": "CEILING", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "ceiling", + "decorators": [] + }, + { + "$id": "66", + "kind": "enumvalue", + "name": "Floor", + "value": "FLOOR", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "floor", + "decorators": [] + }, + { + "$id": "67", + "kind": "enumvalue", + "name": "HalfUp", + "value": "HALF_UP", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "half up", + "decorators": [] + }, + { + "$id": "68", + "kind": "enumvalue", + "name": "HalfDown", + "value": "HALF_DOWN", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "half down", + "decorators": [] + }, + { + "$id": "69", + "kind": "enumvalue", + "name": "HalfEven", + "value": "HALF_EVEN", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "half even", + "decorators": [] + }, + { + "$id": "70", + "kind": "enumvalue", + "name": "Unnecessary", + "value": "UNNECESSARY", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + }, + "doc": "unnecessary", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Rounding Mode", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "71", + "kind": "enum", + "name": "CardinalityValue", + "crossLanguageDefinitionId": "PurviewDataMap.CardinalityValue", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "73", + "kind": "enumvalue", + "name": "Single", + "value": "SINGLE", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "doc": "single", + "decorators": [] + }, + { + "$id": "74", + "kind": "enumvalue", + "name": "List", + "value": "LIST", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "doc": "list", + "decorators": [] + }, + { + "$id": "75", + "kind": "enumvalue", + "name": "Set", + "value": "SET", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "doc": "set", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Cardinality", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "76", + "kind": "enum", + "name": "RelationshipCategory", + "crossLanguageDefinitionId": "PurviewDataMap.RelationshipCategory", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "78", + "kind": "enumvalue", + "name": "Association", + "value": "ASSOCIATION", + "valueType": { + "$ref": "77" + }, + "enumType": { + "$ref": "76" + }, + "doc": "association", + "decorators": [] + }, + { + "$id": "79", + "kind": "enumvalue", + "name": "Aggregation", + "value": "AGGREGATION", + "valueType": { + "$ref": "77" + }, + "enumType": { + "$ref": "76" + }, + "doc": "aggregation", + "decorators": [] + }, + { + "$id": "80", + "kind": "enumvalue", + "name": "Composition", + "value": "COMPOSITION", + "valueType": { + "$ref": "77" + }, + "enumType": { + "$ref": "76" + }, + "doc": "composition", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Relationship Category", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "81", + "kind": "enum", + "name": "BusinessAttributeUpdateBehavior", + "crossLanguageDefinitionId": "PurviewDataMap.BusinessAttributeUpdateBehavior", + "valueType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "83", + "kind": "enumvalue", + "name": "Ignore", + "value": "ignore", + "valueType": { + "$ref": "82" + }, + "enumType": { + "$ref": "81" + }, + "doc": "Ignore the business attribute payload for update.", + "decorators": [] + }, + { + "$id": "84", + "kind": "enumvalue", + "name": "Replace", + "value": "replace", + "valueType": { + "$ref": "82" + }, + "enumType": { + "$ref": "81" + }, + "doc": "Replace all the business attributes using the payload.", + "decorators": [] + }, + { + "$id": "85", + "kind": "enumvalue", + "name": "Merge", + "value": "merge", + "valueType": { + "$ref": "82" + }, + "enumType": { + "$ref": "81" + }, + "doc": "Merge the business attributes. Business attributes will not be updated if not provided.", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Enum for business attribute update behavior", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "86", + "kind": "enum", + "name": "ApiVersions", + "crossLanguageDefinitionId": "PurviewDataMap.ApiVersions", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "88", + "kind": "enumvalue", + "name": "v2023_09_01", + "value": "2023-09-01", + "valueType": { + "$ref": "87" + }, + "enumType": { + "$ref": "86" + }, + "doc": "2023-09-01 service API version", + "decorators": [] + } + ], + "namespace": "Azure.Analytics.Purview.DataMap", + "doc": "Service API versions", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", + "decorators": [] + } + ], + "constants": [ + { + "$id": "89", + "kind": "constant", + "name": "createOrUpdateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "91", + "kind": "constant", + "name": "createOrUpdateContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "93", + "kind": "constant", + "name": "getByIdsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "95", + "kind": "constant", + "name": "batchCreateOrUpdateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "97", + "kind": "constant", + "name": "batchCreateOrUpdateContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "99", + "kind": "constant", + "name": "batchDeleteContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "101", + "kind": "constant", + "name": "addClassificationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "103", + "kind": "constant", + "name": "getContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "105", + "kind": "constant", + "name": "updateAttributeByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "107", + "kind": "constant", + "name": "updateAttributeByIdContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "109", + "kind": "constant", + "name": "deleteContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "111", + "kind": "constant", + "name": "getClassificationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "113", + "kind": "constant", + "name": "getClassificationsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "115", + "kind": "constant", + "name": "addClassificationsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "117", + "kind": "constant", + "name": "updateClassificationsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "119", + "kind": "constant", + "name": "getByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "121", + "kind": "constant", + "name": "updateByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "123", + "kind": "constant", + "name": "updateByUniqueAttributeContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "125", + "kind": "constant", + "name": "deleteByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "127", + "kind": "constant", + "name": "addClassificationsByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "129", + "kind": "constant", + "name": "updateClassificationsUniqueByAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "131", + "kind": "constant", + "name": "batchSetClassificationsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "133", + "kind": "constant", + "name": "batchSetClassificationsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "135", + "kind": "constant", + "name": "batchGetByUniqueAttributesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "137", + "kind": "constant", + "name": "getHeaderContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "139", + "kind": "constant", + "name": "removeBusinessMetadataContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "141", + "kind": "constant", + "name": "addOrUpdateBusinessMetadataContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "143", + "kind": "constant", + "name": "removeBusinessMetadataAttributesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "145", + "kind": "constant", + "name": "addOrUpdateBusinessMetadataAttributesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "147", + "kind": "constant", + "name": "getBusinessMetadataTemplateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "149", + "kind": "constant", + "name": "GetBusinessMetadataTemplateResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "151", + "kind": "constant", + "name": "ImportBusinessMetadataRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "153", + "kind": "constant", + "name": "importBusinessMetadataContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "155", + "kind": "constant", + "name": "ImportBusinessMetadataRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "156", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "157", + "kind": "constant", + "name": "removeLabelsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "159", + "kind": "constant", + "name": "setLabelsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "161", + "kind": "constant", + "name": "addLabelContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "163", + "kind": "constant", + "name": "removeLabelsByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "165", + "kind": "constant", + "name": "setLabelsByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "167", + "kind": "constant", + "name": "addLabelsByUniqueAttributeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "169", + "kind": "constant", + "name": "moveEntitiesToCollectionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "171", + "kind": "constant", + "name": "moveEntitiesToCollectionContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "172", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "173", + "kind": "constant", + "name": "batchGetContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "175", + "kind": "constant", + "name": "createContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "177", + "kind": "constant", + "name": "createContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "179", + "kind": "constant", + "name": "createCategoriesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "181", + "kind": "constant", + "name": "createCategoriesContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "183", + "kind": "constant", + "name": "createCategoryContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "185", + "kind": "constant", + "name": "createCategoryContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "187", + "kind": "constant", + "name": "getCategoryContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "189", + "kind": "constant", + "name": "updateCategoryContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "191", + "kind": "constant", + "name": "updateCategoryContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "193", + "kind": "constant", + "name": "partialUpdateCategoryContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "195", + "kind": "constant", + "name": "partialUpdateCategoryContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "197", + "kind": "constant", + "name": "getRelatedCategoriesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "199", + "kind": "constant", + "name": "getCategoryTermsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "201", + "kind": "constant", + "name": "createTermContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "203", + "kind": "constant", + "name": "createTermContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "205", + "kind": "constant", + "name": "getTermContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "207", + "kind": "constant", + "name": "updateTermContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "209", + "kind": "constant", + "name": "updateTermContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "211", + "kind": "constant", + "name": "partialUpdateTermContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "213", + "kind": "constant", + "name": "partialUpdateTermContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "215", + "kind": "constant", + "name": "createTermsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "217", + "kind": "constant", + "name": "createTermsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "219", + "kind": "constant", + "name": "getEntitiesAssignedWithTermContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "221", + "kind": "constant", + "name": "assignTermToEntitiesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "223", + "kind": "constant", + "name": "deleteTermAssignmentFromEntitiesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "225", + "kind": "constant", + "name": "getRelatedTermsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "227", + "kind": "constant", + "name": "getContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "229", + "kind": "constant", + "name": "updateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "231", + "kind": "constant", + "name": "updateContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "233", + "kind": "constant", + "name": "getCategoriesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "235", + "kind": "constant", + "name": "getCategoriesHeadersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "237", + "kind": "constant", + "name": "getDetailedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "238", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "239", + "kind": "constant", + "name": "partialUpdateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "241", + "kind": "constant", + "name": "partialUpdateContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "243", + "kind": "constant", + "name": "getTermsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "245", + "kind": "constant", + "name": "getTermHeadersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "247", + "kind": "constant", + "name": "queryContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "249", + "kind": "constant", + "name": "queryContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "251", + "kind": "constant", + "name": "suggestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "253", + "kind": "constant", + "name": "suggestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "255", + "kind": "constant", + "name": "autoCompleteContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "257", + "kind": "constant", + "name": "autoCompleteContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "259", + "kind": "constant", + "name": "getContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "260", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "261", + "kind": "constant", + "name": "getNextPageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "263", + "kind": "constant", + "name": "getByUniqueAttributeContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "265", + "kind": "constant", + "name": "createContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "267", + "kind": "constant", + "name": "createContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "269", + "kind": "constant", + "name": "updateContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "271", + "kind": "constant", + "name": "updateContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "273", + "kind": "constant", + "name": "getContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "275", + "kind": "constant", + "name": "getBusinessMetadataByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "277", + "kind": "constant", + "name": "getBusinessMetadataByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "279", + "kind": "constant", + "name": "getClassificationByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "281", + "kind": "constant", + "name": "getClassificationByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "283", + "kind": "constant", + "name": "getEntityByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "284", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "285", + "kind": "constant", + "name": "getEntityByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "287", + "kind": "constant", + "name": "getEnumByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "288", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "289", + "kind": "constant", + "name": "getEnumByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "291", + "kind": "constant", + "name": "getRelationshipByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "293", + "kind": "constant", + "name": "getRelationshipByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "295", + "kind": "constant", + "name": "getStructByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "297", + "kind": "constant", + "name": "getStructByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "298", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "299", + "kind": "constant", + "name": "getByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "300", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "301", + "kind": "constant", + "name": "getByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "303", + "kind": "constant", + "name": "getContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "305", + "kind": "constant", + "name": "batchCreateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "307", + "kind": "constant", + "name": "batchCreateContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "309", + "kind": "constant", + "name": "batchUpdateContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "311", + "kind": "constant", + "name": "batchUpdateContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "313", + "kind": "constant", + "name": "batchDeleteContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "315", + "kind": "constant", + "name": "getHeadersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "317", + "kind": "constant", + "name": "getTermTemplateByIdContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "319", + "kind": "constant", + "name": "getTermTemplateByNameContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "321", + "kind": "model", + "name": "AtlasEntityWithExtInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityWithExtInfo", + "usage": "Input,Output,Json", + "doc": "An instance of an entity along with extended info - like hive_table,\nhive_database.", + "decorators": [], + "properties": [ + { + "$id": "322", + "kind": "property", + "name": "referredEntities", + "serializedName": "referredEntities", + "doc": "The referred entities.", + "type": { + "$id": "323", + "kind": "dict", + "keyType": { + "$id": "324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "325", + "kind": "model", + "name": "AtlasEntity", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity", + "usage": "Input,Output,Json", + "doc": "An instance of an entity - like hive_table, hive_database.", + "decorators": [], + "properties": [ + { + "$id": "326", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "doc": "The attributes of the struct.", + "type": { + "$id": "327", + "kind": "dict", + "keyType": { + "$id": "328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "329", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "330", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "331", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "332", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "334", + "kind": "property", + "name": "businessAttributes", + "serializedName": "businessAttributes", + "doc": "Business attributes", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.businessAttributes", + "serializationOptions": { + "json": { + "name": "businessAttributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "335", + "kind": "property", + "name": "classifications", + "serializedName": "classifications", + "doc": "An array of classifications.", + "type": { + "$id": "336", + "kind": "array", + "name": "ArrayAtlasClassification", + "valueType": { + "$id": "337", + "kind": "model", + "name": "AtlasClassification", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification", + "usage": "Input,Output,Json", + "doc": "An instance of a classification; it doesn't have an identity, this object\nexists only when associated with an entity.", + "decorators": [], + "properties": [ + { + "$id": "338", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "doc": "The attributes of the struct.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "339", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "340", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "341", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "343", + "kind": "property", + "name": "entityGuid", + "serializedName": "entityGuid", + "doc": "The GUID of the entity.", + "type": { + "$id": "344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.entityGuid", + "serializationOptions": { + "json": { + "name": "entityGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "345", + "kind": "property", + "name": "entityStatus", + "serializedName": "entityStatus", + "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", + "type": { + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.entityStatus", + "serializationOptions": { + "json": { + "name": "entityStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "346", + "kind": "property", + "name": "removePropagationsOnEntityDelete", + "serializedName": "removePropagationsOnEntityDelete", + "doc": "Determines if propagations will be removed on entity deletion.", + "type": { + "$id": "347", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.removePropagationsOnEntityDelete", + "serializationOptions": { + "json": { + "name": "removePropagationsOnEntityDelete" + } + }, + "isHttpMetadata": false + }, + { + "$id": "348", + "kind": "property", + "name": "validityPeriods", + "serializedName": "validityPeriods", + "doc": "An array of time boundaries indicating validity periods.", + "type": { + "$id": "349", + "kind": "array", + "name": "ArrayTimeBoundary", + "valueType": { + "$id": "350", + "kind": "model", + "name": "TimeBoundary", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary", + "usage": "Input,Output,Json", + "doc": "Captures time-boundary details", + "decorators": [], + "properties": [ + { + "$id": "351", + "kind": "property", + "name": "endTime", + "serializedName": "endTime", + "doc": "The end of the time boundary.", + "type": { + "$id": "352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary.endTime", + "serializationOptions": { + "json": { + "name": "endTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "353", + "kind": "property", + "name": "startTime", + "serializedName": "startTime", + "doc": "The start of the time boundary.", + "type": { + "$id": "354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary.startTime", + "serializationOptions": { + "json": { + "name": "startTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "355", + "kind": "property", + "name": "timeZone", + "serializedName": "timeZone", + "doc": "The timezone of the time boundary.", + "type": { + "$id": "356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary.timeZone", + "serializationOptions": { + "json": { + "name": "timeZone" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.validityPeriods", + "serializationOptions": { + "json": { + "name": "validityPeriods" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.classifications", + "serializationOptions": { + "json": { + "name": "classifications" + } + }, + "isHttpMetadata": false + }, + { + "$id": "357", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "358", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "359", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "360", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "361", + "kind": "property", + "name": "customAttributes", + "serializedName": "customAttributes", + "doc": "Custom Attribute", + "type": { + "$id": "362", + "kind": "dict", + "keyType": { + "$id": "363", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.customAttributes", + "serializationOptions": { + "json": { + "name": "customAttributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "365", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the entity.", + "type": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "367", + "kind": "property", + "name": "homeId", + "serializedName": "homeId", + "doc": "The home ID of the entity.", + "type": { + "$id": "368", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.homeId", + "serializationOptions": { + "json": { + "name": "homeId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "369", + "kind": "property", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection ID of the entity.", + "type": { + "$id": "370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.collectionId", + "serializationOptions": { + "json": { + "name": "collectionId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "371", + "kind": "property", + "name": "isIncomplete", + "serializedName": "isIncomplete", + "doc": "Whether it is a shell entity", + "type": { + "$id": "372", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.isIncomplete", + "serializationOptions": { + "json": { + "name": "isIncomplete" + } + }, + "isHttpMetadata": false + }, + { + "$id": "373", + "kind": "property", + "name": "labels", + "serializedName": "labels", + "doc": "labels", + "type": { + "$id": "374", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.labels", + "serializationOptions": { + "json": { + "name": "labels" + } + }, + "isHttpMetadata": false + }, + { + "$id": "376", + "kind": "property", + "name": "meanings", + "serializedName": "meanings", + "doc": "An array of term assignment headers indicating the meanings of the entity.", + "type": { + "$id": "377", + "kind": "array", + "name": "ArrayAtlasTermAssignmentHeader", + "valueType": { + "$id": "378", + "kind": "model", + "name": "AtlasTermAssignmentHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader", + "usage": "Input,Output,Json", + "doc": "The header for term assignment.", + "decorators": [], + "properties": [ + { + "$id": "379", + "kind": "property", + "name": "confidence", + "serializedName": "confidence", + "doc": "The confidence of the term assignment.", + "type": { + "$id": "380", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.confidence", + "serializationOptions": { + "json": { + "name": "confidence" + } + }, + "isHttpMetadata": false + }, + { + "$id": "381", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "383", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the term assignment.", + "type": { + "$id": "384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "385", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "387", + "kind": "property", + "name": "expression", + "serializedName": "expression", + "doc": "The expression of the term assignment.", + "type": { + "$id": "388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.expression", + "serializationOptions": { + "json": { + "name": "expression" + } + }, + "isHttpMetadata": false + }, + { + "$id": "389", + "kind": "property", + "name": "relationGuid", + "serializedName": "relationGuid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "390", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.relationGuid", + "serializationOptions": { + "json": { + "name": "relationGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "392", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of terms assignment.", + "type": { + "$ref": "5" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + }, + { + "$id": "393", + "kind": "property", + "name": "steward", + "serializedName": "steward", + "doc": "The steward of the term.", + "type": { + "$id": "394", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.steward", + "serializationOptions": { + "json": { + "name": "steward" + } + }, + "isHttpMetadata": false + }, + { + "$id": "395", + "kind": "property", + "name": "termGuid", + "serializedName": "termGuid", + "doc": "The GUID of the term.", + "type": { + "$id": "396", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.termGuid", + "serializationOptions": { + "json": { + "name": "termGuid" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.meanings", + "serializationOptions": { + "json": { + "name": "meanings" + } + }, + "isHttpMetadata": false + }, + { + "$id": "398", + "kind": "property", + "name": "provenanceType", + "serializedName": "provenanceType", + "doc": "Used to record the provenance of an instance of an entity or relationship.", + "type": { + "$id": "399", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.provenanceType", + "serializationOptions": { + "json": { + "name": "provenanceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "400", + "kind": "property", + "name": "proxy", + "serializedName": "proxy", + "doc": "Determines if there's a proxy.", + "type": { + "$id": "401", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.proxy", + "serializationOptions": { + "json": { + "name": "proxy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "402", + "kind": "property", + "name": "relationshipAttributes", + "serializedName": "relationshipAttributes", + "doc": "The attributes of relationship.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.relationshipAttributes", + "serializationOptions": { + "json": { + "name": "relationshipAttributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "403", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", + "type": { + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + }, + { + "$id": "404", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "405", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "406", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "408", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the entity.", + "type": { + "$id": "409", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "410", + "kind": "property", + "name": "contacts", + "serializedName": "contacts", + "doc": "The dictionary of contacts for entities. Key could be Expert or Owner.", + "type": { + "$id": "411", + "kind": "dict", + "keyType": { + "$id": "412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "413", + "kind": "array", + "name": "ArrayContactInfo", + "valueType": { + "$id": "414", + "kind": "model", + "name": "ContactInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.ContactInfo", + "usage": "Input,Output,Json", + "doc": "ContactInfo", + "decorators": [], + "properties": [ + { + "$id": "415", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Azure Active Directory object Id.", + "type": { + "$id": "416", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ContactInfo.id", + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": false + }, + { + "$id": "417", + "kind": "property", + "name": "info", + "serializedName": "info", + "doc": "additional information to describe this contact.", + "type": { + "$id": "418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ContactInfo.info", + "serializationOptions": { + "json": { + "name": "info" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.contacts", + "serializationOptions": { + "json": { + "name": "contacts" + } + }, + "isHttpMetadata": false + } + ] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityWithExtInfo.referredEntities", + "serializationOptions": { + "json": { + "name": "referredEntities" + } + }, + "isHttpMetadata": false + }, + { + "$id": "419", + "kind": "property", + "name": "entity", + "serializedName": "entity", + "doc": "An instance of an entity - like hive_table, hive_database.", + "type": { + "$ref": "325" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityWithExtInfo.entity", + "serializationOptions": { + "json": { + "name": "entity" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "325" + }, + { + "$ref": "337" + }, + { + "$ref": "350" + }, + { + "$ref": "378" + }, + { + "$ref": "414" + }, + { + "$id": "420", + "kind": "model", + "name": "EntityMutationResult", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult", + "usage": "Output,Json", + "doc": "The mutation response result of entity.", + "decorators": [], + "properties": [ + { + "$id": "421", + "kind": "property", + "name": "guidAssignments", + "serializedName": "guidAssignments", + "doc": "A map of GUID assignments with entities.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult.guidAssignments", + "serializationOptions": { + "json": { + "name": "guidAssignments" + } + }, + "isHttpMetadata": false + }, + { + "$id": "422", + "kind": "property", + "name": "mutatedEntities", + "serializedName": "mutatedEntities", + "doc": "The entity headers of mutated entities.", + "type": { + "$id": "423", + "kind": "dict", + "keyType": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "425", + "kind": "array", + "name": "ArrayAtlasEntityHeader", + "valueType": { + "$id": "426", + "kind": "model", + "name": "AtlasEntityHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader", + "usage": "Input,Output,Json", + "doc": "An instance of an entity - like hive_table, hive_database.", + "decorators": [], + "properties": [ + { + "$id": "427", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "doc": "The attributes of the struct.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "428", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "429", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "430", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "431", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "432", + "kind": "property", + "name": "classificationNames", + "serializedName": "classificationNames", + "doc": "An array of classification names.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.classificationNames", + "serializationOptions": { + "json": { + "name": "classificationNames" + } + }, + "isHttpMetadata": false + }, + { + "$id": "433", + "kind": "property", + "name": "classifications", + "serializedName": "classifications", + "doc": "An array of classifications.", + "type": { + "$ref": "336" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.classifications", + "serializationOptions": { + "json": { + "name": "classifications" + } + }, + "isHttpMetadata": false + }, + { + "$id": "434", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "436", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the record.", + "type": { + "$id": "437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "438", + "kind": "property", + "name": "isIncomplete", + "serializedName": "isIncomplete", + "doc": "Whether it is a shell entity", + "type": { + "$id": "439", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.isIncomplete", + "serializationOptions": { + "json": { + "name": "isIncomplete" + } + }, + "isHttpMetadata": false + }, + { + "$id": "440", + "kind": "property", + "name": "labels", + "serializedName": "labels", + "doc": "labels", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.labels", + "serializationOptions": { + "json": { + "name": "labels" + } + }, + "isHttpMetadata": false + }, + { + "$id": "441", + "kind": "property", + "name": "meaningNames", + "serializedName": "meaningNames", + "doc": "An array of meanings.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.meaningNames", + "serializationOptions": { + "json": { + "name": "meaningNames" + } + }, + "isHttpMetadata": false + }, + { + "$id": "442", + "kind": "property", + "name": "meanings", + "serializedName": "meanings", + "doc": "An array of term assignment headers.", + "type": { + "$ref": "377" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.meanings", + "serializationOptions": { + "json": { + "name": "meanings" + } + }, + "isHttpMetadata": false + }, + { + "$id": "443", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", + "type": { + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult.mutatedEntities", + "serializationOptions": { + "json": { + "name": "mutatedEntities" + } + }, + "isHttpMetadata": false + }, + { + "$id": "444", + "kind": "property", + "name": "partialUpdatedEntities", + "serializedName": "partialUpdatedEntities", + "doc": "An array of entity headers that partially updated.", + "type": { + "$ref": "425" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult.partialUpdatedEntities", + "serializationOptions": { + "json": { + "name": "partialUpdatedEntities" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "426" + }, + { + "$id": "445", + "kind": "model", + "name": "AtlasErrorResponse", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse", + "usage": "Json,Exception", + "doc": "An error response from the service", + "decorators": [], + "properties": [ + { + "$id": "446", + "kind": "property", + "name": "requestId", + "serializedName": "requestId", + "doc": "The request ID.", + "type": { + "$id": "447", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "448", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse.requestId", + "serializationOptions": { + "json": { + "name": "requestId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "449", + "kind": "property", + "name": "errorCode", + "serializedName": "errorCode", + "doc": "The error code.", + "type": { + "$id": "450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse.errorCode", + "serializationOptions": { + "json": { + "name": "errorCode" + } + }, + "isHttpMetadata": false + }, + { + "$id": "451", + "kind": "property", + "name": "errorMessage", + "serializedName": "errorMessage", + "doc": "The error message.", + "type": { + "$id": "452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse.errorMessage", + "serializationOptions": { + "json": { + "name": "errorMessage" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "453", + "kind": "model", + "name": "AtlasEntitiesWithExtInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntitiesWithExtInfo", + "usage": "Input,Output,Json", + "doc": "An instance of an entity along with extended info - like hive_table,\nhive_database.", + "decorators": [], + "properties": [ + { + "$id": "454", + "kind": "property", + "name": "referredEntities", + "serializedName": "referredEntities", + "doc": "The referred entities.", + "type": { + "$ref": "323" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntitiesWithExtInfo.referredEntities", + "serializationOptions": { + "json": { + "name": "referredEntities" + } + }, + "isHttpMetadata": false + }, + { + "$id": "455", + "kind": "property", + "name": "entities", + "serializedName": "entities", + "doc": "An array of entities.", + "type": { + "$id": "456", + "kind": "array", + "name": "ArrayAtlasEntity", + "valueType": { + "$ref": "325" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntitiesWithExtInfo.entities", + "serializationOptions": { + "json": { + "name": "entities" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "457", + "kind": "model", + "name": "ClassificationAssociateConfig", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.ClassificationAssociateOptions", + "usage": "Input,Json", + "doc": "The request payload for classification association.", + "decorators": [], + "properties": [ + { + "$id": "458", + "kind": "property", + "name": "classification", + "serializedName": "classification", + "doc": "An instance of a classification; it doesn't have an identity, this object\nexists only when associated with an entity.", + "type": { + "$ref": "337" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ClassificationAssociateOptions.classification", + "serializationOptions": { + "json": { + "name": "classification" + } + }, + "isHttpMetadata": false + }, + { + "$id": "459", + "kind": "property", + "name": "entityGuids", + "serializedName": "entityGuids", + "doc": "The GUID of the entity.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ClassificationAssociateOptions.entityGuids", + "serializationOptions": { + "json": { + "name": "entityGuids" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "460", + "kind": "model", + "name": "AtlasClassifications", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications", + "usage": "Output,Json", + "doc": "REST serialization friendly list.", + "decorators": [], + "properties": [ + { + "$id": "461", + "kind": "property", + "name": "list", + "serializedName": "list", + "doc": "An array of objects.", + "type": { + "$id": "462", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "463", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.list", + "serializationOptions": { + "json": { + "name": "list" + } + }, + "isHttpMetadata": false + }, + { + "$id": "464", + "kind": "property", + "name": "pageSize", + "serializedName": "pageSize", + "doc": "The size of the page.", + "type": { + "$id": "465", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.pageSize", + "serializationOptions": { + "json": { + "name": "pageSize" + } + }, + "isHttpMetadata": false + }, + { + "$id": "466", + "kind": "property", + "name": "sortBy", + "serializedName": "sortBy", + "doc": "The sorted by field.", + "type": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.sortBy", + "serializationOptions": { + "json": { + "name": "sortBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "468", + "kind": "property", + "name": "sortType", + "serializedName": "sortType", + "doc": "to specify whether the result should be sorted? If yes, whether asc or desc.", + "type": { + "$ref": "14" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.sortType", + "serializationOptions": { + "json": { + "name": "sortType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "469", + "kind": "property", + "name": "startIndex", + "serializedName": "startIndex", + "doc": "The start index of the page.", + "type": { + "$id": "470", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.startIndex", + "serializationOptions": { + "json": { + "name": "startIndex" + } + }, + "isHttpMetadata": false + }, + { + "$id": "471", + "kind": "property", + "name": "totalCount", + "serializedName": "totalCount", + "doc": "The total count of items.", + "type": { + "$id": "472", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.totalCount", + "serializationOptions": { + "json": { + "name": "totalCount" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "473", + "kind": "model", + "name": "AtlasEntityHeaders", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeaders", + "usage": "Input,Json", + "doc": "An instance of an entity header map.", + "decorators": [], + "properties": [ + { + "$id": "474", + "kind": "property", + "name": "guidHeaderMap", + "serializedName": "guidHeaderMap", + "doc": "The description of the guid header map,", + "type": { + "$id": "475", + "kind": "dict", + "keyType": { + "$id": "476", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "426" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeaders.guidHeaderMap", + "serializationOptions": { + "json": { + "name": "guidHeaderMap" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "477", + "kind": "model", + "name": "BusinessMetadataOptions", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.BusinessMetadataOptions", + "usage": "Input,MultipartFormData", + "doc": "Business metadata to send to the service", + "decorators": [], + "properties": [ + { + "$id": "478", + "kind": "property", + "name": "file", + "serializedName": "file", + "doc": "InputStream of file", + "type": { + "$id": "479", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.BusinessMetadataOptions.file", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "file", + "headers": [] + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "480", + "kind": "model", + "name": "BulkImportResult", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.BulkImportResult", + "usage": "Output,Json", + "doc": "Bulk import result", + "decorators": [], + "properties": [ + { + "$id": "481", + "kind": "property", + "name": "failedImportInfoList", + "serializedName": "failedImportInfoList", + "doc": "failed importInfoList", + "type": { + "$id": "482", + "kind": "array", + "name": "ArrayImportInfo", + "valueType": { + "$id": "483", + "kind": "model", + "name": "ImportInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo", + "usage": "Output,Json", + "doc": "ImportInfo", + "decorators": [], + "properties": [ + { + "$id": "484", + "kind": "property", + "name": "childObjectName", + "serializedName": "childObjectName", + "doc": "childObjectName", + "type": { + "$id": "485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.childObjectName", + "serializationOptions": { + "json": { + "name": "childObjectName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "486", + "kind": "property", + "name": "importStatus", + "serializedName": "importStatus", + "doc": "importStatus", + "type": { + "$ref": "19" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.importStatus", + "serializationOptions": { + "json": { + "name": "importStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "487", + "kind": "property", + "name": "parentObjectName", + "serializedName": "parentObjectName", + "doc": "parentObjectName", + "type": { + "$id": "488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.parentObjectName", + "serializationOptions": { + "json": { + "name": "parentObjectName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "489", + "kind": "property", + "name": "remarks", + "serializedName": "remarks", + "doc": "remarks", + "type": { + "$id": "490", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.remarks", + "serializationOptions": { + "json": { + "name": "remarks" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.BulkImportResult.failedImportInfoList", + "serializationOptions": { + "json": { + "name": "failedImportInfoList" + } + }, + "isHttpMetadata": false + }, + { + "$id": "491", + "kind": "property", + "name": "successImportInfoList", + "serializedName": "successImportInfoList", + "doc": "successful importInfoList", + "type": { + "$ref": "482" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.BulkImportResult.successImportInfoList", + "serializationOptions": { + "json": { + "name": "successImportInfoList" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "483" + }, + { + "$id": "492", + "kind": "model", + "name": "MoveEntitiesConfig", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.MoveEntitiesOptions", + "usage": "Input,Json", + "doc": "MoveEntitiesOptions", + "decorators": [], + "properties": [ + { + "$id": "493", + "kind": "property", + "name": "entityGuids", + "serializedName": "entityGuids", + "doc": "An array of entity guids to be moved to target collection.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.MoveEntitiesOptions.entityGuids", + "serializationOptions": { + "json": { + "name": "entityGuids" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "494", + "kind": "model", + "name": "AtlasGlossary", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary", + "usage": "Input,Output,Json", + "doc": "The glossary object.", + "decorators": [], + "properties": [ + { + "$id": "495", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "496", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "497", + "kind": "property", + "name": "classifications", + "serializedName": "classifications", + "doc": "An array of classifications.", + "type": { + "$ref": "336" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.classifications", + "serializationOptions": { + "json": { + "name": "classifications" + } + }, + "isHttpMetadata": false + }, + { + "$id": "498", + "kind": "property", + "name": "longDescription", + "serializedName": "longDescription", + "doc": "The long version description.", + "type": { + "$id": "499", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.longDescription", + "serializationOptions": { + "json": { + "name": "longDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "500", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the glossary object.", + "type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "502", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "The qualified name of the glossary object.", + "type": { + "$id": "503", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "504", + "kind": "property", + "name": "shortDescription", + "serializedName": "shortDescription", + "doc": "The short version of description.", + "type": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.shortDescription", + "serializationOptions": { + "json": { + "name": "shortDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "506", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "507", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "508", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "509", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "510", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "511", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "512", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "513", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "514", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "516", + "kind": "property", + "name": "categories", + "serializedName": "categories", + "doc": "An array of categories.", + "type": { + "$id": "517", + "kind": "array", + "name": "ArrayAtlasRelatedCategoryHeader", + "valueType": { + "$id": "518", + "kind": "model", + "name": "AtlasRelatedCategoryHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader", + "usage": "Input,Output,Json", + "doc": "The header of the related category.", + "decorators": [], + "properties": [ + { + "$id": "519", + "kind": "property", + "name": "categoryGuid", + "serializedName": "categoryGuid", + "doc": "The GUID of the category.", + "type": { + "$id": "520", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.categoryGuid", + "serializationOptions": { + "json": { + "name": "categoryGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "521", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the category header.", + "type": { + "$id": "522", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "523", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "524", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "525", + "kind": "property", + "name": "parentCategoryGuid", + "serializedName": "parentCategoryGuid", + "doc": "The GUID of the parent category.", + "type": { + "$id": "526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.parentCategoryGuid", + "serializationOptions": { + "json": { + "name": "parentCategoryGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "527", + "kind": "property", + "name": "relationGuid", + "serializedName": "relationGuid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.relationGuid", + "serializationOptions": { + "json": { + "name": "relationGuid" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.categories", + "serializationOptions": { + "json": { + "name": "categories" + } + }, + "isHttpMetadata": false + }, + { + "$id": "529", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the glossary.", + "type": { + "$id": "530", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.language", + "serializationOptions": { + "json": { + "name": "language" + } + }, + "isHttpMetadata": false + }, + { + "$id": "531", + "kind": "property", + "name": "terms", + "serializedName": "terms", + "doc": "An array of related term headers.", + "type": { + "$id": "532", + "kind": "array", + "name": "ArrayAtlasRelatedTermHeader", + "valueType": { + "$id": "533", + "kind": "model", + "name": "AtlasRelatedTermHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader", + "usage": "Input,Output,Json", + "doc": "The header of the related term.", + "decorators": [], + "properties": [ + { + "$id": "534", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the related term.", + "type": { + "$id": "535", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "536", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "538", + "kind": "property", + "name": "expression", + "serializedName": "expression", + "doc": "The expression of the term.", + "type": { + "$id": "539", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.expression", + "serializationOptions": { + "json": { + "name": "expression" + } + }, + "isHttpMetadata": false + }, + { + "$id": "540", + "kind": "property", + "name": "relationGuid", + "serializedName": "relationGuid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.relationGuid", + "serializationOptions": { + "json": { + "name": "relationGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "542", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of term relationship.", + "type": { + "$ref": "23" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + }, + { + "$id": "543", + "kind": "property", + "name": "steward", + "serializedName": "steward", + "doc": "The steward of the term.", + "type": { + "$id": "544", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.steward", + "serializationOptions": { + "json": { + "name": "steward" + } + }, + "isHttpMetadata": false + }, + { + "$id": "545", + "kind": "property", + "name": "termGuid", + "serializedName": "termGuid", + "doc": "The GUID of the term.", + "type": { + "$id": "546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.termGuid", + "serializationOptions": { + "json": { + "name": "termGuid" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.terms", + "serializationOptions": { + "json": { + "name": "terms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "547", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "The usage of the glossary.", + "type": { + "$id": "548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "518" + }, + { + "$ref": "533" + }, + { + "$id": "549", + "kind": "model", + "name": "AtlasGlossaryCategory", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory", + "usage": "Input,Output,Json", + "doc": "The glossary category.", + "decorators": [], + "properties": [ + { + "$id": "550", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "551", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "552", + "kind": "property", + "name": "classifications", + "serializedName": "classifications", + "doc": "An array of classifications.", + "type": { + "$ref": "336" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.classifications", + "serializationOptions": { + "json": { + "name": "classifications" + } + }, + "isHttpMetadata": false + }, + { + "$id": "553", + "kind": "property", + "name": "longDescription", + "serializedName": "longDescription", + "doc": "The long version description.", + "type": { + "$id": "554", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.longDescription", + "serializationOptions": { + "json": { + "name": "longDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "555", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the glossary object.", + "type": { + "$id": "556", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "557", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "The qualified name of the glossary object.", + "type": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "559", + "kind": "property", + "name": "shortDescription", + "serializedName": "shortDescription", + "doc": "The short version of description.", + "type": { + "$id": "560", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.shortDescription", + "serializationOptions": { + "json": { + "name": "shortDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "561", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "563", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "564", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "565", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "566", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "567", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "568", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "569", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "570", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "571", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "The glossary header with basic information.", + "type": { + "$id": "572", + "kind": "model", + "name": "AtlasGlossaryHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader", + "usage": "Input,Output,Json", + "doc": "The glossary header with basic information.", + "decorators": [], + "properties": [ + { + "$id": "573", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "574", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "575", + "kind": "property", + "name": "glossaryGuid", + "serializedName": "glossaryGuid", + "doc": "The GUID of the glossary.", + "type": { + "$id": "576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader.glossaryGuid", + "serializationOptions": { + "json": { + "name": "glossaryGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "577", + "kind": "property", + "name": "relationGuid", + "serializedName": "relationGuid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader.relationGuid", + "serializationOptions": { + "json": { + "name": "relationGuid" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.anchor", + "serializationOptions": { + "json": { + "name": "anchor" + } + }, + "isHttpMetadata": false + }, + { + "$id": "579", + "kind": "property", + "name": "childrenCategories", + "serializedName": "childrenCategories", + "doc": "An array of children categories.", + "type": { + "$ref": "517" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.childrenCategories", + "serializationOptions": { + "json": { + "name": "childrenCategories" + } + }, + "isHttpMetadata": false + }, + { + "$id": "580", + "kind": "property", + "name": "parentCategory", + "serializedName": "parentCategory", + "doc": "The header of the related category.", + "type": { + "$ref": "518" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.parentCategory", + "serializationOptions": { + "json": { + "name": "parentCategory" + } + }, + "isHttpMetadata": false + }, + { + "$id": "581", + "kind": "property", + "name": "terms", + "serializedName": "terms", + "doc": "An array of related term headers.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.terms", + "serializationOptions": { + "json": { + "name": "terms" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "572" + }, + { + "$id": "582", + "kind": "model", + "name": "AtlasGlossaryTerm", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm", + "usage": "Input,Output,Json", + "doc": "The glossary term.", + "decorators": [], + "properties": [ + { + "$id": "583", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "584", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "585", + "kind": "property", + "name": "classifications", + "serializedName": "classifications", + "doc": "An array of classifications.", + "type": { + "$ref": "336" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.classifications", + "serializationOptions": { + "json": { + "name": "classifications" + } + }, + "isHttpMetadata": false + }, + { + "$id": "586", + "kind": "property", + "name": "longDescription", + "serializedName": "longDescription", + "doc": "The long version description.", + "type": { + "$id": "587", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.longDescription", + "serializationOptions": { + "json": { + "name": "longDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "588", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the glossary object.", + "type": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "590", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "The qualified name of the glossary object.", + "type": { + "$id": "591", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "592", + "kind": "property", + "name": "shortDescription", + "serializedName": "shortDescription", + "doc": "The short version of description.", + "type": { + "$id": "593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.shortDescription", + "serializationOptions": { + "json": { + "name": "shortDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "594", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "595", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "596", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "597", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "598", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "599", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "600", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "601", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "602", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "603", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "604", + "kind": "property", + "name": "abbreviation", + "serializedName": "abbreviation", + "doc": "The abbreviation of the term.", + "type": { + "$id": "605", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.abbreviation", + "serializationOptions": { + "json": { + "name": "abbreviation" + } + }, + "isHttpMetadata": false + }, + { + "$id": "606", + "kind": "property", + "name": "templateName", + "serializedName": "templateName", + "doc": "The name of the template.", + "type": { + "$ref": "462" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.templateName", + "serializationOptions": { + "json": { + "name": "templateName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "607", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "The glossary header with basic information.", + "type": { + "$ref": "572" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.anchor", + "serializationOptions": { + "json": { + "name": "anchor" + } + }, + "isHttpMetadata": false + }, + { + "$id": "608", + "kind": "property", + "name": "antonyms", + "serializedName": "antonyms", + "doc": "An array of related term headers as antonyms.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.antonyms", + "serializationOptions": { + "json": { + "name": "antonyms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "609", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the AtlasGlossaryTerm", + "type": { + "$ref": "30" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + }, + { + "$id": "610", + "kind": "property", + "name": "nickName", + "serializedName": "nickName", + "doc": "The nick name of the term.", + "type": { + "$id": "611", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.nickName", + "serializationOptions": { + "json": { + "name": "nickName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "612", + "kind": "property", + "name": "hierarchyInfo", + "serializedName": "hierarchyInfo", + "doc": "The hierarchy information of the term.", + "type": { + "$id": "613", + "kind": "array", + "name": "ArrayPurviewObjectId", + "valueType": { + "$id": "614", + "kind": "model", + "name": "PurviewObjectId", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId", + "usage": "Input,Output,Json", + "doc": "PurviewObjectId", + "decorators": [], + "properties": [ + { + "$id": "615", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "617", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "618", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "619", + "kind": "property", + "name": "uniqueAttributes", + "serializedName": "uniqueAttributes", + "doc": "The unique attributes of the object.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.uniqueAttributes", + "serializationOptions": { + "json": { + "name": "uniqueAttributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "620", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name", + "type": { + "$id": "621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "622", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "Display text", + "type": { + "$id": "623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "624", + "kind": "property", + "name": "itemPath", + "serializedName": "itemPath", + "doc": "Item path", + "type": { + "$id": "625", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.itemPath", + "serializationOptions": { + "json": { + "name": "itemPath" + } + }, + "isHttpMetadata": false + }, + { + "$id": "626", + "kind": "property", + "name": "resourceId", + "serializedName": "resourceId", + "doc": "Resource Id", + "type": { + "$id": "627", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.resourceId", + "serializationOptions": { + "json": { + "name": "resourceId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "628", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "Dictionary of ", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.hierarchyInfo", + "serializationOptions": { + "json": { + "name": "hierarchyInfo" + } + }, + "isHttpMetadata": false + }, + { + "$id": "629", + "kind": "property", + "name": "resources", + "serializedName": "resources", + "doc": "An array of resource link for term", + "type": { + "$id": "630", + "kind": "array", + "name": "ArrayResourceLink", + "valueType": { + "$id": "631", + "kind": "model", + "name": "ResourceLink", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.ResourceLink", + "usage": "Input,Output,Json", + "doc": "ResourceLink", + "decorators": [], + "properties": [ + { + "$id": "632", + "kind": "property", + "name": "displayName", + "serializedName": "displayName", + "doc": "Display name for url.", + "type": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ResourceLink.displayName", + "serializationOptions": { + "json": { + "name": "displayName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "634", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "web url. http or https", + "type": { + "$id": "635", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ResourceLink.url", + "serializationOptions": { + "json": { + "name": "url" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.resources", + "serializationOptions": { + "json": { + "name": "resources" + } + }, + "isHttpMetadata": false + }, + { + "$id": "636", + "kind": "property", + "name": "contacts", + "serializedName": "contacts", + "doc": "The dictionary of contacts for terms. Key could be Expert or Steward.", + "type": { + "$ref": "411" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.contacts", + "serializationOptions": { + "json": { + "name": "contacts" + } + }, + "isHttpMetadata": false + }, + { + "$id": "637", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "doc": "The custom attributes of the term, which is map>.\nThe\nkey of the first layer map is term template name.", + "type": { + "$id": "638", + "kind": "dict", + "keyType": { + "$id": "639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "327" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "640", + "kind": "property", + "name": "assignedEntities", + "serializedName": "assignedEntities", + "doc": "An array of related object IDs.", + "type": { + "$id": "641", + "kind": "array", + "name": "ArrayAtlasRelatedObjectId", + "valueType": { + "$id": "642", + "kind": "model", + "name": "AtlasRelatedObjectId", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId", + "usage": "Input,Output,Json", + "doc": "Reference to an object-instance of AtlasEntity type used in relationship\nattribute values", + "decorators": [], + "properties": [ + { + "$id": "643", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "645", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "646", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "647", + "kind": "property", + "name": "uniqueAttributes", + "serializedName": "uniqueAttributes", + "doc": "The unique attributes of the object.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.uniqueAttributes", + "serializationOptions": { + "json": { + "name": "uniqueAttributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "648", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "650", + "kind": "property", + "name": "entityStatus", + "serializedName": "entityStatus", + "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", + "type": { + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.entityStatus", + "serializationOptions": { + "json": { + "name": "entityStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "651", + "kind": "property", + "name": "relationshipType", + "serializedName": "relationshipType", + "doc": "Relationship type", + "type": { + "$id": "652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipType", + "serializationOptions": { + "json": { + "name": "relationshipType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "653", + "kind": "property", + "name": "relationshipAttributes", + "serializedName": "relationshipAttributes", + "doc": "Captures details of struct contents. Not instantiated directly, used only via\nAtlasEntity, AtlasClassification.", + "type": { + "$id": "654", + "kind": "model", + "name": "AtlasStruct", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct", + "usage": "Input,Output,Json", + "doc": "Captures details of struct contents. Not instantiated directly, used only via\nAtlasEntity, AtlasClassification.", + "decorators": [], + "properties": [ + { + "$id": "655", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "doc": "The attributes of the struct.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "656", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "657", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "658", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "659", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipAttributes", + "serializationOptions": { + "json": { + "name": "relationshipAttributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "660", + "kind": "property", + "name": "relationshipGuid", + "serializedName": "relationshipGuid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "661", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "662", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipGuid", + "serializationOptions": { + "json": { + "name": "relationshipGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "663", + "kind": "property", + "name": "relationshipStatus", + "serializedName": "relationshipStatus", + "doc": "The enum of relationship status.", + "type": { + "$ref": "36" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipStatus", + "serializationOptions": { + "json": { + "name": "relationshipStatus" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.assignedEntities", + "serializationOptions": { + "json": { + "name": "assignedEntities" + } + }, + "isHttpMetadata": false + }, + { + "$id": "664", + "kind": "property", + "name": "categories", + "serializedName": "categories", + "doc": "An array of term categorization headers.", + "type": { + "$id": "665", + "kind": "array", + "name": "ArrayAtlasTermCategorizationHeader", + "valueType": { + "$id": "666", + "kind": "model", + "name": "AtlasTermCategorizationHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader", + "usage": "Input,Output,Json", + "doc": "The basic information for term categorization.", + "decorators": [], + "properties": [ + { + "$id": "667", + "kind": "property", + "name": "categoryGuid", + "serializedName": "categoryGuid", + "doc": "The GUID of the category.", + "type": { + "$id": "668", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "669", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.categoryGuid", + "serializationOptions": { + "json": { + "name": "categoryGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "670", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the record.", + "type": { + "$id": "671", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "672", + "kind": "property", + "name": "displayText", + "serializedName": "displayText", + "doc": "The display text.", + "type": { + "$id": "673", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.displayText", + "serializationOptions": { + "json": { + "name": "displayText" + } + }, + "isHttpMetadata": false + }, + { + "$id": "674", + "kind": "property", + "name": "relationGuid", + "serializedName": "relationGuid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "675", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.relationGuid", + "serializationOptions": { + "json": { + "name": "relationGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "677", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of term relationship.", + "type": { + "$ref": "23" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.categories", + "serializationOptions": { + "json": { + "name": "categories" + } + }, + "isHttpMetadata": false + }, + { + "$id": "678", + "kind": "property", + "name": "classifies", + "serializedName": "classifies", + "doc": "An array of related term headers.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.classifies", + "serializationOptions": { + "json": { + "name": "classifies" + } + }, + "isHttpMetadata": false + }, + { + "$id": "679", + "kind": "property", + "name": "examples", + "serializedName": "examples", + "doc": "An array of examples.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.examples", + "serializationOptions": { + "json": { + "name": "examples" + } + }, + "isHttpMetadata": false + }, + { + "$id": "680", + "kind": "property", + "name": "isA", + "serializedName": "isA", + "doc": "An array of related term headers indicating the is-a relationship.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.isA", + "serializationOptions": { + "json": { + "name": "isA" + } + }, + "isHttpMetadata": false + }, + { + "$id": "681", + "kind": "property", + "name": "preferredTerms", + "serializedName": "preferredTerms", + "doc": "An array of preferred related term headers.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.preferredTerms", + "serializationOptions": { + "json": { + "name": "preferredTerms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "682", + "kind": "property", + "name": "preferredToTerms", + "serializedName": "preferredToTerms", + "doc": "An array of related term headers that are preferred to.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.preferredToTerms", + "serializationOptions": { + "json": { + "name": "preferredToTerms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "683", + "kind": "property", + "name": "replacedBy", + "serializedName": "replacedBy", + "doc": "An array of related term headers that are replaced by.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.replacedBy", + "serializationOptions": { + "json": { + "name": "replacedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "684", + "kind": "property", + "name": "replacementTerms", + "serializedName": "replacementTerms", + "doc": "An array of related term headers for replacement.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.replacementTerms", + "serializationOptions": { + "json": { + "name": "replacementTerms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "685", + "kind": "property", + "name": "seeAlso", + "serializedName": "seeAlso", + "doc": "An array of related term headers for see also.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.seeAlso", + "serializationOptions": { + "json": { + "name": "seeAlso" + } + }, + "isHttpMetadata": false + }, + { + "$id": "686", + "kind": "property", + "name": "synonyms", + "serializedName": "synonyms", + "doc": "An array of related term headers as synonyms.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.synonyms", + "serializationOptions": { + "json": { + "name": "synonyms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "687", + "kind": "property", + "name": "translatedTerms", + "serializedName": "translatedTerms", + "doc": "An array of translated related term headers.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.translatedTerms", + "serializationOptions": { + "json": { + "name": "translatedTerms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "688", + "kind": "property", + "name": "translationTerms", + "serializedName": "translationTerms", + "doc": "An array of related term headers for translation.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.translationTerms", + "serializationOptions": { + "json": { + "name": "translationTerms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "689", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "The usage of the term.", + "type": { + "$id": "690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + }, + "isHttpMetadata": false + }, + { + "$id": "691", + "kind": "property", + "name": "validValues", + "serializedName": "validValues", + "doc": "An array of related term headers as valid values.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.validValues", + "serializationOptions": { + "json": { + "name": "validValues" + } + }, + "isHttpMetadata": false + }, + { + "$id": "692", + "kind": "property", + "name": "validValuesFor", + "serializedName": "validValuesFor", + "doc": "An array of related term headers as valid values for other records.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.validValuesFor", + "serializationOptions": { + "json": { + "name": "validValuesFor" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "614" + }, + { + "$ref": "631" + }, + { + "$ref": "642" + }, + { + "$ref": "654" + }, + { + "$ref": "666" + }, + { + "$id": "693", + "kind": "model", + "name": "AtlasGlossaryExtInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo", + "usage": "Output,Json", + "doc": "The extended information of glossary.", + "decorators": [], + "properties": [ + { + "$id": "694", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "695", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "696", + "kind": "property", + "name": "classifications", + "serializedName": "classifications", + "doc": "An array of classifications.", + "type": { + "$ref": "336" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.classifications", + "serializationOptions": { + "json": { + "name": "classifications" + } + }, + "isHttpMetadata": false + }, + { + "$id": "697", + "kind": "property", + "name": "longDescription", + "serializedName": "longDescription", + "doc": "The long version description.", + "type": { + "$id": "698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.longDescription", + "serializationOptions": { + "json": { + "name": "longDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "699", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the glossary object.", + "type": { + "$id": "700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "701", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "The qualified name of the glossary object.", + "type": { + "$id": "702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "703", + "kind": "property", + "name": "shortDescription", + "serializedName": "shortDescription", + "doc": "The short version of description.", + "type": { + "$id": "704", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.shortDescription", + "serializationOptions": { + "json": { + "name": "shortDescription" + } + }, + "isHttpMetadata": false + }, + { + "$id": "705", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "706", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "707", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "708", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "709", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "710", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "711", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "712", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "713", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "714", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "715", + "kind": "property", + "name": "categories", + "serializedName": "categories", + "doc": "An array of categories.", + "type": { + "$ref": "517" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.categories", + "serializationOptions": { + "json": { + "name": "categories" + } + }, + "isHttpMetadata": false + }, + { + "$id": "716", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the glossary.", + "type": { + "$id": "717", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.language", + "serializationOptions": { + "json": { + "name": "language" + } + }, + "isHttpMetadata": false + }, + { + "$id": "718", + "kind": "property", + "name": "terms", + "serializedName": "terms", + "doc": "An array of related term headers.", + "type": { + "$ref": "532" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.terms", + "serializationOptions": { + "json": { + "name": "terms" + } + }, + "isHttpMetadata": false + }, + { + "$id": "719", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "The usage of the glossary.", + "type": { + "$id": "720", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + }, + "isHttpMetadata": false + }, + { + "$id": "721", + "kind": "property", + "name": "categoryInfo", + "serializedName": "categoryInfo", + "doc": "The glossary category information.", + "type": { + "$id": "722", + "kind": "dict", + "keyType": { + "$id": "723", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "549" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.categoryInfo", + "serializationOptions": { + "json": { + "name": "categoryInfo" + } + }, + "isHttpMetadata": false + }, + { + "$id": "724", + "kind": "property", + "name": "termInfo", + "serializedName": "termInfo", + "doc": "The glossary term information.", + "type": { + "$id": "725", + "kind": "dict", + "keyType": { + "$id": "726", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "582" + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.termInfo", + "serializationOptions": { + "json": { + "name": "termInfo" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "727", + "kind": "model", + "name": "QueryConfig", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions", + "usage": "Input,Json", + "doc": "The search query of advanced search request.", + "decorators": [], + "properties": [ + { + "$id": "728", + "kind": "property", + "name": "keywords", + "serializedName": "keywords", + "doc": "The keywords applied to all searchable fields.", + "type": { + "$id": "729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.keywords", + "serializationOptions": { + "json": { + "name": "keywords" + } + }, + "isHttpMetadata": false + }, + { + "$id": "730", + "kind": "property", + "name": "limit", + "serializedName": "limit", + "doc": "The limit of the number of the search result. default value is 50; maximum\nvalue is 1000.", + "type": { + "$id": "731", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.limit", + "serializationOptions": { + "json": { + "name": "limit" + } + }, + "isHttpMetadata": false + }, + { + "$id": "732", + "kind": "property", + "name": "continuationToken", + "serializedName": "continuationToken", + "doc": "The token used to get next batch of data. Default 'Null' to get the first\nbatch, and will return new token in each response unless there's no more data.", + "type": { + "$id": "733", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.continuationToken", + "serializationOptions": { + "json": { + "name": "continuationToken" + } + }, + "isHttpMetadata": false + }, + { + "$id": "734", + "kind": "property", + "name": "orderby", + "serializedName": "orderby", + "doc": "The sort order of search results, can specify multiple fields.", + "type": { + "$ref": "462" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.orderby", + "serializationOptions": { + "json": { + "name": "orderby" + } + }, + "isHttpMetadata": false + }, + { + "$id": "735", + "kind": "property", + "name": "filter", + "serializedName": "filter", + "doc": "The filter for the search. See examples for the usage of supported filters.", + "type": { + "$id": "736", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.filter", + "serializationOptions": { + "json": { + "name": "filter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "737", + "kind": "property", + "name": "facets", + "serializedName": "facets", + "doc": "The facets for search. See examples for the usage of supported facets.", + "type": { + "$id": "738", + "kind": "array", + "name": "ArraySearchFacetItem", + "valueType": { + "$id": "739", + "kind": "model", + "name": "SearchFacetItem", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem", + "usage": "Input,Json", + "doc": "The content of a search facet result item.", + "decorators": [], + "properties": [ + { + "$id": "740", + "kind": "property", + "name": "count", + "serializedName": "count", + "doc": "The count of the facet item.", + "type": { + "$id": "741", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem.count", + "serializationOptions": { + "json": { + "name": "count" + } + }, + "isHttpMetadata": false + }, + { + "$id": "742", + "kind": "property", + "name": "facet", + "serializedName": "facet", + "doc": "The name of the facet item.", + "type": { + "$id": "743", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem.facet", + "serializationOptions": { + "json": { + "name": "facet" + } + }, + "isHttpMetadata": false + }, + { + "$id": "744", + "kind": "property", + "name": "sort", + "serializedName": "sort", + "doc": "Define the sorting criteria for items", + "type": { + "$id": "745", + "kind": "model", + "name": "SearchFacetSort", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetSort", + "usage": "Input,Json", + "doc": "The sorting criteria", + "decorators": [], + "properties": [ + { + "$id": "746", + "kind": "property", + "name": "count", + "serializedName": "count", + "doc": "Order by count", + "type": { + "$ref": "40" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetSort.count", + "serializationOptions": { + "json": { + "name": "count" + } + }, + "isHttpMetadata": false + }, + { + "$id": "747", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "Order by value", + "type": { + "$ref": "40" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetSort.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem.sort", + "serializationOptions": { + "json": { + "name": "sort" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.facets", + "serializationOptions": { + "json": { + "name": "facets" + } + }, + "isHttpMetadata": false + }, + { + "$id": "748", + "kind": "property", + "name": "taxonomySetting", + "serializedName": "taxonomySetting", + "doc": "The taxonomy setting for search.", + "type": { + "$id": "749", + "kind": "model", + "name": "SearchTaxonomySetting", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchTaxonomySetting", + "usage": "Input,Json", + "doc": "Taxonomy setting for search request", + "decorators": [], + "properties": [ + { + "$id": "750", + "kind": "property", + "name": "assetTypes", + "serializedName": "assetTypes", + "doc": "Asset types", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchTaxonomySetting.assetTypes", + "serializationOptions": { + "json": { + "name": "assetTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "751", + "kind": "property", + "name": "facet", + "serializedName": "facet", + "doc": "The content of a search facet result item.", + "type": { + "$ref": "739" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchTaxonomySetting.facet", + "serializationOptions": { + "json": { + "name": "facet" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.taxonomySetting", + "serializationOptions": { + "json": { + "name": "taxonomySetting" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "739" + }, + { + "$ref": "745" + }, + { + "$ref": "749" + }, + { + "$id": "752", + "kind": "model", + "name": "QueryResult", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.QueryResult", + "usage": "Output,Json", + "doc": "The result of the search result.", + "decorators": [], + "properties": [ + { + "$id": "753", + "kind": "property", + "name": "searchCount", + "serializedName": "@search.count", + "doc": "The total number of search results (not the number of documents in a single\npage).", + "type": { + "$id": "754", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.searchCount", + "serializationOptions": { + "json": { + "name": "@search.count" + } + }, + "isHttpMetadata": false + }, + { + "$id": "755", + "kind": "property", + "name": "searchCountApproximate", + "serializedName": "@search.count.approximate", + "doc": "'True' if the '@search.count' is an approximate value and vise versa.", + "type": { + "$id": "756", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.searchCountApproximate", + "serializationOptions": { + "json": { + "name": "@search.count.approximate" + } + }, + "isHttpMetadata": false + }, + { + "$id": "757", + "kind": "property", + "name": "continuationToken", + "serializedName": "continuationToken", + "doc": "The token used to get next batch of data. Absent if there's no more data.", + "type": { + "$id": "758", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.continuationToken", + "serializationOptions": { + "json": { + "name": "continuationToken" + } + }, + "isHttpMetadata": false + }, + { + "$id": "759", + "kind": "property", + "name": "searchFacets", + "serializedName": "@search.facets", + "doc": "A facet list that consists of index fields assetType ,classification,\ncontactId, and label. When the facet is specified in the request, the value of\nthe facet is returned as an element of @search.facets.", + "type": { + "$id": "760", + "kind": "model", + "name": "SearchFacetResultValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue", + "usage": "Output,Json", + "doc": "A facet list that consists of index fields assetType ,classification,\ncontactId, and label. When the facet is specified in the request, the value of\nthe facet is returned as an element of @search.facets.", + "decorators": [], + "properties": [ + { + "$id": "761", + "kind": "property", + "name": "entityType", + "serializedName": "entityType", + "doc": "Entity type", + "type": { + "$id": "762", + "kind": "array", + "name": "ArraySearchFacetItemValue", + "valueType": { + "$id": "763", + "kind": "model", + "name": "SearchFacetItemValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItemValue", + "usage": "Output,Json", + "doc": "The content of a search facet result item.", + "decorators": [], + "properties": [ + { + "$id": "764", + "kind": "property", + "name": "count", + "serializedName": "count", + "doc": "The count of the facet item.", + "type": { + "$id": "765", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItemValue.count", + "serializationOptions": { + "json": { + "name": "count" + } + }, + "isHttpMetadata": false + }, + { + "$id": "766", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The name of the facet item.", + "type": { + "$id": "767", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItemValue.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.entityType", + "serializationOptions": { + "json": { + "name": "entityType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "768", + "kind": "property", + "name": "assetType", + "serializedName": "assetType", + "doc": "Asset type", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.assetType", + "serializationOptions": { + "json": { + "name": "assetType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "769", + "kind": "property", + "name": "classification", + "serializedName": "classification", + "doc": "Classification", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.classification", + "serializationOptions": { + "json": { + "name": "classification" + } + }, + "isHttpMetadata": false + }, + { + "$id": "770", + "kind": "property", + "name": "term", + "serializedName": "term", + "doc": "Term", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.term", + "serializationOptions": { + "json": { + "name": "term" + } + }, + "isHttpMetadata": false + }, + { + "$id": "771", + "kind": "property", + "name": "contactId", + "serializedName": "contactId", + "doc": "Contact id", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.contactId", + "serializationOptions": { + "json": { + "name": "contactId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "772", + "kind": "property", + "name": "contactType", + "serializedName": "contactType", + "doc": "Contact type", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.contactType", + "serializationOptions": { + "json": { + "name": "contactType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "773", + "kind": "property", + "name": "label", + "serializedName": "label", + "doc": "Label", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.label", + "serializationOptions": { + "json": { + "name": "label" + } + }, + "isHttpMetadata": false + }, + { + "$id": "774", + "kind": "property", + "name": "glossaryType", + "serializedName": "glossaryType", + "doc": "Glossary type", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.glossaryType", + "serializationOptions": { + "json": { + "name": "glossaryType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "775", + "kind": "property", + "name": "termStatus", + "serializedName": "termStatus", + "doc": "Term status", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.termStatus", + "serializationOptions": { + "json": { + "name": "termStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "776", + "kind": "property", + "name": "termTemplate", + "serializedName": "termTemplate", + "doc": "Term template", + "type": { + "$ref": "762" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.termTemplate", + "serializationOptions": { + "json": { + "name": "termTemplate" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.searchFacets", + "serializationOptions": { + "json": { + "name": "@search.facets" + } + }, + "isHttpMetadata": false + }, + { + "$id": "777", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "Search result value", + "type": { + "$id": "778", + "kind": "array", + "name": "ArraySearchResultValue", + "valueType": { + "$id": "779", + "kind": "model", + "name": "SearchResultValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue", + "usage": "Output,Json", + "doc": "The value item of the search result.", + "decorators": [], + "properties": [ + { + "$id": "780", + "kind": "property", + "name": "searchScore", + "serializedName": "@search.score", + "doc": "The search score calculated by the search engine. The results are ordered by\nsearch score by default.", + "type": { + "$id": "781", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.searchScore", + "serializationOptions": { + "json": { + "name": "@search.score" + } + }, + "isHttpMetadata": false + }, + { + "$id": "782", + "kind": "property", + "name": "searchHighlights", + "serializedName": "@search.highlights", + "doc": "A highlight list that consists of index fields id ,qualifiedName, name,\ndescription, entityType. When the keyword appears in those fields, the value of\nthe field, attached with emphasis mark, is returned as an element of\n@search.highlights.", + "type": { + "$id": "783", + "kind": "model", + "name": "SearchHighlights", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights", + "usage": "Output,Json", + "doc": "A highlight list that consists of index fields id ,qualifiedName, name,\ndescription, entityType. When the keyword appears in those fields, the value of\nthe field, attached with emphasis mark, is returned as an element of\n@search.highlights.", + "decorators": [], + "properties": [ + { + "$id": "784", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Id", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.id", + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": false + }, + { + "$id": "785", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "Qualified name", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "786", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "787", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "Description", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "788", + "kind": "property", + "name": "entityType", + "serializedName": "entityType", + "doc": "Entity type", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.entityType", + "serializationOptions": { + "json": { + "name": "entityType" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.searchHighlights", + "serializationOptions": { + "json": { + "name": "@search.highlights" + } + }, + "isHttpMetadata": false + }, + { + "$id": "789", + "kind": "property", + "name": "objectType", + "serializedName": "objectType", + "doc": "The object type of the record. Object type is the top-level property to\ndistinguish whether a record is an asset or a term.", + "type": { + "$id": "790", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.objectType", + "serializationOptions": { + "json": { + "name": "objectType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "791", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The create time of the record. The Unix epoch format.", + "type": { + "$id": "792", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "793", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The last update time of the record. The Unix epoch format.", + "type": { + "$id": "794", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "795", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The GUID of the record.", + "type": { + "$id": "796", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.id", + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": false + }, + { + "$id": "797", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the record.", + "type": { + "$id": "798", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "799", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "The qualified name of the record.", + "type": { + "$id": "800", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "801", + "kind": "property", + "name": "entityType", + "serializedName": "entityType", + "doc": "The type name of the asset.", + "type": { + "$id": "802", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.entityType", + "serializationOptions": { + "json": { + "name": "entityType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "803", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the asset.", + "type": { + "$id": "804", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "805", + "kind": "property", + "name": "endorsement", + "serializedName": "endorsement", + "doc": "The endorsement of the asset.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.endorsement", + "serializationOptions": { + "json": { + "name": "endorsement" + } + }, + "isHttpMetadata": false + }, + { + "$id": "806", + "kind": "property", + "name": "owner", + "serializedName": "owner", + "doc": "The owner of the record.", + "type": { + "$id": "807", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.owner", + "serializationOptions": { + "json": { + "name": "owner" + } + }, + "isHttpMetadata": false + }, + { + "$id": "808", + "kind": "property", + "name": "classification", + "serializedName": "classification", + "doc": "The classifications of the record.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.classification", + "serializationOptions": { + "json": { + "name": "classification" + } + }, + "isHttpMetadata": false + }, + { + "$id": "809", + "kind": "property", + "name": "label", + "serializedName": "label", + "doc": "The labels of the asset.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.label", + "serializationOptions": { + "json": { + "name": "label" + } + }, + "isHttpMetadata": false + }, + { + "$id": "810", + "kind": "property", + "name": "term", + "serializedName": "term", + "doc": "The terms assigned to the asset.", + "type": { + "$id": "811", + "kind": "array", + "name": "ArrayTermSearchResultValue", + "valueType": { + "$id": "812", + "kind": "model", + "name": "TermSearchResultValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue", + "usage": "Output,Json", + "doc": "The context.", + "decorators": [], + "properties": [ + { + "$id": "813", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the term.", + "type": { + "$id": "814", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "815", + "kind": "property", + "name": "glossaryName", + "serializedName": "glossaryName", + "doc": "The name of the glossary which contains the term.", + "type": { + "$id": "816", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue.glossaryName", + "serializationOptions": { + "json": { + "name": "glossaryName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "817", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the term.", + "type": { + "$id": "818", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.term", + "serializationOptions": { + "json": { + "name": "term" + } + }, + "isHttpMetadata": false + }, + { + "$id": "819", + "kind": "property", + "name": "contact", + "serializedName": "contact", + "doc": "The contacts of the asset.", + "type": { + "$id": "820", + "kind": "array", + "name": "ArrayContactSearchResultValue", + "valueType": { + "$id": "821", + "kind": "model", + "name": "ContactSearchResultValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue", + "usage": "Output,Json", + "doc": "The contact in the search and suggest result.", + "decorators": [], + "properties": [ + { + "$id": "822", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The GUID of the contact.", + "type": { + "$id": "823", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue.id", + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": false + }, + { + "$id": "824", + "kind": "property", + "name": "info", + "serializedName": "info", + "doc": "The description of the contact.", + "type": { + "$id": "825", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue.info", + "serializationOptions": { + "json": { + "name": "info" + } + }, + "isHttpMetadata": false + }, + { + "$id": "826", + "kind": "property", + "name": "contactType", + "serializedName": "contactType", + "doc": "The type of the contact. It can be Expert or Owner for an entity. It can be\nExpert or Steward for a glossary term.", + "type": { + "$id": "827", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue.contactType", + "serializationOptions": { + "json": { + "name": "contactType" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.contact", + "serializationOptions": { + "json": { + "name": "contact" + } + }, + "isHttpMetadata": false + }, + { + "$id": "828", + "kind": "property", + "name": "assetType", + "serializedName": "assetType", + "doc": "The asset types of the asset.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.assetType", + "serializationOptions": { + "json": { + "name": "assetType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "829", + "kind": "property", + "name": "glossaryType", + "serializedName": "glossaryType", + "doc": "The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or\nAtlasGlossaryCategory.", + "type": { + "$id": "830", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.glossaryType", + "serializationOptions": { + "json": { + "name": "glossaryType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "831", + "kind": "property", + "name": "glossary", + "serializedName": "glossary", + "doc": "The glossary name of the term.", + "type": { + "$id": "832", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.glossary", + "serializationOptions": { + "json": { + "name": "glossary" + } + }, + "isHttpMetadata": false + }, + { + "$id": "833", + "kind": "property", + "name": "termStatus", + "serializedName": "termStatus", + "doc": "The status of the term.", + "type": { + "$id": "834", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.termStatus", + "serializationOptions": { + "json": { + "name": "termStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "835", + "kind": "property", + "name": "termTemplate", + "serializedName": "termTemplate", + "doc": "The term template names used by the term.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.termTemplate", + "serializationOptions": { + "json": { + "name": "termTemplate" + } + }, + "isHttpMetadata": false + }, + { + "$id": "836", + "kind": "property", + "name": "longDescription", + "serializedName": "longDescription", + "doc": "The definition of the term.", + "type": { + "$id": "837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.longDescription", + "serializationOptions": { + "json": { + "name": "longDescription" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "760" + }, + { + "$ref": "763" + }, + { + "$ref": "779" + }, + { + "$ref": "783" + }, + { + "$ref": "812" + }, + { + "$ref": "821" + }, + { + "$id": "838", + "kind": "model", + "name": "SuggestConfig", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions", + "usage": "Input,Json", + "doc": "The payload of suggest request.", + "decorators": [], + "properties": [ + { + "$id": "839", + "kind": "property", + "name": "keywords", + "serializedName": "keywords", + "doc": "The keywords applied to all fields that support suggest operation. It must be\nat least 1 character, and no more than 100 characters. In the index schema we\ndefined a default suggester which lists all the supported fields and specifies\na search mode.", + "type": { + "$id": "840", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions.keywords", + "serializationOptions": { + "json": { + "name": "keywords" + } + }, + "isHttpMetadata": false + }, + { + "$id": "841", + "kind": "property", + "name": "limit", + "serializedName": "limit", + "doc": "The number of suggestions we hope to return. The default value is 5. The value\nmust be a number between 1 and 100.", + "type": { + "$id": "842", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions.limit", + "serializationOptions": { + "json": { + "name": "limit" + } + }, + "isHttpMetadata": false + }, + { + "$id": "843", + "kind": "property", + "name": "filter", + "serializedName": "filter", + "doc": "The filter for the search.", + "type": { + "$id": "844", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions.filter", + "serializationOptions": { + "json": { + "name": "filter" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "845", + "kind": "model", + "name": "SuggestResult", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResult", + "usage": "Output,Json", + "doc": "The result item of the search suggest.", + "decorators": [], + "properties": [ + { + "$id": "846", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The result value", + "type": { + "$id": "847", + "kind": "array", + "name": "ArraySuggestResultValue", + "valueType": { + "$id": "848", + "kind": "model", + "name": "SuggestResultValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue", + "usage": "Output,Json", + "doc": "The value item of the search suggest.", + "decorators": [], + "properties": [ + { + "$id": "849", + "kind": "property", + "name": "searchScore", + "serializedName": "@search.score", + "doc": "The search score calculated by the search engine. The results are ordered by\nsearch score by default.", + "type": { + "$id": "850", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.searchScore", + "serializationOptions": { + "json": { + "name": "@search.score" + } + }, + "isHttpMetadata": false + }, + { + "$id": "851", + "kind": "property", + "name": "searchText", + "serializedName": "@search.text", + "doc": "The target text that contains the keyword as prefix. The keyword is wrapped\nwith emphasis mark.", + "type": { + "$id": "852", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.searchText", + "serializationOptions": { + "json": { + "name": "@search.text" + } + }, + "isHttpMetadata": false + }, + { + "$id": "853", + "kind": "property", + "name": "objectType", + "serializedName": "objectType", + "doc": "The object type of the record. Object type is the top-level property to\ndistinguish whether a record is an asset or a term.", + "type": { + "$id": "854", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.objectType", + "serializationOptions": { + "json": { + "name": "objectType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "855", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The create time of the record. The Unix epoch format.", + "type": { + "$id": "856", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "857", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The last update time of the record. The Unix epoch format.", + "type": { + "$id": "858", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "859", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The GUID of the record.", + "type": { + "$id": "860", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.id", + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": false + }, + { + "$id": "861", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the record.", + "type": { + "$id": "862", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "863", + "kind": "property", + "name": "qualifiedName", + "serializedName": "qualifiedName", + "doc": "The qualified name of the record.", + "type": { + "$id": "864", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.qualifiedName", + "serializationOptions": { + "json": { + "name": "qualifiedName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "865", + "kind": "property", + "name": "entityType", + "serializedName": "entityType", + "doc": "The type name of the asset.", + "type": { + "$id": "866", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.entityType", + "serializationOptions": { + "json": { + "name": "entityType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "867", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the asset.", + "type": { + "$id": "868", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "869", + "kind": "property", + "name": "endorsement", + "serializedName": "endorsement", + "doc": "The endorsement of the asset.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.endorsement", + "serializationOptions": { + "json": { + "name": "endorsement" + } + }, + "isHttpMetadata": false + }, + { + "$id": "870", + "kind": "property", + "name": "owner", + "serializedName": "owner", + "doc": "The owner of the record.", + "type": { + "$id": "871", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.owner", + "serializationOptions": { + "json": { + "name": "owner" + } + }, + "isHttpMetadata": false + }, + { + "$id": "872", + "kind": "property", + "name": "classification", + "serializedName": "classification", + "doc": "The classifications of the record.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.classification", + "serializationOptions": { + "json": { + "name": "classification" + } + }, + "isHttpMetadata": false + }, + { + "$id": "873", + "kind": "property", + "name": "label", + "serializedName": "label", + "doc": "The labels of the asset.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.label", + "serializationOptions": { + "json": { + "name": "label" + } + }, + "isHttpMetadata": false + }, + { + "$id": "874", + "kind": "property", + "name": "term", + "serializedName": "term", + "doc": "The terms assigned to the asset.", + "type": { + "$ref": "811" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.term", + "serializationOptions": { + "json": { + "name": "term" + } + }, + "isHttpMetadata": false + }, + { + "$id": "875", + "kind": "property", + "name": "contact", + "serializedName": "contact", + "doc": "The contacts of the asset.", + "type": { + "$ref": "820" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.contact", + "serializationOptions": { + "json": { + "name": "contact" + } + }, + "isHttpMetadata": false + }, + { + "$id": "876", + "kind": "property", + "name": "assetType", + "serializedName": "assetType", + "doc": "The asset types of the asset.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.assetType", + "serializationOptions": { + "json": { + "name": "assetType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "877", + "kind": "property", + "name": "glossaryType", + "serializedName": "glossaryType", + "doc": "The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or\nAtlasGlossaryCategory.", + "type": { + "$id": "878", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.glossaryType", + "serializationOptions": { + "json": { + "name": "glossaryType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "879", + "kind": "property", + "name": "glossary", + "serializedName": "glossary", + "doc": "The glossary name of the term.", + "type": { + "$id": "880", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.glossary", + "serializationOptions": { + "json": { + "name": "glossary" + } + }, + "isHttpMetadata": false + }, + { + "$id": "881", + "kind": "property", + "name": "termStatus", + "serializedName": "termStatus", + "doc": "The status of the term.", + "type": { + "$id": "882", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.termStatus", + "serializationOptions": { + "json": { + "name": "termStatus" + } + }, + "isHttpMetadata": false + }, + { + "$id": "883", + "kind": "property", + "name": "termTemplate", + "serializedName": "termTemplate", + "doc": "The term template names used by the term.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.termTemplate", + "serializationOptions": { + "json": { + "name": "termTemplate" + } + }, + "isHttpMetadata": false + }, + { + "$id": "884", + "kind": "property", + "name": "longDescription", + "serializedName": "longDescription", + "doc": "The definition of the term.", + "type": { + "$id": "885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.longDescription", + "serializationOptions": { + "json": { + "name": "longDescription" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.SuggestResult.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "848" + }, + { + "$id": "886", + "kind": "model", + "name": "AutoCompleteConfig", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions", + "usage": "Input,Json", + "doc": "The payload of autocomplete request.", + "decorators": [], + "properties": [ + { + "$id": "887", + "kind": "property", + "name": "keywords", + "serializedName": "keywords", + "doc": "The keywords applied to all fields that support autocomplete operation. It must\nbe at least 1 character, and no more than 100 characters.", + "type": { + "$id": "888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions.keywords", + "serializationOptions": { + "json": { + "name": "keywords" + } + }, + "isHttpMetadata": false + }, + { + "$id": "889", + "kind": "property", + "name": "limit", + "serializedName": "limit", + "doc": "The number of autocomplete results we hope to return. The default value is 50.\nThe value must be a number between 1 and 100.", + "type": { + "$id": "890", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions.limit", + "serializationOptions": { + "json": { + "name": "limit" + } + }, + "isHttpMetadata": false + }, + { + "$id": "891", + "kind": "property", + "name": "filter", + "serializedName": "filter", + "doc": "The filter for the autocomplete request.", + "type": { + "$id": "892", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions.filter", + "serializationOptions": { + "json": { + "name": "filter" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "893", + "kind": "model", + "name": "AutoCompleteResult", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResult", + "usage": "Output,Json", + "doc": "The result of the autocomplete request.", + "decorators": [], + "properties": [ + { + "$id": "894", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The result value", + "type": { + "$id": "895", + "kind": "array", + "name": "ArrayAutoCompleteResultValue", + "valueType": { + "$id": "896", + "kind": "model", + "name": "AutoCompleteResultValue", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResultValue", + "usage": "Output,Json", + "doc": "The value item of the autocomplete suggest.", + "decorators": [], + "properties": [ + { + "$id": "897", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The completed term or phrase.", + "type": { + "$id": "898", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResultValue.text", + "serializationOptions": { + "json": { + "name": "text" + } + }, + "isHttpMetadata": false + }, + { + "$id": "899", + "kind": "property", + "name": "queryPlusText", + "serializedName": "queryPlusText", + "doc": "The completed search query text.", + "type": { + "$id": "900", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResultValue.queryPlusText", + "serializationOptions": { + "json": { + "name": "queryPlusText" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResult.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "896" + }, + { + "$id": "901", + "kind": "model", + "name": "AtlasLineageInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo", + "usage": "Output,Json", + "doc": "The lineage information.", + "decorators": [], + "properties": [ + { + "$id": "902", + "kind": "property", + "name": "baseEntityGuid", + "serializedName": "baseEntityGuid", + "doc": "The GUID of the base entity.", + "type": { + "$id": "903", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.baseEntityGuid", + "serializationOptions": { + "json": { + "name": "baseEntityGuid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "904", + "kind": "property", + "name": "guidEntityMap", + "serializedName": "guidEntityMap", + "doc": "The GUID entity map.", + "type": { + "$ref": "475" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.guidEntityMap", + "serializationOptions": { + "json": { + "name": "guidEntityMap" + } + }, + "isHttpMetadata": false + }, + { + "$id": "905", + "kind": "property", + "name": "widthCounts", + "serializedName": "widthCounts", + "doc": "The entity count in specific direction.", + "type": { + "$ref": "638" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.widthCounts", + "serializationOptions": { + "json": { + "name": "widthCounts" + } + }, + "isHttpMetadata": false + }, + { + "$id": "906", + "kind": "property", + "name": "lineageDepth", + "serializedName": "lineageDepth", + "doc": "The depth of lineage.", + "type": { + "$id": "907", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.lineageDepth", + "serializationOptions": { + "json": { + "name": "lineageDepth" + } + }, + "isHttpMetadata": false + }, + { + "$id": "908", + "kind": "property", + "name": "lineageWidth", + "serializedName": "lineageWidth", + "doc": "The width of lineage.", + "type": { + "$id": "909", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.lineageWidth", + "serializationOptions": { + "json": { + "name": "lineageWidth" + } + }, + "isHttpMetadata": false + }, + { + "$id": "910", + "kind": "property", + "name": "childrenCount", + "serializedName": "childrenCount", + "doc": "The number of children node.", + "type": { + "$id": "911", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.childrenCount", + "serializationOptions": { + "json": { + "name": "childrenCount" + } + }, + "isHttpMetadata": false + }, + { + "$id": "912", + "kind": "property", + "name": "lineageDirection", + "serializedName": "lineageDirection", + "doc": "The enum of lineage direction.", + "type": { + "$ref": "44" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.lineageDirection", + "serializationOptions": { + "json": { + "name": "lineageDirection" + } + }, + "isHttpMetadata": false + }, + { + "$id": "913", + "kind": "property", + "name": "parentRelations", + "serializedName": "parentRelations", + "doc": "An array of parentRelations relations.", + "type": { + "$id": "914", + "kind": "array", + "name": "ArrayParentRelation", + "valueType": { + "$id": "915", + "kind": "model", + "name": "ParentRelation", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation", + "usage": "Output,Json", + "doc": "The lineage parents relation with GUID of the parent entity and to child entity.", + "decorators": [], + "properties": [ + { + "$id": "916", + "kind": "property", + "name": "childEntityId", + "serializedName": "childEntityId", + "doc": "The GUID of child entity.", + "type": { + "$id": "917", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation.childEntityId", + "serializationOptions": { + "json": { + "name": "childEntityId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "918", + "kind": "property", + "name": "relationshipId", + "serializedName": "relationshipId", + "doc": "The GUID of relationship.", + "type": { + "$id": "919", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation.relationshipId", + "serializationOptions": { + "json": { + "name": "relationshipId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "920", + "kind": "property", + "name": "parentEntityId", + "serializedName": "parentEntityId", + "doc": "The GUID of parent entity.", + "type": { + "$id": "921", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation.parentEntityId", + "serializationOptions": { + "json": { + "name": "parentEntityId" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.parentRelations", + "serializationOptions": { + "json": { + "name": "parentRelations" + } + }, + "isHttpMetadata": false + }, + { + "$id": "922", + "kind": "property", + "name": "relations", + "serializedName": "relations", + "doc": "An array of lineage relations.", + "type": { + "$id": "923", + "kind": "array", + "name": "ArrayLineageRelation", + "valueType": { + "$id": "924", + "kind": "model", + "name": "LineageRelation", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation", + "usage": "Output,Json", + "doc": "The lineage relation with GUID of the from and to entity.", + "decorators": [], + "properties": [ + { + "$id": "925", + "kind": "property", + "name": "fromEntityId", + "serializedName": "fromEntityId", + "doc": "The GUID of from-entity.", + "type": { + "$id": "926", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation.fromEntityId", + "serializationOptions": { + "json": { + "name": "fromEntityId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "927", + "kind": "property", + "name": "relationshipId", + "serializedName": "relationshipId", + "doc": "The GUID of relationship.", + "type": { + "$id": "928", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation.relationshipId", + "serializationOptions": { + "json": { + "name": "relationshipId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "929", + "kind": "property", + "name": "toEntityId", + "serializedName": "toEntityId", + "doc": "The GUID of to-entity.", + "type": { + "$id": "930", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation.toEntityId", + "serializationOptions": { + "json": { + "name": "toEntityId" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.relations", + "serializationOptions": { + "json": { + "name": "relations" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "915" + }, + { + "$ref": "924" + }, + { + "$id": "931", + "kind": "model", + "name": "AtlasRelationship", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship", + "usage": "Input,Output,Json", + "doc": "Atlas relationship instance.", + "decorators": [], + "properties": [ + { + "$id": "932", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "doc": "The attributes of the struct.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "933", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "934", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "935", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "936", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "937", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "938", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "939", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "940", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "941", + "kind": "property", + "name": "end1", + "serializedName": "end1", + "doc": "Reference to an object-instance of a type - like entity.", + "type": { + "$id": "942", + "kind": "model", + "name": "AtlasObjectId", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId", + "usage": "Input,Output,Json", + "doc": "Reference to an object-instance of a type - like entity.", + "decorators": [], + "properties": [ + { + "$id": "943", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the object.", + "type": { + "$id": "944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "945", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "946", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "947", + "kind": "property", + "name": "uniqueAttributes", + "serializedName": "uniqueAttributes", + "doc": "The unique attributes of the object.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId.uniqueAttributes", + "serializationOptions": { + "json": { + "name": "uniqueAttributes" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.end1", + "serializationOptions": { + "json": { + "name": "end1" + } + }, + "isHttpMetadata": false + }, + { + "$id": "948", + "kind": "property", + "name": "end2", + "serializedName": "end2", + "doc": "Reference to an object-instance of a type - like entity.", + "type": { + "$ref": "942" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.end2", + "serializationOptions": { + "json": { + "name": "end2" + } + }, + "isHttpMetadata": false + }, + { + "$id": "949", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the relationship.", + "type": { + "$id": "950", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "951", + "kind": "property", + "name": "homeId", + "serializedName": "homeId", + "doc": "The home ID of the relationship.", + "type": { + "$id": "952", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.homeId", + "serializationOptions": { + "json": { + "name": "homeId" + } + }, + "isHttpMetadata": false + }, + { + "$id": "953", + "kind": "property", + "name": "label", + "serializedName": "label", + "doc": "The label of the relationship.", + "type": { + "$id": "954", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.label", + "serializationOptions": { + "json": { + "name": "label" + } + }, + "isHttpMetadata": false + }, + { + "$id": "955", + "kind": "property", + "name": "provenanceType", + "serializedName": "provenanceType", + "doc": "Used to record the provenance of an instance of an entity or relationship", + "type": { + "$id": "956", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.provenanceType", + "serializationOptions": { + "json": { + "name": "provenanceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "957", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The enum of relationship status.", + "type": { + "$ref": "36" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.status", + "serializationOptions": { + "json": { + "name": "status" + } + }, + "isHttpMetadata": false + }, + { + "$id": "958", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "959", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "960", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "961", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "962", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the relationship.", + "type": { + "$id": "963", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "942" + }, + { + "$id": "964", + "kind": "model", + "name": "AtlasRelationshipWithExtInfo", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipWithExtInfo", + "usage": "Output,Json", + "doc": "The relationship with extended information.", + "decorators": [], + "properties": [ + { + "$id": "965", + "kind": "property", + "name": "referredEntities", + "serializedName": "referredEntities", + "doc": "The referred entity header.", + "type": { + "$ref": "475" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipWithExtInfo.referredEntities", + "serializationOptions": { + "json": { + "name": "referredEntities" + } + }, + "isHttpMetadata": false + }, + { + "$id": "966", + "kind": "property", + "name": "relationship", + "serializedName": "relationship", + "doc": "Atlas relationship instance.", + "type": { + "$ref": "931" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipWithExtInfo.relationship", + "serializationOptions": { + "json": { + "name": "relationship" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "967", + "kind": "model", + "name": "AtlasBusinessMetadataDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of a struct-type.", + "decorators": [], + "properties": [ + { + "$id": "968", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "969", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "970", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "971", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "972", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "973", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$id": "974", + "kind": "model", + "name": "AtlasDateFormat", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat", + "usage": "Input,Output,Json", + "doc": "The date format.", + "decorators": [], + "properties": [ + { + "$id": "975", + "kind": "property", + "name": "availableLocales", + "serializedName": "availableLocales", + "doc": "An array of available locales.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.availableLocales", + "serializationOptions": { + "json": { + "name": "availableLocales" + } + }, + "isHttpMetadata": false + }, + { + "$id": "976", + "kind": "property", + "name": "calendar", + "serializedName": "calendar", + "doc": "Calendar", + "type": { + "$id": "977", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.calendar", + "serializationOptions": { + "json": { + "name": "calendar" + } + }, + "isHttpMetadata": false + }, + { + "$id": "978", + "kind": "property", + "name": "dateInstance", + "serializedName": "dateInstance", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.dateInstance", + "serializationOptions": { + "json": { + "name": "dateInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "979", + "kind": "property", + "name": "dateTimeInstance", + "serializedName": "dateTimeInstance", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.dateTimeInstance", + "serializationOptions": { + "json": { + "name": "dateTimeInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "980", + "kind": "property", + "name": "instance", + "serializedName": "instance", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.instance", + "serializationOptions": { + "json": { + "name": "instance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "981", + "kind": "property", + "name": "lenient", + "serializedName": "lenient", + "doc": "Determines the leniency of the date format.", + "type": { + "$id": "982", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.lenient", + "serializationOptions": { + "json": { + "name": "lenient" + } + }, + "isHttpMetadata": false + }, + { + "$id": "983", + "kind": "property", + "name": "numberFormat", + "serializedName": "numberFormat", + "doc": "The number format.", + "type": { + "$id": "984", + "kind": "model", + "name": "AtlasNumberFormat", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat", + "usage": "Input,Output,Json", + "doc": "The number format.", + "decorators": [], + "properties": [ + { + "$id": "985", + "kind": "property", + "name": "availableLocales", + "serializedName": "availableLocales", + "doc": "The number format.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.availableLocales", + "serializationOptions": { + "json": { + "name": "availableLocales" + } + }, + "isHttpMetadata": false + }, + { + "$id": "986", + "kind": "property", + "name": "currency", + "serializedName": "currency", + "doc": "The currency.", + "type": { + "$id": "987", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.currency", + "serializationOptions": { + "json": { + "name": "currency" + } + }, + "isHttpMetadata": false + }, + { + "$id": "988", + "kind": "property", + "name": "currencyInstance", + "serializedName": "currencyInstance", + "doc": "The number format.", + "type": { + "$ref": "984" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.currencyInstance", + "serializationOptions": { + "json": { + "name": "currencyInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "989", + "kind": "property", + "name": "groupingUsed", + "serializedName": "groupingUsed", + "doc": "Determines if grouping is used.", + "type": { + "$id": "990", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.groupingUsed", + "serializationOptions": { + "json": { + "name": "groupingUsed" + } + }, + "isHttpMetadata": false + }, + { + "$id": "991", + "kind": "property", + "name": "instance", + "serializedName": "instance", + "doc": "The number format.", + "type": { + "$ref": "984" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.instance", + "serializationOptions": { + "json": { + "name": "instance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "992", + "kind": "property", + "name": "integerInstance", + "serializedName": "integerInstance", + "doc": "The number format.", + "type": { + "$ref": "984" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.integerInstance", + "serializationOptions": { + "json": { + "name": "integerInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "993", + "kind": "property", + "name": "maximumFractionDigits", + "serializedName": "maximumFractionDigits", + "doc": "The maximum of fraction digits.", + "type": { + "$id": "994", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.maximumFractionDigits", + "serializationOptions": { + "json": { + "name": "maximumFractionDigits" + } + }, + "isHttpMetadata": false + }, + { + "$id": "995", + "kind": "property", + "name": "maximumIntegerDigits", + "serializedName": "maximumIntegerDigits", + "doc": "The maximum of integer digits.", + "type": { + "$id": "996", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.maximumIntegerDigits", + "serializationOptions": { + "json": { + "name": "maximumIntegerDigits" + } + }, + "isHttpMetadata": false + }, + { + "$id": "997", + "kind": "property", + "name": "minimumFractionDigits", + "serializedName": "minimumFractionDigits", + "doc": "The minimum of fraction digits.", + "type": { + "$id": "998", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.minimumFractionDigits", + "serializationOptions": { + "json": { + "name": "minimumFractionDigits" + } + }, + "isHttpMetadata": false + }, + { + "$id": "999", + "kind": "property", + "name": "minimumIntegerDigits", + "serializedName": "minimumIntegerDigits", + "doc": "The minimum of integer digits.", + "type": { + "$id": "1000", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.minimumIntegerDigits", + "serializationOptions": { + "json": { + "name": "minimumIntegerDigits" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1001", + "kind": "property", + "name": "numberInstance", + "serializedName": "numberInstance", + "doc": "The number format.", + "type": { + "$ref": "984" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.numberInstance", + "serializationOptions": { + "json": { + "name": "numberInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1002", + "kind": "property", + "name": "parseIntegerOnly", + "serializedName": "parseIntegerOnly", + "doc": "Determines if only integer is parsed.", + "type": { + "$id": "1003", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.parseIntegerOnly", + "serializationOptions": { + "json": { + "name": "parseIntegerOnly" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1004", + "kind": "property", + "name": "percentInstance", + "serializedName": "percentInstance", + "doc": "The number format.", + "type": { + "$ref": "984" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.percentInstance", + "serializationOptions": { + "json": { + "name": "percentInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1005", + "kind": "property", + "name": "roundingMode", + "serializedName": "roundingMode", + "doc": "The enum of rounding mode.", + "type": { + "$ref": "61" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.roundingMode", + "serializationOptions": { + "json": { + "name": "roundingMode" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.numberFormat", + "serializationOptions": { + "json": { + "name": "numberFormat" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1006", + "kind": "property", + "name": "timeInstance", + "serializedName": "timeInstance", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.timeInstance", + "serializationOptions": { + "json": { + "name": "timeInstance" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1007", + "kind": "property", + "name": "timeZone", + "serializedName": "timeZone", + "doc": "The timezone information.", + "type": { + "$id": "1008", + "kind": "model", + "name": "AtlasTimeZone", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone", + "usage": "Input,Output,Json", + "doc": "The timezone information.", + "decorators": [], + "properties": [ + { + "$id": "1009", + "kind": "property", + "name": "dstSavings", + "serializedName": "dstSavings", + "doc": "The value of the daylight saving time.", + "type": { + "$id": "1010", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.dstSavings", + "serializationOptions": { + "json": { + "name": "dstSavings" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1011", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the timezone.", + "type": { + "$id": "1012", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.id", + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1013", + "kind": "property", + "name": "availableIds", + "serializedName": "availableIds", + "doc": "An array of available IDs.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.availableIds", + "serializationOptions": { + "json": { + "name": "availableIds" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1014", + "kind": "property", + "name": "default", + "serializedName": "default", + "doc": "The timezone information.", + "type": { + "$ref": "1008" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.default", + "serializationOptions": { + "json": { + "name": "default" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1015", + "kind": "property", + "name": "displayName", + "serializedName": "displayName", + "doc": "The display name of the timezone.", + "type": { + "$id": "1016", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.displayName", + "serializationOptions": { + "json": { + "name": "displayName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1017", + "kind": "property", + "name": "rawOffset", + "serializedName": "rawOffset", + "doc": "The raw offset of the timezone.", + "type": { + "$id": "1018", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.rawOffset", + "serializationOptions": { + "json": { + "name": "rawOffset" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.timeZone", + "serializationOptions": { + "json": { + "name": "timeZone" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1019", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1020", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1021", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1022", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1023", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1024", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1025", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1026", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1027", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1028", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1029", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1030", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1031", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1032", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1033", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1034", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1035", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1036", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1037", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1038", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$id": "1039", + "kind": "array", + "name": "ArrayAtlasAttributeDef", + "valueType": { + "$id": "1040", + "kind": "model", + "name": "AtlasAttributeDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of a struct-attribute.", + "decorators": [], + "properties": [ + { + "$id": "1041", + "kind": "property", + "name": "cardinality", + "serializedName": "cardinality", + "doc": "single-valued attribute or multi-valued attribute.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.cardinality", + "serializationOptions": { + "json": { + "name": "cardinality" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1042", + "kind": "property", + "name": "constraints", + "serializedName": "constraints", + "doc": "An array of constraints.", + "type": { + "$id": "1043", + "kind": "array", + "name": "ArrayAtlasConstraintDef", + "valueType": { + "$id": "1044", + "kind": "model", + "name": "AtlasConstraintDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasConstraintDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of a constraint.", + "decorators": [], + "properties": [ + { + "$id": "1045", + "kind": "property", + "name": "params", + "serializedName": "params", + "doc": "The parameters of the constraint definition.", + "type": { + "$ref": "327" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasConstraintDef.params", + "serializationOptions": { + "json": { + "name": "params" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1046", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the constraint.", + "type": { + "$id": "1047", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasConstraintDef.type", + "serializationOptions": { + "json": { + "name": "type" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.constraints", + "serializationOptions": { + "json": { + "name": "constraints" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1048", + "kind": "property", + "name": "defaultValue", + "serializedName": "defaultValue", + "doc": "The default value of the attribute.", + "type": { + "$id": "1049", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.defaultValue", + "serializationOptions": { + "json": { + "name": "defaultValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1050", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the attribute.", + "type": { + "$id": "1051", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1052", + "kind": "property", + "name": "includeInNotification", + "serializedName": "includeInNotification", + "doc": "Determines if it is included in notification.", + "type": { + "$id": "1053", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.includeInNotification", + "serializationOptions": { + "json": { + "name": "includeInNotification" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1054", + "kind": "property", + "name": "isIndexable", + "serializedName": "isIndexable", + "doc": "Determines if it is indexable.", + "type": { + "$id": "1055", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.isIndexable", + "serializationOptions": { + "json": { + "name": "isIndexable" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1056", + "kind": "property", + "name": "isOptional", + "serializedName": "isOptional", + "doc": "Determines if it is optional.", + "type": { + "$id": "1057", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.isOptional", + "serializationOptions": { + "json": { + "name": "isOptional" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1058", + "kind": "property", + "name": "isUnique", + "serializedName": "isUnique", + "doc": "Determines if it unique.", + "type": { + "$id": "1059", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.isUnique", + "serializationOptions": { + "json": { + "name": "isUnique" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1060", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the attribute.", + "type": { + "$id": "1061", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1062", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the attribute.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1063", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "1064", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1065", + "kind": "property", + "name": "valuesMaxCount", + "serializedName": "valuesMaxCount", + "doc": "The maximum count of the values.", + "type": { + "$id": "1066", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.valuesMaxCount", + "serializationOptions": { + "json": { + "name": "valuesMaxCount" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1067", + "kind": "property", + "name": "valuesMinCount", + "serializedName": "valuesMinCount", + "doc": "The minimum count of the values.", + "type": { + "$id": "1068", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.valuesMinCount", + "serializationOptions": { + "json": { + "name": "valuesMinCount" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "974" + }, + { + "$ref": "984" + }, + { + "$ref": "1008" + }, + { + "$ref": "1040" + }, + { + "$ref": "1044" + }, + { + "$id": "1069", + "kind": "model", + "name": "AtlasClassificationDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of a classification-type.", + "decorators": [], + "properties": [ + { + "$id": "1070", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1071", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1072", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1073", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1074", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1075", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1076", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1077", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1078", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1079", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1080", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1081", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1082", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1083", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1084", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1085", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1086", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1087", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1088", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1089", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1090", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1091", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1092", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1093", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1094", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1095", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$ref": "1039" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1096", + "kind": "property", + "name": "entityTypes", + "serializedName": "entityTypes", + "doc": "Specifying a list of entityType names in the classificationDef, ensures that\nclassifications can\nonly be applied to those entityTypes.\n\nAny subtypes of the entity types inherit the restriction.\n\nAny classificationDef subtypes inherit the parents entityTypes restrictions.\n\nAny classificationDef subtypes can further restrict the parents entityTypes\nrestrictions by specifying a subset of the entityTypes.\n\nAn empty entityTypes list when there are no parent restrictions means there are no\nrestrictions.\n\nAn empty entityTypes list when there are parent\nrestrictions means that the subtype picks up the parents\nrestrictions.\n\nIf a list of entityTypes are supplied, where one inherits\nfrom another, this will be rejected. This should encourage cleaner\nclassificationsDefs.\n", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.entityTypes", + "serializationOptions": { + "json": { + "name": "entityTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1097", + "kind": "property", + "name": "subTypes", + "serializedName": "subTypes", + "doc": "An array of sub types.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.subTypes", + "serializationOptions": { + "json": { + "name": "subTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1098", + "kind": "property", + "name": "superTypes", + "serializedName": "superTypes", + "doc": "An array of super types.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.superTypes", + "serializationOptions": { + "json": { + "name": "superTypes" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "1099", + "kind": "model", + "name": "AtlasEntityDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of a entity-type.", + "decorators": [], + "properties": [ + { + "$id": "1100", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1101", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1102", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1103", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1105", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1106", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1108", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1110", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1112", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1113", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1115", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1117", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1118", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1119", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1121", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1122", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1123", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1125", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$ref": "1039" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1126", + "kind": "property", + "name": "subTypes", + "serializedName": "subTypes", + "doc": "An array of sub types.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.subTypes", + "serializationOptions": { + "json": { + "name": "subTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1127", + "kind": "property", + "name": "superTypes", + "serializedName": "superTypes", + "doc": "An array of super types.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.superTypes", + "serializationOptions": { + "json": { + "name": "superTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1128", + "kind": "property", + "name": "relationshipAttributeDefs", + "serializedName": "relationshipAttributeDefs", + "doc": "An array of relationship attributes.", + "type": { + "$id": "1129", + "kind": "array", + "name": "ArrayAtlasRelationshipAttributeDef", + "valueType": { + "$id": "1130", + "kind": "model", + "name": "AtlasRelationshipAttributeDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef", + "usage": "Input,Output,Json", + "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", + "decorators": [], + "properties": [ + { + "$id": "1131", + "kind": "property", + "name": "cardinality", + "serializedName": "cardinality", + "doc": "single-valued attribute or multi-valued attribute.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.cardinality", + "serializationOptions": { + "json": { + "name": "cardinality" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1132", + "kind": "property", + "name": "constraints", + "serializedName": "constraints", + "doc": "An array of constraints.", + "type": { + "$ref": "1043" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.constraints", + "serializationOptions": { + "json": { + "name": "constraints" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1133", + "kind": "property", + "name": "defaultValue", + "serializedName": "defaultValue", + "doc": "The default value of the attribute.", + "type": { + "$id": "1134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.defaultValue", + "serializationOptions": { + "json": { + "name": "defaultValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1135", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the attribute.", + "type": { + "$id": "1136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1137", + "kind": "property", + "name": "includeInNotification", + "serializedName": "includeInNotification", + "doc": "Determines if it is included in notification.", + "type": { + "$id": "1138", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.includeInNotification", + "serializationOptions": { + "json": { + "name": "includeInNotification" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1139", + "kind": "property", + "name": "isIndexable", + "serializedName": "isIndexable", + "doc": "Determines if it is indexable.", + "type": { + "$id": "1140", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isIndexable", + "serializationOptions": { + "json": { + "name": "isIndexable" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1141", + "kind": "property", + "name": "isOptional", + "serializedName": "isOptional", + "doc": "Determines if it is optional.", + "type": { + "$id": "1142", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isOptional", + "serializationOptions": { + "json": { + "name": "isOptional" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1143", + "kind": "property", + "name": "isUnique", + "serializedName": "isUnique", + "doc": "Determines if it unique.", + "type": { + "$id": "1144", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isUnique", + "serializationOptions": { + "json": { + "name": "isUnique" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1145", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the attribute.", + "type": { + "$id": "1146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1147", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the attribute.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1148", + "kind": "property", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "1149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.typeName", + "serializationOptions": { + "json": { + "name": "typeName" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1150", + "kind": "property", + "name": "valuesMaxCount", + "serializedName": "valuesMaxCount", + "doc": "The maximum count of the values.", + "type": { + "$id": "1151", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.valuesMaxCount", + "serializationOptions": { + "json": { + "name": "valuesMaxCount" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1152", + "kind": "property", + "name": "valuesMinCount", + "serializedName": "valuesMinCount", + "doc": "The minimum count of the values.", + "type": { + "$id": "1153", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.valuesMinCount", + "serializationOptions": { + "json": { + "name": "valuesMinCount" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1154", + "kind": "property", + "name": "isLegacyAttribute", + "serializedName": "isLegacyAttribute", + "doc": "Determines if it is a legacy attribute.", + "type": { + "$id": "1155", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isLegacyAttribute", + "serializationOptions": { + "json": { + "name": "isLegacyAttribute" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1156", + "kind": "property", + "name": "relationshipTypeName", + "serializedName": "relationshipTypeName", + "doc": "The name of the relationship type.", + "type": { + "$id": "1157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.relationshipTypeName", + "serializationOptions": { + "json": { + "name": "relationshipTypeName" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.relationshipAttributeDefs", + "serializationOptions": { + "json": { + "name": "relationshipAttributeDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "1130" + }, + { + "$id": "1158", + "kind": "model", + "name": "AtlasEnumDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of an enum-type.", + "decorators": [], + "properties": [ + { + "$id": "1159", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1160", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1161", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1162", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1163", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1164", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1165", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1167", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1169", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1171", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1172", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1174", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1176", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1177", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1178", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1180", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1181", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1182", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1184", + "kind": "property", + "name": "defaultValue", + "serializedName": "defaultValue", + "doc": "The default value.", + "type": { + "$id": "1185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.defaultValue", + "serializationOptions": { + "json": { + "name": "defaultValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1186", + "kind": "property", + "name": "elementDefs", + "serializedName": "elementDefs", + "doc": "An array of enum element definitions.", + "type": { + "$id": "1187", + "kind": "array", + "name": "ArrayAtlasEnumElementDef", + "valueType": { + "$id": "1188", + "kind": "model", + "name": "AtlasEnumElementDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of an enum-element.", + "decorators": [], + "properties": [ + { + "$id": "1189", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the enum element definition.", + "type": { + "$id": "1190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1191", + "kind": "property", + "name": "ordinal", + "serializedName": "ordinal", + "doc": "The ordinal of the enum element definition.", + "type": { + "$id": "1192", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef.ordinal", + "serializationOptions": { + "json": { + "name": "ordinal" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1193", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The value of the enum element definition.", + "type": { + "$id": "1194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.elementDefs", + "serializationOptions": { + "json": { + "name": "elementDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "1188" + }, + { + "$id": "1195", + "kind": "model", + "name": "AtlasRelationshipDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef", + "usage": "Input,Output,Json", + "doc": "AtlasRelationshipDef is a TypeDef that defines a relationship.\nAs with other typeDefs the AtlasRelationshipDef has a name. Once created the\nRelationshipDef has a guid.\nThe name and the guid are the 2 ways that the\nRelationshipDef is identified.\nRelationshipDefs have 2 ends, each of which\nspecify cardinality, an EntityDef type name and name and optionally\nwhether the\nend is a container.\nRelationshipDefs can have AttributeDefs - though only\nprimitive types are allowed. \nRelationshipDefs have a relationshipCategory\nspecifying the UML type of relationship required \nThe way EntityDefs and\nRelationshipDefs are intended to be used is that EntityDefs will define\nAttributeDefs these AttributeDefs\nwill not specify an EntityDef type name as\ntheir types.\nRelationshipDefs introduce new attributes to the entity\ninstances. For example\nEntityDef A might have attributes attr1,attr2,attr3\n\nEntityDef B might have attributes attr4,attr5,attr6 \nRelationshipDef\nAtoB might define 2 ends \n\nend1: type A, name attr7\nend2: type B, name attr8 \n\nWhen an instance of EntityDef A is created, it\nwill have attributes attr1,attr2,attr3,attr7 \nWhen an instance of EntityDef\nB is created, it will have attributes attr4,attr5,attr6,attr8\n\nIn this way\nrelationshipDefs can be authored separately from entityDefs and can inject\nrelationship attributes into\nthe entity instances", + "decorators": [], + "properties": [ + { + "$id": "1196", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1197", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1198", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1199", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1201", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1202", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1204", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1206", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1208", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1209", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1211", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1213", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1214", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1215", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1217", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1218", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1219", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1221", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$ref": "1039" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1222", + "kind": "property", + "name": "endDef1", + "serializedName": "endDef1", + "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", + "type": { + "$id": "1223", + "kind": "model", + "name": "AtlasRelationshipEndDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef", + "usage": "Input,Output,Json", + "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", + "decorators": [], + "properties": [ + { + "$id": "1224", + "kind": "property", + "name": "cardinality", + "serializedName": "cardinality", + "doc": "single-valued attribute or multi-valued attribute.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.cardinality", + "serializationOptions": { + "json": { + "name": "cardinality" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1225", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the relationship end definition.", + "type": { + "$id": "1226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1227", + "kind": "property", + "name": "isContainer", + "serializedName": "isContainer", + "doc": "Determines if it is container.", + "type": { + "$id": "1228", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.isContainer", + "serializationOptions": { + "json": { + "name": "isContainer" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1229", + "kind": "property", + "name": "isLegacyAttribute", + "serializedName": "isLegacyAttribute", + "doc": "Determines if it is a legacy attribute.", + "type": { + "$id": "1230", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.isLegacyAttribute", + "serializationOptions": { + "json": { + "name": "isLegacyAttribute" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1231", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the relationship end definition.", + "type": { + "$id": "1232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1233", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the relationship end.", + "type": { + "$id": "1234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.type", + "serializationOptions": { + "json": { + "name": "type" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.endDef1", + "serializationOptions": { + "json": { + "name": "endDef1" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1235", + "kind": "property", + "name": "endDef2", + "serializedName": "endDef2", + "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", + "type": { + "$ref": "1223" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.endDef2", + "serializationOptions": { + "json": { + "name": "endDef2" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1236", + "kind": "property", + "name": "relationshipCategory", + "serializedName": "relationshipCategory", + "doc": "The Relationship category determines the style of relationship around\ncontainment and lifecycle.\nUML terminology is used for the values.\nASSOCIATION is a relationship with no containment. \nCOMPOSITION and AGGREGATION are containment relationships.\nThe difference being in the lifecycles of the container and its children. \nIn the COMPOSITION case, the children cannot exist without the container.\nFor AGGREGATION, the life cycles of the container and children are totally independent.", + "type": { + "$ref": "76" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.relationshipCategory", + "serializationOptions": { + "json": { + "name": "relationshipCategory" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1237", + "kind": "property", + "name": "relationshipLabel", + "serializedName": "relationshipLabel", + "doc": "The label of the relationship.", + "type": { + "$id": "1238", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.relationshipLabel", + "serializationOptions": { + "json": { + "name": "relationshipLabel" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "1223" + }, + { + "$id": "1239", + "kind": "model", + "name": "AtlasStructDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef", + "usage": "Input,Output,Json", + "doc": "class that captures details of a struct-type.", + "decorators": [], + "properties": [ + { + "$id": "1240", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1241", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1242", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1243", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1245", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1246", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1247", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1248", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1250", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1252", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1253", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1255", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1257", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1258", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1259", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1260", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1261", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1262", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1263", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1265", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$ref": "1039" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "1266", + "kind": "model", + "name": "AtlasTypeDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef", + "usage": "Output,Json", + "doc": "The definitions of type.", + "decorators": [], + "properties": [ + { + "$id": "1267", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1268", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1269", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1270", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1271", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1272", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1273", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1275", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1277", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1279", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1280", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1282", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1283", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1284", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1285", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1286", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1288", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1289", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1290", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1292", + "kind": "property", + "name": "entityTypes", + "serializedName": "entityTypes", + "doc": "Specifying a list of entityType names in the classificationDef, ensures that\nclassifications can\nonly be applied to those entityTypes.\n\nAny subtypes of the entity types inherit the restriction.\n\nAny classificationDef subtypes inherit the parents entityTypes restrictions.\n\nAny classificationDef subtypes can further restrict the parents entityTypes\nrestrictions by specifying a subset of the entityTypes.\n\nAn empty entityTypes list when there are no parent restrictions means there are no\nrestrictions.\n\nAn empty entityTypes list when there are parent\nrestrictions means that the subtype picks up the parents\nrestrictions.\n\nIf a list of entityTypes are supplied, where one inherits\nfrom another, this will be rejected. This should encourage cleaner\nclassificationsDefs.\n", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.entityTypes", + "serializationOptions": { + "json": { + "name": "entityTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1293", + "kind": "property", + "name": "subTypes", + "serializedName": "subTypes", + "doc": "An array of sub types.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.subTypes", + "serializationOptions": { + "json": { + "name": "subTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1294", + "kind": "property", + "name": "superTypes", + "serializedName": "superTypes", + "doc": "An array of super types.", + "type": { + "$ref": "374" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.superTypes", + "serializationOptions": { + "json": { + "name": "superTypes" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1295", + "kind": "property", + "name": "relationshipAttributeDefs", + "serializedName": "relationshipAttributeDefs", + "doc": "An array of relationship attributes.", + "type": { + "$ref": "1129" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.relationshipAttributeDefs", + "serializationOptions": { + "json": { + "name": "relationshipAttributeDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1296", + "kind": "property", + "name": "defaultValue", + "serializedName": "defaultValue", + "doc": "The default value.", + "type": { + "$id": "1297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.defaultValue", + "serializationOptions": { + "json": { + "name": "defaultValue" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1298", + "kind": "property", + "name": "elementDefs", + "serializedName": "elementDefs", + "doc": "An array of enum element definitions.", + "type": { + "$ref": "1187" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.elementDefs", + "serializationOptions": { + "json": { + "name": "elementDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1299", + "kind": "property", + "name": "endDef1", + "serializedName": "endDef1", + "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", + "type": { + "$ref": "1223" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.endDef1", + "serializationOptions": { + "json": { + "name": "endDef1" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1300", + "kind": "property", + "name": "endDef2", + "serializedName": "endDef2", + "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", + "type": { + "$ref": "1223" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.endDef2", + "serializationOptions": { + "json": { + "name": "endDef2" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1301", + "kind": "property", + "name": "relationshipCategory", + "serializedName": "relationshipCategory", + "doc": "The Relationship category determines the style of relationship around\ncontainment and lifecycle.\nUML terminology is used for the values.\n\nASSOCIATION is a relationship with no containment. \nCOMPOSITION and AGGREGATION are containment relationships.\n\nThe difference being in the lifecycles of the container and its children. \nIn the COMPOSITION case, the children cannot exist without the container. \nFor AGGREGATION, the life cycles of the container and children are totally independent.", + "type": { + "$ref": "76" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.relationshipCategory", + "serializationOptions": { + "json": { + "name": "relationshipCategory" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1302", + "kind": "property", + "name": "relationshipLabel", + "serializedName": "relationshipLabel", + "doc": "The label of the relationship.", + "type": { + "$id": "1303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.relationshipLabel", + "serializationOptions": { + "json": { + "name": "relationshipLabel" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1304", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$ref": "1039" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "1305", + "kind": "model", + "name": "AtlasTypesDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef", + "usage": "Input,Output,Json", + "doc": "The definitions of types.", + "decorators": [], + "properties": [ + { + "$id": "1306", + "kind": "property", + "name": "businessMetadataDefs", + "serializedName": "businessMetadataDefs", + "doc": "businessMetadataDefs", + "type": { + "$id": "1307", + "kind": "array", + "name": "ArrayAtlasBusinessMetadataDef", + "valueType": { + "$ref": "967" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.businessMetadataDefs", + "serializationOptions": { + "json": { + "name": "businessMetadataDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1308", + "kind": "property", + "name": "classificationDefs", + "serializedName": "classificationDefs", + "doc": "An array of classification definitions.", + "type": { + "$id": "1309", + "kind": "array", + "name": "ArrayAtlasClassificationDef", + "valueType": { + "$ref": "1069" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.classificationDefs", + "serializationOptions": { + "json": { + "name": "classificationDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1310", + "kind": "property", + "name": "entityDefs", + "serializedName": "entityDefs", + "doc": "An array of entity definitions.", + "type": { + "$id": "1311", + "kind": "array", + "name": "ArrayAtlasEntityDef", + "valueType": { + "$ref": "1099" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.entityDefs", + "serializationOptions": { + "json": { + "name": "entityDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1312", + "kind": "property", + "name": "enumDefs", + "serializedName": "enumDefs", + "doc": "An array of enum definitions.", + "type": { + "$id": "1313", + "kind": "array", + "name": "ArrayAtlasEnumDef", + "valueType": { + "$ref": "1158" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.enumDefs", + "serializationOptions": { + "json": { + "name": "enumDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1314", + "kind": "property", + "name": "relationshipDefs", + "serializedName": "relationshipDefs", + "doc": "An array of relationship definitions.", + "type": { + "$id": "1315", + "kind": "array", + "name": "ArrayAtlasRelationshipDef", + "valueType": { + "$ref": "1195" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.relationshipDefs", + "serializationOptions": { + "json": { + "name": "relationshipDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1316", + "kind": "property", + "name": "structDefs", + "serializedName": "structDefs", + "doc": "An array of struct definitions.", + "type": { + "$id": "1317", + "kind": "array", + "name": "ArrayAtlasStructDef", + "valueType": { + "$ref": "1239" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.structDefs", + "serializationOptions": { + "json": { + "name": "structDefs" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1318", + "kind": "property", + "name": "termTemplateDefs", + "serializedName": "termTemplateDefs", + "doc": "An array of term template definitions.", + "type": { + "$id": "1319", + "kind": "array", + "name": "ArrayTermTemplateDef", + "valueType": { + "$id": "1320", + "kind": "model", + "name": "TermTemplateDef", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef", + "usage": "Input,Output,Json", + "doc": "Term template definition for glossary term.", + "decorators": [], + "properties": [ + { + "$id": "1321", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1322", + "kind": "property", + "name": "createTime", + "serializedName": "createTime", + "doc": "The created time of the record.", + "type": { + "$id": "1323", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.createTime", + "serializationOptions": { + "json": { + "name": "createTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1324", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The user who created the record.", + "type": { + "$id": "1325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.createdBy", + "serializationOptions": { + "json": { + "name": "createdBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1326", + "kind": "property", + "name": "dateFormatter", + "serializedName": "dateFormatter", + "doc": "The date format.", + "type": { + "$ref": "974" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.dateFormatter", + "serializationOptions": { + "json": { + "name": "dateFormatter" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1327", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the type definition.", + "type": { + "$id": "1328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.description", + "serializationOptions": { + "json": { + "name": "description" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1329", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1331", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1333", + "kind": "property", + "name": "options", + "serializedName": "options", + "doc": "The options for the type definition.", + "type": { + "$ref": "362" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.options", + "serializationOptions": { + "json": { + "name": "options" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1334", + "kind": "property", + "name": "serviceType", + "serializedName": "serviceType", + "doc": "The service type.", + "type": { + "$id": "1335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.serviceType", + "serializationOptions": { + "json": { + "name": "serviceType" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1336", + "kind": "property", + "name": "typeVersion", + "serializedName": "typeVersion", + "doc": "The version of the type.", + "type": { + "$id": "1337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.typeVersion", + "serializationOptions": { + "json": { + "name": "typeVersion" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1338", + "kind": "property", + "name": "updateTime", + "serializedName": "updateTime", + "doc": "The update time of the record.", + "type": { + "$id": "1339", + "kind": "safeint", + "name": "safeint", + "crossLanguageDefinitionId": "TypeSpec.safeint", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.updateTime", + "serializationOptions": { + "json": { + "name": "updateTime" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1340", + "kind": "property", + "name": "updatedBy", + "serializedName": "updatedBy", + "doc": "The user who updated the record.", + "type": { + "$id": "1341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.updatedBy", + "serializationOptions": { + "json": { + "name": "updatedBy" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1342", + "kind": "property", + "name": "version", + "serializedName": "version", + "doc": "The version of the record.", + "type": { + "$id": "1343", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.version", + "serializationOptions": { + "json": { + "name": "version" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1344", + "kind": "property", + "name": "lastModifiedTS", + "serializedName": "lastModifiedTS", + "doc": "ETag for concurrency control.", + "type": { + "$id": "1345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.lastModifiedTS", + "serializationOptions": { + "json": { + "name": "lastModifiedTS" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1346", + "kind": "property", + "name": "attributeDefs", + "serializedName": "attributeDefs", + "doc": "An array of attribute definitions.", + "type": { + "$ref": "1039" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.attributeDefs", + "serializationOptions": { + "json": { + "name": "attributeDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.termTemplateDefs", + "serializationOptions": { + "json": { + "name": "termTemplateDefs" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "1320" + }, + { + "$id": "1347", + "kind": "model", + "name": "AtlasTypeDefHeader", + "namespace": "Azure.Analytics.Purview.DataMap", + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader", + "usage": "Output,Json", + "doc": "The basic information of the type definition.", + "decorators": [], + "properties": [ + { + "$id": "1348", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "The enum of type category.", + "type": { + "$ref": "49" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader.category", + "serializationOptions": { + "json": { + "name": "category" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1349", + "kind": "property", + "name": "guid", + "serializedName": "guid", + "doc": "The GUID of the type definition.", + "type": { + "$id": "1350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader.guid", + "serializationOptions": { + "json": { + "name": "guid" + } + }, + "isHttpMetadata": false + }, + { + "$id": "1351", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the type definition.", + "type": { + "$id": "1352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": false + } + ] + } + ], + "clients": [ + { + "$id": "1353", + "kind": "client", + "name": "DataMapClient", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [], + "parameters": [ + { + "$id": "1354", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "1355", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + }, + { + "$id": "1356", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1357", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "1358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "initializedBy": 1, + "decorators": [], + "crossLanguageDefinitionId": "Customizations", + "apiVersions": [ + "2023-09-01" + ], + "children": [ + { + "$id": "1359", + "kind": "client", + "name": "Entity", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [ + { + "$id": "1360", + "kind": "basic", + "name": "createOrUpdate", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create or update an entity.\nExisting entity is matched using its unique guid if\nsupplied or by its unique attributes eg: qualifiedName.\nMap and array of\ncollections are not well supported. E.g., array>, array>.\nFor each contact type, the maximum number of contacts is 20.", + "operation": { + "$id": "1361", + "name": "createOrUpdate", + "resourceName": "Entity", + "doc": "Create or update an entity.\nExisting entity is matched using its unique guid if\nsupplied or by its unique attributes eg: qualifiedName.\nMap and array of\ncollections are not well supported. E.g., array>, array>.\nFor each contact type, the maximum number of contacts is 20.", + "accessibility": "public", + "parameters": [ + { + "$id": "1362", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1363", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "1364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.apiVersion", + "readOnly": false + }, + { + "$id": "1365", + "kind": "query", + "name": "businessAttributeUpdateBehavior", + "serializedName": "businessAttributeUpdateBehavior", + "doc": "Used to define the update behavior for business attributes when updating\nentities.", + "type": { + "$ref": "81" + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.businessAttributeUpdateBehavior", + "readOnly": false + }, + { + "$id": "1366", + "kind": "query", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", + "type": { + "$id": "1367", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.collectionId", + "readOnly": false + }, + { + "$id": "1368", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "89" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.contentType" + }, + { + "$id": "1369", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "91" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.accept" + }, + { + "$id": "1370", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "321" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate", + "decorators": [], + "examples": [ + { + "$id": "1371", + "kind": "http", + "name": "Entity_AddCustomAttribute", + "description": "Entity_AddCustomAttribute", + "filePath": "2023-09-01/Entity_AddCustomAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "1362" + }, + "value": { + "$id": "1372", + "kind": "string", + "type": { + "$ref": "1363" + }, + "value": "2023-09-01" + } + }, + { + "parameter": { + "$ref": "1370" + }, + "value": { + "$id": "1373", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "referredEntities": { + "$id": "1374", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entity": { + "$id": "1375", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1376", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1377", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1378", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "modifiedTime": { + "$id": "1379", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "createTime": { + "$id": "1380", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1381", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "1382", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount" + }, + "description": { + "$id": "1383", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "publicAccessLevel": { + "$id": "1384", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "customAttributes": { + "$id": "1385", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "custAttr1": { + "$id": "1386", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "attr1" + }, + "custAttr2": { + "$id": "1387", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "attr2" + } + } + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1388", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1389", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "CREATE": { + "$id": "1390", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1391", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1392", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1393", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1394", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "createTime": { + "$id": "1395", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1396", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "1397", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount" + } + } + }, + "lastModifiedTS": { + "$id": "1398", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "1399", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "c696b935-2c76-4208-bc0d-8864553a67f1" + }, + "displayText": { + "$id": "1400", + "kind": "string", + "type": { + "$ref": "435" + }, + "value": "ExampleStorageAccount" + }, + "classificationNames": { + "$id": "1401", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "classifications": { + "$id": "1402", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [] + }, + "meaningNames": { + "$id": "1403", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "meanings": { + "$id": "1404", + "kind": "array", + "type": { + "$ref": "377" + }, + "value": [] + }, + "isIncomplete": { + "$id": "1405", + "kind": "boolean", + "type": { + "$ref": "439" + }, + "value": false + }, + "labels": { + "$id": "1406", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + ] + } + } + }, + "guidAssignments": { + "$id": "1407", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "-16806536444330": { + "$id": "1408", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "c696b935-2c76-4208-bc0d-8864553a67f1" + } + } + } + } + } + } + ] + }, + { + "$id": "1409", + "kind": "http", + "name": "Entity_Create", + "description": "Entity_Create", + "filePath": "2023-09-01/Entity_Create.json", + "parameters": [ + { + "parameter": { + "$ref": "1362" + }, + "value": { + "$id": "1410", + "kind": "string", + "type": { + "$ref": "1363" + }, + "value": "2023-09-01" + } + }, + { + "parameter": { + "$ref": "1370" + }, + "value": { + "$id": "1411", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "referredEntities": { + "$id": "1412", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entity": { + "$id": "1413", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1414", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1415", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1416", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "modifiedTime": { + "$id": "1417", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "createTime": { + "$id": "1418", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1419", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "1420", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount" + }, + "description": { + "$id": "1421", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "publicAccessLevel": { + "$id": "1422", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1423", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1424", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1425", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1426", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1427", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1428", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1429", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1430", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1431", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + }, + "status": { + "$id": "1432", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1433", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1434", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "1435", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1436", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1437", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "CREATE": { + "$id": "1438", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1439", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1440", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1441", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1442", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + }, + "lastModifiedTS": { + "$id": "1443", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "1444", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" + }, + "status": { + "$id": "1445", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + } + } + }, + "guidAssignments": { + "$id": "1446", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "-9514774903018162": { + "$id": "1447", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" + } + } + } + } + } + } + ] + }, + { + "$id": "1448", + "kind": "http", + "name": "Entity_CreateOrUpdateWithRichText", + "description": "Entity_CreateOrUpdateWithRichText", + "filePath": "2023-09-01/Entity_CreateOrUpdateWithRichText.json", + "parameters": [ + { + "parameter": { + "$ref": "1362" + }, + "value": { + "$id": "1449", + "kind": "string", + "type": { + "$ref": "1363" + }, + "value": "2023-09-01" + } + }, + { + "parameter": { + "$ref": "1370" + }, + "value": { + "$id": "1450", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "referredEntities": { + "$id": "1451", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entity": { + "$id": "1452", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1453", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1454", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1455", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "modifiedTime": { + "$id": "1456", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "createTime": { + "$id": "1457", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1458", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "1459", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount" + }, + "description": { + "$id": "1460", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "userDescription": { + "$id": "1461", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "
testing
" + }, + "publicAccessLevel": { + "$id": "1462", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "customAttributes": { + "$id": "1463", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "microsoft_isDescriptionRichText": { + "$id": "1464", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "true" + } + } + }, + "status": { + "$id": "1465", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1466", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1467", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "1468", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1469", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1470", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "CREATE": { + "$id": "1471", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1472", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1473", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1474", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1475", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + }, + "lastModifiedTS": { + "$id": "1476", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "1477", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" + }, + "status": { + "$id": "1478", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + } + } + }, + "guidAssignments": { + "$id": "1479", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "-9514774903018162": { + "$id": "1480", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" + } + } + } + } + } + } + ] + }, + { + "$id": "1481", + "kind": "http", + "name": "Entity_Update", + "description": "Entity_Update", + "filePath": "2023-09-01/Entity_Update.json", + "parameters": [ + { + "parameter": { + "$ref": "1362" + }, + "value": { + "$id": "1482", + "kind": "string", + "type": { + "$ref": "1363" + }, + "value": "2023-09-01" + } + }, + { + "parameter": { + "$ref": "1370" + }, + "value": { + "$id": "1483", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "referredEntities": { + "$id": "1484", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entity": { + "$id": "1485", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1486", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1487", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1488", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "modifiedTime": { + "$id": "1489", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "createTime": { + "$id": "1490", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1491", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount" + }, + "name": { + "$id": "1492", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount" + }, + "description": { + "$id": "1493", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "publicAccessLevel": { + "$id": "1494", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1495", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1496", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1497", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1498", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1499", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1500", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1501", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1502", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1503", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + }, + "status": { + "$id": "1504", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1505", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1506", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "1507", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1508", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1509", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "UPDATE": { + "$id": "1510", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1511", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1512", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1513", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1514", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount" + } + } + }, + "lastModifiedTS": { + "$id": "1515", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "2" + }, + "guid": { + "$id": "1516", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "029d5668-a36c-40a9-bc11-6f352bafdc3b" + } + } + } + ] + } + } + }, + "guidAssignments": { + "$id": "1517", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "-9514774903018167": { + "$id": "1518", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "029d5668-a36c-40a9-bc11-6f352bafdc3b" + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1519", + "kind": "method", + "name": "businessAttributeUpdateBehavior", + "serializedName": "businessAttributeUpdateBehavior", + "doc": "Used to define the update behavior for business attributes when updating\nentities.", + "type": { + "$ref": "81" + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.businessAttributeUpdateBehavior", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1520", + "kind": "method", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", + "type": { + "$id": "1521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.collectionId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1522", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "321" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1523", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1524", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate" + }, + { + "$id": "1525", + "kind": "basic", + "name": "getByIds", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "List entities in bulk identified by its GUIDs.", + "operation": { + "$id": "1526", + "name": "getByIds", + "resourceName": "Entity", + "doc": "List entities in bulk identified by its GUIDs.", + "accessibility": "public", + "parameters": [ + { + "$id": "1527", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "1529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.apiVersion", + "readOnly": false + }, + { + "$id": "1530", + "kind": "query", + "name": "guid", + "serializedName": "guid", + "doc": "An array of GUIDs of entities to list.", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "explode": true, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.guid", + "readOnly": false + }, + { + "$id": "1531", + "kind": "query", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "1532", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.minExtInfo", + "readOnly": false + }, + { + "$id": "1533", + "kind": "query", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "1534", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.ignoreRelationships", + "readOnly": false + }, + { + "$id": "1535", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "93" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/bulk", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.getByIds", + "decorators": [], + "examples": [ + { + "$id": "1536", + "kind": "http", + "name": "Entity_ListByGuids", + "description": "Entity_ListByGuids", + "filePath": "2023-09-01/Entity_ListByGuids.json", + "parameters": [ + { + "parameter": { + "$ref": "1530" + }, + "value": { + "$id": "1537", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "1538", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" + }, + { + "$id": "1539", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" + } + ] + } + }, + { + "parameter": { + "$ref": "1531" + }, + "value": { + "$id": "1540", + "kind": "boolean", + "type": { + "$ref": "1532" + }, + "value": true + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1541", + "kind": "model", + "type": { + "$ref": "453" + }, + "value": { + "referredEntities": { + "$id": "1542", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entities": { + "$id": "1543", + "kind": "array", + "type": { + "$ref": "456" + }, + "value": [ + { + "$id": "1544", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1545", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "column" + }, + "attributes": { + "$id": "1546", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1547", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "qualifiedName": { + "$id": "1548", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1" + }, + "name": { + "$id": "1549", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleName1" + }, + "description": { + "$id": "1550", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "type": { + "$id": "1551", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "string" + } + } + }, + "guid": { + "$id": "1552", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" + }, + "status": { + "$id": "1553", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1554", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1555", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "1556", + "kind": "number", + "type": { + "$ref": "358" + }, + "value": 1553072455110 + }, + "updateTime": { + "$id": "1557", + "kind": "number", + "type": { + "$ref": "405" + }, + "value": 1553072455110 + }, + "version": { + "$id": "1558", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + }, + "relationshipAttributes": { + "$id": "1559", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "schema": { + "$id": "1560", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "inputToProcesses": { + "$id": "1561", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "composeSchema": { + "$id": "1562", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": { + "guid": "cc6652ae-dc6d-90c9-1899-252eabc0e929", + "typeName": "tabular_schema", + "displayText": "tabular_schema", + "relationshipGuid": "400fd8e4-97bd-45eb-a21c-880b4094ce5b", + "relationshipStatus": "ACTIVE", + "relationshipAttributes": { + "typeName": "tabular_schema_columns" + } + } + }, + "meanings": { + "$id": "1563", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "outputFromProcesses": { + "$id": "1564", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "tabular_schema": { + "$id": "1565", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1566", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1567", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1568", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1569", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1570", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1571", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1572", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1573", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1574", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + } + } + }, + { + "$id": "1575", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1576", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "column" + }, + "attributes": { + "$id": "1577", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1578", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "qualifiedName": { + "$id": "1579", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "adl://exampleaccount.azuredatalakestore.net/123/1/Experience/CBT/Extensions/CodeAnalysis.targets#:xml/Project/PropertyGroup/ExampleName2" + }, + "name": { + "$id": "1580", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleName2" + }, + "description": { + "$id": "1581", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "type": { + "$id": "1582", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "string" + } + } + }, + "guid": { + "$id": "1583", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" + }, + "status": { + "$id": "1584", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1585", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1586", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "1587", + "kind": "number", + "type": { + "$ref": "358" + }, + "value": 1553072455110 + }, + "updateTime": { + "$id": "1588", + "kind": "number", + "type": { + "$ref": "405" + }, + "value": 1553072455110 + }, + "version": { + "$id": "1589", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + }, + "relationshipAttributes": { + "$id": "1590", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "schema": { + "$id": "1591", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "inputToProcesses": { + "$id": "1592", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "composeSchema": { + "$id": "1593", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": { + "guid": "381dd3e6-dad5-7409-c21d-ea55b666e420", + "typeName": "tabular_schema", + "displayText": "tabular_schema", + "relationshipGuid": "0b652860-ab79-48cd-a0cf-0867fbba31a3", + "relationshipStatus": "ACTIVE", + "relationshipAttributes": { + "typeName": "tabular_schema_columns" + } + } + }, + "meanings": { + "$id": "1594", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "outputFromProcesses": { + "$id": "1595", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "tabular_schema": { + "$id": "1596", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1597", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1598", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1599", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1600", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1601", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1602", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1603", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1604", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1605", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1606", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "An array of GUIDs of entities to list.", + "type": { + "$ref": "374" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1607", + "kind": "method", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "1608", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.minExtInfo", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1609", + "kind": "method", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "1610", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.ignoreRelationships", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1611", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.getByIds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "453" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.getByIds" + }, + { + "$id": "1612", + "kind": "basic", + "name": "batchCreateOrUpdate", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create or update entities in bulk.\nExisting entity is matched using its unique\nguid if supplied or by its unique attributes eg: qualifiedName.\nMap and array\nof collections are not well supported. E.g., array>,\narray>.\nFor each contact type, the maximum number of contacts\nis 20.", + "operation": { + "$id": "1613", + "name": "batchCreateOrUpdate", + "resourceName": "Entity", + "doc": "Create or update entities in bulk.\nExisting entity is matched using its unique\nguid if supplied or by its unique attributes eg: qualifiedName.\nMap and array\nof collections are not well supported. E.g., array>,\narray>.\nFor each contact type, the maximum number of contacts\nis 20.", + "accessibility": "public", + "parameters": [ + { + "$id": "1614", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "1616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.apiVersion", + "readOnly": false + }, + { + "$id": "1617", + "kind": "query", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", + "type": { + "$id": "1618", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.collectionId", + "readOnly": false + }, + { + "$id": "1619", + "kind": "query", + "name": "businessAttributeUpdateBehavior", + "serializedName": "businessAttributeUpdateBehavior", + "doc": "Used to define the update behavior for business attributes when updating\nentities.", + "type": { + "$ref": "81" + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.businessAttributeUpdateBehavior", + "readOnly": false + }, + { + "$id": "1620", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.contentType" + }, + { + "$id": "1621", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "97" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.accept" + }, + { + "$id": "1622", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "453" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/bulk", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate", + "decorators": [], + "examples": [ + { + "$id": "1623", + "kind": "http", + "name": "Entity_BulkCreateOrUpdate", + "description": "Entity_BulkCreateOrUpdate", + "filePath": "2023-09-01/Entity_BulkCreateOrUpdate.json", + "parameters": [ + { + "parameter": { + "$ref": "1622" + }, + "value": { + "$id": "1624", + "kind": "model", + "type": { + "$ref": "453" + }, + "value": { + "referredEntities": { + "$id": "1625", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entities": { + "$id": "1626", + "kind": "array", + "type": { + "$ref": "456" + }, + "value": [ + { + "$id": "1627", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1628", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1629", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1630", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "modifiedTime": { + "$id": "1631", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "createTime": { + "$id": "1632", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1633", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount1" + }, + "name": { + "$id": "1634", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount1" + }, + "description": { + "$id": "1635", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "publicAccessLevel": { + "$id": "1636", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1637", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1638", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1639", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1640", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1641", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1642", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1643", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1644", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1645", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + }, + "status": { + "$id": "1646", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1647", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1648", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "1649", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + } + } + }, + { + "$id": "1650", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1651", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1652", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1653", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "modifiedTime": { + "$id": "1654", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "createTime": { + "$id": "1655", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "1656", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount2" + }, + "name": { + "$id": "1657", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount2" + }, + "description": { + "$id": "1658", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "publicAccessLevel": { + "$id": "1659", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1660", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1661", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1662", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1663", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1664", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1665", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1666", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1667", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1668", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + }, + "status": { + "$id": "1669", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1670", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1671", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "1672", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1673", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1674", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "UPDATE": { + "$id": "1675", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1676", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1677", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1678", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1679", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount2" + } + } + }, + "lastModifiedTS": { + "$id": "1680", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "2" + }, + "guid": { + "$id": "1681", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + }, + "status": { + "$id": "1682", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + }, + "CREATE": { + "$id": "1683", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1684", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1685", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1686", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1687", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount1" + } + } + }, + "lastModifiedTS": { + "$id": "1688", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "1689", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" + }, + "status": { + "$id": "1690", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + } + } + }, + "guidAssignments": { + "$id": "1691", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "-9514774903018192": { + "$id": "1692", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" + }, + "-9514774903018193": { + "$id": "1693", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1694", + "kind": "method", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", + "type": { + "$id": "1695", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.collectionId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1696", + "kind": "method", + "name": "businessAttributeUpdateBehavior", + "serializedName": "businessAttributeUpdateBehavior", + "doc": "Used to define the update behavior for business attributes when updating\nentities.", + "type": { + "$ref": "81" + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.businessAttributeUpdateBehavior", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1697", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "453" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1698", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1699", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate" + }, + { + "$id": "1700", + "kind": "basic", + "name": "batchDelete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a list of entities in bulk identified by their GUIDs or unique\nattributes.", + "operation": { + "$id": "1701", + "name": "batchDelete", + "resourceName": "Entity", + "doc": "Delete a list of entities in bulk identified by their GUIDs or unique\nattributes.", + "accessibility": "public", + "parameters": [ + { + "$id": "1702", + "kind": "query", + "name": "guid", + "serializedName": "guid", + "doc": "An array of GUIDs of entities to delete.", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "explode": true, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.guid", + "readOnly": false + }, + { + "$id": "1703", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "99" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/bulk", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchDelete", + "decorators": [], + "examples": [ + { + "$id": "1704", + "kind": "http", + "name": "Entity_BulkDelete", + "description": "Entity_BulkDelete", + "filePath": "2023-09-01/Entity_BulkDelete.json", + "parameters": [ + { + "parameter": { + "$ref": "1702" + }, + "value": { + "$id": "1705", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "1706", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "18e06957-e265-967a-07f1-e14e2ab8940f" + }, + { + "$id": "1707", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1708", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1709", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "DELETE": { + "$id": "1710", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1711", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1712", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_blob_container" + }, + "attributes": { + "$id": "1713", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1714", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplecontainer" + } + } + }, + "guid": { + "$id": "1715", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "18e06957-e265-967a-07f1-e14e2ab8940f" + }, + "status": { + "$id": "1716", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + }, + { + "$id": "1717", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1718", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_blob_container" + }, + "attributes": { + "$id": "1719", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1720", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplecontainer2" + } + } + }, + "guid": { + "$id": "1721", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" + }, + "status": { + "$id": "1722", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1723", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "An array of GUIDs of entities to delete.", + "type": { + "$ref": "374" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1724", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchDelete" + }, + { + "$id": "1725", + "kind": "basic", + "name": "addClassification", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Associate a classification to multiple entities in bulk.", + "operation": { + "$id": "1726", + "name": "addClassification", + "resourceName": "Entity", + "doc": "Associate a classification to multiple entities in bulk.", + "accessibility": "public", + "parameters": [ + { + "$id": "1727", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "101" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addClassification.contentType" + }, + { + "$id": "1728", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "457" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addClassification.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/bulk/classification", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addClassification", + "decorators": [], + "examples": [ + { + "$id": "1729", + "kind": "http", + "name": "Entity_AddClassificationToEntityByGuids", + "description": "Entity_AddClassificationToEntityByGuids", + "filePath": "2023-09-01/Entity_AddClassificationToEntityByGuids.json", + "parameters": [ + { + "parameter": { + "$ref": "1728" + }, + "value": { + "$id": "1730", + "kind": "model", + "type": { + "$ref": "457" + }, + "value": { + "classification": { + "$id": "1731", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "1732", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" + }, + "attributes": { + "$id": "1733", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": {} + }, + "validityPeriods": { + "$id": "1734", + "kind": "array", + "type": { + "$ref": "349" + }, + "value": [] + } + } + }, + "entityGuids": { + "$id": "1735", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "1736", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" + }, + { + "$id": "1737", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1738", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "457" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addClassification.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1739", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addClassification.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addClassification" + }, + { + "$id": "1740", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get complete definition of an entity given its GUID.", + "operation": { + "$id": "1741", + "name": "get", + "resourceName": "Entity", + "doc": "Get complete definition of an entity given its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "1742", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1743", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.get.guid" + }, + { + "$id": "1744", + "kind": "query", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "1745", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.get.minExtInfo", + "readOnly": false + }, + { + "$id": "1746", + "kind": "query", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "1747", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.get.ignoreRelationships", + "readOnly": false + }, + { + "$id": "1748", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "103" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "321" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.get", + "decorators": [], + "examples": [ + { + "$id": "1749", + "kind": "http", + "name": "Entity_Get", + "description": "Entity_Get", + "filePath": "2023-09-01/Entity_Get.json", + "parameters": [ + { + "parameter": { + "$ref": "1742" + }, + "value": { + "$id": "1750", + "kind": "string", + "type": { + "$ref": "1743" + }, + "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" + } + }, + { + "parameter": { + "$ref": "1744" + }, + "value": { + "$id": "1751", + "kind": "boolean", + "type": { + "$ref": "1745" + }, + "value": true + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "321" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1752", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "referredEntities": { + "$id": "1753", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entity": { + "$id": "1754", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "1755", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "column" + }, + "attributes": { + "$id": "1756", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1757", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "qualifiedName": { + "$id": "1758", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/Target/XmlPeek/@XmlInputPath" + }, + "name": { + "$id": "1759", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "~XmlInputPath" + }, + "description": { + "$id": "1760", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "type": { + "$id": "1761", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "string" + } + } + }, + "guid": { + "$id": "1762", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" + }, + "status": { + "$id": "1763", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "1764", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "1765", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "1766", + "kind": "number", + "type": { + "$ref": "358" + }, + "value": 1553072455110 + }, + "updateTime": { + "$id": "1767", + "kind": "number", + "type": { + "$ref": "405" + }, + "value": 1553072455110 + }, + "version": { + "$id": "1768", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + }, + "relationshipAttributes": { + "$id": "1769", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "schema": { + "$id": "1770", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "inputToProcesses": { + "$id": "1771", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "composeSchema": { + "$id": "1772", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": { + "guid": "cc6652ae-dc6d-90c9-1899-252eabc0e929", + "typeName": "tabular_schema", + "displayText": "tabular_schema", + "relationshipGuid": "5a4510d4-57d0-467c-888f-4b61df42702b", + "relationshipStatus": "ACTIVE", + "relationshipAttributes": { + "typeName": "tabular_schema_columns" + } + } + }, + "meanings": { + "$id": "1773", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "outputFromProcesses": { + "$id": "1774", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "tabular_schema": { + "$id": "1775", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "contacts": { + "$id": "1776", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "1777", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1778", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1779", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1780", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Owner": { + "$id": "1781", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "1782", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "1783", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "1784", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Owner Info" + } + } + } + ] + } + } + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1785", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1786", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.get.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1787", + "kind": "method", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "1788", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.get.minExtInfo", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1789", + "kind": "method", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "1790", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.get.ignoreRelationships", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1791", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "321" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.get" + }, + { + "$id": "1792", + "kind": "basic", + "name": "updateAttributeById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update entity partially - create or update entity attribute identified by its\nGUID.\nSupports only primitive attribute type and entity references.\nIt does not support updating complex types like arrays, and maps.\nNull updates are not possible.", + "operation": { + "$id": "1793", + "name": "updateAttributeById", + "resourceName": "Entity", + "doc": "Update entity partially - create or update entity attribute identified by its\nGUID.\nSupports only primitive attribute type and entity references.\nIt does not support updating complex types like arrays, and maps.\nNull updates are not possible.", + "accessibility": "public", + "parameters": [ + { + "$id": "1794", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1795", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.guid" + }, + { + "$id": "1796", + "kind": "query", + "name": "name", + "serializedName": "name", + "doc": "The name of the attribute.", + "type": { + "$id": "1797", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.name", + "readOnly": false + }, + { + "$id": "1798", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.contentType" + }, + { + "$id": "1799", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "107" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.accept" + }, + { + "$id": "1800", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "The value of the attribute.", + "type": { + "$id": "1801", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById", + "decorators": [], + "examples": [ + { + "$id": "1802", + "kind": "http", + "name": "Entity_PartialUpdateAttributeByGuid", + "description": "Entity_PartialUpdateAttributeByGuid", + "filePath": "2023-09-01/Entity_PartialUpdateAttributeByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "1794" + }, + "value": { + "$id": "1803", + "kind": "string", + "type": { + "$ref": "1795" + }, + "value": "394d9a03-912e-483b-bbd2-bedee1a69798" + } + }, + { + "parameter": { + "$ref": "1796" + }, + "value": { + "$id": "1804", + "kind": "string", + "type": { + "$ref": "1797" + }, + "value": "ExampleName" + } + }, + { + "parameter": { + "$ref": "1800" + }, + "value": { + "$id": "1805", + "kind": "unknown", + "type": { + "$ref": "1801" + }, + "value": "ExampleNewName" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1806", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1807", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "CREATE": { + "$id": "1808", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1809", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1810", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1811", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1812", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + }, + "lastModifiedTS": { + "$id": "1813", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "1814", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "394d9a03-912e-483b-bbd2-bedee1a69798" + }, + "status": { + "$id": "1815", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + } + } + }, + "partialUpdatedEntities": { + "$id": "1816", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1817", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "1818", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "1819", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "1820", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + }, + "lastModifiedTS": { + "$id": "1821", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "1822", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "394d9a03-912e-483b-bbd2-bedee1a69798" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1823", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1824", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1825", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the attribute.", + "type": { + "$id": "1826", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1827", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "The value of the attribute.", + "type": { + "$id": "1828", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1829", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1830", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById" + }, + { + "$id": "1831", + "kind": "basic", + "name": "delete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete an entity identified by its GUID.", + "operation": { + "$id": "1832", + "name": "delete", + "resourceName": "Entity", + "doc": "Delete an entity identified by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "1833", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1834", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.delete.guid" + }, + { + "$id": "1835", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "109" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.delete.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.delete", + "decorators": [], + "examples": [ + { + "$id": "1836", + "kind": "http", + "name": "Entity_Delete", + "description": "Entity_Delete", + "filePath": "2023-09-01/Entity_Delete.json", + "parameters": [ + { + "parameter": { + "$ref": "1833" + }, + "value": { + "$id": "1837", + "kind": "string", + "type": { + "$ref": "1834" + }, + "value": "fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1838", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "1839", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "DELETE": { + "$id": "1840", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "1841", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "guid": { + "$id": "1842", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f" + }, + "status": { + "$id": "1843", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "lastModifiedTS": { + "$id": "1844", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "2" + }, + "attributes": { + "$id": "1845", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1846", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "qualifiedName": { + "$id": "1847", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "1848", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAaccount" + } + } + }, + "typeName": { + "$id": "1849", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + } + } + } + ] + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1850", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1851", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.delete.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1852", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "109" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.delete.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.delete" + }, + { + "$id": "1853", + "kind": "basic", + "name": "getClassification", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get classification for a given entity represented by a GUID.", + "operation": { + "$id": "1854", + "name": "getClassification", + "resourceName": "Entity", + "doc": "Get classification for a given entity represented by a GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "1855", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1856", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.getClassification.guid" + }, + { + "$id": "1857", + "kind": "path", + "name": "classificationName", + "serializedName": "classificationName", + "doc": "The name of the classification.", + "type": { + "$id": "1858", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.getClassification.classificationName" + }, + { + "$id": "1859", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "111" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getClassification.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "337" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/classification/{classificationName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.getClassification", + "decorators": [], + "examples": [ + { + "$id": "1860", + "kind": "http", + "name": "Entity_GetClassification", + "description": "Entity_GetClassification", + "filePath": "2023-09-01/Entity_GetClassification.json", + "parameters": [ + { + "parameter": { + "$ref": "1855" + }, + "value": { + "$id": "1861", + "kind": "string", + "type": { + "$ref": "1856" + }, + "value": "9347abc5-7b86-4b82-a1e2-ad77c7c3cac3" + } + }, + { + "parameter": { + "$ref": "1857" + }, + "value": { + "$id": "1862", + "kind": "string", + "type": { + "$ref": "1858" + }, + "value": "MICROSOFT.PERSONAL.DATE_OF_BIRTH" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "337" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1863", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "1864", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.PERSONAL.DATE_OF_BIRTH" + }, + "lastModifiedTS": { + "$id": "1865", + "kind": "string", + "type": { + "$ref": "342" + }, + "value": "1" + }, + "entityGuid": { + "$id": "1866", + "kind": "string", + "type": { + "$ref": "344" + }, + "value": "9347abc5-7b86-4b82-a1e2-ad77c7c3cac3" + }, + "entityStatus": { + "$id": "1867", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1868", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1869", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getClassification.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1870", + "kind": "method", + "name": "classificationName", + "serializedName": "classificationName", + "doc": "The name of the classification.", + "type": { + "$id": "1871", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getClassification.classificationName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1872", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.getClassification.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "337" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.getClassification" + }, + { + "$id": "1873", + "kind": "basic", + "name": "removeClassification", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a given classification from an existing entity represented by a GUID.", + "operation": { + "$id": "1874", + "name": "removeClassification", + "resourceName": "Entity", + "doc": "Delete a given classification from an existing entity represented by a GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "1875", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1876", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.guid" + }, + { + "$id": "1877", + "kind": "path", + "name": "classificationName", + "serializedName": "classificationName", + "doc": "The name of the classification.", + "type": { + "$id": "1878", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.classificationName" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/classification/{classificationName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassification", + "decorators": [], + "examples": [ + { + "$id": "1879", + "kind": "http", + "name": "Entity_RemoveClassification", + "description": "Entity_RemoveClassification", + "filePath": "2023-09-01/Entity_RemoveClassification.json", + "parameters": [ + { + "parameter": { + "$ref": "1875" + }, + "value": { + "$id": "1880", + "kind": "string", + "type": { + "$ref": "1876" + }, + "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" + } + }, + { + "parameter": { + "$ref": "1877" + }, + "value": { + "$id": "1881", + "kind": "string", + "type": { + "$ref": "1878" + }, + "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1882", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1883", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1884", + "kind": "method", + "name": "classificationName", + "serializedName": "classificationName", + "doc": "The name of the classification.", + "type": { + "$id": "1885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.classificationName", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassification" + }, + { + "$id": "1886", + "kind": "basic", + "name": "getClassifications", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "List classifications for a given entity represented by a GUID.", + "operation": { + "$id": "1887", + "name": "getClassifications", + "resourceName": "Entity", + "doc": "List classifications for a given entity represented by a GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "1888", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1889", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.guid" + }, + { + "$id": "1890", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "113" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "460" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/classifications", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.getClassifications", + "decorators": [], + "examples": [ + { + "$id": "1891", + "kind": "http", + "name": "Entity_GetClassifications", + "description": "Entity_GetClassifications", + "filePath": "2023-09-01/Entity_GetClassifications.json", + "parameters": [ + { + "parameter": { + "$ref": "1888" + }, + "value": { + "$id": "1892", + "kind": "string", + "type": { + "$ref": "1889" + }, + "value": "67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "460" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1893", + "kind": "model", + "type": { + "$ref": "460" + }, + "value": { + "list": { + "$id": "1894", + "kind": "array", + "type": { + "$ref": "462" + }, + "value": [ + { + "$id": "1895", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "typeName": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", + "entityGuid": "67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd" + } + } + ] + }, + "startIndex": { + "$id": "1896", + "kind": "number", + "type": { + "$ref": "470" + }, + "value": 0 + }, + "pageSize": { + "$id": "1897", + "kind": "number", + "type": { + "$ref": "465" + }, + "value": 1 + }, + "totalCount": { + "$id": "1898", + "kind": "number", + "type": { + "$ref": "472" + }, + "value": 1 + }, + "sortType": { + "$id": "1899", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "NONE" + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1900", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1901", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1902", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "460" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.getClassifications" + }, + { + "$id": "1903", + "kind": "basic", + "name": "addClassifications", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Add classifications to an existing entity represented by a GUID.", + "operation": { + "$id": "1904", + "name": "addClassifications", + "resourceName": "Entity", + "doc": "Add classifications to an existing entity represented by a GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "1905", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1906", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.guid" + }, + { + "$id": "1907", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "115" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.contentType" + }, + { + "$id": "1908", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of classifications to be added.", + "type": { + "$ref": "336" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/classifications", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications", + "decorators": [], + "examples": [ + { + "$id": "1909", + "kind": "http", + "name": "Entity_AddClassifications", + "description": "Entity_AddClassifications", + "filePath": "2023-09-01/Entity_AddClassifications.json", + "parameters": [ + { + "parameter": { + "$ref": "1905" + }, + "value": { + "$id": "1910", + "kind": "string", + "type": { + "$ref": "1906" + }, + "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" + } + }, + { + "parameter": { + "$ref": "1908" + }, + "value": { + "$id": "1911", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [ + { + "$id": "1912", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "1913", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" + }, + "entityGuid": { + "$id": "1914", + "kind": "string", + "type": { + "$ref": "344" + }, + "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" + } + } + }, + { + "$id": "1915", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "1916", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" + }, + "entityGuid": { + "$id": "1917", + "kind": "string", + "type": { + "$ref": "344" + }, + "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1918", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1919", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1920", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of classifications to be added.", + "type": { + "$ref": "336" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1921", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addClassifications" + }, + { + "$id": "1922", + "kind": "basic", + "name": "updateClassifications", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update classifications to an existing entity represented by a guid.", + "operation": { + "$id": "1923", + "name": "updateClassifications", + "resourceName": "Entity", + "doc": "Update classifications to an existing entity represented by a guid.", + "accessibility": "public", + "parameters": [ + { + "$id": "1924", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1925", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.guid" + }, + { + "$id": "1926", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "117" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.contentType" + }, + { + "$id": "1927", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of classifications to be updated.", + "type": { + "$ref": "336" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/classifications", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications", + "decorators": [], + "examples": [ + { + "$id": "1928", + "kind": "http", + "name": "Entity_UpdateClassifications", + "description": "Entity_UpdateClassifications", + "filePath": "2023-09-01/Entity_UpdateClassifications.json", + "parameters": [ + { + "parameter": { + "$ref": "1924" + }, + "value": { + "$id": "1929", + "kind": "string", + "type": { + "$ref": "1925" + }, + "value": "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24" + } + }, + { + "parameter": { + "$ref": "1927" + }, + "value": { + "$id": "1930", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [ + { + "$id": "1931", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "1932", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" + }, + "entityGuid": { + "$id": "1933", + "kind": "string", + "type": { + "$ref": "344" + }, + "value": "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24" + } + } + }, + { + "$id": "1934", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "1935", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.US_BANK_ACCOUNT_NUMBER" + }, + "entityGuid": { + "$id": "1936", + "kind": "string", + "type": { + "$ref": "344" + }, + "value": "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24" + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1937", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "1938", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1939", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of classifications to be updated.", + "type": { + "$ref": "336" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1940", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications" + }, + { + "$id": "1941", + "kind": "basic", + "name": "getByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get complete definition of an entity given its type and unique attribute.\n\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following format:\nattr:\\=.\n\nNOTE: The\nattrName and attrValue should be unique across entities, eg.\nqualifiedName.\n\nThe REST request would look something like this:\nGET\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "1942", + "name": "getByUniqueAttribute", + "resourceName": "Entity", + "doc": "Get complete definition of an entity given its type and unique attribute.\n\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following format:\nattr:\\=.\n\nNOTE: The\nattrName and attrValue should be unique across entities, eg.\nqualifiedName.\n\nThe REST request would look something like this:\nGET\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "1943", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "1944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.typeName" + }, + { + "$id": "1945", + "kind": "query", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "1946", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.minExtInfo", + "readOnly": false + }, + { + "$id": "1947", + "kind": "query", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "1948", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.ignoreRelationships", + "readOnly": false + }, + { + "$id": "1949", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "1950", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "1951", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "119" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "321" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "1952", + "kind": "http", + "name": "Entity_GetByUniqueAttributes", + "description": "Entity_GetByUniqueAttributes", + "filePath": "2023-09-01/Entity_GetByUniqueAttributes.json", + "parameters": [ + { + "parameter": { + "$ref": "1943" + }, + "value": { + "$id": "1953", + "kind": "string", + "type": { + "$ref": "1944" + }, + "value": "azure_storage_account" + } + }, + { + "parameter": { + "$ref": "1949" + }, + "value": { + "$id": "1954", + "kind": "string", + "type": { + "$ref": "1950" + }, + "value": "https://exampleaccount.core.windows.net" + } + }, + { + "parameter": { + "$ref": "1945" + }, + "value": { + "$id": "1955", + "kind": "boolean", + "type": { + "$ref": "1946" + }, + "value": true + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "321" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "1956", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "entity": { + "$id": "1957", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "createTime": { + "$id": "1958", + "kind": "number", + "type": { + "$ref": "358" + }, + "value": 1605703532110 + }, + "createdBy": { + "$id": "1959", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" + }, + "guid": { + "$id": "1960", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "e0ba3f20-f3b5-4d52-b769-ed35a02df60a" + }, + "relationshipAttributes": { + "$id": "1961", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "services": { + "$id": "1962", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "meanings": { + "$id": "1963", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + } + } + }, + "status": { + "$id": "1964", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "updateTime": { + "$id": "1965", + "kind": "number", + "type": { + "$ref": "405" + }, + "value": 1605703532110 + }, + "updatedBy": { + "$id": "1966", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" + }, + "lastModifiedTS": { + "$id": "1967", + "kind": "string", + "type": { + "$ref": "333" + }, + "value": "2" + }, + "version": { + "$id": "1968", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + }, + "attributes": { + "$id": "1969", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "1970", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "qualifiedName": { + "$id": "1971", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "createTime": { + "$id": "1972", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "name": { + "$id": "1973", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleNewName" + } + } + }, + "typeName": { + "$id": "1974", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + } + } + }, + "referredEntities": { + "$id": "1975", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "1976", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "1977", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1978", + "kind": "method", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "1979", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.minExtInfo", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1980", + "kind": "method", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "1981", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.ignoreRelationships", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1982", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "1983", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1984", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "321" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute" + }, + { + "$id": "1985", + "kind": "basic", + "name": "updateByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update entity partially - Allow a subset of attributes to be updated on an\nentity which is identified by its type and unique attribute eg:\nReferenceable.qualifiedName. Null updates are not possible.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\n\nattr:=.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nPUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "1986", + "name": "updateByUniqueAttribute", + "resourceName": "Entity", + "doc": "Update entity partially - Allow a subset of attributes to be updated on an\nentity which is identified by its type and unique attribute eg:\nReferenceable.qualifiedName. Null updates are not possible.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\n\nattr:=.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nPUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "1987", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "1988", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.typeName" + }, + { + "$id": "1989", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "1990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "1991", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "121" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.contentType" + }, + { + "$id": "1992", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "123" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.accept" + }, + { + "$id": "1993", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "321" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "1994", + "kind": "http", + "name": "Entity_PartialUpdateByUniqueAttributes", + "description": "Entity_PartialUpdateByUniqueAttributes", + "filePath": "2023-09-01/Entity_PartialUpdateByUniqueAttributes.json", + "parameters": [ + { + "parameter": { + "$ref": "1987" + }, + "value": { + "$id": "1995", + "kind": "string", + "type": { + "$ref": "1988" + }, + "value": "azure_storage_account" + } + }, + { + "parameter": { + "$ref": "1989" + }, + "value": { + "$id": "1996", + "kind": "string", + "type": { + "$ref": "1990" + }, + "value": "https://exampleaccount.core.windows.net" + } + }, + { + "parameter": { + "$ref": "1993" + }, + "value": { + "$id": "1997", + "kind": "model", + "type": { + "$ref": "321" + }, + "value": { + "entity": { + "$id": "1998", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "createTime": { + "$id": "1999", + "kind": "number", + "type": { + "$ref": "358" + }, + "value": 1605766397985 + }, + "createdBy": { + "$id": "2000", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" + }, + "guid": { + "$id": "2001", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "dc507ccf-0c57-4165-9327-f37b0d13fda0" + }, + "relationshipAttributes": { + "$id": "2002", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "services": { + "$id": "2003", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "meanings": { + "$id": "2004", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + } + } + }, + "status": { + "$id": "2005", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "updateTime": { + "$id": "2006", + "kind": "number", + "type": { + "$ref": "405" + }, + "value": 1605766397985 + }, + "updatedBy": { + "$id": "2007", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" + }, + "lastModifiedTS": { + "$id": "2008", + "kind": "string", + "type": { + "$ref": "333" + }, + "value": "1" + }, + "version": { + "$id": "2009", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + }, + "attributes": { + "$id": "2010", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "2011", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "qualifiedName": { + "$id": "2012", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "createTime": { + "$id": "2013", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "name": { + "$id": "2014", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleNewName" + } + } + }, + "typeName": { + "$id": "2015", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "azure_storage_account" + } + } + }, + "referredEntities": { + "$id": "2016", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2017", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "guidAssignments": { + "$id": "2018", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": {} + }, + "mutatedEntities": { + "$id": "2019", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "PARTIAL_UPDATE": { + "$id": "2020", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "2021", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "guid": { + "$id": "2022", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "dc507ccf-0c57-4165-9327-f37b0d13fda0" + }, + "lastModifiedTS": { + "$id": "2023", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "2" + }, + "attributes": { + "$id": "2024", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "2025", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + }, + "typeName": { + "$id": "2026", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + } + } + } + ] + } + } + }, + "partialUpdatedEntities": { + "$id": "2027", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "2028", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "guid": { + "$id": "2029", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "dc507ccf-0c57-4165-9327-f37b0d13fda0" + }, + "lastModifiedTS": { + "$id": "2030", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "2" + }, + "attributes": { + "$id": "2031", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "2032", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + }, + "typeName": { + "$id": "2033", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2034", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2035", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2036", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2037", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2038", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "321" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2039", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "121" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2040", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute" + }, + { + "$id": "2041", + "kind": "basic", + "name": "deleteByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete an entity identified by its type and unique attributes.\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\nattr:\\=\\.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nDELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "2042", + "name": "deleteByUniqueAttribute", + "resourceName": "Entity", + "doc": "Delete an entity identified by its type and unique attributes.\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\nattr:\\=\\.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nDELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "2043", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2044", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.typeName" + }, + { + "$id": "2045", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2046", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "2047", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "125" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "2048", + "kind": "http", + "name": "Entity_DeleteByUniqueAttribute", + "description": "Entity_DeleteByUniqueAttribute", + "filePath": "2023-09-01/Entity_DeleteByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2043" + }, + "value": { + "$id": "2049", + "kind": "string", + "type": { + "$ref": "2044" + }, + "value": "azure_storage_account" + } + }, + { + "parameter": { + "$ref": "2045" + }, + "value": { + "$id": "2050", + "kind": "string", + "type": { + "$ref": "2046" + }, + "value": "https://exampleaccount.core.windows.net" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2051", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "2052", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "DELETE": { + "$id": "2053", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "2054", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "classificationNames": { + "$id": "2055", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "displayText": { + "$id": "2056", + "kind": "string", + "type": { + "$ref": "435" + }, + "value": "Example Name" + }, + "guid": { + "$id": "2057", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "e0ba3f20-f3b5-4d52-b769-ed35a02df60a" + }, + "meaningNames": { + "$id": "2058", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "meanings": { + "$id": "2059", + "kind": "array", + "type": { + "$ref": "377" + }, + "value": [] + }, + "status": { + "$id": "2060", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "lastModifiedTS": { + "$id": "2061", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "attributes": { + "$id": "2062", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "2063", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "createTime": { + "$id": "2064", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "2065", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "2066", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleName" + } + } + }, + "typeName": { + "$id": "2067", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + } + } + } + ] + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2068", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2069", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2070", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2071", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2072", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute" + }, + { + "$id": "2073", + "kind": "basic", + "name": "removeClassificationByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a given classification from an entity identified by its type and unique\nattributes.", + "operation": { + "$id": "2074", + "name": "removeClassificationByUniqueAttribute", + "resourceName": "Entity", + "doc": "Delete a given classification from an entity identified by its type and unique\nattributes.", + "accessibility": "public", + "parameters": [ + { + "$id": "2075", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2076", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.typeName" + }, + { + "$id": "2077", + "kind": "path", + "name": "classificationName", + "serializedName": "classificationName", + "doc": "The name of the classification.", + "type": { + "$id": "2078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.classificationName" + }, + { + "$id": "2079", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2080", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.attribute", + "readOnly": false + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "2081", + "kind": "http", + "name": "Entity_RemoveClassificationByUniqueAttribute", + "description": "Entity_RemoveClassificationByUniqueAttribute", + "filePath": "2023-09-01/Entity_RemoveClassificationByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2075" + }, + "value": { + "$id": "2082", + "kind": "string", + "type": { + "$ref": "2076" + }, + "value": "column" + } + }, + { + "parameter": { + "$ref": "2077" + }, + "value": { + "$id": "2083", + "kind": "string", + "type": { + "$ref": "2078" + }, + "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" + } + }, + { + "parameter": { + "$ref": "2079" + }, + "value": { + "$id": "2084", + "kind": "string", + "type": { + "$ref": "2080" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplecontainer/exampledata.csv" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2085", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2086", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2087", + "kind": "method", + "name": "classificationName", + "serializedName": "classificationName", + "doc": "The name of the classification.", + "type": { + "$id": "2088", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.classificationName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2089", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2090", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute" + }, + { + "$id": "2091", + "kind": "basic", + "name": "addClassificationsByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Add classification to the entity identified by its type and unique attributes.", + "operation": { + "$id": "2092", + "name": "addClassificationsByUniqueAttribute", + "resourceName": "Entity", + "doc": "Add classification to the entity identified by its type and unique attributes.", + "accessibility": "public", + "parameters": [ + { + "$id": "2093", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2094", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.typeName" + }, + { + "$id": "2095", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2096", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "2097", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "127" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.contentType" + }, + { + "$id": "2098", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of classification to be added.", + "type": { + "$ref": "336" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "2099", + "kind": "http", + "name": "Entity_AddClassificationsByUniqueAttribute", + "description": "Entity_AddClassificationsByUniqueAttribute", + "filePath": "2023-09-01/Entity_AddClassificationsByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2093" + }, + "value": { + "$id": "2100", + "kind": "string", + "type": { + "$ref": "2094" + }, + "value": "azure_storage_account" + } + }, + { + "parameter": { + "$ref": "2095" + }, + "value": { + "$id": "2101", + "kind": "string", + "type": { + "$ref": "2096" + }, + "value": "https://exampleaccount.core.windows.net" + } + }, + { + "parameter": { + "$ref": "2098" + }, + "value": { + "$id": "2102", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [ + { + "$id": "2103", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "2104", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" + } + } + }, + { + "$id": "2105", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "2106", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2107", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2109", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2111", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of classification to be added.", + "type": { + "$ref": "336" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2112", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "127" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute" + }, + { + "$id": "2113", + "kind": "basic", + "name": "updateClassificationsUniqueByAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update classification on an entity identified by its type and unique attributes.", + "operation": { + "$id": "2114", + "name": "updateClassificationsUniqueByAttribute", + "resourceName": "Entity", + "doc": "Update classification on an entity identified by its type and unique attributes.", + "accessibility": "public", + "parameters": [ + { + "$id": "2115", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.typeName" + }, + { + "$id": "2117", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.attribute", + "readOnly": false + }, + { + "$id": "2119", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.contentType" + }, + { + "$id": "2120", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of classification to be updated.", + "type": { + "$ref": "336" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute", + "decorators": [], + "examples": [ + { + "$id": "2121", + "kind": "http", + "name": "Entity_UpdateClassificationsByUniqueAttribute", + "description": "Entity_UpdateClassificationsByUniqueAttribute", + "filePath": "2023-09-01/Entity_UpdateClassificationsByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2115" + }, + "value": { + "$id": "2122", + "kind": "string", + "type": { + "$ref": "2116" + }, + "value": "azure_storage_account" + } + }, + { + "parameter": { + "$ref": "2117" + }, + "value": { + "$id": "2123", + "kind": "string", + "type": { + "$ref": "2118" + }, + "value": "https://exampleaccount.core.windows.net" + } + }, + { + "parameter": { + "$ref": "2120" + }, + "value": { + "$id": "2124", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [ + { + "$id": "2125", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "2126", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" + } + } + }, + { + "$id": "2127", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "2128", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2129", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2131", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2133", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of classification to be updated.", + "type": { + "$ref": "336" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2134", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute" + }, + { + "$id": "2135", + "kind": "basic", + "name": "batchSetClassifications", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Set classifications on entities in bulk.", + "operation": { + "$id": "2136", + "name": "batchSetClassifications", + "resourceName": "Entity", + "doc": "Set classifications on entities in bulk.", + "accessibility": "public", + "parameters": [ + { + "$id": "2137", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "131" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.contentType" + }, + { + "$id": "2138", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "133" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.accept" + }, + { + "$id": "2139", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "473" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "374" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/bulk/setClassifications", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications", + "decorators": [], + "examples": [ + { + "$id": "2140", + "kind": "http", + "name": "Entity_BulkSetClassifications", + "description": "Entity_BulkSetClassifications", + "filePath": "2023-09-01/Entity_BulkSetClassifications.json", + "parameters": [ + { + "parameter": { + "$ref": "2139" + }, + "value": { + "$id": "2141", + "kind": "model", + "type": { + "$ref": "473" + }, + "value": { + "guidHeaderMap": { + "$id": "2142", + "kind": "dict", + "type": { + "$ref": "475" + }, + "value": { + "9fb74c11-ac48-4650-95bc-760665c5bd92": { + "$id": "2143", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "attributes": { + "$id": "2144", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "2145", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount1.core.windows.net" + } + } + }, + "typeName": { + "$id": "2146", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "classifications": { + "$id": "2147", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [ + { + "$id": "2148", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "2149", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + } + } + ] + } + } + }, + "7fcc43ab-55ea-45d4-9971-ce0443cb10bb": { + "$id": "2150", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "attributes": { + "$id": "2151", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "2152", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount2.core.windows.net" + } + } + }, + "typeName": { + "$id": "2153", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "classifications": { + "$id": "2154", + "kind": "array", + "type": { + "$ref": "336" + }, + "value": [ + { + "$id": "2155", + "kind": "model", + "type": { + "$ref": "337" + }, + "value": { + "typeName": { + "$id": "2156", + "kind": "string", + "type": { + "$ref": "340" + }, + "value": "MICROSOFT.PERSONAL.IPADDRESS" + } + } + } + ] + } + } + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "374" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2157", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2158", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Add:9fb74c11-ac48-4650-95bc-760665c5bd92:azure_storage_account:qualifiedName -> MICROSOFT.PERSONAL.EMAIL:(Done)" + }, + { + "$id": "2159", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Update:7fcc43ab-55ea-45d4-9971-ce0443cb10bb:azure_storage_account:qualifiedName -> MICROSOFT.PERSONAL.IPADDRESS:(Done)" + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2160", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "473" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2161", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2162", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "374" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications" + }, + { + "$id": "2163", + "kind": "basic", + "name": "batchGetByUniqueAttributes", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Bulk API to retrieve list of entities identified by its unique attributes.\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following\nformat\n\ntypeName=\\&attr_1:\\=\\&attr_2:\\=\\&attr_3:\\=\\\n\nNOTE:\nThe attrName should be an unique attribute for the given entity-type.\nThe REST\nrequest would look something like this\n\nGET\n/v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1\n\nNote:\nat least one unique attribute must be provided.", + "operation": { + "$id": "2164", + "name": "batchGetByUniqueAttributes", + "resourceName": "Entity", + "doc": "Bulk API to retrieve list of entities identified by its unique attributes.\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following\nformat\n\ntypeName=\\&attr_1:\\=\\&attr_2:\\=\\&attr_3:\\=\\\n\nNOTE:\nThe attrName should be an unique attribute for the given entity-type.\nThe REST\nrequest would look something like this\n\nGET\n/v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1\n\nNote:\nat least one unique attribute must be provided.", + "accessibility": "public", + "parameters": [ + { + "$id": "2165", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.typeName" + }, + { + "$id": "2167", + "kind": "query", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "2168", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.minExtInfo", + "readOnly": false + }, + { + "$id": "2169", + "kind": "query", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "2170", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.ignoreRelationships", + "readOnly": false + }, + { + "$id": "2171", + "kind": "query", + "name": "attr_N:qualifiedName", + "serializedName": "attr_N:qualifiedName", + "doc": "Qualified name of an entity. E.g. to find 2 entities you can set\nattrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an\nexample. qualifiedName can be changed to other unique attributes)", + "type": { + "$id": "2172", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.attr_N:qualifiedName", + "readOnly": false + }, + { + "$id": "2173", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "135" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes", + "decorators": [], + "examples": [ + { + "$id": "2174", + "kind": "http", + "name": "Entity_ListByUniqueAttributes", + "description": "Entity_ListByUniqueAttributes", + "filePath": "2023-09-01/Entity_ListByUniqueAttributes.json", + "parameters": [ + { + "parameter": { + "$ref": "2165" + }, + "value": { + "$id": "2175", + "kind": "string", + "type": { + "$ref": "2166" + }, + "value": "azure_storage_account" + } + }, + { + "parameter": { + "$ref": "2171" + }, + "value": { + "$id": "2176", + "kind": "string", + "type": { + "$ref": "2172" + }, + "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1" + } + }, + { + "parameter": { + "$ref": "2167" + }, + "value": { + "$id": "2177", + "kind": "boolean", + "type": { + "$ref": "2168" + }, + "value": true + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2178", + "kind": "model", + "type": { + "$ref": "453" + }, + "value": { + "referredEntities": { + "$id": "2179", + "kind": "dict", + "type": { + "$ref": "323" + }, + "value": {} + }, + "entities": { + "$id": "2180", + "kind": "array", + "type": { + "$ref": "456" + }, + "value": [ + { + "$id": "2181", + "kind": "model", + "type": { + "$ref": "325" + }, + "value": { + "typeName": { + "$id": "2182", + "kind": "string", + "type": { + "$ref": "331" + }, + "value": "column" + }, + "attributes": { + "$id": "2183", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "2184", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "qualifiedName": { + "$id": "2185", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1" + }, + "name": { + "$id": "2186", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleName1" + }, + "description": { + "$id": "2187", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "type": { + "$id": "2188", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "string" + } + } + }, + "guid": { + "$id": "2189", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" + }, + "status": { + "$id": "2190", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "2191", + "kind": "string", + "type": { + "$ref": "360" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "2192", + "kind": "string", + "type": { + "$ref": "407" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "2193", + "kind": "number", + "type": { + "$ref": "358" + }, + "value": 1553072455110 + }, + "updateTime": { + "$id": "2194", + "kind": "number", + "type": { + "$ref": "405" + }, + "value": 1553072455110 + }, + "version": { + "$id": "2195", + "kind": "number", + "type": { + "$ref": "409" + }, + "value": 0 + }, + "relationshipAttributes": { + "$id": "2196", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "schema": { + "$id": "2197", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "inputToProcesses": { + "$id": "2198", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "composeSchema": { + "$id": "2199", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": { + "guid": "cc6652ae-dc6d-90c9-1899-252eabc0e929", + "typeName": "tabular_schema", + "displayText": "tabular_schema", + "relationshipGuid": "400fd8e4-97bd-45eb-a21c-880b4094ce5b", + "relationshipStatus": "ACTIVE", + "relationshipAttributes": { + "typeName": "tabular_schema_columns" + } + } + }, + "meanings": { + "$id": "2200", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "outputFromProcesses": { + "$id": "2201", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [] + }, + "tabular_schema": { + "$id": "2202", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2203", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2205", + "kind": "method", + "name": "minExtInfo", + "serializedName": "minExtInfo", + "doc": "Whether to return minimal information for referred entities.", + "type": { + "$id": "2206", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.minExtInfo", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2207", + "kind": "method", + "name": "ignoreRelationships", + "serializedName": "ignoreRelationships", + "doc": "Whether to ignore relationship attributes.", + "type": { + "$id": "2208", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.ignoreRelationships", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2209", + "kind": "method", + "name": "attr_N:qualifiedName", + "serializedName": "attr_N:qualifiedName", + "doc": "Qualified name of an entity. E.g. to find 2 entities you can set\nattrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an\nexample. qualifiedName can be changed to other unique attributes)", + "type": { + "$id": "2210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.attr_N:qualifiedName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2211", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "453" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes" + }, + { + "$id": "2212", + "kind": "basic", + "name": "getHeader", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get entity header given its GUID.", + "operation": { + "$id": "2213", + "name": "getHeader", + "resourceName": "Entity", + "doc": "Get entity header given its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "2214", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.getHeader.guid" + }, + { + "$id": "2216", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "137" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getHeader.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "426" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/header", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.getHeader", + "decorators": [], + "examples": [ + { + "$id": "2217", + "kind": "http", + "name": "Entity_GetHeader", + "description": "Entity_GetHeader", + "filePath": "2023-09-01/Entity_GetHeader.json", + "parameters": [ + { + "parameter": { + "$ref": "2214" + }, + "value": { + "$id": "2218", + "kind": "string", + "type": { + "$ref": "2215" + }, + "value": "9fb74c11-ac48-4650-95bc-760665c5bd92" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "426" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2219", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "classificationNames": { + "$id": "2220", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2221", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + ] + }, + "displayText": { + "$id": "2222", + "kind": "string", + "type": { + "$ref": "435" + }, + "value": "Example Storage Account" + }, + "guid": { + "$id": "2223", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "9fb74c11-ac48-4650-95bc-760665c5bd92" + }, + "meaningNames": { + "$id": "2224", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "meanings": { + "$id": "2225", + "kind": "array", + "type": { + "$ref": "377" + }, + "value": [] + }, + "status": { + "$id": "2226", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "lastModifiedTS": { + "$id": "2227", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "3" + }, + "attributes": { + "$id": "2228", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "2229", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleOwner" + }, + "createTime": { + "$id": "2230", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "2231", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://exampleaccount.core.windows.net" + }, + "name": { + "$id": "2232", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleStorageAccount" + } + } + }, + "typeName": { + "$id": "2233", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2234", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.getHeader.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2236", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.getHeader.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "426" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.getHeader" + }, + { + "$id": "2237", + "kind": "basic", + "name": "removeBusinessMetadata", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Remove business metadata from an entity.", + "operation": { + "$id": "2238", + "name": "removeBusinessMetadata", + "resourceName": "Entity", + "doc": "Remove business metadata from an entity.", + "accessibility": "public", + "parameters": [ + { + "$id": "2239", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.guid" + }, + { + "$id": "2241", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "139" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.contentType" + }, + { + "$id": "2242", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Business metadata payload", + "type": { + "$ref": "638" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/businessmetadata", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata", + "decorators": [], + "examples": [ + { + "$id": "2243", + "kind": "http", + "name": "Entity_RemoveBusinessMetadata", + "description": "Entity_RemoveBusinessMetadata", + "filePath": "2023-09-01/Entity_RemoveBusinessMetadata.json", + "parameters": [ + { + "parameter": { + "$ref": "2239" + }, + "value": { + "$id": "2244", + "kind": "string", + "type": { + "$ref": "2240" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2242" + }, + "value": { + "$id": "2245", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": { + "myBizMetadata1": { + "$id": "2246", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "bizAttr1": { + "$id": "2247", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "myBizMetaData1.bizAttr1" + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2248", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2250", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Business metadata payload", + "type": { + "$ref": "638" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2251", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "139" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata" + }, + { + "$id": "2252", + "kind": "basic", + "name": "addOrUpdateBusinessMetadata", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Add business metadata to an entity.", + "operation": { + "$id": "2253", + "name": "addOrUpdateBusinessMetadata", + "resourceName": "Entity", + "doc": "Add business metadata to an entity.", + "accessibility": "public", + "parameters": [ + { + "$id": "2254", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2255", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.guid" + }, + { + "$id": "2256", + "kind": "query", + "name": "overwrite", + "serializedName": "isOverwrite", + "doc": "Whether to overwrite the existing business metadata on the entity or not,\ndefault is false.", + "type": { + "$id": "2257", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.overwrite", + "readOnly": false + }, + { + "$id": "2258", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "141" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.contentType" + }, + { + "$id": "2259", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "BusinessMetadata payload", + "type": { + "$ref": "638" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/businessmetadata", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata", + "decorators": [], + "examples": [ + { + "$id": "2260", + "kind": "http", + "name": "Entity_AddOrUpdate_BusinessMetadata", + "description": "Entity_AddOrUpdate_BusinessMetadata", + "filePath": "2023-09-01/Entity_AddOrUpdate_BusinessMetadata.json", + "parameters": [ + { + "parameter": { + "$ref": "2254" + }, + "value": { + "$id": "2261", + "kind": "string", + "type": { + "$ref": "2255" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2259" + }, + "value": { + "$id": "2262", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": { + "myBizMetadata1": { + "$id": "2263", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "bizAttr1": { + "$id": "2264", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "myBizMetaData1.bizAttr1" + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2265", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2267", + "kind": "method", + "name": "overwrite", + "serializedName": "isOverwrite", + "doc": "Whether to overwrite the existing business metadata on the entity or not,\ndefault is false.", + "type": { + "$id": "2268", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.overwrite", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2269", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "BusinessMetadata payload", + "type": { + "$ref": "638" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2270", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "141" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata" + }, + { + "$id": "2271", + "kind": "basic", + "name": "removeBusinessMetadataAttributes", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete business metadata attributes from an entity.", + "operation": { + "$id": "2272", + "name": "removeBusinessMetadataAttributes", + "resourceName": "Entity", + "doc": "Delete business metadata attributes from an entity.", + "accessibility": "public", + "parameters": [ + { + "$id": "2273", + "kind": "path", + "name": "businessMetadataName", + "serializedName": "businessMetadataName", + "doc": "BusinessMetadata name", + "type": { + "$id": "2274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.businessMetadataName" + }, + { + "$id": "2275", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.guid" + }, + { + "$id": "2277", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "143" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.contentType" + }, + { + "$id": "2278", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Business metadata attribute payload", + "type": { + "$ref": "327" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes", + "decorators": [], + "examples": [ + { + "$id": "2279", + "kind": "http", + "name": "Entity_RemoveBusinessAttribute", + "description": "Entity_RemoveBusinessAttribute", + "filePath": "2023-09-01/Entity_RemoveBusinessAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2275" + }, + "value": { + "$id": "2280", + "kind": "string", + "type": { + "$ref": "2276" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2273" + }, + "value": { + "$id": "2281", + "kind": "string", + "type": { + "$ref": "2274" + }, + "value": "myBizMetaData1" + } + }, + { + "parameter": { + "$ref": "2278" + }, + "value": { + "$id": "2282", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "bizAttr1": { + "$id": "2283", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "bizAttr1" + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2284", + "kind": "method", + "name": "businessMetadataName", + "serializedName": "businessMetadataName", + "doc": "BusinessMetadata name", + "type": { + "$id": "2285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.businessMetadataName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2286", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2288", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Business metadata attribute payload", + "type": { + "$ref": "327" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2289", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "143" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes" + }, + { + "$id": "2290", + "kind": "basic", + "name": "addOrUpdateBusinessMetadataAttributes", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Add or update business metadata attributes.", + "operation": { + "$id": "2291", + "name": "addOrUpdateBusinessMetadataAttributes", + "resourceName": "Entity", + "doc": "Add or update business metadata attributes.", + "accessibility": "public", + "parameters": [ + { + "$id": "2292", + "kind": "path", + "name": "businessMetadataName", + "serializedName": "businessMetadataName", + "doc": "BusinessMetadata name", + "type": { + "$id": "2293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.businessMetadataName" + }, + { + "$id": "2294", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2295", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.guid" + }, + { + "$id": "2296", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.contentType" + }, + { + "$id": "2297", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Business metadata attribute payload", + "type": { + "$ref": "327" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes", + "decorators": [], + "examples": [ + { + "$id": "2298", + "kind": "http", + "name": "Entity_AddOrUpdate_BusinessAttribute", + "description": "Entity_AddOrUpdate_BusinessAttribute", + "filePath": "2023-09-01/Entity_AddOrUpdate_BusinessAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2294" + }, + "value": { + "$id": "2299", + "kind": "string", + "type": { + "$ref": "2295" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2292" + }, + "value": { + "$id": "2300", + "kind": "string", + "type": { + "$ref": "2293" + }, + "value": "myBizMetaData1" + } + }, + { + "parameter": { + "$ref": "2297" + }, + "value": { + "$id": "2301", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "bizAttr1": { + "$id": "2302", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "bizAttr1" + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2303", + "kind": "method", + "name": "businessMetadataName", + "serializedName": "businessMetadataName", + "doc": "BusinessMetadata name", + "type": { + "$id": "2304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.businessMetadataName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2305", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2307", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Business metadata attribute payload", + "type": { + "$ref": "327" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2308", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes" + }, + { + "$id": "2309", + "kind": "basic", + "name": "getBusinessMetadataTemplate", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the sample Template for uploading/creating bulk BusinessMetaData", + "operation": { + "$id": "2310", + "name": "getBusinessMetadataTemplate", + "resourceName": "Entity", + "doc": "Get the sample Template for uploading/creating bulk BusinessMetaData", + "accessibility": "public", + "parameters": [ + { + "$id": "2311", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "147" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "2312", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "149" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/businessmetadata/import/template", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate", + "decorators": [], + "examples": [ + { + "$id": "2313", + "kind": "http", + "name": "Entity_GetSampleBusinessMetadataTemplate", + "description": "Entity_GetSampleBusinessMetadataTemplate", + "filePath": "2023-09-01/Entity_GetSampleBusinessMetadataTemplate.json", + "parameters": [], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2312" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "149" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2314", + "kind": "string", + "type": { + "$ref": "2312" + }, + "value": "EntityType,EntityUniqueAttributeValue,BusinessAttributeName,BusinessAttributeValue,EntityUniqueAttributeName[optional]" + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2315", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "147" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "2312" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate" + }, + { + "$id": "2316", + "kind": "basic", + "name": "importBusinessMetadata", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Upload the file for creating Business Metadata in BULK", + "operation": { + "$id": "2317", + "name": "importBusinessMetadata", + "resourceName": "Entity", + "doc": "Upload the file for creating Business Metadata in BULK", + "accessibility": "public", + "parameters": [ + { + "$id": "2318", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "The content type for the operation. Always multipart/form-data for this operation.", + "type": { + "$ref": "151" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.contentType" + }, + { + "$id": "2319", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "153" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.accept" + }, + { + "$id": "2320", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Multipart body", + "type": { + "$ref": "477" + }, + "isApiVersion": false, + "contentTypes": [ + "multipart/form-data" + ], + "defaultContentType": "multipart/form-data", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "480" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/businessmetadata/import", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata", + "decorators": [], + "examples": [ + { + "$id": "2321", + "kind": "http", + "name": "Entity_ImportBusinessMetadata", + "description": "Entity_ImportBusinessMetadata", + "filePath": "2023-09-01/Entity_ImportBusinessMetadata.json", + "parameters": [], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "480" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2322", + "kind": "model", + "type": { + "$ref": "480" + }, + "value": { + "successImportInfoList": { + "$id": "2323", + "kind": "array", + "type": { + "$ref": "482" + }, + "value": [ + { + "$id": "2324", + "kind": "model", + "type": { + "$ref": "483" + }, + "value": { + "parentObjectName": { + "$id": "2325", + "kind": "string", + "type": { + "$ref": "488" + }, + "value": "24a77100-1b3a-4c37-884e-7d4f591f5a64" + }, + "childObjectName": { + "$id": "2326", + "kind": "string", + "type": { + "$ref": "485" + }, + "value": "{myBizType1={bizAttr1=Awesome Attribute 1}}" + }, + "importStatus": { + "$id": "2327", + "kind": "string", + "type": { + "$ref": "19" + }, + "value": "SUCCESS" + }, + "remarks": { + "$id": "2328", + "kind": "string", + "type": { + "$ref": "490" + }, + "value": "" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2329", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Multipart body", + "type": { + "$ref": "477" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2330", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "The content type for the operation. Always multipart/form-data for this operation.", + "type": { + "$ref": "155" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2331", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "153" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "480" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata" + }, + { + "$id": "2332", + "kind": "basic", + "name": "removeLabels", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete given labels to a given entity.", + "operation": { + "$id": "2333", + "name": "removeLabels", + "resourceName": "Entity", + "doc": "Delete given labels to a given entity.", + "accessibility": "public", + "parameters": [ + { + "$id": "2334", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.guid" + }, + { + "$id": "2336", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "157" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.contentType" + }, + { + "$id": "2337", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be deleted", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/labels", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels", + "decorators": [], + "examples": [ + { + "$id": "2338", + "kind": "http", + "name": "Entity_RemoveLabels", + "description": "Entity_RemoveLabels", + "filePath": "2023-09-01/Entity_RemoveLabels.json", + "parameters": [ + { + "parameter": { + "$ref": "2334" + }, + "value": { + "$id": "2339", + "kind": "string", + "type": { + "$ref": "2335" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2337" + }, + "value": { + "$id": "2340", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2341", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label1" + }, + { + "$id": "2342", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label2" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2343", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2345", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be deleted", + "type": { + "$ref": "374" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2346", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "157" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabels" + }, + { + "$id": "2347", + "kind": "basic", + "name": "setLabels", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Set labels to a given entity.", + "operation": { + "$id": "2348", + "name": "setLabels", + "resourceName": "Entity", + "doc": "Set labels to a given entity.", + "accessibility": "public", + "parameters": [ + { + "$id": "2349", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.setLabels.guid" + }, + { + "$id": "2351", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "159" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.setLabels.contentType" + }, + { + "$id": "2352", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be set to the entity", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.setLabels.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/labels", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.setLabels", + "decorators": [], + "examples": [ + { + "$id": "2353", + "kind": "http", + "name": "Entity_SetLabels", + "description": "Entity_SetLabels", + "filePath": "2023-09-01/Entity_SetLabels.json", + "parameters": [ + { + "parameter": { + "$ref": "2349" + }, + "value": { + "$id": "2354", + "kind": "string", + "type": { + "$ref": "2350" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2352" + }, + "value": { + "$id": "2355", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2356", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label1" + }, + { + "$id": "2357", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label2" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2358", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.setLabels.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2360", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be set to the entity", + "type": { + "$ref": "374" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.setLabels.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2361", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "159" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.setLabels.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.setLabels" + }, + { + "$id": "2362", + "kind": "basic", + "name": "addLabel", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Add given labels to a given entity.", + "operation": { + "$id": "2363", + "name": "addLabel", + "resourceName": "Entity", + "doc": "Add given labels to a given entity.", + "accessibility": "public", + "parameters": [ + { + "$id": "2364", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addLabel.guid" + }, + { + "$id": "2366", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "161" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addLabel.contentType" + }, + { + "$id": "2367", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be added", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addLabel.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/guid/{guid}/labels", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addLabel", + "decorators": [], + "examples": [ + { + "$id": "2368", + "kind": "http", + "name": "Entity_AddLabel", + "description": "Entity_AddLabel", + "filePath": "2023-09-01/Entity_AddLabel.json", + "parameters": [ + { + "parameter": { + "$ref": "2364" + }, + "value": { + "$id": "2369", + "kind": "string", + "type": { + "$ref": "2365" + }, + "value": "02c373fe-2823-4be3-97fa-55180a9faa06" + } + }, + { + "parameter": { + "$ref": "2367" + }, + "value": { + "$id": "2370", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2371", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label1" + }, + { + "$id": "2372", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label2" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2373", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "2374", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addLabel.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2375", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be added", + "type": { + "$ref": "374" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addLabel.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2376", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "161" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addLabel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addLabel" + }, + { + "$id": "2377", + "kind": "basic", + "name": "removeLabelsByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete given labels to a given entity identified by its type and unique\nattribute.\n\nIf labels is null/empty, no labels will be removed.\n\nIf any labels\nin labels set are non-existing labels, they will be ignored, only existing\nlabels will be removed. In addition to the typeName path parameter, attribute\nkey-value pair(s) can be provided in the following format:\nattr:=. NOTE: The attrName and attrValue should be unique\nacross entities, eg. qualifiedName. The REST request would look something like\nthis: DELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "2378", + "name": "removeLabelsByUniqueAttribute", + "resourceName": "Entity", + "doc": "Delete given labels to a given entity identified by its type and unique\nattribute.\n\nIf labels is null/empty, no labels will be removed.\n\nIf any labels\nin labels set are non-existing labels, they will be ignored, only existing\nlabels will be removed. In addition to the typeName path parameter, attribute\nkey-value pair(s) can be provided in the following format:\nattr:=. NOTE: The attrName and attrValue should be unique\nacross entities, eg. qualifiedName. The REST request would look something like\nthis: DELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "2379", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.typeName" + }, + { + "$id": "2381", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "2383", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "163" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.contentType" + }, + { + "$id": "2384", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be deleted", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "2385", + "kind": "http", + "name": "Entity_RemoveLabelsByUniqueAttribute", + "description": "Entity_RemoveLabelsByUniqueAttribute", + "filePath": "2023-09-01/Entity_RemoveLabelsByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2379" + }, + "value": { + "$id": "2386", + "kind": "string", + "type": { + "$ref": "2380" + }, + "value": "Asset" + } + }, + { + "parameter": { + "$ref": "2381" + }, + "value": { + "$id": "2387", + "kind": "string", + "type": { + "$ref": "2382" + }, + "value": "https://asset1" + } + }, + { + "parameter": { + "$ref": "2384" + }, + "value": { + "$id": "2388", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2389", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label1" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2390", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2392", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2394", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be deleted", + "type": { + "$ref": "374" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2395", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "163" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute" + }, + { + "$id": "2396", + "kind": "basic", + "name": "setLabelsByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Set labels to a given entity identified by its type and unique attributes.\n\nIf\nlabels is null/empty, existing labels will all be removed.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: POST\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "2397", + "name": "setLabelsByUniqueAttribute", + "resourceName": "Entity", + "doc": "Set labels to a given entity identified by its type and unique attributes.\n\nIf\nlabels is null/empty, existing labels will all be removed.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: POST\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "2398", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2399", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.typeName" + }, + { + "$id": "2400", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2401", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "2402", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "165" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.contentType" + }, + { + "$id": "2403", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be set", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "2404", + "kind": "http", + "name": "Entity_SetLabelsByUniqueAttribute", + "description": "Entity_SetLabelsByUniqueAttribute", + "filePath": "2023-09-01/Entity_SetLabelsByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2398" + }, + "value": { + "$id": "2405", + "kind": "string", + "type": { + "$ref": "2399" + }, + "value": "Asset" + } + }, + { + "parameter": { + "$ref": "2400" + }, + "value": { + "$id": "2406", + "kind": "string", + "type": { + "$ref": "2401" + }, + "value": "https://asset1" + } + }, + { + "parameter": { + "$ref": "2403" + }, + "value": { + "$id": "2407", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2408", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label1" + }, + { + "$id": "2409", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label2" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2410", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2411", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2412", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2414", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be set", + "type": { + "$ref": "374" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2415", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "165" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute" + }, + { + "$id": "2416", + "kind": "basic", + "name": "addLabelsByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Add given labels to a given entity identified by its type and unique\nattributes.\n\nIf labels is null/empty, no labels will be added.\n\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: PUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "2417", + "name": "addLabelsByUniqueAttribute", + "resourceName": "Entity", + "doc": "Add given labels to a given entity identified by its type and unique\nattributes.\n\nIf labels is null/empty, no labels will be added.\n\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: PUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "2418", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2419", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.typeName" + }, + { + "$id": "2420", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2421", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "2422", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "167" + }, + "isApiVersion": false, + "optional": true, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.contentType" + }, + { + "$id": "2423", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be added", + "type": { + "$ref": "374" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": true, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "2424", + "kind": "http", + "name": "Entity_AddLabelsByUniqueAttribute", + "description": "Entity_AddLabelsByUniqueAttribute", + "filePath": "2023-09-01/Entity_AddLabelsByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "2418" + }, + "value": { + "$id": "2425", + "kind": "string", + "type": { + "$ref": "2419" + }, + "value": "Asset" + } + }, + { + "parameter": { + "$ref": "2420" + }, + "value": { + "$id": "2426", + "kind": "string", + "type": { + "$ref": "2421" + }, + "value": "https://asset1" + } + }, + { + "parameter": { + "$ref": "2423" + }, + "value": { + "$id": "2427", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2428", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "label3" + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2429", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "2430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2431", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "2432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2433", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "set of labels to be added", + "type": { + "$ref": "374" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2434", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "167" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute" + }, + { + "$id": "2435", + "kind": "basic", + "name": "moveEntitiesToCollection", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Move existing entities to the target collection.", + "operation": { + "$id": "2436", + "name": "moveEntitiesToCollection", + "resourceName": "Entity", + "doc": "Move existing entities to the target collection.", + "accessibility": "public", + "parameters": [ + { + "$id": "2437", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2438", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2439", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.apiVersion", + "readOnly": false + }, + { + "$id": "2440", + "kind": "query", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection where entities will be moved to.", + "type": { + "$id": "2441", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.collectionId", + "readOnly": false + }, + { + "$id": "2442", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "169" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.contentType" + }, + { + "$id": "2443", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "171" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.accept" + }, + { + "$id": "2444", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "492" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/entity/moveTo", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection", + "decorators": [], + "examples": [ + { + "$id": "2445", + "kind": "http", + "name": "Entity_MoveEntitiesToCollection", + "description": "Entity_MoveEntitiesToCollection", + "filePath": "2023-09-01/Entity_MoveEntitiesToCollection.json", + "parameters": [ + { + "parameter": { + "$ref": "2440" + }, + "value": { + "$id": "2446", + "kind": "string", + "type": { + "$ref": "2441" + }, + "value": "ExampleNewCollection" + } + }, + { + "parameter": { + "$ref": "2437" + }, + "value": { + "$id": "2447", + "kind": "string", + "type": { + "$ref": "2438" + }, + "value": "2023-09-01" + } + }, + { + "parameter": { + "$ref": "2444" + }, + "value": { + "$id": "2448", + "kind": "model", + "type": { + "$ref": "492" + }, + "value": { + "entityGuids": { + "$id": "2449", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "2450", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" + }, + { + "$id": "2451", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "420" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2452", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "mutatedEntities": { + "$id": "2453", + "kind": "dict", + "type": { + "$ref": "423" + }, + "value": { + "UPDATE": { + "$id": "2454", + "kind": "array", + "type": { + "$ref": "425" + }, + "value": [ + { + "$id": "2455", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "2456", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "2457", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "2458", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount" + } + } + }, + "lastModifiedTS": { + "$id": "2459", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "3" + }, + "guid": { + "$id": "2460", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + }, + "status": { + "$id": "2461", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + }, + { + "$id": "2462", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "2463", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_storage_account" + }, + "attributes": { + "$id": "2464", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "qualifiedName": { + "$id": "2465", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "exampleaccount2" + } + } + }, + "lastModifiedTS": { + "$id": "2466", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "2" + }, + "guid": { + "$id": "2467", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" + }, + "status": { + "$id": "2468", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + } + } + } + ] + } + } + }, + "guidAssignments": { + "$id": "2469", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "-9514774903018192": { + "$id": "2470", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" + }, + "-9514774903018193": { + "$id": "2471", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2472", + "kind": "method", + "name": "collectionId", + "serializedName": "collectionId", + "doc": "The collection where entities will be moved to.", + "type": { + "$id": "2473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.collectionId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2474", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "492" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2475", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "169" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2476", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "171" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "420" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection" + } + ], + "parameters": [ + { + "$id": "2477", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "2478", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + }, + { + "$ref": "1356" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Entity", + "apiVersions": [ + "2023-09-01" + ], + "parent": { + "$ref": "1353" + } + }, + { + "$id": "2479", + "kind": "client", + "name": "Glossary", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [ + { + "$id": "2480", + "kind": "basic", + "name": "batchGet", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get all glossaries. Recommend using limit/offset to get pagination result.\nRecommend using 'ignoreTermsAndCategories=true' and fetch terms/categories\nseparately using 'GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms'\nand 'GET '/datamap/api/atlas/v2/glossary/{glossaryId}/categories'.", + "operation": { + "$id": "2481", + "name": "batchGet", + "resourceName": "Glossary", + "doc": "Get all glossaries. Recommend using limit/offset to get pagination result.\nRecommend using 'ignoreTermsAndCategories=true' and fetch terms/categories\nseparately using 'GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms'\nand 'GET '/datamap/api/atlas/v2/glossary/{glossaryId}/categories'.", + "accessibility": "public", + "parameters": [ + { + "$id": "2482", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.apiVersion", + "readOnly": false + }, + { + "$id": "2485", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "2486", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.limit", + "readOnly": false + }, + { + "$id": "2487", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "2488", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.offset", + "readOnly": false + }, + { + "$id": "2489", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "2490", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.sort", + "readOnly": false + }, + { + "$id": "2491", + "kind": "query", + "name": "ignoreTermsAndCategories", + "serializedName": "ignoreTermsAndCategories", + "doc": "Whether ignore terms and categories", + "type": { + "$id": "2492", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.ignoreTermsAndCategories", + "readOnly": false + }, + { + "$id": "2493", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "173" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "2494", + "kind": "array", + "name": "ArrayAtlasGlossary", + "valueType": { + "$ref": "494" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet", + "decorators": [], + "examples": [ + { + "$id": "2495", + "kind": "http", + "name": "Glossary_List", + "description": "Glossary_List", + "filePath": "2023-09-01/Glossary_List.json", + "parameters": [ + { + "parameter": { + "$ref": "2485" + }, + "value": { + "$id": "2496", + "kind": "number", + "type": { + "$ref": "2486" + }, + "value": 1 + } + }, + { + "parameter": { + "$ref": "2487" + }, + "value": { + "$id": "2497", + "kind": "number", + "type": { + "$ref": "2488" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "2489" + }, + "value": { + "$id": "2498", + "kind": "string", + "type": { + "$ref": "2490" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2499", + "kind": "array", + "type": { + "$ref": "2494" + }, + "value": [ + { + "$id": "2500", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "guid": { + "$id": "2501", + "kind": "string", + "type": { + "$ref": "496" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "qualifiedName": { + "$id": "2502", + "kind": "string", + "type": { + "$ref": "503" + }, + "value": "Glossary" + }, + "name": { + "$id": "2503", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "2504", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "2505", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "2506", + "kind": "string", + "type": { + "$ref": "507" + }, + "value": "1" + }, + "language": { + "$id": "2507", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "2508", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + }, + "createdBy": { + "$id": "2509", + "kind": "string", + "type": { + "$ref": "511" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "2510", + "kind": "string", + "type": { + "$ref": "515" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "2511", + "kind": "number", + "type": { + "$ref": "509" + }, + "value": 1672892675688 + }, + "updateTime": { + "$id": "2512", + "kind": "number", + "type": { + "$ref": "513" + }, + "value": 1672892675688 + }, + "terms": { + "$id": "2513", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2514", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2515", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2516", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + }, + "displayText": { + "$id": "2517", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "2518", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2519", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "2520", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + }, + "displayText": { + "$id": "2521", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "categories": { + "$id": "2522", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2523", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2524", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "2525", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "2526", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + }, + "displayText": { + "$id": "2527", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + }, + { + "$id": "2528", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2529", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "parentCategoryGuid": { + "$id": "2530", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "2531", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + }, + "displayText": { + "$id": "2532", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory1" + } + } + }, + { + "$id": "2533", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2534", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "2535", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + }, + "displayText": { + "$id": "2536", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory2" + } + } + } + ] + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2537", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "2538", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2539", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "2540", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2541", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "2542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2543", + "kind": "method", + "name": "ignoreTermsAndCategories", + "serializedName": "ignoreTermsAndCategories", + "doc": "Whether ignore terms and categories", + "type": { + "$id": "2544", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.ignoreTermsAndCategories", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2545", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "173" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "2494" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet" + }, + { + "$id": "2546", + "kind": "basic", + "name": "create", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create a glossary.", + "operation": { + "$id": "2547", + "name": "create", + "resourceName": "Glossary", + "doc": "Create a glossary.", + "accessibility": "public", + "parameters": [ + { + "$id": "2548", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "175" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.create.contentType" + }, + { + "$id": "2549", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "177" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.create.accept" + }, + { + "$id": "2550", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "494" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.create.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.create", + "decorators": [], + "examples": [ + { + "$id": "2551", + "kind": "http", + "name": "Glossary_Create", + "description": "Glossary_Create", + "filePath": "2023-09-01/Glossary_Create.json", + "parameters": [ + { + "parameter": { + "$ref": "2550" + }, + "value": { + "$id": "2552", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "name": { + "$id": "2553", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "2554", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "2555", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "language": { + "$id": "2556", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "2557", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2558", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "guid": { + "$id": "2559", + "kind": "string", + "type": { + "$ref": "496" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "qualifiedName": { + "$id": "2560", + "kind": "string", + "type": { + "$ref": "503" + }, + "value": "Glossary" + }, + "name": { + "$id": "2561", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "2562", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "2563", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "2564", + "kind": "string", + "type": { + "$ref": "507" + }, + "value": "1" + }, + "language": { + "$id": "2565", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "2566", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + }, + "createdBy": { + "$id": "2567", + "kind": "string", + "type": { + "$ref": "511" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "2568", + "kind": "string", + "type": { + "$ref": "515" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "2569", + "kind": "number", + "type": { + "$ref": "509" + }, + "value": 1672892675688 + }, + "updateTime": { + "$id": "2570", + "kind": "number", + "type": { + "$ref": "513" + }, + "value": 1672892675688 + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2571", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "494" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.create.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2572", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "175" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.create.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2573", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "177" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.create.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "494" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.create" + }, + { + "$id": "2574", + "kind": "basic", + "name": "createCategories", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create glossary category in bulk.", + "operation": { + "$id": "2575", + "name": "createCategories", + "resourceName": "Glossary", + "doc": "Create glossary category in bulk.", + "accessibility": "public", + "parameters": [ + { + "$id": "2576", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "179" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.contentType" + }, + { + "$id": "2577", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "181" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.accept" + }, + { + "$id": "2578", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of glossary category definitions to be created.", + "type": { + "$id": "2579", + "kind": "array", + "name": "ArrayAtlasGlossaryCategory", + "valueType": { + "$ref": "549" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2579" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/categories", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories", + "decorators": [], + "examples": [ + { + "$id": "2580", + "kind": "http", + "name": "Glossary_CreateCategories", + "description": "Glossary_CreateCategories", + "filePath": "2023-09-01/Glossary_CreateCategories.json", + "parameters": [ + { + "parameter": { + "$ref": "2578" + }, + "value": { + "$id": "2581", + "kind": "array", + "type": { + "$ref": "2579" + }, + "value": [ + { + "$id": "2582", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "name": { + "$id": "2583", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory2" + }, + "anchor": { + "$id": "2584", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2585", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + } + } + }, + { + "$id": "2586", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "name": { + "$id": "2587", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory3" + }, + "anchor": { + "$id": "2588", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2589", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2579" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2590", + "kind": "array", + "type": { + "$ref": "2579" + }, + "value": [ + { + "$id": "2591", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2592", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "qualifiedName": { + "$id": "2593", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory2@Glossary" + }, + "name": { + "$id": "2594", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory2" + }, + "lastModifiedTS": { + "$id": "2595", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "1" + }, + "anchor": { + "$id": "2596", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2597", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2598", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + } + } + } + } + }, + { + "$id": "2599", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2600", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "qualifiedName": { + "$id": "2601", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory3@Glossary" + }, + "name": { + "$id": "2602", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory3" + }, + "lastModifiedTS": { + "$id": "2603", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "1" + }, + "anchor": { + "$id": "2604", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2605", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2606", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + } + } + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2607", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of glossary category definitions to be created.", + "type": { + "$ref": "2579" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2608", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "179" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2609", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "181" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "2579" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createCategories" + }, + { + "$id": "2610", + "kind": "basic", + "name": "createCategory", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create a glossary category.", + "operation": { + "$id": "2611", + "name": "createCategory", + "resourceName": "Glossary", + "doc": "Create a glossary category.", + "accessibility": "public", + "parameters": [ + { + "$id": "2612", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "183" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.contentType" + }, + { + "$id": "2613", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "185" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.accept" + }, + { + "$id": "2614", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "549" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory", + "decorators": [], + "examples": [ + { + "$id": "2615", + "kind": "http", + "name": "Glossary_CreateCategory", + "description": "Glossary_CreateCategory", + "filePath": "2023-09-01/Glossary_CreateCategory.json", + "parameters": [ + { + "parameter": { + "$ref": "2614" + }, + "value": { + "$id": "2616", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "anchor": { + "$id": "2617", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2618", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + }, + "name": { + "$id": "2619", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "terms": { + "$id": "2620", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2621", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2622", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2623", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2624", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "2625", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1@Glossary" + }, + "name": { + "$id": "2626", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "lastModifiedTS": { + "$id": "2627", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "1" + }, + "anchor": { + "$id": "2628", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2629", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2630", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "terms": { + "$id": "2631", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2632", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2633", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2634", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "2635", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2636", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "549" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2637", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "183" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2638", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "185" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "549" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createCategory" + }, + { + "$id": "2639", + "kind": "basic", + "name": "getCategory", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get specific glossary category by its GUID.", + "operation": { + "$id": "2640", + "name": "getCategory", + "resourceName": "Glossary", + "doc": "Get specific glossary category by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "2641", + "kind": "path", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2642", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.categoryId" + }, + { + "$id": "2643", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "187" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category/{categoryId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategory", + "decorators": [], + "examples": [ + { + "$id": "2644", + "kind": "http", + "name": "Glossary_GetCategory", + "description": "Glossary_GetCategory", + "filePath": "2023-09-01/Glossary_GetCategory.json", + "parameters": [ + { + "parameter": { + "$ref": "2641" + }, + "value": { + "$id": "2645", + "kind": "string", + "type": { + "$ref": "2642" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2646", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2647", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "2648", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1.ExampleCategory2@Glossary" + }, + "name": { + "$id": "2649", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "lastModifiedTS": { + "$id": "2650", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "2" + }, + "anchor": { + "$id": "2651", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2652", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2653", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "parentCategory": { + "$id": "2654", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2655", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "2656", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + }, + "childrenCategories": { + "$id": "2657", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2658", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2659", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "2660", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "2661", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + }, + "displayText": { + "$id": "2662", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + } + ] + }, + "terms": { + "$id": "2663", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2664", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2665", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2666", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "2667", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2668", + "kind": "method", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2669", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.categoryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2670", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "187" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "549" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategory" + }, + { + "$id": "2671", + "kind": "basic", + "name": "updateCategory", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update the given glossary category by its GUID.", + "operation": { + "$id": "2672", + "name": "updateCategory", + "resourceName": "Glossary", + "doc": "Update the given glossary category by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "2673", + "kind": "path", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2674", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.categoryId" + }, + { + "$id": "2675", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "189" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.contentType" + }, + { + "$id": "2676", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "191" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.accept" + }, + { + "$id": "2677", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "549" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category/{categoryId}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory", + "decorators": [], + "examples": [ + { + "$id": "2678", + "kind": "http", + "name": "Glossary_UpdateCategory", + "description": "Glossary_UpdateCategory", + "filePath": "2023-09-01/Glossary_UpdateCategory.json", + "parameters": [ + { + "parameter": { + "$ref": "2673" + }, + "value": { + "$id": "2679", + "kind": "string", + "type": { + "$ref": "2674" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + } + }, + { + "parameter": { + "$ref": "2677" + }, + "value": { + "$id": "2680", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2681", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "2682", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1@Glossary" + }, + "name": { + "$id": "2683", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "lastModifiedTS": { + "$id": "2684", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "1" + }, + "anchor": { + "$id": "2685", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2686", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2687", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "terms": { + "$id": "2688", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2689", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2690", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2691", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + } + } + } + ] + }, + "childrenCategories": { + "$id": "2692", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2693", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2694", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + } + } + } + ] + }, + "parentCategory": { + "$id": "2695", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2696", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2697", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2698", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "2699", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1.Category2@Glossary" + }, + "name": { + "$id": "2700", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "lastModifiedTS": { + "$id": "2701", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "2" + }, + "anchor": { + "$id": "2702", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2703", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2704", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "parentCategory": { + "$id": "2705", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2706", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "2707", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + }, + "childrenCategories": { + "$id": "2708", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2709", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2710", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "2711", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "2712", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + }, + "displayText": { + "$id": "2713", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + } + ] + }, + "terms": { + "$id": "2714", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2715", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2716", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2717", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "2718", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2719", + "kind": "method", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2720", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.categoryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2721", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "549" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2722", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "189" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2723", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "191" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "549" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory" + }, + { + "$id": "2724", + "kind": "basic", + "name": "deleteCategory", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a glossary category.", + "operation": { + "$id": "2725", + "name": "deleteCategory", + "resourceName": "Glossary", + "doc": "Delete a glossary category.", + "accessibility": "public", + "parameters": [ + { + "$id": "2726", + "kind": "path", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2727", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory.categoryId" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category/{categoryId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory", + "decorators": [], + "examples": [ + { + "$id": "2728", + "kind": "http", + "name": "Glossary_DeleteCategory", + "description": "Glossary_DeleteCategory", + "filePath": "2023-09-01/Glossary_DeleteCategory.json", + "parameters": [ + { + "parameter": { + "$ref": "2726" + }, + "value": { + "$id": "2729", + "kind": "string", + "type": { + "$ref": "2727" + }, + "value": "0e391355-252a-e5f3-ac18-5a3602df7616" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2730", + "kind": "method", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory.categoryId", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory" + }, + { + "$id": "2732", + "kind": "basic", + "name": "partialUpdateCategory", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update the glossary category partially. So far we only supports partial\nupdating shortDescription and longDescription for category.", + "operation": { + "$id": "2733", + "name": "partialUpdateCategory", + "resourceName": "Glossary", + "doc": "Update the glossary category partially. So far we only supports partial\nupdating shortDescription and longDescription for category.", + "accessibility": "public", + "parameters": [ + { + "$id": "2734", + "kind": "path", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.categoryId" + }, + { + "$id": "2736", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "193" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.contentType" + }, + { + "$id": "2737", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "195" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.accept" + }, + { + "$id": "2738", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues for partial update.", + "type": { + "$ref": "362" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category/{categoryId}/partial", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory", + "decorators": [], + "examples": [ + { + "$id": "2739", + "kind": "http", + "name": "Glossary_PartialUpdateCategory", + "description": "Glossary_PartialUpdateCategory", + "filePath": "2023-09-01/Glossary_PartialUpdateCategory.json", + "parameters": [ + { + "parameter": { + "$ref": "2734" + }, + "value": { + "$id": "2740", + "kind": "string", + "type": { + "$ref": "2735" + }, + "value": "3243ea0a-9492-47e1-392e-a84e64980af9" + } + }, + { + "parameter": { + "$ref": "2738" + }, + "value": { + "$id": "2741", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "longDescription": { + "$id": "2742", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "Example Long Description" + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "549" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2743", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "2744", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "2745", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1.ExampleCategory2@Glossary" + }, + "name": { + "$id": "2746", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "longDescription": { + "$id": "2747", + "kind": "string", + "type": { + "$ref": "554" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "2748", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "3" + }, + "anchor": { + "$id": "2749", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2750", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2751", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "parentCategory": { + "$id": "2752", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2753", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "2754", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + }, + "childrenCategories": { + "$id": "2755", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2756", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2757", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "2758", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "2759", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + }, + "displayText": { + "$id": "2760", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + } + ] + }, + "terms": { + "$id": "2761", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2762", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2763", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2764", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "2765", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2766", + "kind": "method", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2767", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.categoryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2768", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues for partial update.", + "type": { + "$ref": "362" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2769", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "193" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2770", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "195" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "549" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory" + }, + { + "$id": "2771", + "kind": "basic", + "name": "getRelatedCategories", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get all related categories (parent and children). Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", + "operation": { + "$id": "2772", + "name": "getRelatedCategories", + "resourceName": "Glossary", + "doc": "Get all related categories (parent and children). Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", + "accessibility": "public", + "parameters": [ + { + "$id": "2773", + "kind": "path", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2774", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.categoryId" + }, + { + "$id": "2775", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "2776", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.limit", + "readOnly": false + }, + { + "$id": "2777", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "2778", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.offset", + "readOnly": false + }, + { + "$id": "2779", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "2780", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.sort", + "readOnly": false + }, + { + "$id": "2781", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "197" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "2782", + "kind": "dict", + "keyType": { + "$id": "2783", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "517" + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category/{categoryId}/related", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories", + "decorators": [], + "examples": [ + { + "$id": "2784", + "kind": "http", + "name": "Glossary_ListRelatedCategories", + "description": "Glossary_ListRelatedCategories", + "filePath": "2023-09-01/Glossary_ListRelatedCategories.json", + "parameters": [ + { + "parameter": { + "$ref": "2773" + }, + "value": { + "$id": "2785", + "kind": "string", + "type": { + "$ref": "2774" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + } + }, + { + "parameter": { + "$ref": "2775" + }, + "value": { + "$id": "2786", + "kind": "number", + "type": { + "$ref": "2776" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "2777" + }, + "value": { + "$id": "2787", + "kind": "number", + "type": { + "$ref": "2778" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "2779" + }, + "value": { + "$id": "2788", + "kind": "string", + "type": { + "$ref": "2780" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2782" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2789", + "kind": "dict", + "type": { + "$ref": "2782" + }, + "value": { + "parent": { + "$id": "2790", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2791", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2792", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "6c8233cd-f6dc-6ef7-5597-b18ab590f2fc" + }, + "relationGuid": { + "$id": "2793", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "25cf5e46-c551-4ed4-8919-505c29ae311d" + } + } + } + ] + }, + "children": { + "$id": "2794", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "2795", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "2796", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "abc6ac1b-5700-9c70-3f5a-60a519150035" + }, + "parentCategoryGuid": { + "$id": "2797", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "3243ea0a-9492-47e1-392e-a84e64980af9" + }, + "relationGuid": { + "$id": "2798", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "12d41563-2fd9-4be5-9eb9-9908f811a8f2" + }, + "displayText": { + "$id": "2799", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory4" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2800", + "kind": "method", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2801", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.categoryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2802", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "2803", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2804", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "2805", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2806", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "2807", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2808", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "197" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "2782" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories" + }, + { + "$id": "2809", + "kind": "basic", + "name": "getCategoryTerms", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get all terms associated with the specific category.", + "operation": { + "$id": "2810", + "name": "getCategoryTerms", + "resourceName": "Glossary", + "doc": "Get all terms associated with the specific category.", + "accessibility": "public", + "parameters": [ + { + "$id": "2811", + "kind": "path", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2812", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.categoryId" + }, + { + "$id": "2813", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "2814", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.limit", + "readOnly": false + }, + { + "$id": "2815", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "2816", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.offset", + "readOnly": false + }, + { + "$id": "2817", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "2818", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.sort", + "readOnly": false + }, + { + "$id": "2819", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "199" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "532" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/category/{categoryId}/terms", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms", + "decorators": [], + "examples": [ + { + "$id": "2820", + "kind": "http", + "name": "Glossary_ListCategoryTerms", + "description": "Glossary_ListCategoryTerms", + "filePath": "2023-09-01/Glossary_ListCategoryTerms.json", + "parameters": [ + { + "parameter": { + "$ref": "2811" + }, + "value": { + "$id": "2821", + "kind": "string", + "type": { + "$ref": "2812" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + } + }, + { + "parameter": { + "$ref": "2813" + }, + "value": { + "$id": "2822", + "kind": "number", + "type": { + "$ref": "2814" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "2815" + }, + "value": { + "$id": "2823", + "kind": "number", + "type": { + "$ref": "2816" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "2817" + }, + "value": { + "$id": "2824", + "kind": "string", + "type": { + "$ref": "2818" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "532" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2825", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2826", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2827", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "2828", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "2829", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2830", + "kind": "method", + "name": "categoryId", + "serializedName": "categoryId", + "doc": "The globally unique identifier of the category.", + "type": { + "$id": "2831", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.categoryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2832", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "2833", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2834", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "2835", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2836", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "2837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2838", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "199" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "532" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms" + }, + { + "$id": "2839", + "kind": "basic", + "name": "createTerm", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create a glossary term.", + "operation": { + "$id": "2840", + "name": "createTerm", + "resourceName": "Glossary", + "doc": "Create a glossary term.", + "accessibility": "public", + "parameters": [ + { + "$id": "2841", + "kind": "query", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "2842", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.includeTermHierarchy", + "readOnly": false + }, + { + "$id": "2843", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "201" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.contentType" + }, + { + "$id": "2844", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "203" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.accept" + }, + { + "$id": "2845", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "582" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/term", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm", + "decorators": [], + "examples": [ + { + "$id": "2846", + "kind": "http", + "name": "Glossary_CreateTerm", + "description": "Glossary_CreateTerm", + "filePath": "2023-09-01/Glossary_CreateTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "2845" + }, + "value": { + "$id": "2847", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "name": { + "$id": "2848", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "2849", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "2850", + "kind": "string", + "type": { + "$ref": "587" + }, + "value": "Example Long Description" + }, + "abbreviation": { + "$id": "2851", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "status": { + "$id": "2852", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "2853", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2854", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + }, + "resources": { + "$id": "2855", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "2856", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "2857", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "2858", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + }, + "contacts": { + "$id": "2859", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "2860", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "2861", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "2862", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "2863", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Steward": { + "$id": "2864", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "2865", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "2866", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "2867", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Steward info" + } + } + } + ] + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2868", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "2869", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "2870", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "2871", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "2872", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "2873", + "kind": "string", + "type": { + "$ref": "587" + }, + "value": "Example Long Description" + }, + "abbreviation": { + "$id": "2874", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "anchor": { + "$id": "2875", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2876", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2877", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "createdBy": { + "$id": "2878", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "2879", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "2880", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "2881", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287247276 + }, + "status": { + "$id": "2882", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "resources": { + "$id": "2883", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "2884", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "2885", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "2886", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + }, + "contacts": { + "$id": "2887", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "2888", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "2889", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "2890", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "2891", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Steward": { + "$id": "2892", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "2893", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "2894", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "2895", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Steward Info" + } + } + } + ] + } + } + } + } + } + } + ] + }, + { + "$id": "2896", + "kind": "http", + "name": "Glossary_CreateTermWithTemplate", + "description": "Glossary_CreateTermWithTemplate", + "filePath": "2023-09-01/Glossary_CreateTermWithTemplate.json", + "parameters": [ + { + "parameter": { + "$ref": "2845" + }, + "value": { + "$id": "2897", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "name": { + "$id": "2898", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm" + }, + "anchor": { + "$id": "2899", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2900", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + }, + "attributes": { + "$id": "2901", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": { + "ExampleTermTemplateAttribute": { + "$id": "2902", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "plain string": { + "$id": "2903", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example String" + }, + "date": { + "$id": "2904", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 1606233600000 + }, + "single choice": { + "$id": "2905", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Single Choice A" + }, + "multi choice": { + "$id": "2906", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [ + "Example Multi Choice A", + "Example Multi Choice B" + ] + } + } + } + } + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2907", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "2908", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "9390cc82-1077-403e-a4d2-b6a69834707b" + }, + "qualifiedName": { + "$id": "2909", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm@Glossary" + }, + "name": { + "$id": "2910", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm" + }, + "lastModifiedTS": { + "$id": "2911", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "createdBy": { + "$id": "2912", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "2913", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "2914", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "2915", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287247276 + }, + "anchor": { + "$id": "2916", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2917", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2918", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "attributes": { + "$id": "2919", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": { + "ExampleTermTemplateAttribute": { + "$id": "2920", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "plain string": { + "$id": "2921", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example String" + }, + "date": { + "$id": "2922", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 1606233600000 + }, + "single choice": { + "$id": "2923", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Single Choice A" + }, + "multi choice": { + "$id": "2924", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": [ + "Example Multi Choice A", + "Example Multi Choice B" + ] + } + } + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "2925", + "kind": "method", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "2926", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.includeTermHierarchy", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2927", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "582" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2928", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "201" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "2929", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "203" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "582" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createTerm" + }, + { + "$id": "2930", + "kind": "basic", + "name": "getTerm", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get a specific glossary term by its GUID. ", + "operation": { + "$id": "2931", + "name": "getTerm", + "resourceName": "Glossary", + "doc": "Get a specific glossary term by its GUID. ", + "accessibility": "public", + "parameters": [ + { + "$id": "2932", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "2933", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "2934", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.apiVersion", + "readOnly": false + }, + { + "$id": "2935", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "2936", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.termId" + }, + { + "$id": "2937", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "205" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/term/{termId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm", + "decorators": [], + "examples": [ + { + "$id": "2938", + "kind": "http", + "name": "Glossary_GetTerm", + "description": "Glossary_GetTerm", + "filePath": "2023-09-01/Glossary_GetTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "2935" + }, + "value": { + "$id": "2939", + "kind": "string", + "type": { + "$ref": "2936" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2940", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "2941", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "2942", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "2943", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "2944", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "2945", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "2946", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "createdBy": { + "$id": "2947", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "2948", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "2949", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "2950", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287247276 + }, + "status": { + "$id": "2951", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "2952", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "2953", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "2954", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "seeAlso": { + "$id": "2955", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2956", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2957", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "2958", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "2959", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "synonyms": { + "$id": "2960", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "2961", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "2962", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "2963", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "2964", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "contacts": { + "$id": "2965", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "2966", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "2967", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "2968", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "2969", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Steward": { + "$id": "2970", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "2971", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "2972", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "2973", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Steward Info" + } + } + } + ] + } + } + }, + "resources": { + "$id": "2974", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "2975", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "2976", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "2977", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + }, + "assignedEntities": { + "$id": "2978", + "kind": "array", + "type": { + "$ref": "641" + }, + "value": [ + { + "$id": "2979", + "kind": "model", + "type": { + "$ref": "642" + }, + "value": { + "guid": { + "$id": "2980", + "kind": "string", + "type": { + "$ref": "644" + }, + "value": "7e255139-b654-4c8d-a4bd-fbb5a243e83f" + }, + "typeName": { + "$id": "2981", + "kind": "string", + "type": { + "$ref": "646" + }, + "value": "azure_datalake_gen2_path" + }, + "entityStatus": { + "$id": "2982", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "displayText": { + "$id": "2983", + "kind": "string", + "type": { + "$ref": "649" + }, + "value": "moviesDB.csv" + }, + "relationshipType": { + "$id": "2984", + "kind": "string", + "type": { + "$ref": "652" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "relationshipGuid": { + "$id": "2985", + "kind": "string", + "type": { + "$ref": "661" + }, + "value": "ace36560-6259-4e7f-9214-3850b2af0a86" + }, + "relationshipStatus": { + "$id": "2986", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "relationshipAttributes": { + "$id": "2987", + "kind": "model", + "type": { + "$ref": "654" + }, + "value": { + "typeName": { + "$id": "2988", + "kind": "string", + "type": { + "$ref": "657" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "attributes": { + "$id": "2989", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "2990", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "createdBy": { + "$id": "2991", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "steward": { + "$id": "2992", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "confidence": { + "$id": "2993", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "description": { + "$id": "2994", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "source": { + "$id": "2995", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "2996", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + } + } + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "2997", + "kind": "http", + "name": "Glossary_GetTermWithoutAssets", + "description": "Glossary_GetTermWithoutAssets", + "filePath": "2023-09-01/Glossary_GetTermWithoutAssets.json", + "parameters": [ + { + "parameter": { + "$ref": "2935" + }, + "value": { + "$id": "2998", + "kind": "string", + "type": { + "$ref": "2936" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "2999", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3000", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "3001", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "3002", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "3003", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3004", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3005", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "createdBy": { + "$id": "3006", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3007", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3008", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "3009", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287247276 + }, + "status": { + "$id": "3010", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3011", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3012", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3013", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "seeAlso": { + "$id": "3014", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3015", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3016", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3017", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3018", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "synonyms": { + "$id": "3019", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3020", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3021", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3022", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3023", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "contacts": { + "$id": "3024", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "3025", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "3026", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "3027", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "3028", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Steward": { + "$id": "3029", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "3030", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "3031", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "3032", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Steward Info" + } + } + } + ] + } + } + }, + "resources": { + "$id": "3033", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3034", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3035", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3036", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3037", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3038", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3039", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "205" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "582" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getTerm" + }, + { + "$id": "3040", + "kind": "basic", + "name": "updateTerm", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update the given glossary term by its GUID.", + "operation": { + "$id": "3041", + "name": "updateTerm", + "resourceName": "Glossary", + "doc": "Update the given glossary term by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "3042", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3043", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3044", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.apiVersion", + "readOnly": false + }, + { + "$id": "3045", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3046", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.termId" + }, + { + "$id": "3047", + "kind": "query", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "3048", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.includeTermHierarchy", + "readOnly": false + }, + { + "$id": "3049", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "207" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.contentType" + }, + { + "$id": "3050", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "209" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.accept" + }, + { + "$id": "3051", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "582" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/term/{termId}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm", + "decorators": [], + "examples": [ + { + "$id": "3052", + "kind": "http", + "name": "Glossary_UpdateTerm", + "description": "Glossary_UpdateTerm", + "filePath": "2023-09-01/Glossary_UpdateTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "3045" + }, + "value": { + "$id": "3053", + "kind": "string", + "type": { + "$ref": "3046" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + } + }, + { + "parameter": { + "$ref": "3051" + }, + "value": { + "$id": "3054", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3055", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "3056", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "3057", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "3058", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3059", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3060", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "status": { + "$id": "3061", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3062", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3063", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3064", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "resources": { + "$id": "3065", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3066", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3067", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3068", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + }, + "seeAlso": { + "$id": "3069", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3070", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3071", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + } + } + }, + { + "$id": "3072", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3073", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" + } + } + } + ] + }, + "synonyms": { + "$id": "3074", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3075", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3076", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + } + } + }, + { + "$id": "3077", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3078", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3079", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3080", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "3081", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "3082", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "3083", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3084", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3085", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "createdBy": { + "$id": "3086", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3087", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3088", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "3089", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287247276 + }, + "status": { + "$id": "3090", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3091", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3092", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3093", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "seeAlso": { + "$id": "3094", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3095", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3096", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3097", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3098", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + }, + { + "$id": "3099", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3100", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" + }, + "relationGuid": { + "$id": "3101", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "4d802ada-65f3-45a8-969f-aba47d9c6200" + }, + "displayText": { + "$id": "3102", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm3" + } + } + } + ] + }, + "synonyms": { + "$id": "3103", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3104", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3105", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3106", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3107", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + }, + { + "$id": "3108", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3109", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" + }, + "relationGuid": { + "$id": "3110", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "bb26fe7c-6e26-46ad-b936-50a5f7ffbbaf" + }, + "displayText": { + "$id": "3111", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm3" + } + } + } + ] + }, + "resources": { + "$id": "3112", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3113", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3114", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3115", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3116", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3118", + "kind": "method", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "3119", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.includeTermHierarchy", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3120", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "582" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3121", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "207" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3122", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "209" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "582" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm" + }, + { + "$id": "3123", + "kind": "basic", + "name": "deleteTerm", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a glossary term.", + "operation": { + "$id": "3124", + "name": "deleteTerm", + "resourceName": "Glossary", + "doc": "Delete a glossary term.", + "accessibility": "public", + "parameters": [ + { + "$id": "3125", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm.termId" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/term/{termId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm", + "decorators": [], + "examples": [ + { + "$id": "3127", + "kind": "http", + "name": "Glossary_DeleteTerm", + "description": "Glossary_DeleteTerm", + "filePath": "2023-09-01/Glossary_DeleteTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "3125" + }, + "value": { + "$id": "3128", + "kind": "string", + "type": { + "$ref": "3126" + }, + "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3129", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm.termId", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm" + }, + { + "$id": "3131", + "kind": "basic", + "name": "partialUpdateTerm", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update the glossary term partially. So far we only supports partial updating\nshortDescription, longDescription, abbreviation, usage and status for term.", + "operation": { + "$id": "3132", + "name": "partialUpdateTerm", + "resourceName": "Glossary", + "doc": "Update the glossary term partially. So far we only supports partial updating\nshortDescription, longDescription, abbreviation, usage and status for term.", + "accessibility": "public", + "parameters": [ + { + "$id": "3133", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.apiVersion", + "readOnly": false + }, + { + "$id": "3136", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.termId" + }, + { + "$id": "3138", + "kind": "query", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "3139", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.includeTermHierarchy", + "readOnly": false + }, + { + "$id": "3140", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "211" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.contentType" + }, + { + "$id": "3141", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "213" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.accept" + }, + { + "$id": "3142", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues to be updated.", + "type": { + "$ref": "362" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/term/{termId}/partial", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm", + "decorators": [], + "examples": [ + { + "$id": "3143", + "kind": "http", + "name": "Glossary_PartialUpdateTerm", + "description": "Glossary_PartialUpdateTerm", + "filePath": "2023-09-01/Glossary_PartialUpdateTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "3136" + }, + "value": { + "$id": "3144", + "kind": "string", + "type": { + "$ref": "3137" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + } + }, + { + "parameter": { + "$ref": "3142" + }, + "value": { + "$id": "3145", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "longDescription": { + "$id": "3146", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "Example Long Description" + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "582" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3147", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3148", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "3149", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "3150", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "3151", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3152", + "kind": "string", + "type": { + "$ref": "587" + }, + "value": "Example Long Descrition" + }, + "lastModifiedTS": { + "$id": "3153", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "2" + }, + "abbreviation": { + "$id": "3154", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "createdBy": { + "$id": "3155", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3156", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3157", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "3158", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606290587593 + }, + "status": { + "$id": "3159", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3160", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3161", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3162", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "categories": { + "$id": "3163", + "kind": "array", + "type": { + "$ref": "665" + }, + "value": [ + { + "$id": "3164", + "kind": "model", + "type": { + "$ref": "666" + }, + "value": { + "categoryGuid": { + "$id": "3165", + "kind": "string", + "type": { + "$ref": "668" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3166", + "kind": "string", + "type": { + "$ref": "675" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "3167", + "kind": "string", + "type": { + "$ref": "673" + }, + "value": "ExampleCategory1" + } + } + } + ] + }, + "seeAlso": { + "$id": "3168", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3169", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3170", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3171", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3172", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "synonyms": { + "$id": "3173", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3174", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3175", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3176", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3177", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "resources": { + "$id": "3178", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3179", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3180", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3181", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3182", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3184", + "kind": "method", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "3185", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.includeTermHierarchy", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3186", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues to be updated.", + "type": { + "$ref": "362" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3187", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "211" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3188", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "213" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "582" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm" + }, + { + "$id": "3189", + "kind": "basic", + "name": "createTerms", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create glossary terms in bulk.", + "operation": { + "$id": "3190", + "name": "createTerms", + "resourceName": "Glossary", + "doc": "Create glossary terms in bulk.", + "accessibility": "public", + "parameters": [ + { + "$id": "3191", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.apiVersion", + "readOnly": false + }, + { + "$id": "3194", + "kind": "query", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "3195", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.includeTermHierarchy", + "readOnly": false + }, + { + "$id": "3196", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "215" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.contentType" + }, + { + "$id": "3197", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "217" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.accept" + }, + { + "$id": "3198", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of glossary term definitions to be created in bulk.", + "type": { + "$id": "3199", + "kind": "array", + "name": "ArrayAtlasGlossaryTerm", + "valueType": { + "$ref": "582" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3199" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/terms", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms", + "decorators": [], + "examples": [ + { + "$id": "3200", + "kind": "http", + "name": "Glossary_CreateTerms", + "description": "Glossary_CreateTerms", + "filePath": "2023-09-01/Glossary_CreateTerms.json", + "parameters": [ + { + "parameter": { + "$ref": "3198" + }, + "value": { + "$id": "3201", + "kind": "array", + "type": { + "$ref": "3199" + }, + "value": [ + { + "$id": "3202", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "anchor": { + "$id": "3203", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3204", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + }, + "name": { + "$id": "3205", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm2" + }, + "status": { + "$id": "3206", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "shortDescription": { + "$id": "3207", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3208", + "kind": "string", + "type": { + "$ref": "587" + }, + "value": "Example Long Description" + }, + "abbreviation": { + "$id": "3209", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T2" + }, + "resources": { + "$id": "3210", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3211", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3212", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3213", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + }, + { + "$id": "3214", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "anchor": { + "$id": "3215", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3216", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + }, + "name": { + "$id": "3217", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm3" + }, + "status": { + "$id": "3218", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "shortDescription": { + "$id": "3219", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3220", + "kind": "string", + "type": { + "$ref": "587" + }, + "value": "Example Long Description" + }, + "abbreviation": { + "$id": "3221", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T3" + }, + "resources": { + "$id": "3222", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3223", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3224", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3225", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3199" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3226", + "kind": "array", + "type": { + "$ref": "3199" + }, + "value": [ + { + "$id": "3227", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3228", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "qualifiedName": { + "$id": "3229", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm2@Glossary" + }, + "name": { + "$id": "3230", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm2" + }, + "shortDescription": { + "$id": "3231", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3232", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3233", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T2" + }, + "createdBy": { + "$id": "3234", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3235", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3236", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287312495 + }, + "updateTime": { + "$id": "3237", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287312495 + }, + "status": { + "$id": "3238", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3239", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3240", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3241", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + } + } + }, + "resources": { + "$id": "3242", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3243", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3244", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3245", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + }, + { + "$id": "3246", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3247", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" + }, + "qualifiedName": { + "$id": "3248", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm3@Glossary" + }, + "name": { + "$id": "3249", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm3" + }, + "shortDescription": { + "$id": "3250", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3251", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3252", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T3" + }, + "createdBy": { + "$id": "3253", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3254", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3255", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287312495 + }, + "updateTime": { + "$id": "3256", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287312495 + }, + "status": { + "$id": "3257", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3258", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3259", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3260", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "f4de4878-3e43-4f8b-b090-07a233bb0ce6" + } + } + }, + "resources": { + "$id": "3261", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3262", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3263", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3264", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3265", + "kind": "method", + "name": "includeTermHierarchy", + "serializedName": "includeTermHierarchy", + "doc": "Whether include term hierarchy", + "type": { + "$id": "3266", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.includeTermHierarchy", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3267", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of glossary term definitions to be created in bulk.", + "type": { + "$ref": "3199" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3268", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "215" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3269", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "217" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "3199" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.createTerms" + }, + { + "$id": "3270", + "kind": "basic", + "name": "getEntitiesAssignedWithTerm", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "List all related objects assigned with the specified term. Recommend using\nlimit/offset to get pagination result.", + "operation": { + "$id": "3271", + "name": "getEntitiesAssignedWithTerm", + "resourceName": "Glossary", + "doc": "List all related objects assigned with the specified term. Recommend using\nlimit/offset to get pagination result.", + "accessibility": "public", + "parameters": [ + { + "$id": "3272", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.termId" + }, + { + "$id": "3274", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3275", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.limit", + "readOnly": false + }, + { + "$id": "3276", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3277", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.offset", + "readOnly": false + }, + { + "$id": "3278", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.sort", + "readOnly": false + }, + { + "$id": "3280", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "219" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "641" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/terms/{termId}/assignedEntities", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm", + "decorators": [], + "examples": [ + { + "$id": "3281", + "kind": "http", + "name": "Glossary_ListEntitiesAssignedWithTerm", + "description": "Glossary_ListEntitiesAssignedWithTerm", + "filePath": "2023-09-01/Glossary_ListEntitiesAssignedWithTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "3272" + }, + "value": { + "$id": "3282", + "kind": "string", + "type": { + "$ref": "3273" + }, + "value": "daf0ba4d-bc9a-4536-8a88-4b58e39dd3d4" + } + }, + { + "parameter": { + "$ref": "3274" + }, + "value": { + "$id": "3283", + "kind": "number", + "type": { + "$ref": "3275" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "3276" + }, + "value": { + "$id": "3284", + "kind": "number", + "type": { + "$ref": "3277" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "3278" + }, + "value": { + "$id": "3285", + "kind": "string", + "type": { + "$ref": "3279" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "641" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3286", + "kind": "array", + "type": { + "$ref": "641" + }, + "value": [ + { + "$id": "3287", + "kind": "model", + "type": { + "$ref": "642" + }, + "value": { + "guid": { + "$id": "3288", + "kind": "string", + "type": { + "$ref": "644" + }, + "value": "ea116881-222e-41c8-8acb-9af6f6f60009" + }, + "typeName": { + "$id": "3289", + "kind": "string", + "type": { + "$ref": "646" + }, + "value": "column" + }, + "entityStatus": { + "$id": "3290", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "displayText": { + "$id": "3291", + "kind": "string", + "type": { + "$ref": "649" + }, + "value": "ExampleColumnName" + }, + "relationshipType": { + "$id": "3292", + "kind": "string", + "type": { + "$ref": "652" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "relationshipGuid": { + "$id": "3293", + "kind": "string", + "type": { + "$ref": "661" + }, + "value": "ff9023a5-8495-49d6-bf04-a22c3634151e" + }, + "relationshipStatus": { + "$id": "3294", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "relationshipAttributes": { + "$id": "3295", + "kind": "model", + "type": { + "$ref": "654" + }, + "value": { + "typeName": { + "$id": "3296", + "kind": "string", + "type": { + "$ref": "657" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "attributes": { + "$id": "3297", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "3298", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "createdBy": { + "$id": "3299", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "steward": { + "$id": "3300", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "confidence": { + "$id": "3301", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "description": { + "$id": "3302", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "source": { + "$id": "3303", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "3304", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + } + } + } + } + }, + { + "$id": "3305", + "kind": "model", + "type": { + "$ref": "642" + }, + "value": { + "guid": { + "$id": "3306", + "kind": "string", + "type": { + "$ref": "644" + }, + "value": "fbf0a84d-7080-456b-b889-b5ba42186c2e" + }, + "typeName": { + "$id": "3307", + "kind": "string", + "type": { + "$ref": "646" + }, + "value": "azure_blob_path" + }, + "entityStatus": { + "$id": "3308", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "displayText": { + "$id": "3309", + "kind": "string", + "type": { + "$ref": "649" + }, + "value": "exampledata.csv" + }, + "relationshipType": { + "$id": "3310", + "kind": "string", + "type": { + "$ref": "652" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "relationshipGuid": { + "$id": "3311", + "kind": "string", + "type": { + "$ref": "661" + }, + "value": "dedc1294-a893-4e52-ba27-6be9b8694748" + }, + "relationshipStatus": { + "$id": "3312", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "relationshipAttributes": { + "$id": "3313", + "kind": "model", + "type": { + "$ref": "654" + }, + "value": { + "typeName": { + "$id": "3314", + "kind": "string", + "type": { + "$ref": "657" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "attributes": { + "$id": "3315", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "3316", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "createdBy": { + "$id": "3317", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "steward": { + "$id": "3318", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "confidence": { + "$id": "3319", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "description": { + "$id": "3320", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "source": { + "$id": "3321", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "3322", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + } + } + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3323", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3325", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3326", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3327", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3328", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3329", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3331", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "219" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "641" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm" + }, + { + "$id": "3332", + "kind": "basic", + "name": "assignTermToEntities", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Assign the given term to the provided list of related objects. Recommend using\nsmall batches with multiple API calls.\n\n[Entities Create Or Update\noperation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP)\nis an alternative to assign a term to multiple entities.", + "operation": { + "$id": "3333", + "name": "assignTermToEntities", + "resourceName": "Glossary", + "doc": "Assign the given term to the provided list of related objects. Recommend using\nsmall batches with multiple API calls.\n\n[Entities Create Or Update\noperation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP)\nis an alternative to assign a term to multiple entities.", + "accessibility": "public", + "parameters": [ + { + "$id": "3334", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.termId" + }, + { + "$id": "3336", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "221" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.contentType" + }, + { + "$id": "3337", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of related object IDs to which the term has to be associated.", + "type": { + "$ref": "641" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/terms/{termId}/assignedEntities", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities", + "decorators": [], + "examples": [ + { + "$id": "3338", + "kind": "http", + "name": "Glossary_AssignTermToEntities", + "description": "Glossary_AssignTermToEntities", + "filePath": "2023-09-01/Glossary_AssignTermToEntities.json", + "parameters": [ + { + "parameter": { + "$ref": "3334" + }, + "value": { + "$id": "3339", + "kind": "string", + "type": { + "$ref": "3335" + }, + "value": "8a7f65ec-6429-0b9b-3734-ec57bf1e34c2" + } + }, + { + "parameter": { + "$ref": "3337" + }, + "value": { + "$id": "3340", + "kind": "array", + "type": { + "$ref": "641" + }, + "value": [ + { + "$id": "3341", + "kind": "model", + "type": { + "$ref": "642" + }, + "value": { + "guid": { + "$id": "3342", + "kind": "string", + "type": { + "$ref": "644" + }, + "value": "ab9f1920-0b94-436d-aeb4-11a32c270fc0" + }, + "relationshipAttributes": { + "$id": "3343", + "kind": "model", + "type": { + "$ref": "654" + }, + "value": { + "attributes": { + "$id": "3344", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "3345", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Expression" + }, + "confidence": { + "$id": "3346", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 100 + }, + "description": { + "$id": "3347", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "source": { + "$id": "3348", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleSource" + } + } + } + } + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3349", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3351", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of related object IDs to which the term has to be associated.", + "type": { + "$ref": "641" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3352", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "221" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities" + }, + { + "$id": "3353", + "kind": "basic", + "name": "deleteTermAssignmentFromEntities", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete the term assignment for the given list of related objects.", + "operation": { + "$id": "3354", + "name": "deleteTermAssignmentFromEntities", + "resourceName": "Glossary", + "doc": "Delete the term assignment for the given list of related objects.", + "accessibility": "public", + "parameters": [ + { + "$id": "3355", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.termId" + }, + { + "$id": "3357", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "223" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.contentType" + }, + { + "$id": "3358", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "An array of related object IDs from which the term has to be dissociated.", + "type": { + "$ref": "641" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/terms/{termId}/assignedEntities", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities", + "decorators": [], + "examples": [ + { + "$id": "3359", + "kind": "http", + "name": "Glossary_RemoveTermAssignmentFromEntities", + "description": "Glossary_RemoveTermAssignmentFromEntities", + "filePath": "2023-09-01/Glossary_RemoveTermAssignmentFromEntities.json", + "parameters": [ + { + "parameter": { + "$ref": "3355" + }, + "value": { + "$id": "3360", + "kind": "string", + "type": { + "$ref": "3356" + }, + "value": "8a7f65ec-6429-0b9b-3734-ec57bf1e34c2" + } + }, + { + "parameter": { + "$ref": "3358" + }, + "value": { + "$id": "3361", + "kind": "array", + "type": { + "$ref": "641" + }, + "value": [ + { + "$id": "3362", + "kind": "model", + "type": { + "$ref": "642" + }, + "value": { + "guid": { + "$id": "3363", + "kind": "string", + "type": { + "$ref": "644" + }, + "value": "16feb2a1-2c79-ade1-338d-fb24fcb8b8bd" + }, + "relationshipGuid": { + "$id": "3364", + "kind": "string", + "type": { + "$ref": "661" + }, + "value": "624f08bb-3c93-4f03-9ce1-ed2ce2c7c8d5" + } + } + } + ] + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3365", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3367", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "An array of related object IDs from which the term has to be dissociated.", + "type": { + "$ref": "641" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3368", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "223" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities" + }, + { + "$id": "3369", + "kind": "basic", + "name": "getRelatedTerms", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get all related terms for a specific term by its GUID. Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", + "operation": { + "$id": "3370", + "name": "getRelatedTerms", + "resourceName": "Glossary", + "doc": "Get all related terms for a specific term by its GUID. Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", + "accessibility": "public", + "parameters": [ + { + "$id": "3371", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.apiVersion", + "readOnly": false + }, + { + "$id": "3374", + "kind": "path", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.termId" + }, + { + "$id": "3376", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3377", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.limit", + "readOnly": false + }, + { + "$id": "3378", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3379", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.offset", + "readOnly": false + }, + { + "$id": "3380", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3381", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.sort", + "readOnly": false + }, + { + "$id": "3382", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "225" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "3383", + "kind": "dict", + "keyType": { + "$id": "3384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "532" + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/terms/{termId}/related", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms", + "decorators": [], + "examples": [ + { + "$id": "3385", + "kind": "http", + "name": "Glossary_ListRelatedTerms", + "description": "Glossary_ListRelatedTerms", + "filePath": "2023-09-01/Glossary_ListRelatedTerms.json", + "parameters": [ + { + "parameter": { + "$ref": "3374" + }, + "value": { + "$id": "3386", + "kind": "string", + "type": { + "$ref": "3375" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + } + }, + { + "parameter": { + "$ref": "3376" + }, + "value": { + "$id": "3387", + "kind": "number", + "type": { + "$ref": "3377" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "3378" + }, + "value": { + "$id": "3388", + "kind": "number", + "type": { + "$ref": "3379" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "3380" + }, + "value": { + "$id": "3389", + "kind": "string", + "type": { + "$ref": "3381" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3383" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3390", + "kind": "dict", + "type": { + "$ref": "3383" + }, + "value": { + "seeAlso": { + "$id": "3391", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3392", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3393", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3394", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3395", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "synonyms": { + "$id": "3396", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3397", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3398", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3399", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3400", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3401", + "kind": "method", + "name": "termId", + "serializedName": "termId", + "doc": "The globally unique identifier for glossary term.", + "type": { + "$id": "3402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.termId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3403", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3404", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3405", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3406", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3407", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3409", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "225" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "3383" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms" + }, + { + "$id": "3410", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get a specific Glossary by its GUID.", + "operation": { + "$id": "3411", + "name": "get", + "resourceName": "Glossary", + "doc": "Get a specific Glossary by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "3412", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.get.glossaryId" + }, + { + "$id": "3414", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "227" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.get", + "decorators": [], + "examples": [ + { + "$id": "3415", + "kind": "http", + "name": "Glossary_Get", + "description": "Glossary_Get", + "filePath": "2023-09-01/Glossary_Get.json", + "parameters": [ + { + "parameter": { + "$ref": "3412" + }, + "value": { + "$id": "3416", + "kind": "string", + "type": { + "$ref": "3413" + }, + "value": "47029611-67a1-42d5-8766-90eb904f7f22" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3417", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "guid": { + "$id": "3418", + "kind": "string", + "type": { + "$ref": "496" + }, + "value": "47029611-67a1-42d5-8766-90eb904f7f22" + }, + "qualifiedName": { + "$id": "3419", + "kind": "string", + "type": { + "$ref": "503" + }, + "value": "Glossary" + }, + "name": { + "$id": "3420", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "3421", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3422", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "3423", + "kind": "string", + "type": { + "$ref": "507" + }, + "value": "1" + }, + "language": { + "$id": "3424", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "3425", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + }, + "createdBy": { + "$id": "3426", + "kind": "string", + "type": { + "$ref": "511" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "3427", + "kind": "string", + "type": { + "$ref": "515" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "3428", + "kind": "number", + "type": { + "$ref": "509" + }, + "value": 1672892675688 + }, + "updateTime": { + "$id": "3429", + "kind": "number", + "type": { + "$ref": "513" + }, + "value": 1672892675688 + }, + "terms": { + "$id": "3430", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3431", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3432", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "29d88363-9677-4ce6-aeee-5fdf45f84e9b" + }, + "relationGuid": { + "$id": "3433", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "fb3d4ac4-27e0-45a2-bb13-105214e0ef7e" + }, + "displayText": { + "$id": "3434", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm3" + } + } + }, + { + "$id": "3435", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3436", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "e5136a91-bc02-49da-81f4-f075bd54b8f5" + }, + "relationGuid": { + "$id": "3437", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "741186cd-1d62-4798-8e58-6cbe35105baa" + }, + "displayText": { + "$id": "3438", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "3439", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3440", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "68347d87-ae38-43b4-a62c-0fdc25b54cb1" + }, + "relationGuid": { + "$id": "3441", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "2f2b1fe6-d2b6-4aef-81cd-bea7a510312e" + }, + "displayText": { + "$id": "3442", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3443", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3444", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.get.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3445", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "227" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "494" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.get" + }, + { + "$id": "3446", + "kind": "basic", + "name": "update", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update the given glossary.", + "operation": { + "$id": "3447", + "name": "update", + "resourceName": "Glossary", + "doc": "Update the given glossary.", + "accessibility": "public", + "parameters": [ + { + "$id": "3448", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3449", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.update.apiVersion", + "readOnly": false + }, + { + "$id": "3451", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.update.glossaryId" + }, + { + "$id": "3453", + "kind": "query", + "name": "ignoreTermsAndCategories", + "serializedName": "ignoreTermsAndCategories", + "doc": "Whether ignore terms and categories", + "type": { + "$id": "3454", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.update.ignoreTermsAndCategories", + "readOnly": false + }, + { + "$id": "3455", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "229" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.update.contentType" + }, + { + "$id": "3456", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "231" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.update.accept" + }, + { + "$id": "3457", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "494" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.update.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.update", + "decorators": [], + "examples": [ + { + "$id": "3458", + "kind": "http", + "name": "Glossary_Update", + "description": "Glossary_Update", + "filePath": "2023-09-01/Glossary_Update.json", + "parameters": [ + { + "parameter": { + "$ref": "3451" + }, + "value": { + "$id": "3459", + "kind": "string", + "type": { + "$ref": "3452" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + }, + { + "parameter": { + "$ref": "3457" + }, + "value": { + "$id": "3460", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "guid": { + "$id": "3461", + "kind": "string", + "type": { + "$ref": "496" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "qualifiedName": { + "$id": "3462", + "kind": "string", + "type": { + "$ref": "503" + }, + "value": "Glossary" + }, + "name": { + "$id": "3463", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "3464", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3465", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "3466", + "kind": "string", + "type": { + "$ref": "507" + }, + "value": "1" + }, + "language": { + "$id": "3467", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "3468", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + }, + "terms": { + "$id": "3469", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3470", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3471", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3472", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + }, + "displayText": { + "$id": "3473", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "3474", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3475", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3476", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + }, + "displayText": { + "$id": "3477", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "categories": { + "$id": "3478", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3479", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3480", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "3481", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3482", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + }, + "displayText": { + "$id": "3483", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + }, + { + "$id": "3484", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3485", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "parentCategoryGuid": { + "$id": "3486", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3487", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + }, + "displayText": { + "$id": "3488", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory1" + } + } + }, + { + "$id": "3489", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3490", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3491", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + }, + "displayText": { + "$id": "3492", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory2" + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3493", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "guid": { + "$id": "3494", + "kind": "string", + "type": { + "$ref": "496" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "qualifiedName": { + "$id": "3495", + "kind": "string", + "type": { + "$ref": "503" + }, + "value": "Glossary" + }, + "name": { + "$id": "3496", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "3497", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3498", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "3499", + "kind": "string", + "type": { + "$ref": "507" + }, + "value": "2" + }, + "language": { + "$id": "3500", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "3501", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + }, + "createdBy": { + "$id": "3502", + "kind": "string", + "type": { + "$ref": "511" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "3503", + "kind": "string", + "type": { + "$ref": "515" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "3504", + "kind": "number", + "type": { + "$ref": "509" + }, + "value": 1672892675600 + }, + "updateTime": { + "$id": "3505", + "kind": "number", + "type": { + "$ref": "513" + }, + "value": 1672892675688 + }, + "terms": { + "$id": "3506", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3507", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3508", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3509", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + }, + "displayText": { + "$id": "3510", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "3511", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3512", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3513", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + }, + "displayText": { + "$id": "3514", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "categories": { + "$id": "3515", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3516", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3517", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "3518", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3519", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + }, + "displayText": { + "$id": "3520", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + }, + { + "$id": "3521", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3522", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "parentCategoryGuid": { + "$id": "3523", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3524", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + }, + "displayText": { + "$id": "3525", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory1" + } + } + }, + { + "$id": "3526", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3527", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3528", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + }, + "displayText": { + "$id": "3529", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory2" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3530", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3531", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.update.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3532", + "kind": "method", + "name": "ignoreTermsAndCategories", + "serializedName": "ignoreTermsAndCategories", + "doc": "Whether ignore terms and categories", + "type": { + "$id": "3533", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.update.ignoreTermsAndCategories", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3534", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "494" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.update.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3535", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "229" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.update.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3536", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "231" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.update.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "494" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.update" + }, + { + "$id": "3537", + "kind": "basic", + "name": "delete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a glossary. Will delete underlying terms/categories together. Recommend\nseparate delete terms and categories.", + "operation": { + "$id": "3538", + "name": "delete", + "resourceName": "Glossary", + "doc": "Delete a glossary. Will delete underlying terms/categories together. Recommend\nseparate delete terms and categories.", + "accessibility": "public", + "parameters": [ + { + "$id": "3539", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3540", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.delete.glossaryId" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.delete", + "decorators": [], + "examples": [ + { + "$id": "3541", + "kind": "http", + "name": "Glossary_Delete", + "description": "Glossary_Delete", + "filePath": "2023-09-01/Glossary_Delete.json", + "parameters": [ + { + "parameter": { + "$ref": "3539" + }, + "value": { + "$id": "3542", + "kind": "string", + "type": { + "$ref": "3540" + }, + "value": "c0c54153-13d1-1608-13af-43457cdffe75" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3543", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3544", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.delete.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.delete" + }, + { + "$id": "3545", + "kind": "basic", + "name": "getCategories", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the categories belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", + "operation": { + "$id": "3546", + "name": "getCategories", + "resourceName": "Glossary", + "doc": "Get the categories belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", + "accessibility": "public", + "parameters": [ + { + "$id": "3547", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.glossaryId" + }, + { + "$id": "3549", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3550", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.limit", + "readOnly": false + }, + { + "$id": "3551", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3552", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.offset", + "readOnly": false + }, + { + "$id": "3553", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3554", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.sort", + "readOnly": false + }, + { + "$id": "3555", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "233" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2579" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}/categories", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories", + "decorators": [], + "examples": [ + { + "$id": "3556", + "kind": "http", + "name": "Glossary_ListCategories", + "description": "Glossary_ListCategories", + "filePath": "2023-09-01/Glossary_ListCategories.json", + "parameters": [ + { + "parameter": { + "$ref": "3547" + }, + "value": { + "$id": "3557", + "kind": "string", + "type": { + "$ref": "3548" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + }, + { + "parameter": { + "$ref": "3549" + }, + "value": { + "$id": "3558", + "kind": "number", + "type": { + "$ref": "3550" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "3551" + }, + "value": { + "$id": "3559", + "kind": "number", + "type": { + "$ref": "3552" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "3553" + }, + "value": { + "$id": "3560", + "kind": "string", + "type": { + "$ref": "3554" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2579" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3561", + "kind": "array", + "type": { + "$ref": "2579" + }, + "value": [ + { + "$id": "3562", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "3563", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "3564", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1.ExampleCategory2@Glossary" + }, + "name": { + "$id": "3565", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "lastModifiedTS": { + "$id": "3566", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "2" + }, + "anchor": { + "$id": "3567", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3568", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3569", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "parentCategory": { + "$id": "3570", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3571", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3572", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + }, + "childrenCategories": { + "$id": "3573", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3574", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3575", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "relationGuid": { + "$id": "3576", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + } + } + } + ] + }, + "terms": { + "$id": "3577", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3578", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3579", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3580", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "3581", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + }, + { + "$id": "3582", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "3583", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "qualifiedName": { + "$id": "3584", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory2@Glossary" + }, + "name": { + "$id": "3585", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory2" + }, + "lastModifiedTS": { + "$id": "3586", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "1" + }, + "anchor": { + "$id": "3587", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3588", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3589", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + } + } + }, + "childrenCategories": { + "$id": "3590", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3591", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3592", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3593", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + } + ] + } + } + }, + { + "$id": "3594", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "3595", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "qualifiedName": { + "$id": "3596", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory3.ExampleCategory1.ExampleCategory2@Glossary" + }, + "name": { + "$id": "3597", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory3" + }, + "lastModifiedTS": { + "$id": "3598", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "2" + }, + "anchor": { + "$id": "3599", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3600", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3601", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + } + } + }, + "parentCategory": { + "$id": "3602", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3603", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3604", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + } + } + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3605", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3607", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3608", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3609", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3610", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3611", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3613", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "233" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "2579" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategories" + }, + { + "$id": "3614", + "kind": "basic", + "name": "getCategoriesHeaders", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the category headers belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", + "operation": { + "$id": "3615", + "name": "getCategoriesHeaders", + "resourceName": "Glossary", + "doc": "Get the category headers belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", + "accessibility": "public", + "parameters": [ + { + "$id": "3616", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.glossaryId" + }, + { + "$id": "3618", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3619", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.limit", + "readOnly": false + }, + { + "$id": "3620", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3621", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.offset", + "readOnly": false + }, + { + "$id": "3622", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.sort", + "readOnly": false + }, + { + "$id": "3624", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "235" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "517" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}/categories/headers", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders", + "decorators": [], + "examples": [ + { + "$id": "3625", + "kind": "http", + "name": "Glossary_ListCategoriesHeaders", + "description": "Glossary_ListCategoriesHeaders", + "filePath": "2023-09-01/Glossary_ListCategoriesHeaders.json", + "parameters": [ + { + "parameter": { + "$ref": "3616" + }, + "value": { + "$id": "3626", + "kind": "string", + "type": { + "$ref": "3617" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + }, + { + "parameter": { + "$ref": "3618" + }, + "value": { + "$id": "3627", + "kind": "number", + "type": { + "$ref": "3619" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "3620" + }, + "value": { + "$id": "3628", + "kind": "number", + "type": { + "$ref": "3621" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "3622" + }, + "value": { + "$id": "3629", + "kind": "string", + "type": { + "$ref": "3623" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "517" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3630", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3631", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3632", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "parentCategoryGuid": { + "$id": "3633", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3634", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + }, + "displayText": { + "$id": "3635", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory1" + } + } + }, + { + "$id": "3636", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3637", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3638", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + }, + "displayText": { + "$id": "3639", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory2" + } + } + }, + { + "$id": "3640", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3641", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "3642", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3643", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + }, + "displayText": { + "$id": "3644", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3645", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3646", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3647", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3648", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3649", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3650", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3651", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3653", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "235" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "517" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders" + }, + { + "$id": "3654", + "kind": "basic", + "name": "getDetailed", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get a specific glossary with detailed information. This API is not\nrecommend.\n\nRecommend to fetch terms/categories details separately using \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/categories.", + "operation": { + "$id": "3655", + "name": "getDetailed", + "resourceName": "Glossary", + "doc": "Get a specific glossary with detailed information. This API is not\nrecommend.\n\nRecommend to fetch terms/categories details separately using \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/categories.", + "accessibility": "public", + "parameters": [ + { + "$id": "3656", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3657", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.apiVersion", + "readOnly": false + }, + { + "$id": "3659", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.glossaryId" + }, + { + "$id": "3661", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "237" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "693" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}/detailed", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed", + "decorators": [], + "examples": [ + { + "$id": "3662", + "kind": "http", + "name": "Glossary_GetDetailed", + "description": "Glossary_GetDetailed", + "filePath": "2023-09-01/Glossary_GetDetailed.json", + "parameters": [ + { + "parameter": { + "$ref": "3659" + }, + "value": { + "$id": "3663", + "kind": "string", + "type": { + "$ref": "3660" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "693" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3664", + "kind": "model", + "type": { + "$ref": "693" + }, + "value": { + "guid": { + "$id": "3665", + "kind": "string", + "type": { + "$ref": "695" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "qualifiedName": { + "$id": "3666", + "kind": "string", + "type": { + "$ref": "702" + }, + "value": "Glossary" + }, + "name": { + "$id": "3667", + "kind": "string", + "type": { + "$ref": "700" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "3668", + "kind": "string", + "type": { + "$ref": "704" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3669", + "kind": "string", + "type": { + "$ref": "698" + }, + "value": "Example Long Description" + }, + "language": { + "$id": "3670", + "kind": "string", + "type": { + "$ref": "717" + }, + "value": "en" + }, + "usage": { + "$id": "3671", + "kind": "string", + "type": { + "$ref": "720" + }, + "value": "Example Glossary" + }, + "createdBy": { + "$id": "3672", + "kind": "string", + "type": { + "$ref": "710" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "3673", + "kind": "string", + "type": { + "$ref": "714" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "3674", + "kind": "number", + "type": { + "$ref": "708" + }, + "value": 1672892675688 + }, + "updateTime": { + "$id": "3675", + "kind": "number", + "type": { + "$ref": "712" + }, + "value": 1672892675688 + }, + "terms": { + "$id": "3676", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3677", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3678", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3679", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + }, + "displayText": { + "$id": "3680", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "3681", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3682", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3683", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + }, + "displayText": { + "$id": "3684", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "categories": { + "$id": "3685", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3686", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3687", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "relationGuid": { + "$id": "3688", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + } + } + }, + { + "$id": "3689", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3690", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3691", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + { + "$id": "3692", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3693", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3694", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + } + } + } + ] + }, + "termInfo": { + "$id": "3695", + "kind": "dict", + "type": { + "$ref": "725" + }, + "value": { + "54688d39-b298-4104-9e80-f2a16f44aaea": { + "$id": "3696", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3697", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "3698", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "3699", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "3700", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3701", + "kind": "string", + "type": { + "$ref": "587" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "3702", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "2" + }, + "abbreviation": { + "$id": "3703", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "createdBy": { + "$id": "3704", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3705", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3706", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "3707", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606290587593 + }, + "status": { + "$id": "3708", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3709", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3710", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3711", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "assignedEntities": { + "$id": "3712", + "kind": "array", + "type": { + "$ref": "641" + }, + "value": [ + { + "$id": "3713", + "kind": "model", + "type": { + "$ref": "642" + }, + "value": { + "guid": { + "$id": "3714", + "kind": "string", + "type": { + "$ref": "644" + }, + "value": "ab9f1920-0b94-436d-aeb4-11a32c270fc0" + }, + "typeName": { + "$id": "3715", + "kind": "string", + "type": { + "$ref": "646" + }, + "value": "hdfs_path" + }, + "entityStatus": { + "$id": "3716", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "displayText": { + "$id": "3717", + "kind": "string", + "type": { + "$ref": "649" + }, + "value": "1" + }, + "relationshipType": { + "$id": "3718", + "kind": "string", + "type": { + "$ref": "652" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "relationshipGuid": { + "$id": "3719", + "kind": "string", + "type": { + "$ref": "661" + }, + "value": "cf2e959c-05e6-4a9f-b106-b6475741c2ba" + }, + "relationshipStatus": { + "$id": "3720", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "relationshipAttributes": { + "$id": "3721", + "kind": "model", + "type": { + "$ref": "654" + }, + "value": { + "typeName": { + "$id": "3722", + "kind": "string", + "type": { + "$ref": "657" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "attributes": { + "$id": "3723", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "3724", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Expression" + }, + "createdBy": { + "$id": "3725", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleCreator" + }, + "steward": { + "$id": "3726", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "ExampleSteward" + }, + "confidence": { + "$id": "3727", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 100 + }, + "description": { + "$id": "3728", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "source": { + "$id": "3729", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Azure" + }, + "status": { + "$id": "3730", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + } + } + } + } + } + ] + }, + "categories": { + "$id": "3731", + "kind": "array", + "type": { + "$ref": "665" + }, + "value": [ + { + "$id": "3732", + "kind": "model", + "type": { + "$ref": "666" + }, + "value": { + "categoryGuid": { + "$id": "3733", + "kind": "string", + "type": { + "$ref": "668" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3734", + "kind": "string", + "type": { + "$ref": "675" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + } + } + } + ] + }, + "seeAlso": { + "$id": "3735", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3736", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3737", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3738", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3739", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "synonyms": { + "$id": "3740", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3741", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3742", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3743", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3744", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "contacts": { + "$id": "3745", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "3746", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "3747", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "3748", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "3749", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Steward": { + "$id": "3750", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "3751", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "3752", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "3753", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Steward Info" + } + } + } + ] + } + } + }, + "resources": { + "$id": "3754", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3755", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3756", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3757", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + }, + "952c7ba4-4c89-42d8-a05a-7d2161be7008": { + "$id": "3758", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3759", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "qualifiedName": { + "$id": "3760", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm2@Glossary" + }, + "name": { + "$id": "3761", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm2" + }, + "shortDescription": { + "$id": "3762", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3763", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3764", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T2" + }, + "createdBy": { + "$id": "3765", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3766", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3767", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287312495 + }, + "updateTime": { + "$id": "3768", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287312495 + }, + "status": { + "$id": "3769", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3770", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3771", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3772", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + } + } + }, + "seeAlso": { + "$id": "3773", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3774", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3775", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3776", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3777", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + }, + "synonyms": { + "$id": "3778", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3779", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3780", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3781", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3782", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + }, + "resources": { + "$id": "3783", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3784", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3785", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3786", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + } + }, + "categoryInfo": { + "$id": "3787", + "kind": "dict", + "type": { + "$ref": "722" + }, + "value": { + "ed7458f0-9463-48a5-b5c6-4f785fb34e12": { + "$id": "3788", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "3789", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "qualifiedName": { + "$id": "3790", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory1.ExampleCategory2@Glossary" + }, + "name": { + "$id": "3791", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory1" + }, + "longDescription": { + "$id": "3792", + "kind": "string", + "type": { + "$ref": "554" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "3793", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "3" + }, + "anchor": { + "$id": "3794", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3795", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3796", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + } + } + }, + "parentCategory": { + "$id": "3797", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3798", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3799", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + }, + "childrenCategories": { + "$id": "3800", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3801", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3802", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "relationGuid": { + "$id": "3803", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + } + } + } + ] + }, + "terms": { + "$id": "3804", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3805", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3806", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3807", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" + }, + "displayText": { + "$id": "3808", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + } + } + }, + "e47c4584-daca-4f9e-9092-194e04692c9a": { + "$id": "3809", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "3810", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "qualifiedName": { + "$id": "3811", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory2@Glossary" + }, + "name": { + "$id": "3812", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory2" + }, + "lastModifiedTS": { + "$id": "3813", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "1" + }, + "anchor": { + "$id": "3814", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3815", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3816", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + } + } + }, + "childrenCategories": { + "$id": "3817", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3818", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3819", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3820", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" + } + } + } + ] + } + } + }, + "0d6766f6-f4b6-435b-bda2-d3edc358998e": { + "$id": "3821", + "kind": "model", + "type": { + "$ref": "549" + }, + "value": { + "guid": { + "$id": "3822", + "kind": "string", + "type": { + "$ref": "551" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "qualifiedName": { + "$id": "3823", + "kind": "string", + "type": { + "$ref": "558" + }, + "value": "ExampleCategory3.ExampleCategory1.ExampleCategory2@Glossary" + }, + "name": { + "$id": "3824", + "kind": "string", + "type": { + "$ref": "556" + }, + "value": "ExampleCategory3" + }, + "lastModifiedTS": { + "$id": "3825", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "2" + }, + "anchor": { + "$id": "3826", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3827", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3828", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + } + } + }, + "parentCategory": { + "$id": "3829", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3830", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3831", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" + } + } + } + } + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3832", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3833", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3834", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "237" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "693" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed" + }, + { + "$id": "3835", + "kind": "basic", + "name": "partialUpdate", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update the glossary partially. Some properties such as qualifiedName are not\nallowed to be updated.\n\nSo far we only supports partial updating\nshortDescription, longDescription, language and usage for glossary. \n\nRecommend\nusing 'ignoreTermsAndCategories=true' to reduce response body size.", + "operation": { + "$id": "3836", + "name": "partialUpdate", + "resourceName": "Glossary", + "doc": "Update the glossary partially. Some properties such as qualifiedName are not\nallowed to be updated.\n\nSo far we only supports partial updating\nshortDescription, longDescription, language and usage for glossary. \n\nRecommend\nusing 'ignoreTermsAndCategories=true' to reduce response body size.", + "accessibility": "public", + "parameters": [ + { + "$id": "3837", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3838", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3839", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.apiVersion", + "readOnly": false + }, + { + "$id": "3840", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3841", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.glossaryId" + }, + { + "$id": "3842", + "kind": "query", + "name": "ignoreTermsAndCategories", + "serializedName": "ignoreTermsAndCategories", + "doc": "Whether ignore terms and categories", + "type": { + "$id": "3843", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.ignoreTermsAndCategories", + "readOnly": false + }, + { + "$id": "3844", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "239" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.contentType" + }, + { + "$id": "3845", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "241" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.accept" + }, + { + "$id": "3846", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues.", + "type": { + "$ref": "362" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}/partial", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate", + "decorators": [], + "examples": [ + { + "$id": "3847", + "kind": "http", + "name": "Glossary_PartialUpdate", + "description": "Glossary_PartialUpdate", + "filePath": "2023-09-01/Glossary_PartialUpdate.json", + "parameters": [ + { + "parameter": { + "$ref": "3840" + }, + "value": { + "$id": "3848", + "kind": "string", + "type": { + "$ref": "3841" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + }, + { + "parameter": { + "$ref": "3846" + }, + "value": { + "$id": "3849", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "longDescription": { + "$id": "3850", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "Example Long Description" + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "494" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3851", + "kind": "model", + "type": { + "$ref": "494" + }, + "value": { + "guid": { + "$id": "3852", + "kind": "string", + "type": { + "$ref": "496" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "qualifiedName": { + "$id": "3853", + "kind": "string", + "type": { + "$ref": "503" + }, + "value": "Glossary" + }, + "name": { + "$id": "3854", + "kind": "string", + "type": { + "$ref": "501" + }, + "value": "Glossary" + }, + "shortDescription": { + "$id": "3855", + "kind": "string", + "type": { + "$ref": "505" + }, + "value": "Example Short Description" + }, + "longDescription": { + "$id": "3856", + "kind": "string", + "type": { + "$ref": "499" + }, + "value": "Example Long Description" + }, + "lastModifiedTS": { + "$id": "3857", + "kind": "string", + "type": { + "$ref": "507" + }, + "value": "3" + }, + "language": { + "$id": "3858", + "kind": "string", + "type": { + "$ref": "530" + }, + "value": "en" + }, + "usage": { + "$id": "3859", + "kind": "string", + "type": { + "$ref": "548" + }, + "value": "Example Glossary" + }, + "createdBy": { + "$id": "3860", + "kind": "string", + "type": { + "$ref": "511" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "3861", + "kind": "string", + "type": { + "$ref": "515" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "3862", + "kind": "number", + "type": { + "$ref": "509" + }, + "value": 1672892675600 + }, + "updateTime": { + "$id": "3863", + "kind": "number", + "type": { + "$ref": "513" + }, + "value": 1672892675688 + }, + "terms": { + "$id": "3864", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3865", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3866", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3867", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + }, + "displayText": { + "$id": "3868", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "3869", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3870", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3871", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + }, + "displayText": { + "$id": "3872", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "categories": { + "$id": "3873", + "kind": "array", + "type": { + "$ref": "517" + }, + "value": [ + { + "$id": "3874", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3875", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" + }, + "parentCategoryGuid": { + "$id": "3876", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "relationGuid": { + "$id": "3877", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" + }, + "displayText": { + "$id": "3878", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory3" + } + } + }, + { + "$id": "3879", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3880", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" + }, + "parentCategoryGuid": { + "$id": "3881", + "kind": "string", + "type": { + "$ref": "526" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3882", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" + }, + "displayText": { + "$id": "3883", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory1" + } + } + }, + { + "$id": "3884", + "kind": "model", + "type": { + "$ref": "518" + }, + "value": { + "categoryGuid": { + "$id": "3885", + "kind": "string", + "type": { + "$ref": "520" + }, + "value": "e47c4584-daca-4f9e-9092-194e04692c9a" + }, + "relationGuid": { + "$id": "3886", + "kind": "string", + "type": { + "$ref": "528" + }, + "value": "94071e56-fd3e-4441-93ff-1834f818482d" + }, + "displayText": { + "$id": "3887", + "kind": "string", + "type": { + "$ref": "524" + }, + "value": "ExampleCategory2" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3888", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3889", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3890", + "kind": "method", + "name": "ignoreTermsAndCategories", + "serializedName": "ignoreTermsAndCategories", + "doc": "Whether ignore terms and categories", + "type": { + "$id": "3891", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.ignoreTermsAndCategories", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3892", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues.", + "type": { + "$ref": "362" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3893", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "239" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3894", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "241" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "494" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate" + }, + { + "$id": "3895", + "kind": "basic", + "name": "getTerms", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get terms belonging to a specific glossary. Recommend using limit/offset to get\npagination result.", + "operation": { + "$id": "3896", + "name": "getTerms", + "resourceName": "Glossary", + "doc": "Get terms belonging to a specific glossary. Recommend using limit/offset to get\npagination result.", + "accessibility": "public", + "parameters": [ + { + "$id": "3897", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "3898", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "3899", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.apiVersion", + "readOnly": false + }, + { + "$id": "3900", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3901", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.glossaryId" + }, + { + "$id": "3902", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3903", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.limit", + "readOnly": false + }, + { + "$id": "3904", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3905", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.offset", + "readOnly": false + }, + { + "$id": "3906", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3907", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.sort", + "readOnly": false + }, + { + "$id": "3908", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "243" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3199" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}/terms", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms", + "decorators": [], + "examples": [ + { + "$id": "3909", + "kind": "http", + "name": "Glossary_ListTerms", + "description": "Glossary_ListTerms", + "filePath": "2023-09-01/Glossary_ListTerms.json", + "parameters": [ + { + "parameter": { + "$ref": "3900" + }, + "value": { + "$id": "3910", + "kind": "string", + "type": { + "$ref": "3901" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + }, + { + "parameter": { + "$ref": "3902" + }, + "value": { + "$id": "3911", + "kind": "number", + "type": { + "$ref": "3903" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "3904" + }, + "value": { + "$id": "3912", + "kind": "number", + "type": { + "$ref": "3905" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "3906" + }, + "value": { + "$id": "3913", + "kind": "string", + "type": { + "$ref": "3907" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3199" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "3914", + "kind": "array", + "type": { + "$ref": "3199" + }, + "value": [ + { + "$id": "3915", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3916", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "qualifiedName": { + "$id": "3917", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm1@Glossary" + }, + "name": { + "$id": "3918", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm1" + }, + "shortDescription": { + "$id": "3919", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3920", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3921", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T1" + }, + "createdBy": { + "$id": "3922", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3923", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3924", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287247276 + }, + "updateTime": { + "$id": "3925", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287247276 + }, + "status": { + "$id": "3926", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3927", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3928", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3929", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + } + } + }, + "seeAlso": { + "$id": "3930", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3931", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3932", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3933", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3934", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "synonyms": { + "$id": "3935", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3936", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3937", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "3938", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3939", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + }, + "contacts": { + "$id": "3940", + "kind": "dict", + "type": { + "$ref": "411" + }, + "value": { + "Expert": { + "$id": "3941", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "3942", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "3943", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "3944", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Expert Info" + } + } + } + ] + }, + "Steward": { + "$id": "3945", + "kind": "array", + "type": { + "$ref": "413" + }, + "value": [ + { + "$id": "3946", + "kind": "model", + "type": { + "$ref": "414" + }, + "value": { + "id": { + "$id": "3947", + "kind": "string", + "type": { + "$ref": "416" + }, + "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" + }, + "info": { + "$id": "3948", + "kind": "string", + "type": { + "$ref": "418" + }, + "value": "Example Steward Info" + } + } + } + ] + } + } + }, + "resources": { + "$id": "3949", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3950", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3951", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3952", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + }, + { + "$id": "3953", + "kind": "model", + "type": { + "$ref": "582" + }, + "value": { + "guid": { + "$id": "3954", + "kind": "string", + "type": { + "$ref": "584" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "qualifiedName": { + "$id": "3955", + "kind": "string", + "type": { + "$ref": "591" + }, + "value": "ExampleTerm2@Glossary" + }, + "name": { + "$id": "3956", + "kind": "string", + "type": { + "$ref": "589" + }, + "value": "ExampleTerm2" + }, + "shortDescription": { + "$id": "3957", + "kind": "string", + "type": { + "$ref": "593" + }, + "value": "Example Short Description" + }, + "lastModifiedTS": { + "$id": "3958", + "kind": "string", + "type": { + "$ref": "595" + }, + "value": "1" + }, + "abbreviation": { + "$id": "3959", + "kind": "string", + "type": { + "$ref": "605" + }, + "value": "T2" + }, + "createdBy": { + "$id": "3960", + "kind": "string", + "type": { + "$ref": "599" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "updatedBy": { + "$id": "3961", + "kind": "string", + "type": { + "$ref": "603" + }, + "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" + }, + "createTime": { + "$id": "3962", + "kind": "number", + "type": { + "$ref": "597" + }, + "value": 1606287312495 + }, + "updateTime": { + "$id": "3963", + "kind": "number", + "type": { + "$ref": "601" + }, + "value": 1606287312495 + }, + "status": { + "$id": "3964", + "kind": "string", + "type": { + "$ref": "30" + }, + "value": "Approved" + }, + "anchor": { + "$id": "3965", + "kind": "model", + "type": { + "$ref": "572" + }, + "value": { + "glossaryGuid": { + "$id": "3966", + "kind": "string", + "type": { + "$ref": "576" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + }, + "relationGuid": { + "$id": "3967", + "kind": "string", + "type": { + "$ref": "578" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + } + } + }, + "seeAlso": { + "$id": "3968", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3969", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3970", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3971", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" + }, + "displayText": { + "$id": "3972", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + }, + "synonyms": { + "$id": "3973", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "3974", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "3975", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "3976", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" + }, + "displayText": { + "$id": "3977", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + } + ] + }, + "resources": { + "$id": "3978", + "kind": "array", + "type": { + "$ref": "630" + }, + "value": [ + { + "$id": "3979", + "kind": "model", + "type": { + "$ref": "631" + }, + "value": { + "displayName": { + "$id": "3980", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "Example Display Name" + }, + "url": { + "$id": "3981", + "kind": "string", + "type": { + "$ref": "635" + }, + "value": "Example Url" + } + } + } + ] + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "3982", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3983", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3984", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3985", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3986", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3987", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3988", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "3989", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "3990", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "243" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "3199" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getTerms" + }, + { + "$id": "3991", + "kind": "basic", + "name": "getTermHeaders", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get term headers belonging to a specific glossary. Recommend using limit/offset\nto get pagination result.", + "operation": { + "$id": "3992", + "name": "getTermHeaders", + "resourceName": "Glossary", + "doc": "Get term headers belonging to a specific glossary. Recommend using limit/offset\nto get pagination result.", + "accessibility": "public", + "parameters": [ + { + "$id": "3993", + "kind": "path", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "3994", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.glossaryId" + }, + { + "$id": "3995", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "3996", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.limit", + "readOnly": false + }, + { + "$id": "3997", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "3998", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.offset", + "readOnly": false + }, + { + "$id": "3999", + "kind": "query", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "4000", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.sort", + "readOnly": false + }, + { + "$id": "4001", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "245" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "532" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/glossary/{glossaryId}/terms/headers", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders", + "decorators": [], + "examples": [ + { + "$id": "4002", + "kind": "http", + "name": "Glossary_ListTermHeaders", + "description": "Glossary_ListTermHeaders", + "filePath": "2023-09-01/Glossary_ListTermHeaders.json", + "parameters": [ + { + "parameter": { + "$ref": "3993" + }, + "value": { + "$id": "4003", + "kind": "string", + "type": { + "$ref": "3994" + }, + "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" + } + }, + { + "parameter": { + "$ref": "3995" + }, + "value": { + "$id": "4004", + "kind": "number", + "type": { + "$ref": "3996" + }, + "value": -1 + } + }, + { + "parameter": { + "$ref": "3997" + }, + "value": { + "$id": "4005", + "kind": "number", + "type": { + "$ref": "3998" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "3999" + }, + "value": { + "$id": "4006", + "kind": "string", + "type": { + "$ref": "4000" + }, + "value": "ASC" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "532" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4007", + "kind": "array", + "type": { + "$ref": "532" + }, + "value": [ + { + "$id": "4008", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "4009", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "54688d39-b298-4104-9e80-f2a16f44aaea" + }, + "relationGuid": { + "$id": "4010", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "7b6a8149-a928-476a-a068-dce58653cfa0" + }, + "displayText": { + "$id": "4011", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm1" + } + } + }, + { + "$id": "4012", + "kind": "model", + "type": { + "$ref": "533" + }, + "value": { + "termGuid": { + "$id": "4013", + "kind": "string", + "type": { + "$ref": "546" + }, + "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" + }, + "relationGuid": { + "$id": "4014", + "kind": "string", + "type": { + "$ref": "541" + }, + "value": "9385640b-e6be-437d-a6b9-62d11c14a189" + }, + "displayText": { + "$id": "4015", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "ExampleTerm2" + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "4016", + "kind": "method", + "name": "glossaryId", + "serializedName": "glossaryId", + "doc": "The globally unique identifier for glossary.", + "type": { + "$id": "4017", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.glossaryId", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "4018", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "4019", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "4020", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "4021", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "4022", + "kind": "method", + "name": "sort", + "serializedName": "sort", + "doc": "The sort order, ASC (default) or DESC.", + "type": { + "$id": "4023", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.sort", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "4024", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "245" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "532" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders" + } + ], + "parameters": [ + { + "$id": "4025", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "4026", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + }, + { + "$id": "4027", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "doc": "The API version to use for this operation.", + "type": { + "$id": "4028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "4029", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Glossary", + "apiVersions": [ + "2023-09-01" + ], + "parent": { + "$ref": "1353" + } + }, + { + "$id": "4030", + "kind": "client", + "name": "Discovery", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [ + { + "$id": "4031", + "kind": "basic", + "name": "query", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get data using search.", + "operation": { + "$id": "4032", + "name": "query", + "resourceName": "Discovery", + "doc": "Get data using search.", + "accessibility": "public", + "parameters": [ + { + "$id": "4033", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "4034", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "4035", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.query.apiVersion", + "readOnly": false + }, + { + "$id": "4036", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "247" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.query.contentType" + }, + { + "$id": "4037", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "249" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.query.accept" + }, + { + "$id": "4038", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "727" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Discovery.query.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/search/query", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Discovery.query", + "decorators": [], + "examples": [ + { + "$id": "4039", + "kind": "http", + "name": "Discovery_Query", + "description": "Discovery_Query", + "filePath": "2023-09-01/Discovery_Query.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4040", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4041", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "exampledata" + }, + "filter": { + "$id": "4042", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "objectType": "Files" + }, + { + "entityType": "azure_blob_path" + } + ] + } + }, + "limit": { + "$id": "4043", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "orderby": { + "$id": "4044", + "kind": "array", + "type": { + "$ref": "462" + }, + "value": [ + { + "$id": "4045", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "name": "ASC" + } + }, + { + "$id": "4046", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "updateTime": "DESC" + } + } + ] + }, + "facets": { + "$id": "4047", + "kind": "array", + "type": { + "$ref": "738" + }, + "value": [ + { + "$id": "4048", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4049", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "assetType" + }, + "count": { + "$id": "4050", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 0 + }, + "sort": { + "$id": "4051", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4052", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4053", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4054", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "classification" + }, + "count": { + "$id": "4055", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4056", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4057", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4058", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4059", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "contactId" + }, + "count": { + "$id": "4060", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4061", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4062", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4063", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4064", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "label" + }, + "count": { + "$id": "4065", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4066", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4067", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4068", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4069", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "term" + }, + "count": { + "$id": "4070", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4071", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4072", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + } + ] + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4073", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4074", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4075", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 2 + }, + "@search.count.approximate": { + "$id": "4076", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4077", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4078", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4079", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4080", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4081", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" + }, + "name": { + "$id": "4082", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1.txt" + }, + "entityType": { + "$id": "4083", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4084", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4085", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4086", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4087", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4088", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4089", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4090", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4091", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4092", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" + }, + "qualifiedName": { + "$id": "4093", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" + }, + "name": { + "$id": "4094", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2.txt" + }, + "entityType": { + "$id": "4095", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4096", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4097", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4098", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4099", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4100", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4101", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4102", + "kind": "http", + "name": "Discovery_Query_And", + "description": "Discovery_Query_And", + "filePath": "2023-09-01/Discovery_Query_And.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4103", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4104", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4105", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "entityType": "azure_blob_path" + }, + { + "attributeName": "qualifiedName", + "operator": "contains", + "attributeValue": ".csv" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4106", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4107", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4108", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 5 + }, + "@search.count.approximate": { + "$id": "4109", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4110", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4111", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4112", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "@search.highlights": { + "$id": "4113", + "kind": "model", + "type": { + "$ref": "783" + }, + "value": { + "qualifiedName": { + "$id": "4114", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4115", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" + } + ] + } + } + }, + "id": { + "$id": "4116", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" + }, + "qualifiedName": { + "$id": "4117", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" + }, + "name": { + "$id": "4118", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.csv" + }, + "entityType": { + "$id": "4119", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4120", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4121", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4122", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4123", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4124", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4125", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4126", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4127", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4128", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "@search.highlights": { + "$id": "4129", + "kind": "model", + "type": { + "$ref": "783" + }, + "value": { + "qualifiedName": { + "$id": "4130", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4131", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" + } + ] + } + } + }, + "id": { + "$id": "4132", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "2605db54-086d-4d6c-adb6-f0bbed6c6eab" + }, + "qualifiedName": { + "$id": "4133", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" + }, + "name": { + "$id": "4134", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "AllTypes.csv" + }, + "entityType": { + "$id": "4135", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4136", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4137", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4138", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4139", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4140", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4141", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4142", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4143", + "kind": "http", + "name": "Discovery_Query_AndOrNested", + "description": "Discovery_Query_AndOrNested", + "filePath": "2023-09-01/Discovery_Query_AndOrNested.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4144", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4145", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4146", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "entityType": "azure_blob_path" + }, + { + "attributeName": "qualifiedName", + "operator": "contains", + "attributeValue": ".csv" + }, + { + "or": [ + { + "attributeName": "name", + "operator": "eq", + "attributeValue": "exampledata.csv" + }, + { + "attributeName": "qualifiedName", + "operator": "prefix", + "attributeValue": "https://" + } + ] + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4147", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4148", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4149", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 2 + }, + "@search.count.approximate": { + "$id": "4150", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4151", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4152", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4153", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "@search.highlights": { + "$id": "4154", + "kind": "model", + "type": { + "$ref": "783" + }, + "value": { + "qualifiedName": { + "$id": "4155", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4156", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" + } + ] + } + } + }, + "id": { + "$id": "4157", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" + }, + "qualifiedName": { + "$id": "4158", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" + }, + "name": { + "$id": "4159", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.csv" + }, + "entityType": { + "$id": "4160", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4161", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4162", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4163", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4164", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4165", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4166", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4167", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4168", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4169", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "@search.highlights": { + "$id": "4170", + "kind": "model", + "type": { + "$ref": "783" + }, + "value": { + "qualifiedName": { + "$id": "4171", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4172", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" + } + ] + }, + "name": { + "$id": "4173", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4174", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "AllTypes.csv" + } + ] + } + } + }, + "id": { + "$id": "4175", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "2605db54-086d-4d6c-adb6-f0bbed6c6eab" + }, + "qualifiedName": { + "$id": "4176", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" + }, + "name": { + "$id": "4177", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "AllTypes.csv" + }, + "entityType": { + "$id": "4178", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4179", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4180", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4181", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4182", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4183", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4184", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4185", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4186", + "kind": "http", + "name": "Discovery_Query_AssetType", + "description": "Discovery_Query_AssetType", + "filePath": "2023-09-01/Discovery_Query_AssetType.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4187", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4188", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4189", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "or": [ + { + "assetType": "SQL Server" + }, + { + "assetType": "Azure SQL Server" + }, + { + "assetType": "Azure SQL Database" + }, + { + "assetType": "Azure SQL Data Warehouse" + }, + { + "assetType": "Azure SQL Managed Instance" + }, + { + "assetType": "Azure Storage Account" + }, + { + "assetType": "Azure Blob Storage" + }, + { + "assetType": "Azure Files" + }, + { + "assetType": "Azure Table Storage" + }, + { + "assetType": "Azure Data Lake Storage Gen1" + }, + { + "assetType": "Azure Data Lake Storage Gen2" + }, + { + "assetType": "Azure Cosmos DB" + }, + { + "assetType": "Azure Data Factory" + }, + { + "assetType": "Azure Cognitive Search" + }, + { + "assetType": "Power BI" + }, + { + "assetType": "Azure Data Explorer" + }, + { + "assetType": "Amazon S3" + }, + { + "assetType": "Azure Data Share" + }, + { + "assetType": "Teradata" + }, + { + "assetType": "SAP S4HANA" + }, + { + "assetType": "SAP ECC" + }, + { + "assetType": "SQL Server Integration Services" + }, + { + "assetType": "hive" + }, + { + "assetType": "Azure Database for MySQL" + }, + { + "assetType": "Azure Database for MariaDB" + }, + { + "assetType": "Azure Database for PostgreSQL" + }, + { + "assetType": "Azure Synapse Analytics" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4190", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4191", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "continuationToken": { + "$id": "4192", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "@search.count": { + "$id": "4193", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 5155 + }, + "@search.count.approximate": { + "$id": "4194", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": true + }, + "value": { + "$id": "4195", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4196", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4197", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4198", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "24c16e53-1bfd-4d6c-b4ce-b1f6f6f60000" + }, + "qualifiedName": { + "$id": "4199", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata1" + }, + "name": { + "$id": "4200", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1" + }, + "entityType": { + "$id": "4201", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "classification": { + "$id": "4202", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4203", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4204", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4205", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + }, + "term": { + "$id": "4206", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4207", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4208", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4209", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4210", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "d7b516fc-5d38-40f8-baeb-72f6f6f60000" + }, + "qualifiedName": { + "$id": "4211", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata2" + }, + "name": { + "$id": "4212", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2" + }, + "entityType": { + "$id": "4213", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "classification": { + "$id": "4214", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4215", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4216", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4217", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + }, + "term": { + "$id": "4218", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4219", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4220", + "kind": "http", + "name": "Discovery_Query_Attribute", + "description": "Discovery_Query_Attribute", + "filePath": "2023-09-01/Discovery_Query_Attribute.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4221", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4222", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4223", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "or": [ + { + "attributeName": "name", + "operator": "eq", + "attributeValue": "exampledata.csv" + }, + { + "attributeName": "createTime", + "operator": "ge", + "attributeValue": 1545580800000 + }, + { + "attributeName": "modifiedTime", + "operator": "timerange", + "attributeValue": "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4224", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4225", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4226", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 4 + }, + "@search.count.approximate": { + "$id": "4227", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4228", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4229", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4230", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4231", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" + }, + "qualifiedName": { + "$id": "4232", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" + }, + "name": { + "$id": "4233", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.csv" + }, + "entityType": { + "$id": "4234", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4235", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4236", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4237", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4238", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4239", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4240", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4241", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4242", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4243", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4244", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "55b2290d-e11d-4ed2-8c7a-0d8d35eb6254" + }, + "qualifiedName": { + "$id": "4245", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://examplegen2account.dfs.core.windows.net/examplepath/csv/exampledata.csv" + }, + "name": { + "$id": "4246", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.csv" + }, + "owner": { + "$id": "4247", + "kind": "string", + "type": { + "$ref": "807" + }, + "value": "$superuser" + }, + "entityType": { + "$id": "4248", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_datalake_gen2_path" + }, + "classification": { + "$id": "4249", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4250", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4251", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4252", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4253", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Data Lake Storage Gen2" + } + ] + }, + "term": { + "$id": "4254", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4255", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4256", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4257", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4258", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "55ceaddf-30ac-40f3-b656-71f6f6f60000" + }, + "entityType": { + "$id": "4259", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "name": { + "$id": "4260", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampleData_v1" + }, + "qualifiedName": { + "$id": "4261", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v1" + }, + "assetType": { + "$id": "4262", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4263", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + } + } + }, + { + "$id": "4264", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4265", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4266", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "89416661-5269-4f3d-ba35-e0f6f6f60000" + }, + "entityType": { + "$id": "4267", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "name": { + "$id": "4268", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampleData_v2" + }, + "qualifiedName": { + "$id": "4269", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v2" + }, + "assetType": { + "$id": "4270", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4271", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4272", + "kind": "http", + "name": "Discovery_Query_BusinessMetadataAttribute", + "description": "Discovery_Query_BusinessMetadataAttribute", + "filePath": "2023-09-01/Discovery_Query_BusinessMetadataAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4273", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4274", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4275", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "or": [ + { + "attributeName": ".", + "operator": "eq|ne|contains|prefix", + "attributeValue": "string value" + }, + { + "attributeName": ".", + "operator": "eq|ne|gt|ge|lt|le", + "attributeValue": 123 + }, + { + "attributeName": ".", + "operator": "eq|ne", + "attributeValue": true + }, + { + "attributeName": ".", + "operator": "timerange", + "attributeValue": "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4276", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4277", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4278", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 1 + }, + "@search.count.approximate": { + "$id": "4279", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4280", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4281", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4282", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4283", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" + }, + "qualifiedName": { + "$id": "4284", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" + }, + "name": { + "$id": "4285", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.csv" + }, + "entityType": { + "$id": "4286", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "objectType": { + "$id": "4287", + "kind": "string", + "type": { + "$ref": "790" + }, + "value": "Files" + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4288", + "kind": "http", + "name": "Discovery_Query_Classification", + "description": "Discovery_Query_Classification", + "filePath": "2023-09-01/Discovery_Query_Classification.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4289", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4290", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4291", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "classification": "MICROSOFT.PERSONAL.EMAIL", + "includeSubClassifications": true + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4292", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4293", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4294", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 5 + }, + "@search.count.approximate": { + "$id": "4295", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4296", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4297", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4298", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4299", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "b9638b91-884f-4e5e-98b5-29f6f6f60000" + }, + "qualifiedName": { + "$id": "4300", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleserver.database.windows.net/examplesqldb/examplepath/exampledata1" + }, + "name": { + "$id": "4301", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1" + }, + "entityType": { + "$id": "4302", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_table" + }, + "classification": { + "$id": "4303", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4304", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.NAME" + }, + { + "$id": "4305", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" + }, + { + "$id": "4306", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.US.PHONE_NUMBER" + }, + { + "$id": "4307", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + ] + }, + "label": { + "$id": "4308", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4309", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4310", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Database" + } + ] + }, + "term": { + "$id": "4311", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4312", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4313", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4314", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4315", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "01aefb9a-61cd-4a02-a572-70f6f6f60000" + }, + "qualifiedName": { + "$id": "4316", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleserver.database.windows.net/exampledw/examplepath/exampledata2" + }, + "name": { + "$id": "4317", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2" + }, + "entityType": { + "$id": "4318", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_dw_table" + }, + "classification": { + "$id": "4319", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4320", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.GOVERNMENT.CITY_NAME" + }, + { + "$id": "4321", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.GOVERNMENT.US.STATE" + }, + { + "$id": "4322", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.NAME" + }, + { + "$id": "4323", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" + }, + { + "$id": "4324", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + ] + }, + "label": { + "$id": "4325", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4326", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4327", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Data Warehouse" + } + ] + }, + "term": { + "$id": "4328", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4329", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4330", + "kind": "http", + "name": "Discovery_Query_Collection", + "description": "Discovery_Query_Collection", + "filePath": "2023-09-01/Discovery_Query_Collection.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4331", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4332", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4333", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "collectionId": "collectionName" + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4334", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4335", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4336", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 5 + }, + "@search.count.approximate": { + "$id": "4337", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4338", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4339", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4340", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4341", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "b9638b91-884f-4e5e-98b5-29f6f6f60000" + }, + "qualifiedName": { + "$id": "4342", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleserver.database.windows.net/examplesqldb/examplepath/exampledata1" + }, + "name": { + "$id": "4343", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1" + }, + "entityType": { + "$id": "4344", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_table" + }, + "classification": { + "$id": "4345", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4346", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.NAME" + }, + { + "$id": "4347", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" + }, + { + "$id": "4348", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.US.PHONE_NUMBER" + }, + { + "$id": "4349", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + ] + }, + "label": { + "$id": "4350", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4351", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4352", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Database" + } + ] + }, + "term": { + "$id": "4353", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4354", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4355", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4356", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4357", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "01aefb9a-61cd-4a02-a572-70f6f6f60000" + }, + "qualifiedName": { + "$id": "4358", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleserver.database.windows.net/exampledw/examplepath/exampledata2" + }, + "name": { + "$id": "4359", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2" + }, + "entityType": { + "$id": "4360", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_dw_table" + }, + "classification": { + "$id": "4361", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4362", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.GOVERNMENT.CITY_NAME" + }, + { + "$id": "4363", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.GOVERNMENT.US.STATE" + }, + { + "$id": "4364", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.NAME" + }, + { + "$id": "4365", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" + }, + { + "$id": "4366", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + ] + }, + "label": { + "$id": "4367", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4368", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4369", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Data Warehouse" + } + ] + }, + "term": { + "$id": "4370", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4371", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4372", + "kind": "http", + "name": "Discovery_Query_Facet", + "description": "Discovery_Query_Facet", + "filePath": "2023-09-01/Discovery_Query_Facet.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4373", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "filter": { + "$id": "4374", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "objectType": "Tables" + } + }, + "limit": { + "$id": "4375", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "facets": { + "$id": "4376", + "kind": "array", + "type": { + "$ref": "738" + }, + "value": [ + { + "$id": "4377", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4378", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "assetType" + }, + "count": { + "$id": "4379", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + } + } + }, + { + "$id": "4380", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4381", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "classification" + }, + "count": { + "$id": "4382", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + } + } + }, + { + "$id": "4383", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4384", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "term" + }, + "count": { + "$id": "4385", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + } + } + }, + { + "$id": "4386", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4387", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "label" + }, + "count": { + "$id": "4388", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + } + } + } + ] + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4389", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4390", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "continuationToken": { + "$id": "4391", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "@search.count": { + "$id": "4392", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 5156 + }, + "@search.count.approximate": { + "$id": "4393", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "@search.facets": { + "$id": "4394", + "kind": "model", + "type": { + "$ref": "760" + }, + "value": { + "classification": { + "$id": "4395", + "kind": "array", + "type": { + "$ref": "762" + }, + "value": [ + { + "$id": "4396", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4397", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 8 + }, + "value": { + "$id": "4398", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "MICROSOFT.PERSONAL.NAME" + } + } + }, + { + "$id": "4399", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4400", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 6 + }, + "value": { + "$id": "4401", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" + } + } + }, + { + "$id": "4402", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4403", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 5 + }, + "value": { + "$id": "4404", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + } + } + }, + { + "$id": "4405", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4406", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 5 + }, + "value": { + "$id": "4407", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "MICROSOFT.PERSONAL.US.PHONE_NUMBER" + } + } + }, + { + "$id": "4408", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4409", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 4 + }, + "value": { + "$id": "4410", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "MICROSOFT.GOVERNMENT.CITY_NAME" + } + } + }, + { + "$id": "4411", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4412", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 2 + }, + "value": { + "$id": "4413", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "MICROSOFT.GOVERNMENT.US.STATE" + } + } + } + ] + }, + "assetType": { + "$id": "4414", + "kind": "array", + "type": { + "$ref": "762" + }, + "value": [ + { + "$id": "4415", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4416", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 1476 + }, + "value": { + "$id": "4417", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure SQL Database" + } + } + }, + { + "$id": "4418", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4419", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 1358 + }, + "value": { + "$id": "4420", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure SQL Data Warehouse" + } + } + }, + { + "$id": "4421", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4422", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 1331 + }, + "value": { + "$id": "4423", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure SQL Managed Instance" + } + } + }, + { + "$id": "4424", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4425", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 293 + }, + "value": { + "$id": "4426", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure Data Lake Storage Gen1" + } + } + }, + { + "$id": "4427", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4428", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 261 + }, + "value": { + "$id": "4429", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure Blob Storage" + } + } + }, + { + "$id": "4430", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4431", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 231 + }, + "value": { + "$id": "4432", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure Data Lake Storage Gen2" + } + } + }, + { + "$id": "4433", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4434", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 194 + }, + "value": { + "$id": "4435", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure Files" + } + } + }, + { + "$id": "4436", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4437", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 18 + }, + "value": { + "$id": "4438", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Azure Cosmos DB" + } + } + } + ] + }, + "label": { + "$id": "4439", + "kind": "array", + "type": { + "$ref": "762" + }, + "value": [ + { + "$id": "4440", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4441", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 835 + }, + "value": { + "$id": "4442", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Example.Label" + } + } + } + ] + }, + "term": { + "$id": "4443", + "kind": "array", + "type": { + "$ref": "762" + }, + "value": [ + { + "$id": "4444", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4445", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 1 + }, + "value": { + "$id": "4446", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "terma" + } + } + } + ] + } + } + }, + "value": { + "$id": "4447", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4448", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4449", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4450", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "24c16e53-1bfd-4d6c-b4ce-b1f6f6f60000" + }, + "qualifiedName": { + "$id": "4451", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata" + }, + "name": { + "$id": "4452", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata" + }, + "entityType": { + "$id": "4453", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "classification": { + "$id": "4454", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4455", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4456", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4457", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + }, + "term": { + "$id": "4458", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4459", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4460", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4461", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4462", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "d7b516fc-5d38-40f8-baeb-72f6f6f60000" + }, + "qualifiedName": { + "$id": "4463", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata2" + }, + "name": { + "$id": "4464", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2" + }, + "entityType": { + "$id": "4465", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "classification": { + "$id": "4466", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4467", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4468", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4469", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + }, + "term": { + "$id": "4470", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4471", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4472", + "kind": "http", + "name": "Discovery_Query_FileExtension", + "description": "Discovery_Query_FileExtension", + "filePath": "2023-09-01/Discovery_Query_FileExtension.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4473", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4474", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4475", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "fileExtension": "txt" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4476", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4477", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "continuationToken": { + "$id": "4478", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "@search.count": { + "$id": "4479", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 49 + }, + "@search.count.approximate": { + "$id": "4480", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4481", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4482", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4483", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4484", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4485", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.txt" + }, + "name": { + "$id": "4486", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.txt" + }, + "entityType": { + "$id": "4487", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4488", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4489", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4490", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4491", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4492", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4493", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4494", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4495", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4496", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" + }, + "qualifiedName": { + "$id": "4497", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.txt" + }, + "name": { + "$id": "4498", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.txt" + }, + "entityType": { + "$id": "4499", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4500", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4501", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4502", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4503", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4504", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4505", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4506", + "kind": "http", + "name": "Discovery_Query_GlossaryTerm", + "description": "Discovery_Query_GlossaryTerm", + "filePath": "2023-09-01/Discovery_Query_GlossaryTerm.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4507", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4508", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "" + }, + "limit": { + "$id": "4509", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4510", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "objectType": "Glossary terms" + }, + { + "or": [ + { + "glossaryType": "AtlasGlossary" + }, + { + "glossaryType": "AtlasGlossaryTerm" + } + ] + } + ] + } + }, + "facets": { + "$id": "4511", + "kind": "array", + "type": { + "$ref": "738" + }, + "value": [ + { + "$id": "4512", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4513", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "termStatus" + }, + "count": { + "$id": "4514", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4515", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4516", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4517", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4518", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "termTemplate" + }, + "count": { + "$id": "4519", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4520", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4521", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + } + ] + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4522", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4523", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4524", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 2 + }, + "@search.count.approximate": { + "$id": "4525", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4526", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4527", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4528", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "objectType": { + "$id": "4529", + "kind": "string", + "type": { + "$ref": "790" + }, + "value": "Glossary terms" + }, + "glossaryType": { + "$id": "4530", + "kind": "string", + "type": { + "$ref": "830" + }, + "value": "AtlasGlossaryTerm" + }, + "id": { + "$id": "4531", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "b1e51cc4-9249-4c81-bbc7-e2f3117706f3" + }, + "name": { + "$id": "4532", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "termSample1" + }, + "glossary": { + "$id": "4533", + "kind": "string", + "type": { + "$ref": "832" + }, + "value": "DefaultGlossary" + }, + "longDescription": { + "$id": "4534", + "kind": "string", + "type": { + "$ref": "837" + }, + "value": "it is the definition of the term" + }, + "termStatus": { + "$id": "4535", + "kind": "string", + "type": { + "$ref": "834" + }, + "value": "Approved" + }, + "termTemplate": { + "$id": "4536", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4537", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "termTemplateSample" + } + ] + }, + "createTime": { + "$id": "4538", + "kind": "number", + "type": { + "$ref": "792" + }, + "value": 1625819659805 + }, + "updateTime": { + "$id": "4539", + "kind": "number", + "type": { + "$ref": "794" + }, + "value": 1625819659805 + }, + "qualifiedName": { + "$id": "4540", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "termSample1@DefaultGlossary" + } + } + }, + { + "$id": "4541", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4542", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "objectType": { + "$id": "4543", + "kind": "string", + "type": { + "$ref": "790" + }, + "value": "Glossary terms" + }, + "glossaryType": { + "$id": "4544", + "kind": "string", + "type": { + "$ref": "830" + }, + "value": "AtlasGlossary" + }, + "id": { + "$id": "4545", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "b28f35e4-fcd4-43ca-91a3-daf432c87156" + }, + "name": { + "$id": "4546", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "DefaultGlossary" + }, + "longDescription": { + "$id": "4547", + "kind": "string", + "type": { + "$ref": "837" + }, + "value": "it is the definition of the glossary" + }, + "createTime": { + "$id": "4548", + "kind": "number", + "type": { + "$ref": "792" + }, + "value": 1625819658745 + }, + "updateTime": { + "$id": "4549", + "kind": "number", + "type": { + "$ref": "794" + }, + "value": 1640656877302 + }, + "qualifiedName": { + "$id": "4550", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "DefaultGlossary" + } + } + } + ] + }, + "@search.facets": { + "$id": "4551", + "kind": "model", + "type": { + "$ref": "760" + }, + "value": { + "termTemplate": { + "$id": "4552", + "kind": "array", + "type": { + "$ref": "762" + }, + "value": [ + { + "$id": "4553", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4554", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 1 + }, + "value": { + "$id": "4555", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "termTemplateSample" + } + } + } + ] + }, + "termStatus": { + "$id": "4556", + "kind": "array", + "type": { + "$ref": "762" + }, + "value": [ + { + "$id": "4557", + "kind": "model", + "type": { + "$ref": "763" + }, + "value": { + "count": { + "$id": "4558", + "kind": "number", + "type": { + "$ref": "765" + }, + "value": 1 + }, + "value": { + "$id": "4559", + "kind": "string", + "type": { + "$ref": "767" + }, + "value": "Approved" + } + } + } + ] + } + } + } + } + } + } + ] + }, + { + "$id": "4560", + "kind": "http", + "name": "Discovery_Query_Id", + "description": "Discovery_Query_Id", + "filePath": "2023-09-01/Discovery_Query_Id.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4561", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4562", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4563", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "id": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4564", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4565", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4566", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 1 + }, + "@search.count.approximate": { + "$id": "4567", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4568", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4569", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4570", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4571", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4572", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.txt" + }, + "name": { + "$id": "4573", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.txt" + }, + "entityType": { + "$id": "4574", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4575", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4576", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4577", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4578", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4579", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4580", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4581", + "kind": "http", + "name": "Discovery_Query_Not", + "description": "Discovery_Query_Not", + "filePath": "2023-09-01/Discovery_Query_Not.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4582", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4583", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4584", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "not": { + "classification": "MICROSOFT.SYSTEM.TEMP_FILE" + } + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4585", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4586", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "continuationToken": { + "$id": "4587", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "@search.count": { + "$id": "4588", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 5158 + }, + "@search.count.approximate": { + "$id": "4589", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4590", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4591", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4592", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4593", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "11fd6e94-2dc6-4ebd-822c-caf6f6f60000" + }, + "qualifiedName": { + "$id": "4594", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/exampledb/dbo/exampledata" + }, + "name": { + "$id": "4595", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata" + }, + "entityType": { + "$id": "4596", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "classification": { + "$id": "4597", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4598", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4599", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4600", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + }, + "term": { + "$id": "4601", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4602", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4603", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4604", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4605", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "1af82c87-798c-41a2-abab-93f6f6f60000" + }, + "qualifiedName": { + "$id": "4606", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/exampledb/dbo/exampledata2" + }, + "name": { + "$id": "4607", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2" + }, + "entityType": { + "$id": "4608", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "classification": { + "$id": "4609", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4610", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4611", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4612", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + }, + "term": { + "$id": "4613", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4614", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4615", + "kind": "http", + "name": "Discovery_Query_ObjectType", + "description": "Discovery_Query_ObjectType", + "filePath": "2023-09-01/Discovery_Query_ObjectType.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4616", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4617", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4618", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "or": [ + { + "objectType": "Dashboards" + }, + { + "objectType": "Data pipelines" + }, + { + "objectType": "Files" + }, + { + "objectType": "Folders" + }, + { + "objectType": "Glossary terms" + }, + { + "objectType": "Reports" + }, + { + "objectType": "Stored procedures" + }, + { + "objectType": "Tables" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4619", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4620", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4621", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 2 + }, + "@search.count.approximate": { + "$id": "4622", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4623", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4624", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4625", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "objectType": { + "$id": "4626", + "kind": "string", + "type": { + "$ref": "790" + }, + "value": "Tables" + }, + "id": { + "$id": "4627", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "24c16e53-1bfd-4d6c-b4ce-b1f6f6f60000" + }, + "entityType": { + "$id": "4628", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "name": { + "$id": "4629", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1" + }, + "qualifiedName": { + "$id": "4630", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata1" + }, + "assetType": { + "$id": "4631", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4632", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + } + } + }, + { + "$id": "4633", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4634", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "objectType": { + "$id": "4635", + "kind": "string", + "type": { + "$ref": "790" + }, + "value": "Glossary terms" + }, + "id": { + "$id": "4636", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "b1e51cc4-9249-4c81-bbc7-e2f3117706f3" + }, + "glossaryType": { + "$id": "4637", + "kind": "string", + "type": { + "$ref": "830" + }, + "value": "AtlasGlossaryTerm" + }, + "name": { + "$id": "4638", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "termSample1" + }, + "glossary": { + "$id": "4639", + "kind": "string", + "type": { + "$ref": "832" + }, + "value": "DefaultGlossary" + }, + "longDescription": { + "$id": "4640", + "kind": "string", + "type": { + "$ref": "837" + }, + "value": "it is the definition of the term" + }, + "termStatus": { + "$id": "4641", + "kind": "string", + "type": { + "$ref": "834" + }, + "value": "Approved" + }, + "termTemplate": { + "$id": "4642", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4643", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "termTemplateSample" + } + ] + }, + "qualifiedName": { + "$id": "4644", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "termSample1@DefaultGlossary" + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4645", + "kind": "http", + "name": "Discovery_Query_PaginationContinuationPage", + "description": "Discovery_Query_PaginationContinuationPage", + "filePath": "2023-09-01/Discovery_Query_PaginationContinuationPage.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4646", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4647", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "exampledata" + }, + "filter": { + "$id": "4648", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "objectType": "Files" + }, + { + "entityType": "azure_blob_path" + } + ] + } + }, + "limit": { + "$id": "4649", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 2 + }, + "continuationToken": { + "$id": "4650", + "kind": "string", + "type": { + "$ref": "733" + }, + "value": "" + }, + "orderby": { + "$id": "4651", + "kind": "array", + "type": { + "$ref": "462" + }, + "value": [ + { + "$id": "4652", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "name": "ASC" + } + }, + { + "$id": "4653", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "updateTime": "DESC" + } + } + ] + }, + "facets": { + "$id": "4654", + "kind": "array", + "type": { + "$ref": "738" + }, + "value": [ + { + "$id": "4655", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4656", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "assetType" + }, + "count": { + "$id": "4657", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 0 + }, + "sort": { + "$id": "4658", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4659", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4660", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4661", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "classification" + }, + "count": { + "$id": "4662", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4663", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4664", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4665", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4666", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "contactId" + }, + "count": { + "$id": "4667", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4668", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4669", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4670", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4671", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "label" + }, + "count": { + "$id": "4672", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4673", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4674", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4675", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4676", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "term" + }, + "count": { + "$id": "4677", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4678", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4679", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + } + ] + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4680", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4681", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4682", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 6 + }, + "@search.count.approximate": { + "$id": "4683", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "continuationToken": { + "$id": "4684", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "value": { + "$id": "4685", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4686", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4687", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4688", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4689", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" + }, + "name": { + "$id": "4690", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1.txt" + }, + "entityType": { + "$id": "4691", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4692", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4693", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4694", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4695", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4696", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4697", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4698", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4699", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4700", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" + }, + "qualifiedName": { + "$id": "4701", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" + }, + "name": { + "$id": "4702", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2.txt" + }, + "entityType": { + "$id": "4703", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4704", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4705", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4706", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4707", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4708", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4709", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4710", + "kind": "http", + "name": "Discovery_Query_PaginationFirstPage", + "description": "Discovery_Query_PaginationFirstPage", + "filePath": "2023-09-01/Discovery_Query_PaginationFirstPage.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4711", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4712", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "exampledata" + }, + "filter": { + "$id": "4713", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "objectType": "Files" + }, + { + "entityType": "azure_blob_path" + } + ] + } + }, + "limit": { + "$id": "4714", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 2 + }, + "orderby": { + "$id": "4715", + "kind": "array", + "type": { + "$ref": "462" + }, + "value": [ + { + "$id": "4716", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "name": "ASC" + } + }, + { + "$id": "4717", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "updateTime": "DESC" + } + } + ] + }, + "facets": { + "$id": "4718", + "kind": "array", + "type": { + "$ref": "738" + }, + "value": [ + { + "$id": "4719", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4720", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "assetType" + }, + "count": { + "$id": "4721", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 0 + }, + "sort": { + "$id": "4722", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4723", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4724", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4725", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "classification" + }, + "count": { + "$id": "4726", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4727", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4728", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4729", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4730", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "contactId" + }, + "count": { + "$id": "4731", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4732", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4733", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4734", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4735", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "label" + }, + "count": { + "$id": "4736", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4737", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4738", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4739", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4740", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "term" + }, + "count": { + "$id": "4741", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4742", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4743", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + } + ] + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4744", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4745", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4746", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 6 + }, + "@search.count.approximate": { + "$id": "4747", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "continuationToken": { + "$id": "4748", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "value": { + "$id": "4749", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4750", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4751", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4752", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4753", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" + }, + "name": { + "$id": "4754", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1.txt" + }, + "entityType": { + "$id": "4755", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4756", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4757", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4758", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4759", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4760", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4761", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4762", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4763", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4764", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" + }, + "qualifiedName": { + "$id": "4765", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" + }, + "name": { + "$id": "4766", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2.txt" + }, + "entityType": { + "$id": "4767", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4768", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4769", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4770", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4771", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4772", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4773", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4774", + "kind": "http", + "name": "Discovery_Query_PaginationLastPage", + "description": "Discovery_Query_PaginationLastPage", + "filePath": "2023-09-01/Discovery_Query_PaginationLastPage.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4775", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4776", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "exampledata" + }, + "filter": { + "$id": "4777", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "objectType": "Files" + }, + { + "entityType": "azure_blob_path" + } + ] + } + }, + "limit": { + "$id": "4778", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 2 + }, + "continuationToken": { + "$id": "4779", + "kind": "string", + "type": { + "$ref": "733" + }, + "value": "" + }, + "orderby": { + "$id": "4780", + "kind": "array", + "type": { + "$ref": "462" + }, + "value": [ + { + "$id": "4781", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "name": "ASC" + } + }, + { + "$id": "4782", + "kind": "unknown", + "type": { + "$ref": "463" + }, + "value": { + "updateTime": "DESC" + } + } + ] + }, + "facets": { + "$id": "4783", + "kind": "array", + "type": { + "$ref": "738" + }, + "value": [ + { + "$id": "4784", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4785", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "assetType" + }, + "count": { + "$id": "4786", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 0 + }, + "sort": { + "$id": "4787", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4788", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4789", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4790", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "classification" + }, + "count": { + "$id": "4791", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4792", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4793", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4794", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4795", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "contactId" + }, + "count": { + "$id": "4796", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4797", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4798", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4799", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4800", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "label" + }, + "count": { + "$id": "4801", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4802", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4803", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + }, + { + "$id": "4804", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "facet": { + "$id": "4805", + "kind": "string", + "type": { + "$ref": "743" + }, + "value": "term" + }, + "count": { + "$id": "4806", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4807", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4808", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + } + ] + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4809", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4810", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4811", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 6 + }, + "@search.count.approximate": { + "$id": "4812", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4813", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4814", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4815", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4816", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4817", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" + }, + "name": { + "$id": "4818", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1.txt" + }, + "entityType": { + "$id": "4819", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4820", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4821", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4822", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4823", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4824", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4825", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4826", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4827", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4828", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" + }, + "qualifiedName": { + "$id": "4829", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" + }, + "name": { + "$id": "4830", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2.txt" + }, + "entityType": { + "$id": "4831", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4832", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4833", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4834", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4835", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4836", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4837", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4838", + "kind": "http", + "name": "Discovery_Query_SystemTime", + "description": "Discovery_Query_SystemTime", + "filePath": "2023-09-01/Discovery_Query_SystemTime.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4839", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4840", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4841", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "or": [ + { + "createTime": { + "operator": "lt", + "timeThreshold": 1545580800000 + } + }, + { + "updateTime": "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4842", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4843", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4844", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 2 + }, + "@search.count.approximate": { + "$id": "4845", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4846", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4847", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4848", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4849", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "55ceaddf-30ac-40f3-b656-71f6f6f60000" + }, + "entityType": { + "$id": "4850", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "name": { + "$id": "4851", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampleData_v1" + }, + "qualifiedName": { + "$id": "4852", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v1" + }, + "assetType": { + "$id": "4853", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4854", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + } + } + }, + { + "$id": "4855", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4856", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4857", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "89416661-5269-4f3d-ba35-e0f6f6f60000" + }, + "entityType": { + "$id": "4858", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_sql_mi_table" + }, + "name": { + "$id": "4859", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampleData_v2" + }, + "qualifiedName": { + "$id": "4860", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v2" + }, + "assetType": { + "$id": "4861", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4862", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure SQL Managed Instance" + } + ] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4863", + "kind": "http", + "name": "Discovery_Query_Taxonomy", + "description": "Discovery_Query_Taxonomy", + "filePath": "2023-09-01/Discovery_Query_Taxonomy.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4864", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4865", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "exampledata" + }, + "filter": { + "$id": "4866", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "objectType": "Files" + }, + { + "not": { + "or": [ + { + "attributeName": "size", + "operator": "eq", + "attributeValue": 0 + }, + { + "attributeName": "fileSize", + "operator": "eq", + "attributeValue": 0 + } + ] + } + }, + { + "not": { + "classification": "MICROSOFT.SYSTEM.TEMP_FILE" + } + } + ] + } + }, + "limit": { + "$id": "4867", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "taxonomySetting": { + "$id": "4868", + "kind": "model", + "type": { + "$ref": "749" + }, + "value": { + "assetTypes": { + "$id": "4869", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4870", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "facet": { + "$id": "4871", + "kind": "model", + "type": { + "$ref": "739" + }, + "value": { + "count": { + "$id": "4872", + "kind": "number", + "type": { + "$ref": "741" + }, + "value": 10 + }, + "sort": { + "$id": "4873", + "kind": "model", + "type": { + "$ref": "745" + }, + "value": { + "count": { + "$id": "4874", + "kind": "string", + "type": { + "$ref": "40" + }, + "value": "desc" + } + } + } + } + } + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4875", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4876", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "continuationToken": { + "$id": "4877", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "@search.count": { + "$id": "4878", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 339 + }, + "@search.count.approximate": { + "$id": "4879", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4880", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4881", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4882", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4883", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" + }, + "qualifiedName": { + "$id": "4884", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" + }, + "name": { + "$id": "4885", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata1.txt" + }, + "entityType": { + "$id": "4886", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4887", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4888", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4889", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4890", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4891", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4892", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4893", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4894", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4895", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" + }, + "qualifiedName": { + "$id": "4896", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" + }, + "name": { + "$id": "4897", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2.txt" + }, + "entityType": { + "$id": "4898", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4899", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4900", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4901", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4902", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4903", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4904", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4905", + "kind": "http", + "name": "Discovery_Query_TermAssignment", + "description": "Discovery_Query_TermAssignment", + "filePath": "2023-09-01/Discovery_Query_TermAssignment.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4906", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "keywords": { + "$id": "4907", + "kind": "string", + "type": { + "$ref": "729" + }, + "value": "" + }, + "limit": { + "$id": "4908", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 3 + }, + "filter": { + "$id": "4909", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "or": [ + { + "term": "ExampleTerm" + }, + { + "term": "ExampleTerm", + "glossary": "GlossaryName" + }, + { + "termGuid": "" + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4910", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4911", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "@search.count": { + "$id": "4912", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 1 + }, + "@search.count.approximate": { + "$id": "4913", + "kind": "boolean", + "type": { + "$ref": "756" + }, + "value": false + }, + "value": { + "$id": "4914", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4915", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4916", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4917", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "b20ac13a-7883-4376-b076-bac9f8f214a8" + }, + "qualifiedName": { + "$id": "4918", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplecontainer" + }, + "name": { + "$id": "4919", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "examplecontainer" + }, + "entityType": { + "$id": "4920", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_container" + }, + "classification": { + "$id": "4921", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "assetType": { + "$id": "4922", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4923", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4924", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [ + { + "$id": "4925", + "kind": "model", + "type": { + "$ref": "812" + }, + "value": { + "name": { + "$id": "4926", + "kind": "string", + "type": { + "$ref": "814" + }, + "value": "ExampleTerm" + }, + "glossaryName": { + "$id": "4927", + "kind": "string", + "type": { + "$ref": "816" + }, + "value": "Glossary" + } + } + } + ] + }, + "contact": { + "$id": "4928", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + }, + "label": { + "$id": "4929", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4930", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "4931", + "kind": "http", + "name": "Discovery_Query_Type", + "description": "Discovery_Query_Type", + "filePath": "2023-09-01/Discovery_Query_Type.json", + "parameters": [ + { + "parameter": { + "$ref": "4038" + }, + "value": { + "$id": "4932", + "kind": "model", + "type": { + "$ref": "727" + }, + "value": { + "limit": { + "$id": "4933", + "kind": "number", + "type": { + "$ref": "731" + }, + "value": 10 + }, + "filter": { + "$id": "4934", + "kind": "unknown", + "type": { + "$ref": "736" + }, + "value": { + "and": [ + { + "entityType": "azure_blob_path", + "includeSubTypes": false + } + ] + } + } + } + } + }, + { + "parameter": { + "$ref": "4033" + }, + "value": { + "$id": "4935", + "kind": "string", + "type": { + "$ref": "4034" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "752" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4936", + "kind": "model", + "type": { + "$ref": "752" + }, + "value": { + "continuationToken": { + "$id": "4937", + "kind": "string", + "type": { + "$ref": "758" + }, + "value": "" + }, + "@search.count": { + "$id": "4938", + "kind": "number", + "type": { + "$ref": "754" + }, + "value": 221 + }, + "value": { + "$id": "4939", + "kind": "array", + "type": { + "$ref": "778" + }, + "value": [ + { + "$id": "4940", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4941", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4942", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "1d797ddf-47bf-4151-8fe8-918590d62e70" + }, + "qualifiedName": { + "$id": "4943", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.csv" + }, + "name": { + "$id": "4944", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata.csv" + }, + "entityType": { + "$id": "4945", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4946", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4947", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4948", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4949", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4950", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4951", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4952", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + }, + { + "$id": "4953", + "kind": "model", + "type": { + "$ref": "779" + }, + "value": { + "@search.score": { + "$id": "4954", + "kind": "number", + "type": { + "$ref": "781" + }, + "value": 1 + }, + "id": { + "$id": "4955", + "kind": "string", + "type": { + "$ref": "796" + }, + "value": "d3e83b17-c730-4898-94c8-58579cda04f6" + }, + "qualifiedName": { + "$id": "4956", + "kind": "string", + "type": { + "$ref": "800" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.csv" + }, + "name": { + "$id": "4957", + "kind": "string", + "type": { + "$ref": "798" + }, + "value": "exampledata2.csv" + }, + "entityType": { + "$id": "4958", + "kind": "string", + "type": { + "$ref": "802" + }, + "value": "azure_blob_path" + }, + "classification": { + "$id": "4959", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "label": { + "$id": "4960", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4961", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "assetType": { + "$id": "4962", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4963", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "term": { + "$id": "4964", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [] + }, + "contact": { + "$id": "4965", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [] + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "4966", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "727" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Discovery.query.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "4967", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "247" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Discovery.query.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "4968", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "249" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Discovery.query.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "752" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Discovery.query" + }, + { + "$id": "4969", + "kind": "basic", + "name": "suggest", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get search suggestions by query criteria.", + "operation": { + "$id": "4970", + "name": "suggest", + "resourceName": "Discovery", + "doc": "Get search suggestions by query criteria.", + "accessibility": "public", + "parameters": [ + { + "$id": "4971", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "4972", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "4973", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.apiVersion", + "readOnly": false + }, + { + "$id": "4974", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "251" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.contentType" + }, + { + "$id": "4975", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "253" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.accept" + }, + { + "$id": "4976", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "838" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "845" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/search/suggest", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Discovery.suggest", + "decorators": [], + "examples": [ + { + "$id": "4977", + "kind": "http", + "name": "Discovery_Suggest", + "description": "Discovery_Suggest", + "filePath": "2023-09-01/Discovery_Suggest.json", + "parameters": [ + { + "parameter": { + "$ref": "4976" + }, + "value": { + "$id": "4978", + "kind": "model", + "type": { + "$ref": "838" + }, + "value": { + "keywords": { + "$id": "4979", + "kind": "string", + "type": { + "$ref": "840" + }, + "value": "exampledata" + }, + "filter": { + "$id": "4980", + "kind": "unknown", + "type": { + "$ref": "844" + }, + "value": { + "and": [ + { + "entityType": "azure_blob_path", + "includeSubTypes": false + } + ] + } + }, + "limit": { + "$id": "4981", + "kind": "number", + "type": { + "$ref": "842" + }, + "value": 10 + } + } + } + }, + { + "parameter": { + "$ref": "4971" + }, + "value": { + "$id": "4982", + "kind": "string", + "type": { + "$ref": "4972" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "845" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "4983", + "kind": "model", + "type": { + "$ref": "845" + }, + "value": { + "value": { + "$id": "4984", + "kind": "array", + "type": { + "$ref": "847" + }, + "value": [ + { + "$id": "4985", + "kind": "model", + "type": { + "$ref": "848" + }, + "value": { + "@search.text": { + "$id": "4986", + "kind": "string", + "type": { + "$ref": "852" + }, + "value": "exampledata.csv" + }, + "@search.score": { + "$id": "4987", + "kind": "number", + "type": { + "$ref": "850" + }, + "value": 9.81402 + }, + "description": { + "$id": "4988", + "kind": "string", + "type": { + "$ref": "868" + }, + "value": "Example Description" + }, + "id": { + "$id": "4989", + "kind": "string", + "type": { + "$ref": "860" + }, + "value": "af7a01b0-1b14-4ab6-83a5-12cb11a717ed" + }, + "name": { + "$id": "4990", + "kind": "string", + "type": { + "$ref": "862" + }, + "value": "exampledata.csv" + }, + "owner": { + "$id": "4991", + "kind": "string", + "type": { + "$ref": "871" + }, + "value": "$superuser" + }, + "qualifiedName": { + "$id": "4992", + "kind": "string", + "type": { + "$ref": "864" + }, + "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.csv" + }, + "entityType": { + "$id": "4993", + "kind": "string", + "type": { + "$ref": "866" + }, + "value": "azure_blob_path" + }, + "assetType": { + "$id": "4994", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4995", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Azure Blob Storage" + } + ] + }, + "classification": { + "$id": "4996", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "4997", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.GOVERNMENT.US.PASSPORT_NUMBER" + } + ] + }, + "contact": { + "$id": "4998", + "kind": "array", + "type": { + "$ref": "820" + }, + "value": [ + { + "$id": "4999", + "kind": "model", + "type": { + "$ref": "821" + }, + "value": { + "id": { + "$id": "5000", + "kind": "string", + "type": { + "$ref": "823" + }, + "value": "8a597ffc-6993-4772-ac25-86b7251e1234" + }, + "info": { + "$id": "5001", + "kind": "string", + "type": { + "$ref": "825" + }, + "value": "Example Info" + }, + "contactType": { + "$id": "5002", + "kind": "string", + "type": { + "$ref": "827" + }, + "value": "Expert" + } + } + } + ] + }, + "label": { + "$id": "5003", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "5004", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Example.Label" + } + ] + }, + "term": { + "$id": "5005", + "kind": "array", + "type": { + "$ref": "811" + }, + "value": [ + { + "$id": "5006", + "kind": "model", + "type": { + "$ref": "812" + }, + "value": { + "name": { + "$id": "5007", + "kind": "string", + "type": { + "$ref": "814" + }, + "value": "Example Term" + }, + "glossaryName": { + "$id": "5008", + "kind": "string", + "type": { + "$ref": "816" + }, + "value": "Glossary" + } + } + } + ] + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5009", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "838" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5010", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "251" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5011", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "253" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Discovery.suggest.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "845" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Discovery.suggest" + }, + { + "$id": "5012", + "kind": "basic", + "name": "autoComplete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get auto complete options.", + "operation": { + "$id": "5013", + "name": "autoComplete", + "resourceName": "Discovery", + "doc": "Get auto complete options.", + "accessibility": "public", + "parameters": [ + { + "$id": "5014", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "5015", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "5016", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.apiVersion", + "readOnly": false + }, + { + "$id": "5017", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "255" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.contentType" + }, + { + "$id": "5018", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "257" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.accept" + }, + { + "$id": "5019", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "886" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "893" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/search/autocomplete", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete", + "decorators": [], + "examples": [ + { + "$id": "5020", + "kind": "http", + "name": "Discovery_AutoComplete", + "description": "Discovery_AutoComplete", + "filePath": "2023-09-01/Discovery_AutoComplete.json", + "parameters": [ + { + "parameter": { + "$ref": "5019" + }, + "value": { + "$id": "5021", + "kind": "model", + "type": { + "$ref": "886" + }, + "value": { + "keywords": { + "$id": "5022", + "kind": "string", + "type": { + "$ref": "888" + }, + "value": "exa" + }, + "filter": { + "$id": "5023", + "kind": "unknown", + "type": { + "$ref": "892" + }, + "value": { + "and": [ + { + "entityType": "azure_blob_path", + "includeSubTypes": false + } + ] + } + }, + "limit": { + "$id": "5024", + "kind": "number", + "type": { + "$ref": "890" + }, + "value": 10 + } + } + } + }, + { + "parameter": { + "$ref": "5014" + }, + "value": { + "$id": "5025", + "kind": "string", + "type": { + "$ref": "5015" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "893" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5026", + "kind": "model", + "type": { + "$ref": "893" + }, + "value": { + "value": { + "$id": "5027", + "kind": "array", + "type": { + "$ref": "895" + }, + "value": [ + { + "$id": "5028", + "kind": "model", + "type": { + "$ref": "896" + }, + "value": { + "text": { + "$id": "5029", + "kind": "string", + "type": { + "$ref": "898" + }, + "value": "example" + }, + "queryPlusText": { + "$id": "5030", + "kind": "string", + "type": { + "$ref": "900" + }, + "value": "example" + } + } + }, + { + "$id": "5031", + "kind": "model", + "type": { + "$ref": "896" + }, + "value": { + "text": { + "$id": "5032", + "kind": "string", + "type": { + "$ref": "898" + }, + "value": "exampleconfiguration" + }, + "queryPlusText": { + "$id": "5033", + "kind": "string", + "type": { + "$ref": "900" + }, + "value": "exampleconfiguration" + } + } + }, + { + "$id": "5034", + "kind": "model", + "type": { + "$ref": "896" + }, + "value": { + "text": { + "$id": "5035", + "kind": "string", + "type": { + "$ref": "898" + }, + "value": "exampleresources" + }, + "queryPlusText": { + "$id": "5036", + "kind": "string", + "type": { + "$ref": "900" + }, + "value": "exampleresources" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5037", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "886" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5038", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "255" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5039", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "257" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "893" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete" + } + ], + "parameters": [ + { + "$id": "5040", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "5041", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + }, + { + "$id": "5042", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "doc": "The API version to use for this operation.", + "type": { + "$id": "5043", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "5044", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Discovery.query.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Discovery", + "apiVersions": [ + "2023-09-01" + ], + "parent": { + "$ref": "1353" + } + }, + { + "$id": "5045", + "kind": "client", + "name": "Lineage", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [ + { + "$id": "5046", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get lineage info of the entity specified by GUID.", + "operation": { + "$id": "5047", + "name": "get", + "resourceName": "Lineage", + "doc": "Get lineage info of the entity specified by GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5048", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "5049", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Lineage.get.guid" + }, + { + "$id": "5050", + "kind": "query", + "name": "depth", + "serializedName": "depth", + "doc": "The number of hops for lineage.", + "type": { + "$id": "5051", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.get.depth", + "readOnly": false + }, + { + "$id": "5052", + "kind": "query", + "name": "direction", + "serializedName": "direction", + "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", + "type": { + "$ref": "44" + }, + "isApiVersion": false, + "explode": false, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.get.direction", + "readOnly": false + }, + { + "$id": "5053", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "259" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "901" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/lineage/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Lineage.get", + "decorators": [], + "examples": [ + { + "$id": "5054", + "kind": "http", + "name": "Lineage_Get", + "description": "Lineage_Get", + "filePath": "2023-09-01/Lineage_Get.json", + "parameters": [ + { + "parameter": { + "$ref": "5048" + }, + "value": { + "$id": "5055", + "kind": "string", + "type": { + "$ref": "5049" + }, + "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" + } + }, + { + "parameter": { + "$ref": "5050" + }, + "value": { + "$id": "5056", + "kind": "number", + "type": { + "$ref": "5051" + }, + "value": 1 + } + }, + { + "parameter": { + "$ref": "5052" + }, + "value": { + "$id": "5057", + "kind": "string", + "type": { + "$ref": "44" + }, + "value": "INPUT" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "901" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5058", + "kind": "model", + "type": { + "$ref": "901" + }, + "value": { + "baseEntityGuid": { + "$id": "5059", + "kind": "string", + "type": { + "$ref": "903" + }, + "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" + }, + "lineageDirection": { + "$id": "5060", + "kind": "string", + "type": { + "$ref": "44" + }, + "value": "INPUT" + }, + "lineageDepth": { + "$id": "5061", + "kind": "number", + "type": { + "$ref": "907" + }, + "value": 1 + }, + "lineageWidth": { + "$id": "5062", + "kind": "number", + "type": { + "$ref": "909" + }, + "value": 1 + }, + "childrenCount": { + "$id": "5063", + "kind": "number", + "type": { + "$ref": "911" + }, + "value": 1 + }, + "guidEntityMap": { + "$id": "5064", + "kind": "dict", + "type": { + "$ref": "475" + }, + "value": {} + }, + "widthCounts": { + "$id": "5065", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": {} + }, + "relations": { + "$id": "5066", + "kind": "array", + "type": { + "$ref": "923" + }, + "value": [] + }, + "parentRelations": { + "$id": "5067", + "kind": "array", + "type": { + "$ref": "914" + }, + "value": [] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5068", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "5069", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.get.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5070", + "kind": "method", + "name": "depth", + "serializedName": "depth", + "doc": "The number of hops for lineage.", + "type": { + "$id": "5071", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.get.depth", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5072", + "kind": "method", + "name": "direction", + "serializedName": "direction", + "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", + "type": { + "$ref": "44" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.get.direction", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5073", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "259" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Lineage.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "901" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Lineage.get" + }, + { + "$id": "5074", + "kind": "basic", + "name": "getNextPage", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Return immediate next page lineage info about entity with pagination", + "operation": { + "$id": "5075", + "name": "getNextPage", + "resourceName": "Lineage", + "doc": "Return immediate next page lineage info about entity with pagination", + "accessibility": "public", + "parameters": [ + { + "$id": "5076", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "5077", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "5078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.apiVersion", + "readOnly": false + }, + { + "$id": "5079", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "5080", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.guid" + }, + { + "$id": "5081", + "kind": "query", + "name": "direction", + "serializedName": "direction", + "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", + "type": { + "$ref": "44" + }, + "isApiVersion": false, + "explode": false, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.direction", + "readOnly": false + }, + { + "$id": "5082", + "kind": "query", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "5083", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.offset", + "readOnly": false + }, + { + "$id": "5084", + "kind": "query", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "5085", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.limit", + "readOnly": false + }, + { + "$id": "5086", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "261" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "901" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/lineage/{guid}/next", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage", + "decorators": [], + "examples": [ + { + "$id": "5087", + "kind": "http", + "name": "Lineage_GetNextPage", + "description": "Lineage_GetNextPage", + "filePath": "2023-09-01/Lineage_GetNextPage.json", + "parameters": [ + { + "parameter": { + "$ref": "5079" + }, + "value": { + "$id": "5088", + "kind": "string", + "type": { + "$ref": "5080" + }, + "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" + } + }, + { + "parameter": { + "$ref": "5082" + }, + "value": { + "$id": "5089", + "kind": "number", + "type": { + "$ref": "5083" + }, + "value": 0 + } + }, + { + "parameter": { + "$ref": "5084" + }, + "value": { + "$id": "5090", + "kind": "number", + "type": { + "$ref": "5085" + }, + "value": 5 + } + }, + { + "parameter": { + "$ref": "5081" + }, + "value": { + "$id": "5091", + "kind": "string", + "type": { + "$ref": "44" + }, + "value": "INPUT" + } + }, + { + "parameter": { + "$ref": "5076" + }, + "value": { + "$id": "5092", + "kind": "string", + "type": { + "$ref": "5077" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "901" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5093", + "kind": "model", + "type": { + "$ref": "901" + }, + "value": { + "baseEntityGuid": { + "$id": "5094", + "kind": "string", + "type": { + "$ref": "903" + }, + "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" + }, + "lineageDirection": { + "$id": "5095", + "kind": "string", + "type": { + "$ref": "44" + }, + "value": "INPUT" + }, + "lineageDepth": { + "$id": "5096", + "kind": "number", + "type": { + "$ref": "907" + }, + "value": 1 + }, + "lineageWidth": { + "$id": "5097", + "kind": "number", + "type": { + "$ref": "909" + }, + "value": 1 + }, + "childrenCount": { + "$id": "5098", + "kind": "number", + "type": { + "$ref": "911" + }, + "value": 1 + }, + "guidEntityMap": { + "$id": "5099", + "kind": "dict", + "type": { + "$ref": "475" + }, + "value": {} + }, + "widthCounts": { + "$id": "5100", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": {} + }, + "relations": { + "$id": "5101", + "kind": "array", + "type": { + "$ref": "923" + }, + "value": [] + }, + "parentRelations": { + "$id": "5102", + "kind": "array", + "type": { + "$ref": "914" + }, + "value": [] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5103", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "5104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5105", + "kind": "method", + "name": "direction", + "serializedName": "direction", + "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", + "type": { + "$ref": "44" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.direction", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5106", + "kind": "method", + "name": "offset", + "serializedName": "offset", + "doc": "The offset for pagination purpose.", + "type": { + "$id": "5107", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.offset", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5108", + "kind": "method", + "name": "limit", + "serializedName": "limit", + "doc": "The page size - by default there is no paging.", + "type": { + "$id": "5109", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.limit", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5110", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "261" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "901" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage" + }, + { + "$id": "5111", + "kind": "basic", + "name": "getByUniqueAttribute", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Return lineage info about entity.\n\nIn addition to the typeName path parameter,\nattribute key-value pair(s) can be provided in the following\nformat\n\nattr:[attrName]=[attrValue]\n\nNOTE: The attrName and attrValue should be\nunique across entities, eg. qualifiedName.\n\nThe REST request would look\nsomething like this:\n\nGET\n/v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "operation": { + "$id": "5112", + "name": "getByUniqueAttribute", + "resourceName": "Lineage", + "doc": "Return lineage info about entity.\n\nIn addition to the typeName path parameter,\nattribute key-value pair(s) can be provided in the following\nformat\n\nattr:[attrName]=[attrValue]\n\nNOTE: The attrName and attrValue should be\nunique across entities, eg. qualifiedName.\n\nThe REST request would look\nsomething like this:\n\nGET\n/v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", + "accessibility": "public", + "parameters": [ + { + "$id": "5113", + "kind": "path", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "5114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.typeName" + }, + { + "$id": "5115", + "kind": "query", + "name": "depth", + "serializedName": "depth", + "doc": "The number of hops for lineage.", + "type": { + "$id": "5116", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.depth", + "readOnly": false + }, + { + "$id": "5117", + "kind": "query", + "name": "direction", + "serializedName": "direction", + "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", + "type": { + "$ref": "44" + }, + "isApiVersion": false, + "explode": false, + "optional": false, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.direction", + "readOnly": false + }, + { + "$id": "5118", + "kind": "query", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "5119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.attribute", + "readOnly": false + }, + { + "$id": "5120", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "263" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "901" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute", + "decorators": [], + "examples": [ + { + "$id": "5121", + "kind": "http", + "name": "Lineage_GetByUniqueAttribute", + "description": "Lineage_GetByUniqueAttribute", + "filePath": "2023-09-01/Lineage_GetByUniqueAttribute.json", + "parameters": [ + { + "parameter": { + "$ref": "5113" + }, + "value": { + "$id": "5122", + "kind": "string", + "type": { + "$ref": "5114" + }, + "value": "azure_blob_path" + } + }, + { + "parameter": { + "$ref": "5115" + }, + "value": { + "$id": "5123", + "kind": "number", + "type": { + "$ref": "5116" + }, + "value": 2 + } + }, + { + "parameter": { + "$ref": "5117" + }, + "value": { + "$id": "5124", + "kind": "string", + "type": { + "$ref": "44" + }, + "value": "BOTH" + } + }, + { + "parameter": { + "$ref": "5118" + }, + "value": { + "$id": "5125", + "kind": "string", + "type": { + "$ref": "5119" + }, + "value": "https://02cab97b-ba87-4675-972d-150b6cb522d3/entity.json/" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "901" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5126", + "kind": "model", + "type": { + "$ref": "901" + }, + "value": { + "baseEntityGuid": { + "$id": "5127", + "kind": "string", + "type": { + "$ref": "903" + }, + "value": "9b2751f1-2633-4f06-a578-e14fab4c52fd" + }, + "lineageDirection": { + "$id": "5128", + "kind": "string", + "type": { + "$ref": "44" + }, + "value": "BOTH" + }, + "lineageDepth": { + "$id": "5129", + "kind": "number", + "type": { + "$ref": "907" + }, + "value": 2 + }, + "lineageWidth": { + "$id": "5130", + "kind": "number", + "type": { + "$ref": "909" + }, + "value": 2 + }, + "childrenCount": { + "$id": "5131", + "kind": "number", + "type": { + "$ref": "911" + }, + "value": -1 + }, + "guidEntityMap": { + "$id": "5132", + "kind": "dict", + "type": { + "$ref": "475" + }, + "value": { + "9b2751f1-2633-4f06-a578-e14fab4c52fd": { + "$id": "5133", + "kind": "model", + "type": { + "$ref": "426" + }, + "value": { + "typeName": { + "$id": "5134", + "kind": "string", + "type": { + "$ref": "429" + }, + "value": "azure_blob_path" + }, + "attributes": { + "$id": "5135", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "owner": { + "$id": "5136", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "testOwner" + }, + "modifiedTime": { + "$id": "5137", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "qualifiedName": { + "$id": "5138", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "https://02cab97b-ba87-4675-972d-150b6cb522d3/entity.json/" + }, + "isBlob": { + "$id": "5139", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": false + }, + "accessTierInferred": { + "$id": "5140", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": false + }, + "description": { + "$id": "5141", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "testDesc" + }, + "committedBlockCount": { + "$id": "5142", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "path": { + "$id": "5143", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "/test/AzureBlobPath.json" + }, + "size": { + "$id": "5144", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 731 + }, + "createTime": { + "$id": "5145", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + }, + "name": { + "$id": "5146", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "populate_azure_blob_path_02cab97b-ba87-4675-972d-150b6cb522d3" + }, + "blobType": { + "$id": "5147", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "BlockBlob" + }, + "serverEncrypted": { + "$id": "5148", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": true + } + } + }, + "lastModifiedTS": { + "$id": "5149", + "kind": "string", + "type": { + "$ref": "431" + }, + "value": "1" + }, + "guid": { + "$id": "5150", + "kind": "string", + "type": { + "$ref": "437" + }, + "value": "9b2751f1-2633-4f06-a578-e14fab4c52fd" + }, + "status": { + "$id": "5151", + "kind": "string", + "type": { + "$ref": "1" + }, + "value": "ACTIVE" + }, + "displayText": { + "$id": "5152", + "kind": "string", + "type": { + "$ref": "435" + }, + "value": "populate_azure_blob_path_02cab97b-ba87-4675-972d-150b6cb522d3" + }, + "classificationNames": { + "$id": "5153", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "5154", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.EMAIL" + }, + { + "$id": "5155", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "MICROSOFT.PERSONAL.NAME" + } + ] + }, + "meaningNames": { + "$id": "5156", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "meanings": { + "$id": "5157", + "kind": "array", + "type": { + "$ref": "377" + }, + "value": [] + }, + "isIncomplete": { + "$id": "5158", + "kind": "boolean", + "type": { + "$ref": "439" + }, + "value": false + }, + "labels": { + "$id": "5159", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + } + }, + "relations": { + "$id": "5160", + "kind": "array", + "type": { + "$ref": "923" + }, + "value": [] + }, + "parentRelations": { + "$id": "5161", + "kind": "array", + "type": { + "$ref": "914" + }, + "value": [] + }, + "widthCounts": { + "$id": "5162", + "kind": "dict", + "type": { + "$ref": "638" + }, + "value": { + "INPUT": { + "$id": "5163", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "9b2751f1-2633-4f06-a578-e14fab4c52fd": { + "$id": "5164", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + } + } + }, + "OUTPUT": { + "$id": "5165", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "9b2751f1-2633-4f06-a578-e14fab4c52fd": { + "$id": "5166", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": 0 + } + } + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5167", + "kind": "method", + "name": "typeName", + "serializedName": "typeName", + "doc": "The name of the type.", + "type": { + "$id": "5168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.typeName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5169", + "kind": "method", + "name": "depth", + "serializedName": "depth", + "doc": "The number of hops for lineage.", + "type": { + "$id": "5170", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.depth", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5171", + "kind": "method", + "name": "direction", + "serializedName": "direction", + "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", + "type": { + "$ref": "44" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.direction", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5172", + "kind": "method", + "name": "attribute", + "serializedName": "attr:qualifiedName", + "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", + "type": { + "$id": "5173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.attribute", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5174", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "263" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "901" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute" + } + ], + "parameters": [ + { + "$id": "5175", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "5176", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + }, + { + "$id": "5177", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "doc": "The API version to use for this operation.", + "type": { + "$id": "5178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "5179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Lineage", + "apiVersions": [ + "2023-09-01" + ], + "parent": { + "$ref": "1353" + } + }, + { + "$id": "5180", + "kind": "client", + "name": "Relationship", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [ + { + "$id": "5181", + "kind": "basic", + "name": "create", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create a new relationship between entities.", + "operation": { + "$id": "5182", + "name": "create", + "resourceName": "Relationship", + "doc": "Create a new relationship between entities.", + "accessibility": "public", + "parameters": [ + { + "$id": "5183", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "265" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship.create.contentType" + }, + { + "$id": "5184", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "267" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship.create.accept" + }, + { + "$id": "5185", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "931" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Relationship.create.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "931" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/relationship", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Relationship.create", + "decorators": [], + "examples": [ + { + "$id": "5186", + "kind": "http", + "name": "Relationship_Create", + "description": "Relationship_Create", + "filePath": "2023-09-01/Relationship_Create.json", + "parameters": [ + { + "parameter": { + "$ref": "5185" + }, + "value": { + "$id": "5187", + "kind": "model", + "type": { + "$ref": "931" + }, + "value": { + "typeName": { + "$id": "5188", + "kind": "string", + "type": { + "$ref": "934" + }, + "value": "AtlasGlossarySynonym" + }, + "attributes": { + "$id": "5189", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "5190", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Expression" + }, + "steward": { + "$id": "5191", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Steward" + }, + "description": { + "$id": "5192", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "source": { + "$id": "5193", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "5194", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "end1": { + "$id": "5195", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5196", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "856d31e6-e342-a1ce-6273-22ddb77029c6" + }, + "typeName": { + "$id": "5197", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "end2": { + "$id": "5198", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5199", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" + }, + "typeName": { + "$id": "5200", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "label": { + "$id": "5201", + "kind": "string", + "type": { + "$ref": "954" + }, + "value": "r:AtlasGlossarySynonym" + }, + "status": { + "$id": "5202", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "5203", + "kind": "string", + "type": { + "$ref": "940" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5204", + "kind": "string", + "type": { + "$ref": "961" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "5205", + "kind": "number", + "type": { + "$ref": "963" + }, + "value": 0 + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "931" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5206", + "kind": "model", + "type": { + "$ref": "931" + }, + "value": { + "typeName": { + "$id": "5207", + "kind": "string", + "type": { + "$ref": "934" + }, + "value": "AtlasGlossarySynonym" + }, + "attributes": { + "$id": "5208", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "5209", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Expression" + }, + "steward": { + "$id": "5210", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Steward" + }, + "description": { + "$id": "5211", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "source": { + "$id": "5212", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "5213", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "guid": { + "$id": "5214", + "kind": "string", + "type": { + "$ref": "950" + }, + "value": "63023d5b-c499-4360-a513-16bcbf73b039" + }, + "end1": { + "$id": "5215", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5216", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "856d31e6-e342-a1ce-6273-22ddb77029c6" + }, + "typeName": { + "$id": "5217", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "end2": { + "$id": "5218", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5219", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" + }, + "typeName": { + "$id": "5220", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "label": { + "$id": "5221", + "kind": "string", + "type": { + "$ref": "954" + }, + "value": "r:AtlasGlossarySynonym" + }, + "status": { + "$id": "5222", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "5223", + "kind": "string", + "type": { + "$ref": "940" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5224", + "kind": "string", + "type": { + "$ref": "961" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5225", + "kind": "number", + "type": { + "$ref": "938" + }, + "value": 1553840134724 + }, + "updateTime": { + "$id": "5226", + "kind": "number", + "type": { + "$ref": "959" + }, + "value": 1553840134724 + }, + "version": { + "$id": "5227", + "kind": "number", + "type": { + "$ref": "963" + }, + "value": 0 + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5228", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "931" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Relationship.create.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5229", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "265" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Relationship.create.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5230", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "267" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Relationship.create.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "931" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Relationship.create" + }, + { + "$id": "5231", + "kind": "basic", + "name": "update", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update an existing relationship between entities.", + "operation": { + "$id": "5232", + "name": "update", + "resourceName": "Relationship", + "doc": "Update an existing relationship between entities.", + "accessibility": "public", + "parameters": [ + { + "$id": "5233", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "269" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship.update.contentType" + }, + { + "$id": "5234", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "271" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship.update.accept" + }, + { + "$id": "5235", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "931" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Relationship.update.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "931" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/relationship", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Relationship.update", + "decorators": [], + "examples": [ + { + "$id": "5236", + "kind": "http", + "name": "Relationship_Update", + "description": "Relationship_Update", + "filePath": "2023-09-01/Relationship_Update.json", + "parameters": [ + { + "parameter": { + "$ref": "5235" + }, + "value": { + "$id": "5237", + "kind": "model", + "type": { + "$ref": "931" + }, + "value": { + "typeName": { + "$id": "5238", + "kind": "string", + "type": { + "$ref": "934" + }, + "value": "AtlasGlossarySynonym" + }, + "attributes": { + "$id": "5239", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "5240", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Expression" + }, + "steward": { + "$id": "5241", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Steward" + }, + "description": { + "$id": "5242", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "source": { + "$id": "5243", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "5244", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "guid": { + "$id": "5245", + "kind": "string", + "type": { + "$ref": "950" + }, + "value": "b2810301-293f-493f-88f1-7ac8784fb1fd" + }, + "end1": { + "$id": "5246", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5247", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" + }, + "typeName": { + "$id": "5248", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "end2": { + "$id": "5249", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5250", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" + }, + "typeName": { + "$id": "5251", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "label": { + "$id": "5252", + "kind": "string", + "type": { + "$ref": "954" + }, + "value": "r:AtlasGlossarySynonym" + }, + "status": { + "$id": "5253", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "5254", + "kind": "string", + "type": { + "$ref": "940" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5255", + "kind": "string", + "type": { + "$ref": "961" + }, + "value": "ExampleUpdator" + }, + "version": { + "$id": "5256", + "kind": "number", + "type": { + "$ref": "963" + }, + "value": 0 + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "931" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5257", + "kind": "model", + "type": { + "$ref": "931" + }, + "value": { + "typeName": { + "$id": "5258", + "kind": "string", + "type": { + "$ref": "934" + }, + "value": "AtlasGlossarySynonym" + }, + "attributes": { + "$id": "5259", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "5260", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Expression" + }, + "steward": { + "$id": "5261", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Steward" + }, + "description": { + "$id": "5262", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "Example Description" + }, + "source": { + "$id": "5263", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "5264", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "guid": { + "$id": "5265", + "kind": "string", + "type": { + "$ref": "950" + }, + "value": "b2810301-293f-493f-88f1-7ac8784fb1fd" + }, + "end1": { + "$id": "5266", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5267", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" + }, + "typeName": { + "$id": "5268", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "end2": { + "$id": "5269", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5270", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" + }, + "typeName": { + "$id": "5271", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "label": { + "$id": "5272", + "kind": "string", + "type": { + "$ref": "954" + }, + "value": "r:AtlasGlossarySynonym" + }, + "status": { + "$id": "5273", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "5274", + "kind": "string", + "type": { + "$ref": "940" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5275", + "kind": "string", + "type": { + "$ref": "961" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5276", + "kind": "number", + "type": { + "$ref": "938" + }, + "value": 1553839805039 + }, + "updateTime": { + "$id": "5277", + "kind": "number", + "type": { + "$ref": "959" + }, + "value": 1553839805039 + }, + "version": { + "$id": "5278", + "kind": "number", + "type": { + "$ref": "963" + }, + "value": 0 + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5279", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "931" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Relationship.update.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5280", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "269" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Relationship.update.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5281", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "271" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Relationship.update.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "931" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Relationship.update" + }, + { + "$id": "5282", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get relationship information between entities by its GUID.", + "operation": { + "$id": "5283", + "name": "get", + "resourceName": "Relationship", + "doc": "Get relationship information between entities by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5284", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the relationship.", + "type": { + "$id": "5285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Relationship.get.guid" + }, + { + "$id": "5286", + "kind": "query", + "name": "extendedInfo", + "serializedName": "extendedInfo", + "doc": "Limits whether includes extended information.", + "type": { + "$id": "5287", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship.get.extendedInfo", + "readOnly": false + }, + { + "$id": "5288", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "273" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "964" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/relationship/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Relationship.get", + "decorators": [], + "examples": [ + { + "$id": "5289", + "kind": "http", + "name": "Relationship_Get", + "description": "Relationship_Get", + "filePath": "2023-09-01/Relationship_Get.json", + "parameters": [ + { + "parameter": { + "$ref": "5284" + }, + "value": { + "$id": "5290", + "kind": "string", + "type": { + "$ref": "5285" + }, + "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" + } + }, + { + "parameter": { + "$ref": "5286" + }, + "value": { + "$id": "5291", + "kind": "boolean", + "type": { + "$ref": "5287" + }, + "value": false + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "964" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5292", + "kind": "model", + "type": { + "$ref": "964" + }, + "value": { + "relationship": { + "$id": "5293", + "kind": "model", + "type": { + "$ref": "931" + }, + "value": { + "typeName": { + "$id": "5294", + "kind": "string", + "type": { + "$ref": "934" + }, + "value": "AtlasGlossarySynonym" + }, + "attributes": { + "$id": "5295", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "expression": { + "$id": "5296", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "steward": { + "$id": "5297", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "description": { + "$id": "5298", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "source": { + "$id": "5299", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + }, + "status": { + "$id": "5300", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": null + } + } + }, + "guid": { + "$id": "5301", + "kind": "string", + "type": { + "$ref": "950" + }, + "value": "de23cd5a-021c-413d-98a5-98752a1f7a3b" + }, + "end1": { + "$id": "5302", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5303", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "856d31e6-e342-a1ce-6273-22ddb77029c6" + }, + "typeName": { + "$id": "5304", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "end2": { + "$id": "5305", + "kind": "model", + "type": { + "$ref": "942" + }, + "value": { + "guid": { + "$id": "5306", + "kind": "string", + "type": { + "$ref": "944" + }, + "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" + }, + "typeName": { + "$id": "5307", + "kind": "string", + "type": { + "$ref": "946" + }, + "value": "AtlasGlossaryTerm" + } + } + }, + "label": { + "$id": "5308", + "kind": "string", + "type": { + "$ref": "954" + }, + "value": "r:AtlasGlossarySynonym" + }, + "status": { + "$id": "5309", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "ACTIVE" + }, + "createdBy": { + "$id": "5310", + "kind": "string", + "type": { + "$ref": "940" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5311", + "kind": "string", + "type": { + "$ref": "961" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5312", + "kind": "number", + "type": { + "$ref": "938" + }, + "value": 1553838993803 + }, + "updateTime": { + "$id": "5313", + "kind": "number", + "type": { + "$ref": "959" + }, + "value": 1553838993803 + }, + "version": { + "$id": "5314", + "kind": "number", + "type": { + "$ref": "963" + }, + "value": 0 + } + } + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5315", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the relationship.", + "type": { + "$id": "5316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Relationship.get.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5317", + "kind": "method", + "name": "extendedInfo", + "serializedName": "extendedInfo", + "doc": "Limits whether includes extended information.", + "type": { + "$id": "5318", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Relationship.get.extendedInfo", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5319", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "273" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.Relationship.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "964" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Relationship.get" + }, + { + "$id": "5320", + "kind": "basic", + "name": "delete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete a relationship between entities by its GUID.", + "operation": { + "$id": "5321", + "name": "delete", + "resourceName": "Relationship", + "doc": "Delete a relationship between entities by its GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5322", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the relationship.", + "type": { + "$id": "5323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.Relationship.delete.guid" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/relationship/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.Relationship.delete", + "decorators": [], + "examples": [ + { + "$id": "5324", + "kind": "http", + "name": "Relationship_Delete", + "description": "Relationship_Delete", + "filePath": "2023-09-01/Relationship_Delete.json", + "parameters": [ + { + "parameter": { + "$ref": "5322" + }, + "value": { + "$id": "5325", + "kind": "string", + "type": { + "$ref": "5323" + }, + "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5326", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the relationship.", + "type": { + "$id": "5327", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.Relationship.delete.guid", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.Relationship.delete" + } + ], + "parameters": [ + { + "$id": "5328", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "5329", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.Relationship", + "apiVersions": [ + "2023-09-01" + ], + "parent": { + "$ref": "1353" + } + }, + { + "$id": "5330", + "kind": "client", + "name": "TypeDefinition", + "namespace": "Azure.Analytics.Purview.DataMap", + "methods": [ + { + "$id": "5331", + "kind": "basic", + "name": "getBusinessMetadataById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the businessMetadata definition for the given guid.", + "operation": { + "$id": "5332", + "name": "getBusinessMetadataById", + "resourceName": "TypeDefinition", + "doc": "Get the businessMetadata definition for the given guid.", + "accessibility": "public", + "parameters": [ + { + "$id": "5333", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "businessMetadata guid", + "type": { + "$id": "5334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.guid" + }, + { + "$id": "5335", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "275" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "967" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/businessmetadatadef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById", + "decorators": [], + "examples": [ + { + "$id": "5336", + "kind": "http", + "name": "Type_GetBusinessMetadataDefByGuid", + "description": "Type_GetBusinessMetadataDefByGuid", + "filePath": "2023-09-01/Type_GetBusinessMetadataDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5333" + }, + "value": { + "$id": "5337", + "kind": "string", + "type": { + "$ref": "5334" + }, + "value": "d8757510-c866-61ba-486f-1afca09f43b8" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "967" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5338", + "kind": "model", + "type": { + "$ref": "967" + }, + "value": { + "category": { + "$id": "5339", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "BUSINESS_METADATA" + }, + "guid": { + "$id": "5340", + "kind": "string", + "type": { + "$ref": "1022" + }, + "value": "d8757510-c866-61ba-486f-1afca09f43b8" + }, + "createdBy": { + "$id": "5341", + "kind": "string", + "type": { + "$ref": "972" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5342", + "kind": "string", + "type": { + "$ref": "1033" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5343", + "kind": "number", + "type": { + "$ref": "970" + }, + "value": 1671545620780 + }, + "updateTime": { + "$id": "5344", + "kind": "number", + "type": { + "$ref": "1031" + }, + "value": 1671545620780 + }, + "version": { + "$id": "5345", + "kind": "number", + "type": { + "$ref": "1035" + }, + "value": 1 + }, + "name": { + "$id": "5346", + "kind": "string", + "type": { + "$ref": "1024" + }, + "value": "Business_Metadata_Type_Name" + }, + "description": { + "$id": "5347", + "kind": "string", + "type": { + "$ref": "1020" + }, + "value": "Business_Metadata_Type_Name" + }, + "typeVersion": { + "$id": "5348", + "kind": "string", + "type": { + "$ref": "1029" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "5349", + "kind": "string", + "type": { + "$ref": "1037" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "5350", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "5351", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5352", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "customAttribute" + }, + "typeName": { + "$id": "5353", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "5354", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5355", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5356", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5357", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5358", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5359", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5360", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "5361", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "maxStrLength": { + "$id": "5362", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "5000" + }, + "isDisabled": { + "$id": "5363", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + }, + "applicableEntityTypes": { + "$id": "5364", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "[\"DataSet\"]" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5365", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "businessMetadata guid", + "type": { + "$id": "5366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5367", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "275" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "967" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById" + }, + { + "$id": "5368", + "kind": "basic", + "name": "getBusinessMetadataByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the businessMetadata definition by it's name (unique).", + "operation": { + "$id": "5369", + "name": "getBusinessMetadataByName", + "resourceName": "TypeDefinition", + "doc": "Get the businessMetadata definition by it's name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5370", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "businessMetadata name", + "type": { + "$id": "5371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.name" + }, + { + "$id": "5372", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "277" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "967" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/businessmetadatadef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName", + "decorators": [], + "examples": [ + { + "$id": "5373", + "kind": "http", + "name": "Type_GetBusinessMetadataDefByName", + "description": "Type_GetBusinessMetadataDefByName", + "filePath": "2023-09-01/Type_GetBusinessMetadataDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5370" + }, + "value": { + "$id": "5374", + "kind": "string", + "type": { + "$ref": "5371" + }, + "value": "Business_Metadata_Type_Name" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "967" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5375", + "kind": "model", + "type": { + "$ref": "967" + }, + "value": { + "category": { + "$id": "5376", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "BUSINESS_METADATA" + }, + "guid": { + "$id": "5377", + "kind": "string", + "type": { + "$ref": "1022" + }, + "value": "d8757510-c866-61ba-486f-1afca09f43b8" + }, + "createdBy": { + "$id": "5378", + "kind": "string", + "type": { + "$ref": "972" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5379", + "kind": "string", + "type": { + "$ref": "1033" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5380", + "kind": "number", + "type": { + "$ref": "970" + }, + "value": 1671545620780 + }, + "updateTime": { + "$id": "5381", + "kind": "number", + "type": { + "$ref": "1031" + }, + "value": 1671545620780 + }, + "version": { + "$id": "5382", + "kind": "number", + "type": { + "$ref": "1035" + }, + "value": 1 + }, + "name": { + "$id": "5383", + "kind": "string", + "type": { + "$ref": "1024" + }, + "value": "Business_Metadata_Type_Name" + }, + "description": { + "$id": "5384", + "kind": "string", + "type": { + "$ref": "1020" + }, + "value": "Business_Metadata_Type_Name" + }, + "typeVersion": { + "$id": "5385", + "kind": "string", + "type": { + "$ref": "1029" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "5386", + "kind": "string", + "type": { + "$ref": "1037" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "5387", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "5388", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5389", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "customAttribute" + }, + "typeName": { + "$id": "5390", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "5391", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5392", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5393", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5394", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5395", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5396", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5397", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "5398", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "maxStrLength": { + "$id": "5399", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "5000" + }, + "isDisabled": { + "$id": "5400", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + }, + "applicableEntityTypes": { + "$id": "5401", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "[\"DataSet\"]" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5402", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "businessMetadata name", + "type": { + "$id": "5403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5404", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "277" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "967" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName" + }, + { + "$id": "5405", + "kind": "basic", + "name": "getClassificationById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the classification definition for the given GUID.", + "operation": { + "$id": "5406", + "name": "getClassificationById", + "resourceName": "TypeDefinition", + "doc": "Get the classification definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5407", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the classification.", + "type": { + "$id": "5408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.guid" + }, + { + "$id": "5409", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "279" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1069" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/classificationdef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById", + "decorators": [], + "examples": [ + { + "$id": "5410", + "kind": "http", + "name": "Type_GetClassificationDefByGuid", + "description": "Type_GetClassificationDefByGuid", + "filePath": "2023-09-01/Type_GetClassificationDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5407" + }, + "value": { + "$id": "5411", + "kind": "string", + "type": { + "$ref": "5408" + }, + "value": "e79878fa-adba-4ee5-adc5-328d8841cd49" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1069" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5412", + "kind": "model", + "type": { + "$ref": "1069" + }, + "value": { + "category": { + "$id": "5413", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "CLASSIFICATION" + }, + "guid": { + "$id": "5414", + "kind": "string", + "type": { + "$ref": "1079" + }, + "value": "e79878fa-adba-4ee5-adc5-328d8841cd49" + }, + "createdBy": { + "$id": "5415", + "kind": "string", + "type": { + "$ref": "1074" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5416", + "kind": "string", + "type": { + "$ref": "1090" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5417", + "kind": "number", + "type": { + "$ref": "1072" + }, + "value": 1553065966043 + }, + "updateTime": { + "$id": "5418", + "kind": "number", + "type": { + "$ref": "1088" + }, + "value": 1553065966043 + }, + "version": { + "$id": "5419", + "kind": "number", + "type": { + "$ref": "1092" + }, + "value": 1 + }, + "name": { + "$id": "5420", + "kind": "string", + "type": { + "$ref": "1081" + }, + "value": "MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER" + }, + "description": { + "$id": "5421", + "kind": "string", + "type": { + "$ref": "1077" + }, + "value": "Canada Social Insurance Number" + }, + "typeVersion": { + "$id": "5422", + "kind": "string", + "type": { + "$ref": "1086" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "5423", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "superTypes": { + "$id": "5424", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "entityTypes": { + "$id": "5425", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "subTypes": { + "$id": "5426", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5427", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the classification.", + "type": { + "$id": "5428", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5429", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "279" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1069" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById" + }, + { + "$id": "5430", + "kind": "basic", + "name": "getClassificationByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the classification definition by its name (unique).", + "operation": { + "$id": "5431", + "name": "getClassificationByName", + "resourceName": "TypeDefinition", + "doc": "Get the classification definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5432", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the classification.", + "type": { + "$id": "5433", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.name" + }, + { + "$id": "5434", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "281" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1069" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/classificationdef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName", + "decorators": [], + "examples": [ + { + "$id": "5435", + "kind": "http", + "name": "Type_GetClassificationDefByName", + "description": "Type_GetClassificationDefByName", + "filePath": "2023-09-01/Type_GetClassificationDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5432" + }, + "value": { + "$id": "5436", + "kind": "string", + "type": { + "$ref": "5433" + }, + "value": "MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1069" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5437", + "kind": "model", + "type": { + "$ref": "1069" + }, + "value": { + "category": { + "$id": "5438", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "CLASSIFICATION" + }, + "guid": { + "$id": "5439", + "kind": "string", + "type": { + "$ref": "1079" + }, + "value": "e79878fa-adba-4ee5-adc5-328d8841cd49" + }, + "createdBy": { + "$id": "5440", + "kind": "string", + "type": { + "$ref": "1074" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5441", + "kind": "string", + "type": { + "$ref": "1090" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5442", + "kind": "number", + "type": { + "$ref": "1072" + }, + "value": 1553065966043 + }, + "updateTime": { + "$id": "5443", + "kind": "number", + "type": { + "$ref": "1088" + }, + "value": 1553065966043 + }, + "version": { + "$id": "5444", + "kind": "number", + "type": { + "$ref": "1092" + }, + "value": 1 + }, + "name": { + "$id": "5445", + "kind": "string", + "type": { + "$ref": "1081" + }, + "value": "MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER" + }, + "description": { + "$id": "5446", + "kind": "string", + "type": { + "$ref": "1077" + }, + "value": "Canada Social Insurance Number" + }, + "typeVersion": { + "$id": "5447", + "kind": "string", + "type": { + "$ref": "1086" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "5448", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "superTypes": { + "$id": "5449", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "entityTypes": { + "$id": "5450", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "subTypes": { + "$id": "5451", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5452", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the classification.", + "type": { + "$id": "5453", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5454", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "281" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1069" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName" + }, + { + "$id": "5455", + "kind": "basic", + "name": "getEntityById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the Entity definition for the given GUID.", + "operation": { + "$id": "5456", + "name": "getEntityById", + "resourceName": "TypeDefinition", + "doc": "Get the Entity definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5457", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "5458", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.guid" + }, + { + "$id": "5459", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "283" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1099" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/entitydef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById", + "decorators": [], + "examples": [ + { + "$id": "5460", + "kind": "http", + "name": "Type_GetEntityDefByGuid", + "description": "Type_GetEntityDefByGuid", + "filePath": "2023-09-01/Type_GetEntityDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5457" + }, + "value": { + "$id": "5461", + "kind": "string", + "type": { + "$ref": "5458" + }, + "value": "4bc54c37-98a8-4de8-9ee8-182610859d43" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1099" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5462", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "category": { + "$id": "5463", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENTITY" + }, + "guid": { + "$id": "5464", + "kind": "string", + "type": { + "$ref": "1109" + }, + "value": "4bc54c37-98a8-4de8-9ee8-182610859d43" + }, + "createdBy": { + "$id": "5465", + "kind": "string", + "type": { + "$ref": "1104" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5466", + "kind": "string", + "type": { + "$ref": "1120" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5467", + "kind": "number", + "type": { + "$ref": "1102" + }, + "value": 1553065960959 + }, + "updateTime": { + "$id": "5468", + "kind": "number", + "type": { + "$ref": "1118" + }, + "value": 1553065960959 + }, + "version": { + "$id": "5469", + "kind": "number", + "type": { + "$ref": "1122" + }, + "value": 1 + }, + "name": { + "$id": "5470", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "DataSet" + }, + "description": { + "$id": "5471", + "kind": "string", + "type": { + "$ref": "1107" + }, + "value": "DataSet" + }, + "typeVersion": { + "$id": "5472", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.1" + }, + "attributeDefs": { + "$id": "5473", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "superTypes": { + "$id": "5474", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "5475", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Asset" + } + ] + }, + "subTypes": { + "$id": "5476", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "5477", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_foreign_key" + }, + { + "$id": "5478", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_datalake_gen1_path" + }, + { + "$id": "5479", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hive_table" + }, + { + "$id": "5480", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "mssql_column" + }, + { + "$id": "5481", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "sqoop_dbdatastore" + }, + { + "$id": "5482", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hbase_column" + }, + { + "$id": "5483", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_sql_table" + }, + { + "$id": "5484", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_instance" + }, + { + "$id": "5485", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_datalake_gen2_path" + }, + { + "$id": "5486", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "jms_topic" + }, + { + "$id": "5487", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "falcon_feed" + }, + { + "$id": "5488", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hbase_table" + }, + { + "$id": "5489", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_table" + }, + { + "$id": "5490", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_column" + }, + { + "$id": "5491", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hbase_column_family" + }, + { + "$id": "5492", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hive_column" + }, + { + "$id": "5493", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_blob_container" + }, + { + "$id": "5494", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_db" + }, + { + "$id": "5495", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "column" + }, + { + "$id": "5496", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_blob_path" + }, + { + "$id": "5497", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "kafka_topic" + }, + { + "$id": "5498", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "tabular_schema" + }, + { + "$id": "5499", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_datalake_gen2_filesystem" + }, + { + "$id": "5500", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_index" + }, + { + "$id": "5501", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_sql_column" + }, + { + "$id": "5502", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "mssql_table" + }, + { + "$id": "5503", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "avro_type" + }, + { + "$id": "5504", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "fs_path" + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5505", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the entity.", + "type": { + "$id": "5506", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5507", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "283" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1099" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById" + }, + { + "$id": "5508", + "kind": "basic", + "name": "getEntityByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the entity definition by its name (unique).", + "operation": { + "$id": "5509", + "name": "getEntityByName", + "resourceName": "TypeDefinition", + "doc": "Get the entity definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5510", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the entity.", + "type": { + "$id": "5511", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.name" + }, + { + "$id": "5512", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "285" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1099" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/entitydef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName", + "decorators": [], + "examples": [ + { + "$id": "5513", + "kind": "http", + "name": "Type_GetEntityDefByName", + "description": "Type_GetEntityDefByName", + "filePath": "2023-09-01/Type_GetEntityDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5510" + }, + "value": { + "$id": "5514", + "kind": "string", + "type": { + "$ref": "5511" + }, + "value": "DataSet" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1099" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5515", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "category": { + "$id": "5516", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENTITY" + }, + "guid": { + "$id": "5517", + "kind": "string", + "type": { + "$ref": "1109" + }, + "value": "4bc54c37-98a8-4de8-9ee8-182610859d43" + }, + "createdBy": { + "$id": "5518", + "kind": "string", + "type": { + "$ref": "1104" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5519", + "kind": "string", + "type": { + "$ref": "1120" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5520", + "kind": "number", + "type": { + "$ref": "1102" + }, + "value": 1553065960959 + }, + "updateTime": { + "$id": "5521", + "kind": "number", + "type": { + "$ref": "1118" + }, + "value": 1553065960959 + }, + "version": { + "$id": "5522", + "kind": "number", + "type": { + "$ref": "1122" + }, + "value": 1 + }, + "name": { + "$id": "5523", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "DataSet" + }, + "description": { + "$id": "5524", + "kind": "string", + "type": { + "$ref": "1107" + }, + "value": "DataSet" + }, + "typeVersion": { + "$id": "5525", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.1" + }, + "attributeDefs": { + "$id": "5526", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "superTypes": { + "$id": "5527", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "5528", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Asset" + } + ] + }, + "subTypes": { + "$id": "5529", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "5530", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_foreign_key" + }, + { + "$id": "5531", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_datalake_gen1_path" + }, + { + "$id": "5532", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hive_table" + }, + { + "$id": "5533", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "mssql_column" + }, + { + "$id": "5534", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "sqoop_dbdatastore" + }, + { + "$id": "5535", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hbase_column" + }, + { + "$id": "5536", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_sql_table" + }, + { + "$id": "5537", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_instance" + }, + { + "$id": "5538", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_datalake_gen2_path" + }, + { + "$id": "5539", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "jms_topic" + }, + { + "$id": "5540", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "falcon_feed" + }, + { + "$id": "5541", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hbase_table" + }, + { + "$id": "5542", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_table" + }, + { + "$id": "5543", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_column" + }, + { + "$id": "5544", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hbase_column_family" + }, + { + "$id": "5545", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "hive_column" + }, + { + "$id": "5546", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_blob_container" + }, + { + "$id": "5547", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_db" + }, + { + "$id": "5548", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "column" + }, + { + "$id": "5549", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_blob_path" + }, + { + "$id": "5550", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "kafka_topic" + }, + { + "$id": "5551", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "tabular_schema" + }, + { + "$id": "5552", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_datalake_gen2_filesystem" + }, + { + "$id": "5553", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "rdbms_index" + }, + { + "$id": "5554", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_sql_column" + }, + { + "$id": "5555", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "mssql_table" + }, + { + "$id": "5556", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "avro_type" + }, + { + "$id": "5557", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "fs_path" + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5558", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the entity.", + "type": { + "$id": "5559", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5560", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "285" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1099" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName" + }, + { + "$id": "5561", + "kind": "basic", + "name": "getEnumById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the enum definition for the given GUID.", + "operation": { + "$id": "5562", + "name": "getEnumById", + "resourceName": "TypeDefinition", + "doc": "Get the enum definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5563", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the enum.", + "type": { + "$id": "5564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.guid" + }, + { + "$id": "5565", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "287" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1158" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/enumdef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById", + "decorators": [], + "examples": [ + { + "$id": "5566", + "kind": "http", + "name": "Type_GetEnumDefByGuid", + "description": "Type_GetEnumDefByGuid", + "filePath": "2023-09-01/Type_GetEnumDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5563" + }, + "value": { + "$id": "5567", + "kind": "string", + "type": { + "$ref": "5564" + }, + "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1158" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5568", + "kind": "model", + "type": { + "$ref": "1158" + }, + "value": { + "category": { + "$id": "5569", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "5570", + "kind": "string", + "type": { + "$ref": "1168" + }, + "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" + }, + "createdBy": { + "$id": "5571", + "kind": "string", + "type": { + "$ref": "1163" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5572", + "kind": "string", + "type": { + "$ref": "1179" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5573", + "kind": "number", + "type": { + "$ref": "1161" + }, + "value": 1553065968102 + }, + "updateTime": { + "$id": "5574", + "kind": "number", + "type": { + "$ref": "1177" + }, + "value": 1553065968102 + }, + "version": { + "$id": "5575", + "kind": "number", + "type": { + "$ref": "1181" + }, + "value": 1 + }, + "name": { + "$id": "5576", + "kind": "string", + "type": { + "$ref": "1170" + }, + "value": "hive_principal_type" + }, + "description": { + "$id": "5577", + "kind": "string", + "type": { + "$ref": "1166" + }, + "value": "hive_principal_type" + }, + "typeVersion": { + "$id": "5578", + "kind": "string", + "type": { + "$ref": "1175" + }, + "value": "1.0" + }, + "elementDefs": { + "$id": "5579", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "5580", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5581", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "USER" + }, + "ordinal": { + "$id": "5582", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "5583", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5584", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "ROLE" + }, + "ordinal": { + "$id": "5585", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "5586", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5587", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "GROUP" + }, + "ordinal": { + "$id": "5588", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5589", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the enum.", + "type": { + "$id": "5590", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5591", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "287" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1158" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById" + }, + { + "$id": "5592", + "kind": "basic", + "name": "getEnumByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the enum definition by its name (unique).", + "operation": { + "$id": "5593", + "name": "getEnumByName", + "resourceName": "TypeDefinition", + "doc": "Get the enum definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5594", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the enum.", + "type": { + "$id": "5595", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.name" + }, + { + "$id": "5596", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "289" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1158" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/enumdef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName", + "decorators": [], + "examples": [ + { + "$id": "5597", + "kind": "http", + "name": "Type_GetEnumDefByName", + "description": "Type_GetEnumDefByName", + "filePath": "2023-09-01/Type_GetEnumDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5594" + }, + "value": { + "$id": "5598", + "kind": "string", + "type": { + "$ref": "5595" + }, + "value": "hive_principal_type" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1158" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5599", + "kind": "model", + "type": { + "$ref": "1158" + }, + "value": { + "category": { + "$id": "5600", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "5601", + "kind": "string", + "type": { + "$ref": "1168" + }, + "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" + }, + "createdBy": { + "$id": "5602", + "kind": "string", + "type": { + "$ref": "1163" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5603", + "kind": "string", + "type": { + "$ref": "1179" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5604", + "kind": "number", + "type": { + "$ref": "1161" + }, + "value": 1553065968102 + }, + "updateTime": { + "$id": "5605", + "kind": "number", + "type": { + "$ref": "1177" + }, + "value": 1553065968102 + }, + "version": { + "$id": "5606", + "kind": "number", + "type": { + "$ref": "1181" + }, + "value": 1 + }, + "name": { + "$id": "5607", + "kind": "string", + "type": { + "$ref": "1170" + }, + "value": "hive_principal_type" + }, + "description": { + "$id": "5608", + "kind": "string", + "type": { + "$ref": "1166" + }, + "value": "hive_principal_type" + }, + "typeVersion": { + "$id": "5609", + "kind": "string", + "type": { + "$ref": "1175" + }, + "value": "1.0" + }, + "elementDefs": { + "$id": "5610", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "5611", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5612", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "USER" + }, + "ordinal": { + "$id": "5613", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "5614", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5615", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "ROLE" + }, + "ordinal": { + "$id": "5616", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "5617", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5618", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "GROUP" + }, + "ordinal": { + "$id": "5619", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5620", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the enum.", + "type": { + "$id": "5621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5622", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "289" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1158" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName" + }, + { + "$id": "5623", + "kind": "basic", + "name": "getRelationshipById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the relationship definition for the given GUID.", + "operation": { + "$id": "5624", + "name": "getRelationshipById", + "resourceName": "TypeDefinition", + "doc": "Get the relationship definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5625", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the relationship.", + "type": { + "$id": "5626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.guid" + }, + { + "$id": "5627", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "291" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1195" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/relationshipdef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById", + "decorators": [], + "examples": [ + { + "$id": "5628", + "kind": "http", + "name": "Type_GetRelationshipDefByGuid", + "description": "Type_GetRelationshipDefByGuid", + "filePath": "2023-09-01/Type_GetRelationshipDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5625" + }, + "value": { + "$id": "5629", + "kind": "string", + "type": { + "$ref": "5626" + }, + "value": "695edde1-2782-4a3c-841b-0b3aba25fe45" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1195" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5630", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "category": { + "$id": "5631", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "RELATIONSHIP" + }, + "guid": { + "$id": "5632", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "695edde1-2782-4a3c-841b-0b3aba25fe45" + }, + "createdBy": { + "$id": "5633", + "kind": "string", + "type": { + "$ref": "1200" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5634", + "kind": "string", + "type": { + "$ref": "1216" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5635", + "kind": "number", + "type": { + "$ref": "1198" + }, + "value": 1553065976797 + }, + "updateTime": { + "$id": "5636", + "kind": "number", + "type": { + "$ref": "1214" + }, + "value": 1553065976797 + }, + "version": { + "$id": "5637", + "kind": "number", + "type": { + "$ref": "1218" + }, + "value": 1 + }, + "name": { + "$id": "5638", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "storm_topology_nodes" + }, + "description": { + "$id": "5639", + "kind": "string", + "type": { + "$ref": "1203" + }, + "value": "storm_topology_nodes" + }, + "typeVersion": { + "$id": "5640", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "5641", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "relationshipCategory": { + "$id": "5642", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "ASSOCIATION" + }, + "endDef1": { + "$id": "5643", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "5644", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "storm_topology" + }, + "name": { + "$id": "5645", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "nodes" + }, + "isContainer": { + "$id": "5646", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "5647", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "5648", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "5649", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "5650", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "storm_node" + }, + "name": { + "$id": "5651", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "topolgies" + }, + "isContainer": { + "$id": "5652", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "5653", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "5654", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": false + } + } + }, + "relationshipLabel": { + "$id": "5655", + "kind": "string", + "type": { + "$ref": "1238" + }, + "value": "r:storm_topology_nodes" + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5656", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the relationship.", + "type": { + "$id": "5657", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5658", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "291" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1195" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById" + }, + { + "$id": "5659", + "kind": "basic", + "name": "getRelationshipByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the relationship definition by its name (unique).", + "operation": { + "$id": "5660", + "name": "getRelationshipByName", + "resourceName": "TypeDefinition", + "doc": "Get the relationship definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5661", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the relationship.", + "type": { + "$id": "5662", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.name" + }, + { + "$id": "5663", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "293" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1195" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/relationshipdef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName", + "decorators": [], + "examples": [ + { + "$id": "5664", + "kind": "http", + "name": "Type_GetRelationshipDefByName", + "description": "Type_GetRelationshipDefByName", + "filePath": "2023-09-01/Type_GetRelationshipDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5661" + }, + "value": { + "$id": "5665", + "kind": "string", + "type": { + "$ref": "5662" + }, + "value": "storm_topology_nodes" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1195" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5666", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "category": { + "$id": "5667", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "RELATIONSHIP" + }, + "guid": { + "$id": "5668", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "695edde1-2782-4a3c-841b-0b3aba25fe45" + }, + "createdBy": { + "$id": "5669", + "kind": "string", + "type": { + "$ref": "1200" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5670", + "kind": "string", + "type": { + "$ref": "1216" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5671", + "kind": "number", + "type": { + "$ref": "1198" + }, + "value": 1553065976797 + }, + "updateTime": { + "$id": "5672", + "kind": "number", + "type": { + "$ref": "1214" + }, + "value": 1553065976797 + }, + "version": { + "$id": "5673", + "kind": "number", + "type": { + "$ref": "1218" + }, + "value": 1 + }, + "name": { + "$id": "5674", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "storm_topology_nodes" + }, + "description": { + "$id": "5675", + "kind": "string", + "type": { + "$ref": "1203" + }, + "value": "storm_topology_nodes" + }, + "typeVersion": { + "$id": "5676", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "5677", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "relationshipCategory": { + "$id": "5678", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "ASSOCIATION" + }, + "endDef1": { + "$id": "5679", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "5680", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "storm_topology" + }, + "name": { + "$id": "5681", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "nodes" + }, + "isContainer": { + "$id": "5682", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "5683", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "5684", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "5685", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "5686", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "storm_node" + }, + "name": { + "$id": "5687", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "topolgies" + }, + "isContainer": { + "$id": "5688", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "5689", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "5690", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": false + } + } + }, + "relationshipLabel": { + "$id": "5691", + "kind": "string", + "type": { + "$ref": "1238" + }, + "value": "r:storm_topology_nodes" + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5692", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the relationship.", + "type": { + "$id": "5693", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5694", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "293" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1195" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName" + }, + { + "$id": "5695", + "kind": "basic", + "name": "getStructById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the struct definition for the given GUID.", + "operation": { + "$id": "5696", + "name": "getStructById", + "resourceName": "TypeDefinition", + "doc": "Get the struct definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5697", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the struct.", + "type": { + "$id": "5698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.guid" + }, + { + "$id": "5699", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "295" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1239" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/structdef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById", + "decorators": [], + "examples": [ + { + "$id": "5700", + "kind": "http", + "name": "Type_GetStructDefByGuid", + "description": "Type_GetStructDefByGuid", + "filePath": "2023-09-01/Type_GetStructDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5697" + }, + "value": { + "$id": "5701", + "kind": "string", + "type": { + "$ref": "5698" + }, + "value": "f1571b6e-ad08-4040-a9a7-c30ed935d437" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1239" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5702", + "kind": "model", + "type": { + "$ref": "1239" + }, + "value": { + "category": { + "$id": "5703", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "STRUCT" + }, + "guid": { + "$id": "5704", + "kind": "string", + "type": { + "$ref": "1249" + }, + "value": "f1571b6e-ad08-4040-a9a7-c30ed935d437" + }, + "createdBy": { + "$id": "5705", + "kind": "string", + "type": { + "$ref": "1244" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5706", + "kind": "string", + "type": { + "$ref": "1260" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5707", + "kind": "number", + "type": { + "$ref": "1242" + }, + "value": 1553065968145 + }, + "updateTime": { + "$id": "5708", + "kind": "number", + "type": { + "$ref": "1258" + }, + "value": 1553065968145 + }, + "version": { + "$id": "5709", + "kind": "number", + "type": { + "$ref": "1262" + }, + "value": 1 + }, + "name": { + "$id": "5710", + "kind": "string", + "type": { + "$ref": "1251" + }, + "value": "hive_order" + }, + "description": { + "$id": "5711", + "kind": "string", + "type": { + "$ref": "1247" + }, + "value": "hive_order" + }, + "typeVersion": { + "$id": "5712", + "kind": "string", + "type": { + "$ref": "1256" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "5713", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "5714", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5715", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "order" + }, + "typeName": { + "$id": "5716", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "int" + }, + "isOptional": { + "$id": "5717", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": false + }, + "cardinality": { + "$id": "5718", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5719", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 1 + }, + "valuesMaxCount": { + "$id": "5720", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5721", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5722", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5723", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "5724", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5725", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "col" + }, + "typeName": { + "$id": "5726", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "5727", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": false + }, + "cardinality": { + "$id": "5728", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5729", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 1 + }, + "valuesMaxCount": { + "$id": "5730", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5731", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5732", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5733", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5734", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the struct.", + "type": { + "$id": "5735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5736", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "295" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1239" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById" + }, + { + "$id": "5737", + "kind": "basic", + "name": "getStructByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the struct definition by its name (unique).", + "operation": { + "$id": "5738", + "name": "getStructByName", + "resourceName": "TypeDefinition", + "doc": "Get the struct definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5739", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the struct.", + "type": { + "$id": "5740", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.name" + }, + { + "$id": "5741", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "297" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1239" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/structdef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName", + "decorators": [], + "examples": [ + { + "$id": "5742", + "kind": "http", + "name": "Type_GetStructDefByName", + "description": "Type_GetStructDefByName", + "filePath": "2023-09-01/Type_GetStructDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5739" + }, + "value": { + "$id": "5743", + "kind": "string", + "type": { + "$ref": "5740" + }, + "value": "hive_order" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1239" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5744", + "kind": "model", + "type": { + "$ref": "1239" + }, + "value": { + "category": { + "$id": "5745", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "STRUCT" + }, + "guid": { + "$id": "5746", + "kind": "string", + "type": { + "$ref": "1249" + }, + "value": "f1571b6e-ad08-4040-a9a7-c30ed935d437" + }, + "createdBy": { + "$id": "5747", + "kind": "string", + "type": { + "$ref": "1244" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5748", + "kind": "string", + "type": { + "$ref": "1260" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5749", + "kind": "number", + "type": { + "$ref": "1242" + }, + "value": 1553065968145 + }, + "updateTime": { + "$id": "5750", + "kind": "number", + "type": { + "$ref": "1258" + }, + "value": 1553065968145 + }, + "version": { + "$id": "5751", + "kind": "number", + "type": { + "$ref": "1262" + }, + "value": 1 + }, + "name": { + "$id": "5752", + "kind": "string", + "type": { + "$ref": "1251" + }, + "value": "hive_order" + }, + "description": { + "$id": "5753", + "kind": "string", + "type": { + "$ref": "1247" + }, + "value": "hive_order" + }, + "typeVersion": { + "$id": "5754", + "kind": "string", + "type": { + "$ref": "1256" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "5755", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "5756", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5757", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "order" + }, + "typeName": { + "$id": "5758", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "int" + }, + "isOptional": { + "$id": "5759", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": false + }, + "cardinality": { + "$id": "5760", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5761", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 1 + }, + "valuesMaxCount": { + "$id": "5762", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5763", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5764", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5765", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "5766", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5767", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "col" + }, + "typeName": { + "$id": "5768", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "5769", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": false + }, + "cardinality": { + "$id": "5770", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5771", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 1 + }, + "valuesMaxCount": { + "$id": "5772", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5773", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5774", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5775", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5776", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the struct.", + "type": { + "$id": "5777", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5778", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "297" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1239" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName" + }, + { + "$id": "5779", + "kind": "basic", + "name": "getById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the type definition for the given GUID.", + "operation": { + "$id": "5780", + "name": "getById", + "resourceName": "TypeDefinition", + "doc": "Get the type definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "5781", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the type.", + "type": { + "$id": "5782", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.guid" + }, + { + "$id": "5783", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "299" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1266" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById", + "decorators": [], + "examples": [ + { + "$id": "5784", + "kind": "http", + "name": "Type_GetByGuid", + "description": "Type_GetByGuid", + "filePath": "2023-09-01/Type_GetByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "5781" + }, + "value": { + "$id": "5785", + "kind": "string", + "type": { + "$ref": "5782" + }, + "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1266" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5786", + "kind": "model", + "type": { + "$ref": "1266" + }, + "value": { + "category": { + "$id": "5787", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "5788", + "kind": "string", + "type": { + "$ref": "1276" + }, + "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" + }, + "createdBy": { + "$id": "5789", + "kind": "string", + "type": { + "$ref": "1271" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5790", + "kind": "string", + "type": { + "$ref": "1287" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5791", + "kind": "number", + "type": { + "$ref": "1269" + }, + "value": 1604728877305 + }, + "updateTime": { + "$id": "5792", + "kind": "number", + "type": { + "$ref": "1285" + }, + "value": 1604728877305 + }, + "version": { + "$id": "5793", + "kind": "number", + "type": { + "$ref": "1289" + }, + "value": 1 + }, + "name": { + "$id": "5794", + "kind": "string", + "type": { + "$ref": "1278" + }, + "value": "glossary_term_status_value" + }, + "description": { + "$id": "5795", + "kind": "string", + "type": { + "$ref": "1274" + }, + "value": "glossary_term_status_value" + }, + "typeVersion": { + "$id": "5796", + "kind": "string", + "type": { + "$ref": "1283" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "5797", + "kind": "string", + "type": { + "$ref": "1291" + }, + "value": "1" + }, + "elementDefs": { + "$id": "5798", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "5799", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5800", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Approved" + }, + "ordinal": { + "$id": "5801", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 0 + } + } + }, + { + "$id": "5802", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5803", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Alert" + }, + "ordinal": { + "$id": "5804", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "5805", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5806", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Expired" + }, + "ordinal": { + "$id": "5807", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "5808", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5809", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Draft" + }, + "ordinal": { + "$id": "5810", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5811", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the type.", + "type": { + "$id": "5812", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5813", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "299" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1266" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById" + }, + { + "$id": "5814", + "kind": "basic", + "name": "getByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the type definition by its name (unique).", + "operation": { + "$id": "5815", + "name": "getByName", + "resourceName": "TypeDefinition", + "doc": "Get the type definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "5816", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the type.", + "type": { + "$id": "5817", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.name" + }, + { + "$id": "5818", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "301" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1266" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName", + "decorators": [], + "examples": [ + { + "$id": "5819", + "kind": "http", + "name": "Type_GetByName", + "description": "Type_GetByName", + "filePath": "2023-09-01/Type_GetByName.json", + "parameters": [ + { + "parameter": { + "$ref": "5816" + }, + "value": { + "$id": "5820", + "kind": "string", + "type": { + "$ref": "5817" + }, + "value": "glossary_term_status_value" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1266" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5821", + "kind": "model", + "type": { + "$ref": "1266" + }, + "value": { + "category": { + "$id": "5822", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "5823", + "kind": "string", + "type": { + "$ref": "1276" + }, + "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" + }, + "createdBy": { + "$id": "5824", + "kind": "string", + "type": { + "$ref": "1271" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5825", + "kind": "string", + "type": { + "$ref": "1287" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5826", + "kind": "number", + "type": { + "$ref": "1269" + }, + "value": 1604728877305 + }, + "updateTime": { + "$id": "5827", + "kind": "number", + "type": { + "$ref": "1285" + }, + "value": 1604728877305 + }, + "version": { + "$id": "5828", + "kind": "number", + "type": { + "$ref": "1289" + }, + "value": 1 + }, + "name": { + "$id": "5829", + "kind": "string", + "type": { + "$ref": "1278" + }, + "value": "glossary_term_status_value" + }, + "description": { + "$id": "5830", + "kind": "string", + "type": { + "$ref": "1274" + }, + "value": "glossary_term_status_value" + }, + "typeVersion": { + "$id": "5831", + "kind": "string", + "type": { + "$ref": "1283" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "5832", + "kind": "string", + "type": { + "$ref": "1291" + }, + "value": "1" + }, + "elementDefs": { + "$id": "5833", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "5834", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5835", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Approved" + }, + "ordinal": { + "$id": "5836", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 0 + } + } + }, + { + "$id": "5837", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5838", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Alert" + }, + "ordinal": { + "$id": "5839", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "5840", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5841", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Expired" + }, + "ordinal": { + "$id": "5842", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "5843", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5844", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Draft" + }, + "ordinal": { + "$id": "5845", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5846", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the type.", + "type": { + "$id": "5847", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "5848", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "301" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1266" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName" + }, + { + "$id": "5849", + "kind": "basic", + "name": "delete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete API for type identified by its name.", + "operation": { + "$id": "5850", + "name": "delete", + "resourceName": "TypeDefinition", + "doc": "Delete API for type identified by its name.", + "accessibility": "public", + "parameters": [ + { + "$id": "5851", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The name of the type.", + "type": { + "$id": "5852", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete.name" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete", + "decorators": [], + "examples": [ + { + "$id": "5853", + "kind": "http", + "name": "Type_Delete", + "description": "Type_Delete", + "filePath": "2023-09-01/Type_Delete.json", + "parameters": [ + { + "parameter": { + "$ref": "5851" + }, + "value": { + "$id": "5854", + "kind": "string", + "type": { + "$ref": "5852" + }, + "value": "hive_order" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "5855", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The name of the type.", + "type": { + "$id": "5856", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete" + }, + { + "$id": "5857", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "List all type definitions in bulk.", + "operation": { + "$id": "5858", + "name": "get", + "resourceName": "TypeDefinition", + "doc": "List all type definitions in bulk.", + "accessibility": "public", + "parameters": [ + { + "$id": "5859", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "5860", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "5861", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.apiVersion", + "readOnly": false + }, + { + "$id": "5862", + "kind": "query", + "name": "includeTermTemplate", + "serializedName": "includeTermTemplate", + "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", + "type": { + "$id": "5863", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.includeTermTemplate", + "readOnly": false + }, + { + "$id": "5864", + "kind": "query", + "name": "type", + "serializedName": "type", + "doc": "Typedef name as search filter when get typedefs.", + "type": { + "$ref": "49" + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.type", + "readOnly": false + }, + { + "$id": "5865", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "303" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedefs", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get", + "decorators": [], + "examples": [ + { + "$id": "5866", + "kind": "http", + "name": "Type_List", + "description": "Type_List", + "filePath": "2023-09-01/Type_List.json", + "parameters": [ + { + "parameter": { + "$ref": "5862" + }, + "value": { + "$id": "5867", + "kind": "boolean", + "type": { + "$ref": "5863" + }, + "value": true + } + }, + { + "parameter": { + "$ref": "5859" + }, + "value": { + "$id": "5868", + "kind": "string", + "type": { + "$ref": "5860" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "5869", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "5870", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [ + { + "$id": "5871", + "kind": "model", + "type": { + "$ref": "1158" + }, + "value": { + "category": { + "$id": "5872", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "5873", + "kind": "string", + "type": { + "$ref": "1168" + }, + "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" + }, + "createdBy": { + "$id": "5874", + "kind": "string", + "type": { + "$ref": "1163" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5875", + "kind": "string", + "type": { + "$ref": "1179" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5876", + "kind": "number", + "type": { + "$ref": "1161" + }, + "value": 1604728877305 + }, + "updateTime": { + "$id": "5877", + "kind": "number", + "type": { + "$ref": "1177" + }, + "value": 1604728877305 + }, + "version": { + "$id": "5878", + "kind": "number", + "type": { + "$ref": "1181" + }, + "value": 1 + }, + "name": { + "$id": "5879", + "kind": "string", + "type": { + "$ref": "1170" + }, + "value": "glossary_term_status_value" + }, + "description": { + "$id": "5880", + "kind": "string", + "type": { + "$ref": "1166" + }, + "value": "glossary_term_status_value" + }, + "typeVersion": { + "$id": "5881", + "kind": "string", + "type": { + "$ref": "1175" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "5882", + "kind": "string", + "type": { + "$ref": "1183" + }, + "value": "1" + }, + "elementDefs": { + "$id": "5883", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "5884", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5885", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Approved" + }, + "ordinal": { + "$id": "5886", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 0 + } + } + }, + { + "$id": "5887", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5888", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Alert" + }, + "ordinal": { + "$id": "5889", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "5890", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5891", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Expired" + }, + "ordinal": { + "$id": "5892", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "5893", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "5894", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Draft" + }, + "ordinal": { + "$id": "5895", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + } + ] + } + } + } + ] + }, + "structDefs": { + "$id": "5896", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [ + { + "$id": "5897", + "kind": "model", + "type": { + "$ref": "1239" + }, + "value": { + "category": { + "$id": "5898", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "STRUCT" + }, + "guid": { + "$id": "5899", + "kind": "string", + "type": { + "$ref": "1249" + }, + "value": "a8892bd7-59d6-47d8-b80d-ba4c7631098f" + }, + "createdBy": { + "$id": "5900", + "kind": "string", + "type": { + "$ref": "1244" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5901", + "kind": "string", + "type": { + "$ref": "1260" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5902", + "kind": "number", + "type": { + "$ref": "1242" + }, + "value": 1604729507664 + }, + "updateTime": { + "$id": "5903", + "kind": "number", + "type": { + "$ref": "1258" + }, + "value": 1604729507664 + }, + "version": { + "$id": "5904", + "kind": "number", + "type": { + "$ref": "1262" + }, + "value": 1 + }, + "name": { + "$id": "5905", + "kind": "string", + "type": { + "$ref": "1251" + }, + "value": "blob_soft_deleted_state" + }, + "description": { + "$id": "5906", + "kind": "string", + "type": { + "$ref": "1247" + }, + "value": "blob_soft_deleted_state" + }, + "typeVersion": { + "$id": "5907", + "kind": "string", + "type": { + "$ref": "1256" + }, + "value": "1.0" + }, + "serviceType": { + "$id": "5908", + "kind": "string", + "type": { + "$ref": "1254" + }, + "value": "Azure Blob Storage" + }, + "lastModifiedTS": { + "$id": "5909", + "kind": "string", + "type": { + "$ref": "1264" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "5910", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "5911", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5912", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "deleted" + }, + "typeName": { + "$id": "5913", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "boolean" + }, + "isOptional": { + "$id": "5914", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5915", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5916", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5917", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5918", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5919", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5920", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "5921", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5922", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "deletedTime" + }, + "typeName": { + "$id": "5923", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "date" + }, + "isOptional": { + "$id": "5924", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5925", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5926", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5927", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5928", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5929", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5930", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "5931", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5932", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "remainingRetentionDays" + }, + "typeName": { + "$id": "5933", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "long" + }, + "isOptional": { + "$id": "5934", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5935", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5936", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5937", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5938", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5939", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5940", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + } + } + } + ] + }, + "classificationDefs": { + "$id": "5941", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [ + { + "$id": "5942", + "kind": "model", + "type": { + "$ref": "1069" + }, + "value": { + "category": { + "$id": "5943", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "CLASSIFICATION" + }, + "guid": { + "$id": "5944", + "kind": "string", + "type": { + "$ref": "1079" + }, + "value": "bd97460e-e5db-4701-8158-5b4062cf8a10" + }, + "createdBy": { + "$id": "5945", + "kind": "string", + "type": { + "$ref": "1074" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5946", + "kind": "string", + "type": { + "$ref": "1090" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5947", + "kind": "number", + "type": { + "$ref": "1072" + }, + "value": 1604730971448 + }, + "updateTime": { + "$id": "5948", + "kind": "number", + "type": { + "$ref": "1088" + }, + "value": 1604730971448 + }, + "version": { + "$id": "5949", + "kind": "number", + "type": { + "$ref": "1092" + }, + "value": 1 + }, + "name": { + "$id": "5950", + "kind": "string", + "type": { + "$ref": "1081" + }, + "value": "MICROSOFT.GOVERNMENT.CHILE.CDI_NUMBER" + }, + "description": { + "$id": "5951", + "kind": "string", + "type": { + "$ref": "1077" + }, + "value": "Chile Identity Card Number" + }, + "typeVersion": { + "$id": "5952", + "kind": "string", + "type": { + "$ref": "1086" + }, + "value": "1.0" + }, + "options": { + "$id": "5953", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "displayName": { + "$id": "5954", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "Chile Identity Card Number" + } + } + }, + "attributeDefs": { + "$id": "5955", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "superTypes": { + "$id": "5956", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "entityTypes": { + "$id": "5957", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "subTypes": { + "$id": "5958", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + ] + }, + "entityDefs": { + "$id": "5959", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [ + { + "$id": "5960", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "category": { + "$id": "5961", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENTITY" + }, + "guid": { + "$id": "5962", + "kind": "string", + "type": { + "$ref": "1109" + }, + "value": "7c53da5d-2797-4e8a-9b89-dd9b3b26ffa8" + }, + "createdBy": { + "$id": "5963", + "kind": "string", + "type": { + "$ref": "1104" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "5964", + "kind": "string", + "type": { + "$ref": "1120" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "5965", + "kind": "number", + "type": { + "$ref": "1102" + }, + "value": 1604730605047 + }, + "updateTime": { + "$id": "5966", + "kind": "number", + "type": { + "$ref": "1118" + }, + "value": 1604730605047 + }, + "version": { + "$id": "5967", + "kind": "number", + "type": { + "$ref": "1122" + }, + "value": 1 + }, + "name": { + "$id": "5968", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "sap_ecc_data_element" + }, + "description": { + "$id": "5969", + "kind": "string", + "type": { + "$ref": "1107" + }, + "value": "sap_ecc_data_element" + }, + "typeVersion": { + "$id": "5970", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "serviceType": { + "$id": "5971", + "kind": "string", + "type": { + "$ref": "1114" + }, + "value": "SAP ECC" + }, + "lastModifiedTS": { + "$id": "5972", + "kind": "string", + "type": { + "$ref": "1124" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "5973", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "5974", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5975", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "dataType" + }, + "typeName": { + "$id": "5976", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "5977", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5978", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5979", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5980", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5981", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5982", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5983", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "5984", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5985", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "length" + }, + "typeName": { + "$id": "5986", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "int" + }, + "isOptional": { + "$id": "5987", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5988", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5989", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "5990", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "5991", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "5992", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "5993", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "5994", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "5995", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "decimalPlaces" + }, + "typeName": { + "$id": "5996", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "int" + }, + "isOptional": { + "$id": "5997", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "5998", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "5999", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6000", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6001", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6002", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6003", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "6004", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6005", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "documentation" + }, + "typeName": { + "$id": "6006", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6007", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6008", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6009", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6010", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6011", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6012", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6013", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + }, + "superTypes": { + "$id": "6014", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6015", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "Asset" + } + ] + }, + "subTypes": { + "$id": "6016", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + }, + "relationshipAttributeDefs": { + "$id": "6017", + "kind": "array", + "type": { + "$ref": "1129" + }, + "value": [ + { + "$id": "6018", + "kind": "model", + "type": { + "$ref": "1130" + }, + "value": { + "name": { + "$id": "6019", + "kind": "string", + "type": { + "$ref": "1146" + }, + "value": "package" + }, + "typeName": { + "$id": "6020", + "kind": "string", + "type": { + "$ref": "1149" + }, + "value": "sap_ecc_package" + }, + "isOptional": { + "$id": "6021", + "kind": "boolean", + "type": { + "$ref": "1142" + }, + "value": false + }, + "cardinality": { + "$id": "6022", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6023", + "kind": "number", + "type": { + "$ref": "1153" + }, + "value": -1 + }, + "valuesMaxCount": { + "$id": "6024", + "kind": "number", + "type": { + "$ref": "1151" + }, + "value": -1 + }, + "isUnique": { + "$id": "6025", + "kind": "boolean", + "type": { + "$ref": "1144" + }, + "value": false + }, + "isIndexable": { + "$id": "6026", + "kind": "boolean", + "type": { + "$ref": "1140" + }, + "value": false + }, + "includeInNotification": { + "$id": "6027", + "kind": "boolean", + "type": { + "$ref": "1138" + }, + "value": false + }, + "relationshipTypeName": { + "$id": "6028", + "kind": "string", + "type": { + "$ref": "1157" + }, + "value": "sap_ecc_package_data_elements" + }, + "isLegacyAttribute": { + "$id": "6029", + "kind": "boolean", + "type": { + "$ref": "1155" + }, + "value": false + } + } + }, + { + "$id": "6030", + "kind": "model", + "type": { + "$ref": "1130" + }, + "value": { + "name": { + "$id": "6031", + "kind": "string", + "type": { + "$ref": "1146" + }, + "value": "table_fields" + }, + "typeName": { + "$id": "6032", + "kind": "string", + "type": { + "$ref": "1149" + }, + "value": "array" + }, + "isOptional": { + "$id": "6033", + "kind": "boolean", + "type": { + "$ref": "1142" + }, + "value": true + }, + "cardinality": { + "$id": "6034", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6035", + "kind": "number", + "type": { + "$ref": "1153" + }, + "value": -1 + }, + "valuesMaxCount": { + "$id": "6036", + "kind": "number", + "type": { + "$ref": "1151" + }, + "value": -1 + }, + "isUnique": { + "$id": "6037", + "kind": "boolean", + "type": { + "$ref": "1144" + }, + "value": false + }, + "isIndexable": { + "$id": "6038", + "kind": "boolean", + "type": { + "$ref": "1140" + }, + "value": false + }, + "includeInNotification": { + "$id": "6039", + "kind": "boolean", + "type": { + "$ref": "1138" + }, + "value": false + }, + "relationshipTypeName": { + "$id": "6040", + "kind": "string", + "type": { + "$ref": "1157" + }, + "value": "sap_ecc_table_field_data_element" + }, + "isLegacyAttribute": { + "$id": "6041", + "kind": "boolean", + "type": { + "$ref": "1155" + }, + "value": false + } + } + }, + { + "$id": "6042", + "kind": "model", + "type": { + "$ref": "1130" + }, + "value": { + "name": { + "$id": "6043", + "kind": "string", + "type": { + "$ref": "1146" + }, + "value": "domain" + }, + "typeName": { + "$id": "6044", + "kind": "string", + "type": { + "$ref": "1149" + }, + "value": "sap_ecc_domain" + }, + "isOptional": { + "$id": "6045", + "kind": "boolean", + "type": { + "$ref": "1142" + }, + "value": true + }, + "cardinality": { + "$id": "6046", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6047", + "kind": "number", + "type": { + "$ref": "1153" + }, + "value": -1 + }, + "valuesMaxCount": { + "$id": "6048", + "kind": "number", + "type": { + "$ref": "1151" + }, + "value": -1 + }, + "isUnique": { + "$id": "6049", + "kind": "boolean", + "type": { + "$ref": "1144" + }, + "value": false + }, + "isIndexable": { + "$id": "6050", + "kind": "boolean", + "type": { + "$ref": "1140" + }, + "value": false + }, + "includeInNotification": { + "$id": "6051", + "kind": "boolean", + "type": { + "$ref": "1138" + }, + "value": false + }, + "relationshipTypeName": { + "$id": "6052", + "kind": "string", + "type": { + "$ref": "1157" + }, + "value": "sap_ecc_data_element_domain" + }, + "isLegacyAttribute": { + "$id": "6053", + "kind": "boolean", + "type": { + "$ref": "1155" + }, + "value": false + } + } + }, + { + "$id": "6054", + "kind": "model", + "type": { + "$ref": "1130" + }, + "value": { + "name": { + "$id": "6055", + "kind": "string", + "type": { + "$ref": "1146" + }, + "value": "meanings" + }, + "typeName": { + "$id": "6056", + "kind": "string", + "type": { + "$ref": "1149" + }, + "value": "array" + }, + "isOptional": { + "$id": "6057", + "kind": "boolean", + "type": { + "$ref": "1142" + }, + "value": true + }, + "cardinality": { + "$id": "6058", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6059", + "kind": "number", + "type": { + "$ref": "1153" + }, + "value": -1 + }, + "valuesMaxCount": { + "$id": "6060", + "kind": "number", + "type": { + "$ref": "1151" + }, + "value": -1 + }, + "isUnique": { + "$id": "6061", + "kind": "boolean", + "type": { + "$ref": "1144" + }, + "value": false + }, + "isIndexable": { + "$id": "6062", + "kind": "boolean", + "type": { + "$ref": "1140" + }, + "value": false + }, + "includeInNotification": { + "$id": "6063", + "kind": "boolean", + "type": { + "$ref": "1138" + }, + "value": false + }, + "relationshipTypeName": { + "$id": "6064", + "kind": "string", + "type": { + "$ref": "1157" + }, + "value": "AtlasGlossarySemanticAssignment" + }, + "isLegacyAttribute": { + "$id": "6065", + "kind": "boolean", + "type": { + "$ref": "1155" + }, + "value": false + } + } + } + ] + } + } + } + ] + }, + "relationshipDefs": { + "$id": "6066", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [ + { + "$id": "6067", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "category": { + "$id": "6068", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "RELATIONSHIP" + }, + "guid": { + "$id": "6069", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "6284b865-cbb3-4236-83ed-059a407f06fb" + }, + "createdBy": { + "$id": "6070", + "kind": "string", + "type": { + "$ref": "1200" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6071", + "kind": "string", + "type": { + "$ref": "1216" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6072", + "kind": "number", + "type": { + "$ref": "1198" + }, + "value": 1604729078159 + }, + "updateTime": { + "$id": "6073", + "kind": "number", + "type": { + "$ref": "1214" + }, + "value": 1604729323080 + }, + "version": { + "$id": "6074", + "kind": "number", + "type": { + "$ref": "1218" + }, + "value": 2 + }, + "name": { + "$id": "6075", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "storm_topology_nodes" + }, + "description": { + "$id": "6076", + "kind": "string", + "type": { + "$ref": "1203" + }, + "value": "storm_topology_nodes" + }, + "typeVersion": { + "$id": "6077", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.1" + }, + "serviceType": { + "$id": "6078", + "kind": "string", + "type": { + "$ref": "1210" + }, + "value": "storm" + }, + "lastModifiedTS": { + "$id": "6079", + "kind": "string", + "type": { + "$ref": "1220" + }, + "value": "2" + }, + "attributeDefs": { + "$id": "6080", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "relationshipCategory": { + "$id": "6081", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "ASSOCIATION" + }, + "endDef1": { + "$id": "6082", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6083", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "storm_topology" + }, + "name": { + "$id": "6084", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "nodes" + }, + "isContainer": { + "$id": "6085", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "6086", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "6087", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "6088", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6089", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "storm_node" + }, + "name": { + "$id": "6090", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "topolgies" + }, + "isContainer": { + "$id": "6091", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "6092", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "6093", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": false + } + } + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "6094", + "kind": "http", + "name": "Type_ListEnumDefs", + "description": "Type_ListEnumDefs", + "filePath": "2023-09-01/Type_ListEnumDefs.json", + "parameters": [ + { + "parameter": { + "$ref": "5864" + }, + "value": { + "$id": "6095", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + } + }, + { + "parameter": { + "$ref": "5859" + }, + "value": { + "$id": "6096", + "kind": "string", + "type": { + "$ref": "5860" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6097", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6098", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [ + { + "$id": "6099", + "kind": "model", + "type": { + "$ref": "1158" + }, + "value": { + "category": { + "$id": "6100", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "6101", + "kind": "string", + "type": { + "$ref": "1168" + }, + "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" + }, + "createdBy": { + "$id": "6102", + "kind": "string", + "type": { + "$ref": "1163" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6103", + "kind": "string", + "type": { + "$ref": "1179" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6104", + "kind": "number", + "type": { + "$ref": "1161" + }, + "value": 1604728877305 + }, + "updateTime": { + "$id": "6105", + "kind": "number", + "type": { + "$ref": "1177" + }, + "value": 1604728877305 + }, + "version": { + "$id": "6106", + "kind": "number", + "type": { + "$ref": "1181" + }, + "value": 1 + }, + "name": { + "$id": "6107", + "kind": "string", + "type": { + "$ref": "1170" + }, + "value": "glossary_term_status_value" + }, + "description": { + "$id": "6108", + "kind": "string", + "type": { + "$ref": "1166" + }, + "value": "glossary_term_status_value" + }, + "typeVersion": { + "$id": "6109", + "kind": "string", + "type": { + "$ref": "1175" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "6110", + "kind": "string", + "type": { + "$ref": "1183" + }, + "value": "1" + }, + "elementDefs": { + "$id": "6111", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "6112", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6113", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Approved" + }, + "ordinal": { + "$id": "6114", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 0 + } + } + }, + { + "$id": "6115", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6116", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Alert" + }, + "ordinal": { + "$id": "6117", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "6118", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6119", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Expired" + }, + "ordinal": { + "$id": "6120", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "6121", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6122", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "Draft" + }, + "ordinal": { + "$id": "6123", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + } + ] + } + } + }, + { + "$id": "6124", + "kind": "model", + "type": { + "$ref": "1158" + }, + "value": { + "category": { + "$id": "6125", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + }, + "guid": { + "$id": "6126", + "kind": "string", + "type": { + "$ref": "1168" + }, + "value": "c694edf1-6f9e-4b60-b832-23e8d6187675" + }, + "createdBy": { + "$id": "6127", + "kind": "string", + "type": { + "$ref": "1163" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6128", + "kind": "string", + "type": { + "$ref": "1179" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6129", + "kind": "number", + "type": { + "$ref": "1161" + }, + "value": 1604728832692 + }, + "updateTime": { + "$id": "6130", + "kind": "number", + "type": { + "$ref": "1177" + }, + "value": 1604728905525 + }, + "version": { + "$id": "6131", + "kind": "number", + "type": { + "$ref": "1181" + }, + "value": 2 + }, + "name": { + "$id": "6132", + "kind": "string", + "type": { + "$ref": "1170" + }, + "value": "AtlasGlossaryTermRelationshipStatus" + }, + "description": { + "$id": "6133", + "kind": "string", + "type": { + "$ref": "1166" + }, + "value": "TermRelationshipStatus defines how reliable the relationship is between two glossary terms" + }, + "typeVersion": { + "$id": "6134", + "kind": "string", + "type": { + "$ref": "1175" + }, + "value": "1.1" + }, + "serviceType": { + "$id": "6135", + "kind": "string", + "type": { + "$ref": "1173" + }, + "value": "atlas_core" + }, + "lastModifiedTS": { + "$id": "6136", + "kind": "string", + "type": { + "$ref": "1183" + }, + "value": "2" + }, + "elementDefs": { + "$id": "6137", + "kind": "array", + "type": { + "$ref": "1187" + }, + "value": [ + { + "$id": "6138", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6139", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "DRAFT" + }, + "description": { + "$id": "6140", + "kind": "string", + "type": { + "$ref": "1190" + }, + "value": "DRAFT means the relationship is under development." + }, + "ordinal": { + "$id": "6141", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 0 + } + } + }, + { + "$id": "6142", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6143", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "ACTIVE" + }, + "description": { + "$id": "6144", + "kind": "string", + "type": { + "$ref": "1190" + }, + "value": "ACTIVE means the relationship is validated and in use." + }, + "ordinal": { + "$id": "6145", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 1 + } + } + }, + { + "$id": "6146", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6147", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "DEPRECATED" + }, + "description": { + "$id": "6148", + "kind": "string", + "type": { + "$ref": "1190" + }, + "value": "DEPRECATED means the the relationship is being phased out." + }, + "ordinal": { + "$id": "6149", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 2 + } + } + }, + { + "$id": "6150", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6151", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "OBSOLETE" + }, + "description": { + "$id": "6152", + "kind": "string", + "type": { + "$ref": "1190" + }, + "value": "OBSOLETE means that the relationship should not be used anymore." + }, + "ordinal": { + "$id": "6153", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 3 + } + } + }, + { + "$id": "6154", + "kind": "model", + "type": { + "$ref": "1188" + }, + "value": { + "value": { + "$id": "6155", + "kind": "string", + "type": { + "$ref": "1194" + }, + "value": "OTHER" + }, + "description": { + "$id": "6156", + "kind": "string", + "type": { + "$ref": "1190" + }, + "value": "OTHER means that there is another status." + }, + "ordinal": { + "$id": "6157", + "kind": "number", + "type": { + "$ref": "1192" + }, + "value": 99 + } + } + } + ] + } + } + } + ] + }, + "structDefs": { + "$id": "6158", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6159", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6160", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [] + }, + "relationshipDefs": { + "$id": "6161", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + } + } + } + } + ] + }, + { + "$id": "6162", + "kind": "http", + "name": "Type_ListTermTemplateDefs", + "description": "Type_ListTermTemplateDefs", + "filePath": "2023-09-01/Type_ListTermTemplateDefs.json", + "parameters": [ + { + "parameter": { + "$ref": "5864" + }, + "value": { + "$id": "6163", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "TERM_TEMPLATE" + } + }, + { + "parameter": { + "$ref": "5859" + }, + "value": { + "$id": "6164", + "kind": "string", + "type": { + "$ref": "5860" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6165", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6166", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6167", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6168", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6169", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [] + }, + "relationshipDefs": { + "$id": "6170", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + }, + "termTemplateDefs": { + "$id": "6171", + "kind": "array", + "type": { + "$ref": "1319" + }, + "value": [ + { + "$id": "6172", + "kind": "model", + "type": { + "$ref": "1320" + }, + "value": { + "category": { + "$id": "6173", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "TERM_TEMPLATE" + }, + "guid": { + "$id": "6174", + "kind": "string", + "type": { + "$ref": "1330" + }, + "value": "d776af9c-985c-4168-abb2-477523dbfc70" + }, + "createdBy": { + "$id": "6175", + "kind": "string", + "type": { + "$ref": "1325" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6176", + "kind": "string", + "type": { + "$ref": "1341" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6177", + "kind": "number", + "type": { + "$ref": "1323" + }, + "value": 1606300465443 + }, + "updateTime": { + "$id": "6178", + "kind": "number", + "type": { + "$ref": "1339" + }, + "value": 1606300465443 + }, + "version": { + "$id": "6179", + "kind": "number", + "type": { + "$ref": "1343" + }, + "value": 1 + }, + "name": { + "$id": "6180", + "kind": "string", + "type": { + "$ref": "1332" + }, + "value": "MS KPI" + }, + "description": { + "$id": "6181", + "kind": "string", + "type": { + "$ref": "1328" + }, + "value": "This is the description" + }, + "typeVersion": { + "$id": "6182", + "kind": "string", + "type": { + "$ref": "1337" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "6183", + "kind": "string", + "type": { + "$ref": "1345" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "6184", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6185", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6186", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "date" + }, + "typeName": { + "$id": "6187", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "date" + }, + "isOptional": { + "$id": "6188", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6189", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6190", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6191", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6192", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6193", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6194", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6195", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6196", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6197", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6198", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "single choice" + }, + "typeName": { + "$id": "6199", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "TERM_TEMPLATE_ENUM_EXAMPLE_1" + }, + "isOptional": { + "$id": "6200", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6201", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6202", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6203", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6204", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6205", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6206", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6207", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6208", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6209", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6210", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "multi choice" + }, + "typeName": { + "$id": "6211", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "isOptional": { + "$id": "6212", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6213", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6214", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6215", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 2147483647 + }, + "isUnique": { + "$id": "6216", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6217", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6218", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6219", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6220", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6221", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6222", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "plain string" + }, + "typeName": { + "$id": "6223", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6224", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6225", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6226", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6227", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6228", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6229", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6230", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "defaultValue": { + "$id": "6231", + "kind": "string", + "type": { + "$ref": "1049" + }, + "value": "this is a default value" + }, + "options": { + "$id": "6232", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6233", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + } + ] + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6234", + "kind": "method", + "name": "includeTermTemplate", + "serializedName": "includeTermTemplate", + "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", + "type": { + "$id": "6235", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.includeTermTemplate", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6236", + "kind": "method", + "name": "type", + "serializedName": "type", + "doc": "Typedef name as search filter when get typedefs.", + "type": { + "$ref": "49" + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.type", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6237", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "303" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1305" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get" + }, + { + "$id": "6238", + "kind": "basic", + "name": "batchCreate", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Create all atlas type definitions in bulk. Please avoid recreating existing types.", + "operation": { + "$id": "6239", + "name": "batchCreate", + "resourceName": "TypeDefinition", + "doc": "Create all atlas type definitions in bulk. Please avoid recreating existing types.", + "accessibility": "public", + "parameters": [ + { + "$id": "6240", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "305" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.contentType" + }, + { + "$id": "6241", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "307" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.accept" + }, + { + "$id": "6242", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "1305" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedefs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate", + "decorators": [], + "examples": [ + { + "$id": "6243", + "kind": "http", + "name": "Type_BulkCreate", + "description": "Type_BulkCreate", + "filePath": "2023-09-01/Type_BulkCreate.json", + "parameters": [ + { + "parameter": { + "$ref": "6242" + }, + "value": { + "$id": "6244", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6245", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6246", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6247", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6248", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [ + { + "$id": "6249", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "name": { + "$id": "6250", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_server_example" + }, + "superTypes": { + "$id": "6251", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6252", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "typeVersion": { + "$id": "6253", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6254", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6255", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6256", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "databases" + }, + "typeName": { + "$id": "6257", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "cardinality": { + "$id": "6258", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isIndexable": { + "$id": "6259", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6260", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "isUnique": { + "$id": "6261", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + } + ] + } + } + } + ] + }, + "relationshipDefs": { + "$id": "6262", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6263", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6264", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6265", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6266", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6267", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [ + { + "$id": "6268", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "category": { + "$id": "6269", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENTITY" + }, + "guid": { + "$id": "6270", + "kind": "string", + "type": { + "$ref": "1109" + }, + "value": "a47fd902-a564-45f1-aa51-ce9224955881" + }, + "createdBy": { + "$id": "6271", + "kind": "string", + "type": { + "$ref": "1104" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6272", + "kind": "string", + "type": { + "$ref": "1120" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6273", + "kind": "number", + "type": { + "$ref": "1102" + }, + "value": 1553672211954 + }, + "updateTime": { + "$id": "6274", + "kind": "number", + "type": { + "$ref": "1118" + }, + "value": 1553672211954 + }, + "version": { + "$id": "6275", + "kind": "number", + "type": { + "$ref": "1122" + }, + "value": 1 + }, + "name": { + "$id": "6276", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_server_example" + }, + "description": { + "$id": "6277", + "kind": "string", + "type": { + "$ref": "1107" + }, + "value": "azure_sql_server_example" + }, + "typeVersion": { + "$id": "6278", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6279", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6280", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6281", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "databases" + }, + "typeName": { + "$id": "6282", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "isOptional": { + "$id": "6283", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6284", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6285", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6286", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 2147483647 + }, + "isUnique": { + "$id": "6287", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6288", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6289", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + }, + "superTypes": { + "$id": "6290", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6291", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "subTypes": { + "$id": "6292", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + ] + }, + "relationshipDefs": { + "$id": "6293", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + } + } + } + } + ] + }, + { + "$id": "6294", + "kind": "http", + "name": "Type_BulkCreateBusinessMetadataDefs", + "description": "Type_BulkCreateBusinessMetadataDefs", + "filePath": "2023-09-01/Type_BulkCreateBusinessMetadataDefs.json", + "parameters": [ + { + "parameter": { + "$ref": "6242" + }, + "value": { + "$id": "6295", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6296", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6297", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6298", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6299", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [] + }, + "relationshipDefs": { + "$id": "6300", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + }, + "businessMetadataDefs": { + "$id": "6301", + "kind": "array", + "type": { + "$ref": "1307" + }, + "value": [ + { + "$id": "6302", + "kind": "model", + "type": { + "$ref": "967" + }, + "value": { + "name": { + "$id": "6303", + "kind": "string", + "type": { + "$ref": "1024" + }, + "value": "myBizMetadata1" + }, + "description": { + "$id": "6304", + "kind": "string", + "type": { + "$ref": "1020" + }, + "value": "" + }, + "attributeDefs": { + "$id": "6305", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6306", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6307", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "bizAttr1" + }, + "typeName": { + "$id": "6308", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6309", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6310", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isUnique": { + "$id": "6311", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6312", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": true + }, + "options": { + "$id": "6313", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "maxStrLength": { + "$id": "6314", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "50" + }, + "applicableEntityTypes": { + "$id": "6315", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "[\"Path\"]" + } + } + } + } + } + ] + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6316", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6317", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6318", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6319", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6320", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [] + }, + "relationshipDefs": { + "$id": "6321", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + }, + "businessMetadataDefs": { + "$id": "6322", + "kind": "array", + "type": { + "$ref": "1307" + }, + "value": [ + { + "$id": "6323", + "kind": "model", + "type": { + "$ref": "967" + }, + "value": { + "category": { + "$id": "6324", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "BUSINESS_METADATA" + }, + "guid": { + "$id": "6325", + "kind": "string", + "type": { + "$ref": "1022" + }, + "value": "f26dc6d1-be9c-a0ce-a274-b6388ff6e2eb" + }, + "createdBy": { + "$id": "6326", + "kind": "string", + "type": { + "$ref": "972" + }, + "value": "ServiceAdmin" + }, + "updatedBy": { + "$id": "6327", + "kind": "string", + "type": { + "$ref": "1033" + }, + "value": "ServiceAdmin" + }, + "createTime": { + "$id": "6328", + "kind": "number", + "type": { + "$ref": "970" + }, + "value": 1646994112241 + }, + "updateTime": { + "$id": "6329", + "kind": "number", + "type": { + "$ref": "1031" + }, + "value": 1646994112241 + }, + "version": { + "$id": "6330", + "kind": "number", + "type": { + "$ref": "1035" + }, + "value": 1 + }, + "name": { + "$id": "6331", + "kind": "string", + "type": { + "$ref": "1024" + }, + "value": "myBizMetadata1" + }, + "description": { + "$id": "6332", + "kind": "string", + "type": { + "$ref": "1020" + }, + "value": "This is my businessMetadata1" + }, + "typeVersion": { + "$id": "6333", + "kind": "string", + "type": { + "$ref": "1029" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "6334", + "kind": "string", + "type": { + "$ref": "1037" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "6335", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6336", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6337", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "bizAttr1" + }, + "typeName": { + "$id": "6338", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6339", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6340", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6341", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6342", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6343", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6344", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": true + }, + "includeInNotification": { + "$id": "6345", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6346", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "applicableEntityTypes": { + "$id": "6347", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "[\"Path\"]" + }, + "maxStrLength": { + "$id": "6348", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "50" + } + } + } + } + } + ] + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6349", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "1305" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6350", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "305" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6351", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "307" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1305" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate" + }, + { + "$id": "6352", + "kind": "basic", + "name": "batchUpdate", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Update all types in bulk, changes detected in the type definitions would be\npersisted.", + "operation": { + "$id": "6353", + "name": "batchUpdate", + "resourceName": "TypeDefinition", + "doc": "Update all types in bulk, changes detected in the type definitions would be\npersisted.", + "accessibility": "public", + "parameters": [ + { + "$id": "6354", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "309" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.contentType" + }, + { + "$id": "6355", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "311" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.accept" + }, + { + "$id": "6356", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "1305" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.body" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedefs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate", + "decorators": [], + "examples": [ + { + "$id": "6357", + "kind": "http", + "name": "Type_BulkUpdate", + "description": "Type_BulkUpdate", + "filePath": "2023-09-01/Type_BulkUpdate.json", + "parameters": [ + { + "parameter": { + "$ref": "6356" + }, + "value": { + "$id": "6358", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6359", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6360", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6361", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6362", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [ + { + "$id": "6363", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "name": { + "$id": "6364", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_server" + }, + "superTypes": { + "$id": "6365", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6366", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "typeVersion": { + "$id": "6367", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6368", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6369", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6370", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "databases" + }, + "typeName": { + "$id": "6371", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "cardinality": { + "$id": "6372", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isIndexable": { + "$id": "6373", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6374", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "isUnique": { + "$id": "6375", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + } + ] + } + } + }, + { + "$id": "6376", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "name": { + "$id": "6377", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_db" + }, + "superTypes": { + "$id": "6378", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6379", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "typeVersion": { + "$id": "6380", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6381", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6382", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6383", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "server" + }, + "typeName": { + "$id": "6384", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "azure_sql_server" + }, + "cardinality": { + "$id": "6385", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "constraints": { + "$id": "6386", + "kind": "array", + "type": { + "$ref": "1043" + }, + "value": [ + { + "$id": "6387", + "kind": "model", + "type": { + "$ref": "1044" + }, + "value": { + "type": { + "$id": "6388", + "kind": "string", + "type": { + "$ref": "1047" + }, + "value": "inverseRef" + }, + "params": { + "$id": "6389", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "attribute": { + "$id": "6390", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "databases" + } + } + } + } + } + ] + }, + "isIndexable": { + "$id": "6391", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6392", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": false + }, + "isUnique": { + "$id": "6393", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + }, + { + "$id": "6394", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6395", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "schemas" + }, + "typeName": { + "$id": "6396", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "cardinality": { + "$id": "6397", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isIndexable": { + "$id": "6398", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6399", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "isUnique": { + "$id": "6400", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + }, + { + "$id": "6401", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6402", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "collation" + }, + "typeName": { + "$id": "6403", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "cardinality": { + "$id": "6404", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isIndexable": { + "$id": "6405", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6406", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "isUnique": { + "$id": "6407", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + }, + { + "$id": "6408", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6409", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "compatibilityLevel" + }, + "typeName": { + "$id": "6410", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "int" + }, + "cardinality": { + "$id": "6411", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isIndexable": { + "$id": "6412", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6413", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "isUnique": { + "$id": "6414", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + } + ] + } + } + } + ] + }, + "relationshipDefs": { + "$id": "6415", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [ + { + "$id": "6416", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "name": { + "$id": "6417", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "azure_sql_server_databases" + }, + "typeVersion": { + "$id": "6418", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.0" + }, + "relationshipCategory": { + "$id": "6419", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "COMPOSITION" + }, + "endDef1": { + "$id": "6420", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6421", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_server" + }, + "name": { + "$id": "6422", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "databases" + }, + "isContainer": { + "$id": "6423", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": true + }, + "cardinality": { + "$id": "6424", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "6425", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "6426", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6427", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_db" + }, + "name": { + "$id": "6428", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "server" + }, + "isContainer": { + "$id": "6429", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "6430", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isLegacyAttribute": { + "$id": "6431", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + } + } + }, + { + "$id": "6432", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "name": { + "$id": "6433", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "azure_sql_db_schemas" + }, + "typeVersion": { + "$id": "6434", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.0" + }, + "relationshipCategory": { + "$id": "6435", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "COMPOSITION" + }, + "endDef1": { + "$id": "6436", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6437", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_db" + }, + "name": { + "$id": "6438", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "schemas" + }, + "isContainer": { + "$id": "6439", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": true + }, + "cardinality": { + "$id": "6440", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "6441", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "6442", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6443", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_schema" + }, + "name": { + "$id": "6444", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "db" + }, + "isContainer": { + "$id": "6445", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "6446", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isLegacyAttribute": { + "$id": "6447", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1305" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6448", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6449", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6450", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6451", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6452", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [ + { + "$id": "6453", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "category": { + "$id": "6454", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENTITY" + }, + "guid": { + "$id": "6455", + "kind": "string", + "type": { + "$ref": "1109" + }, + "value": "a59fe369-2b1d-4bba-bb74-c273f3d74eb1" + }, + "createdBy": { + "$id": "6456", + "kind": "string", + "type": { + "$ref": "1104" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6457", + "kind": "string", + "type": { + "$ref": "1120" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6458", + "kind": "number", + "type": { + "$ref": "1102" + }, + "value": 1548841689501 + }, + "updateTime": { + "$id": "6459", + "kind": "number", + "type": { + "$ref": "1118" + }, + "value": 1553671448662 + }, + "version": { + "$id": "6460", + "kind": "number", + "type": { + "$ref": "1122" + }, + "value": 3 + }, + "name": { + "$id": "6461", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_server" + }, + "description": { + "$id": "6462", + "kind": "string", + "type": { + "$ref": "1107" + }, + "value": "azure_sql_server" + }, + "typeVersion": { + "$id": "6463", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6464", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6465", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6466", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "databases" + }, + "typeName": { + "$id": "6467", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "isOptional": { + "$id": "6468", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6469", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6470", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6471", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 2147483647 + }, + "isUnique": { + "$id": "6472", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6473", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6474", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + }, + "superTypes": { + "$id": "6475", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6476", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "subTypes": { + "$id": "6477", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + }, + { + "$id": "6478", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "category": { + "$id": "6479", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENTITY" + }, + "guid": { + "$id": "6480", + "kind": "string", + "type": { + "$ref": "1109" + }, + "value": "cc33ec5a-205a-4853-91dd-c0ebd0049ffb" + }, + "createdBy": { + "$id": "6481", + "kind": "string", + "type": { + "$ref": "1104" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6482", + "kind": "string", + "type": { + "$ref": "1120" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6483", + "kind": "number", + "type": { + "$ref": "1102" + }, + "value": 1548841689575 + }, + "updateTime": { + "$id": "6484", + "kind": "number", + "type": { + "$ref": "1118" + }, + "value": 1553671448783 + }, + "version": { + "$id": "6485", + "kind": "number", + "type": { + "$ref": "1122" + }, + "value": 3 + }, + "name": { + "$id": "6486", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_db" + }, + "description": { + "$id": "6487", + "kind": "string", + "type": { + "$ref": "1107" + }, + "value": "azure_sql_db" + }, + "typeVersion": { + "$id": "6488", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6489", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6490", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6491", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "server" + }, + "typeName": { + "$id": "6492", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "azure_sql_server" + }, + "isOptional": { + "$id": "6493", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": false + }, + "cardinality": { + "$id": "6494", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6495", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 1 + }, + "valuesMaxCount": { + "$id": "6496", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6497", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6498", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6499", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "constraints": { + "$id": "6500", + "kind": "array", + "type": { + "$ref": "1043" + }, + "value": [ + { + "$id": "6501", + "kind": "model", + "type": { + "$ref": "1044" + }, + "value": { + "type": { + "$id": "6502", + "kind": "string", + "type": { + "$ref": "1047" + }, + "value": "inverseRef" + }, + "params": { + "$id": "6503", + "kind": "dict", + "type": { + "$ref": "327" + }, + "value": { + "attribute": { + "$id": "6504", + "kind": "unknown", + "type": { + "$ref": "329" + }, + "value": "databases" + } + } + } + } + } + ] + } + } + }, + { + "$id": "6505", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6506", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "schemas" + }, + "typeName": { + "$id": "6507", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "isOptional": { + "$id": "6508", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6509", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6510", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6511", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 2147483647 + }, + "isUnique": { + "$id": "6512", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6513", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6514", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "6515", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6516", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "collation" + }, + "typeName": { + "$id": "6517", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6518", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6519", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6520", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6521", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6522", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6523", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6524", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + }, + { + "$id": "6525", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6526", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "compatibilityLevel" + }, + "typeName": { + "$id": "6527", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "int" + }, + "isOptional": { + "$id": "6528", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6529", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6530", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6531", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6532", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6533", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6534", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + } + } + } + ] + }, + "superTypes": { + "$id": "6535", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6536", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "subTypes": { + "$id": "6537", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [] + } + } + } + ] + }, + "relationshipDefs": { + "$id": "6538", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [ + { + "$id": "6539", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "category": { + "$id": "6540", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "RELATIONSHIP" + }, + "guid": { + "$id": "6541", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "1e0584a8-2587-4e1d-a772-db1e879469af" + }, + "createdBy": { + "$id": "6542", + "kind": "string", + "type": { + "$ref": "1200" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6543", + "kind": "string", + "type": { + "$ref": "1216" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6544", + "kind": "number", + "type": { + "$ref": "1198" + }, + "value": 1548841689879 + }, + "updateTime": { + "$id": "6545", + "kind": "number", + "type": { + "$ref": "1214" + }, + "value": 1553671449536 + }, + "version": { + "$id": "6546", + "kind": "number", + "type": { + "$ref": "1218" + }, + "value": 3 + }, + "name": { + "$id": "6547", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "azure_sql_server_databases" + }, + "description": { + "$id": "6548", + "kind": "string", + "type": { + "$ref": "1203" + }, + "value": "azure_sql_server_databases" + }, + "typeVersion": { + "$id": "6549", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6550", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "relationshipCategory": { + "$id": "6551", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "COMPOSITION" + }, + "endDef1": { + "$id": "6552", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6553", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_server" + }, + "name": { + "$id": "6554", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "databases" + }, + "isContainer": { + "$id": "6555", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": true + }, + "cardinality": { + "$id": "6556", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "6557", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "6558", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6559", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_db" + }, + "name": { + "$id": "6560", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "server" + }, + "isContainer": { + "$id": "6561", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "6562", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isLegacyAttribute": { + "$id": "6563", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "relationshipLabel": { + "$id": "6564", + "kind": "string", + "type": { + "$ref": "1238" + }, + "value": "r:azure_sql_server_databases" + } + } + }, + { + "$id": "6565", + "kind": "model", + "type": { + "$ref": "1195" + }, + "value": { + "category": { + "$id": "6566", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "RELATIONSHIP" + }, + "guid": { + "$id": "6567", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "77ee34f6-ea48-4fe3-86bf-7e2e722f4596" + }, + "createdBy": { + "$id": "6568", + "kind": "string", + "type": { + "$ref": "1200" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6569", + "kind": "string", + "type": { + "$ref": "1216" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6570", + "kind": "number", + "type": { + "$ref": "1198" + }, + "value": 1548841690094 + }, + "updateTime": { + "$id": "6571", + "kind": "number", + "type": { + "$ref": "1214" + }, + "value": 1553671449545 + }, + "version": { + "$id": "6572", + "kind": "number", + "type": { + "$ref": "1218" + }, + "value": 3 + }, + "name": { + "$id": "6573", + "kind": "string", + "type": { + "$ref": "1207" + }, + "value": "azure_sql_db_schemas" + }, + "description": { + "$id": "6574", + "kind": "string", + "type": { + "$ref": "1203" + }, + "value": "azure_sql_db_schemas" + }, + "typeVersion": { + "$id": "6575", + "kind": "string", + "type": { + "$ref": "1212" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6576", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [] + }, + "relationshipCategory": { + "$id": "6577", + "kind": "string", + "type": { + "$ref": "76" + }, + "value": "COMPOSITION" + }, + "endDef1": { + "$id": "6578", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6579", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_db" + }, + "name": { + "$id": "6580", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "schemas" + }, + "isContainer": { + "$id": "6581", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": true + }, + "cardinality": { + "$id": "6582", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isLegacyAttribute": { + "$id": "6583", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "endDef2": { + "$id": "6584", + "kind": "model", + "type": { + "$ref": "1223" + }, + "value": { + "type": { + "$id": "6585", + "kind": "string", + "type": { + "$ref": "1234" + }, + "value": "azure_sql_schema" + }, + "name": { + "$id": "6586", + "kind": "string", + "type": { + "$ref": "1232" + }, + "value": "db" + }, + "isContainer": { + "$id": "6587", + "kind": "boolean", + "type": { + "$ref": "1228" + }, + "value": false + }, + "cardinality": { + "$id": "6588", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "isLegacyAttribute": { + "$id": "6589", + "kind": "boolean", + "type": { + "$ref": "1230" + }, + "value": true + } + } + }, + "relationshipLabel": { + "$id": "6590", + "kind": "string", + "type": { + "$ref": "1238" + }, + "value": "r:azure_sql_db_schemas" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6591", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "1305" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6592", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "309" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6593", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "311" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1305" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate" + }, + { + "$id": "6594", + "kind": "basic", + "name": "batchDelete", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Delete API for all types in bulk.", + "operation": { + "$id": "6595", + "name": "batchDelete", + "resourceName": "TypeDefinition", + "doc": "Delete API for all types in bulk.", + "accessibility": "public", + "parameters": [ + { + "$id": "6596", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "313" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.contentType" + }, + { + "$id": "6597", + "kind": "body", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "1305" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.body" + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedefs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete", + "decorators": [], + "examples": [ + { + "$id": "6598", + "kind": "http", + "name": "Type_BulkDelete", + "description": "Type_BulkDelete", + "filePath": "2023-09-01/Type_BulkDelete.json", + "parameters": [ + { + "parameter": { + "$ref": "6597" + }, + "value": { + "$id": "6599", + "kind": "model", + "type": { + "$ref": "1305" + }, + "value": { + "enumDefs": { + "$id": "6600", + "kind": "array", + "type": { + "$ref": "1313" + }, + "value": [] + }, + "structDefs": { + "$id": "6601", + "kind": "array", + "type": { + "$ref": "1317" + }, + "value": [] + }, + "classificationDefs": { + "$id": "6602", + "kind": "array", + "type": { + "$ref": "1309" + }, + "value": [] + }, + "entityDefs": { + "$id": "6603", + "kind": "array", + "type": { + "$ref": "1311" + }, + "value": [ + { + "$id": "6604", + "kind": "model", + "type": { + "$ref": "1099" + }, + "value": { + "name": { + "$id": "6605", + "kind": "string", + "type": { + "$ref": "1111" + }, + "value": "azure_sql_server_example" + }, + "superTypes": { + "$id": "6606", + "kind": "array", + "type": { + "$ref": "374" + }, + "value": [ + { + "$id": "6607", + "kind": "string", + "type": { + "$ref": "375" + }, + "value": "azure_resource" + } + ] + }, + "typeVersion": { + "$id": "6608", + "kind": "string", + "type": { + "$ref": "1116" + }, + "value": "1.0" + }, + "attributeDefs": { + "$id": "6609", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6610", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6611", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "databases" + }, + "typeName": { + "$id": "6612", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "cardinality": { + "$id": "6613", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "isIndexable": { + "$id": "6614", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "isOptional": { + "$id": "6615", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "isUnique": { + "$id": "6616", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + } + } + } + ] + } + } + } + ] + }, + "relationshipDefs": { + "$id": "6617", + "kind": "array", + "type": { + "$ref": "1315" + }, + "value": [] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + }, + "statusCode": 204 + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6618", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "Body parameter.", + "type": { + "$ref": "1305" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6619", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "313" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete" + }, + { + "$id": "6620", + "kind": "basic", + "name": "getHeaders", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "List all type definitions returned as a list of minimal information header.", + "operation": { + "$id": "6621", + "name": "getHeaders", + "resourceName": "TypeDefinition", + "doc": "List all type definitions returned as a list of minimal information header.", + "accessibility": "public", + "parameters": [ + { + "$id": "6622", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "6623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "6624", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.apiVersion", + "readOnly": false + }, + { + "$id": "6625", + "kind": "query", + "name": "includeTermTemplate", + "serializedName": "includeTermTemplate", + "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", + "type": { + "$id": "6626", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.includeTermTemplate", + "readOnly": false + }, + { + "$id": "6627", + "kind": "query", + "name": "type", + "serializedName": "type", + "doc": "Typedef name as search filter when get typedefs.", + "type": { + "$ref": "49" + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.type", + "readOnly": false + }, + { + "$id": "6628", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "315" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "6629", + "kind": "array", + "name": "ArrayAtlasTypeDefHeader", + "valueType": { + "$ref": "1347" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/atlas/v2/types/typedefs/headers", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders", + "decorators": [], + "examples": [ + { + "$id": "6630", + "kind": "http", + "name": "Type_ListHeaders", + "description": "Type_ListHeaders", + "filePath": "2023-09-01/Type_ListHeaders.json", + "parameters": [ + { + "parameter": { + "$ref": "6625" + }, + "value": { + "$id": "6631", + "kind": "boolean", + "type": { + "$ref": "6626" + }, + "value": true + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6629" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6632", + "kind": "array", + "type": { + "$ref": "6629" + }, + "value": [ + { + "$id": "6633", + "kind": "model", + "type": { + "$ref": "1347" + }, + "value": { + "guid": { + "$id": "6634", + "kind": "string", + "type": { + "$ref": "1350" + }, + "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" + }, + "name": { + "$id": "6635", + "kind": "string", + "type": { + "$ref": "1352" + }, + "value": "hive_principal_type" + }, + "category": { + "$id": "6636", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + } + } + }, + { + "$id": "6637", + "kind": "model", + "type": { + "$ref": "1347" + }, + "value": { + "guid": { + "$id": "6638", + "kind": "string", + "type": { + "$ref": "1350" + }, + "value": "e5030e81-da05-4571-84f1-265ce20fa6d9" + }, + "name": { + "$id": "6639", + "kind": "string", + "type": { + "$ref": "1352" + }, + "value": "AtlasGlossaryTermRelationshipStatus" + }, + "category": { + "$id": "6640", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "ENUM" + } + } + }, + { + "$id": "6641", + "kind": "model", + "type": { + "$ref": "1347" + }, + "value": { + "guid": { + "$id": "6642", + "kind": "string", + "type": { + "$ref": "1350" + }, + "value": "d776af9c-985c-4168-abb2-477523dbfc70" + }, + "name": { + "$id": "6643", + "kind": "string", + "type": { + "$ref": "1352" + }, + "value": "MS KPI" + }, + "category": { + "$id": "6644", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "TERM_TEMPLATE" + } + } + } + ] + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6645", + "kind": "method", + "name": "includeTermTemplate", + "serializedName": "includeTermTemplate", + "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", + "type": { + "$id": "6646", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.includeTermTemplate", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6647", + "kind": "method", + "name": "type", + "serializedName": "type", + "doc": "Typedef name as search filter when get typedefs.", + "type": { + "$ref": "49" + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.type", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6648", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "315" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "6629" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders" + }, + { + "$id": "6649", + "kind": "basic", + "name": "getTermTemplateById", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the term template definition for the given GUID.", + "operation": { + "$id": "6650", + "name": "getTermTemplateById", + "resourceName": "TypeDefinition", + "doc": "Get the term template definition for the given GUID.", + "accessibility": "public", + "parameters": [ + { + "$id": "6651", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "6652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "6653", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.apiVersion", + "readOnly": false + }, + { + "$id": "6654", + "kind": "path", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the term template.", + "type": { + "$id": "6655", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.guid" + }, + { + "$id": "6656", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "317" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1320" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/types/termtemplatedef/guid/{guid}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById", + "decorators": [], + "examples": [ + { + "$id": "6657", + "kind": "http", + "name": "Type_GetTermTemplateDefByGuid", + "description": "Type_GetTermTemplateDefByGuid", + "filePath": "2023-09-01/Type_GetTermTemplateDefByGuid.json", + "parameters": [ + { + "parameter": { + "$ref": "6654" + }, + "value": { + "$id": "6658", + "kind": "string", + "type": { + "$ref": "6655" + }, + "value": "d776af9c-985c-4168-abb2-477523dbfc70" + } + }, + { + "parameter": { + "$ref": "6651" + }, + "value": { + "$id": "6659", + "kind": "string", + "type": { + "$ref": "6652" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1320" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6660", + "kind": "model", + "type": { + "$ref": "1320" + }, + "value": { + "category": { + "$id": "6661", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "TERM_TEMPLATE" + }, + "guid": { + "$id": "6662", + "kind": "string", + "type": { + "$ref": "1330" + }, + "value": "d776af9c-985c-4168-abb2-477523dbfc70" + }, + "createdBy": { + "$id": "6663", + "kind": "string", + "type": { + "$ref": "1325" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6664", + "kind": "string", + "type": { + "$ref": "1341" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6665", + "kind": "number", + "type": { + "$ref": "1323" + }, + "value": 1606300465443 + }, + "updateTime": { + "$id": "6666", + "kind": "number", + "type": { + "$ref": "1339" + }, + "value": 1606300465443 + }, + "version": { + "$id": "6667", + "kind": "number", + "type": { + "$ref": "1343" + }, + "value": 1 + }, + "name": { + "$id": "6668", + "kind": "string", + "type": { + "$ref": "1332" + }, + "value": "MS KPI" + }, + "description": { + "$id": "6669", + "kind": "string", + "type": { + "$ref": "1328" + }, + "value": "This is the description" + }, + "typeVersion": { + "$id": "6670", + "kind": "string", + "type": { + "$ref": "1337" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "6671", + "kind": "string", + "type": { + "$ref": "1345" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "6672", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6673", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6674", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "date" + }, + "typeName": { + "$id": "6675", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "date" + }, + "isOptional": { + "$id": "6676", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6677", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6678", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6679", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6680", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6681", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6682", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6683", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6684", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6685", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6686", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "single choice" + }, + "typeName": { + "$id": "6687", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "TERM_TEMPLATE_ENUM_EXAMPLE_1" + }, + "isOptional": { + "$id": "6688", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6689", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6690", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6691", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6692", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6693", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6694", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6695", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6696", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6697", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6698", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "multi choice" + }, + "typeName": { + "$id": "6699", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "isOptional": { + "$id": "6700", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6701", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6702", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6703", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 2147483647 + }, + "isUnique": { + "$id": "6704", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6705", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6706", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6707", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6708", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6709", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6710", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "plain string" + }, + "typeName": { + "$id": "6711", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6712", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6713", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6714", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6715", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6716", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6717", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6718", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "defaultValue": { + "$id": "6719", + "kind": "string", + "type": { + "$ref": "1049" + }, + "value": "this is a default value" + }, + "options": { + "$id": "6720", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6721", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6722", + "kind": "method", + "name": "guid", + "serializedName": "guid", + "doc": "The globally unique identifier of the term template.", + "type": { + "$id": "6723", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.guid", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6724", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "317" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1320" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById" + }, + { + "$id": "6725", + "kind": "basic", + "name": "getTermTemplateByName", + "accessibility": "public", + "apiVersions": [ + "2023-09-01" + ], + "doc": "Get the term template definition by its name (unique).", + "operation": { + "$id": "6726", + "name": "getTermTemplateByName", + "resourceName": "TypeDefinition", + "doc": "Get the term template definition by its name (unique).", + "accessibility": "public", + "parameters": [ + { + "$id": "6727", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "6728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "6729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.apiVersion", + "readOnly": false + }, + { + "$id": "6730", + "kind": "path", + "name": "name", + "serializedName": "name", + "doc": "The unique name of the term template.", + "type": { + "$id": "6731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.name" + }, + { + "$id": "6732", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "319" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1320" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}/datamap/api", + "path": "/types/termtemplatedef/name/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName", + "decorators": [], + "examples": [ + { + "$id": "6733", + "kind": "http", + "name": "Type_GetTermTemplateDefByName", + "description": "Type_GetTermTemplateDefByName", + "filePath": "2023-09-01/Type_GetTermTemplateDefByName.json", + "parameters": [ + { + "parameter": { + "$ref": "6730" + }, + "value": { + "$id": "6734", + "kind": "string", + "type": { + "$ref": "6731" + }, + "value": "MS KPI" + } + }, + { + "parameter": { + "$ref": "6727" + }, + "value": { + "$id": "6735", + "kind": "string", + "type": { + "$ref": "6728" + }, + "value": "2023-09-01" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1320" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "6736", + "kind": "model", + "type": { + "$ref": "1320" + }, + "value": { + "category": { + "$id": "6737", + "kind": "string", + "type": { + "$ref": "49" + }, + "value": "TERM_TEMPLATE" + }, + "guid": { + "$id": "6738", + "kind": "string", + "type": { + "$ref": "1330" + }, + "value": "d776af9c-985c-4168-abb2-477523dbfc70" + }, + "createdBy": { + "$id": "6739", + "kind": "string", + "type": { + "$ref": "1325" + }, + "value": "ExampleCreator" + }, + "updatedBy": { + "$id": "6740", + "kind": "string", + "type": { + "$ref": "1341" + }, + "value": "ExampleUpdator" + }, + "createTime": { + "$id": "6741", + "kind": "number", + "type": { + "$ref": "1323" + }, + "value": 1606300465443 + }, + "updateTime": { + "$id": "6742", + "kind": "number", + "type": { + "$ref": "1339" + }, + "value": 1606300465443 + }, + "version": { + "$id": "6743", + "kind": "number", + "type": { + "$ref": "1343" + }, + "value": 1 + }, + "name": { + "$id": "6744", + "kind": "string", + "type": { + "$ref": "1332" + }, + "value": "MS KPI" + }, + "description": { + "$id": "6745", + "kind": "string", + "type": { + "$ref": "1328" + }, + "value": "This is the description" + }, + "typeVersion": { + "$id": "6746", + "kind": "string", + "type": { + "$ref": "1337" + }, + "value": "1.0" + }, + "lastModifiedTS": { + "$id": "6747", + "kind": "string", + "type": { + "$ref": "1345" + }, + "value": "1" + }, + "attributeDefs": { + "$id": "6748", + "kind": "array", + "type": { + "$ref": "1039" + }, + "value": [ + { + "$id": "6749", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6750", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "date" + }, + "typeName": { + "$id": "6751", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "date" + }, + "isOptional": { + "$id": "6752", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6753", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6754", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6755", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6756", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6757", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6758", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6759", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6760", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6761", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6762", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "single choice" + }, + "typeName": { + "$id": "6763", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "TERM_TEMPLATE_ENUM_EXAMPLE_1" + }, + "isOptional": { + "$id": "6764", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6765", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6766", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6767", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6768", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6769", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6770", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6771", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6772", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6773", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6774", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "multi choice" + }, + "typeName": { + "$id": "6775", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "array" + }, + "isOptional": { + "$id": "6776", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6777", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SET" + }, + "valuesMinCount": { + "$id": "6778", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6779", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 2147483647 + }, + "isUnique": { + "$id": "6780", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6781", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6782", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "options": { + "$id": "6783", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6784", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + }, + { + "$id": "6785", + "kind": "model", + "type": { + "$ref": "1040" + }, + "value": { + "name": { + "$id": "6786", + "kind": "string", + "type": { + "$ref": "1061" + }, + "value": "plain string" + }, + "typeName": { + "$id": "6787", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "string" + }, + "isOptional": { + "$id": "6788", + "kind": "boolean", + "type": { + "$ref": "1057" + }, + "value": true + }, + "cardinality": { + "$id": "6789", + "kind": "string", + "type": { + "$ref": "71" + }, + "value": "SINGLE" + }, + "valuesMinCount": { + "$id": "6790", + "kind": "number", + "type": { + "$ref": "1068" + }, + "value": 0 + }, + "valuesMaxCount": { + "$id": "6791", + "kind": "number", + "type": { + "$ref": "1066" + }, + "value": 1 + }, + "isUnique": { + "$id": "6792", + "kind": "boolean", + "type": { + "$ref": "1059" + }, + "value": false + }, + "isIndexable": { + "$id": "6793", + "kind": "boolean", + "type": { + "$ref": "1055" + }, + "value": false + }, + "includeInNotification": { + "$id": "6794", + "kind": "boolean", + "type": { + "$ref": "1053" + }, + "value": false + }, + "defaultValue": { + "$id": "6795", + "kind": "string", + "type": { + "$ref": "1049" + }, + "value": "this is a default value" + }, + "options": { + "$id": "6796", + "kind": "dict", + "type": { + "$ref": "362" + }, + "value": { + "isDisabled": { + "$id": "6797", + "kind": "string", + "type": { + "$ref": "364" + }, + "value": "false" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "6798", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "The unique name of the term template.", + "type": { + "$id": "6799", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.name", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "6800", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "319" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "1320" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName" + } + ], + "parameters": [ + { + "$id": "6801", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "type": { + "$id": "6802", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "serverUrlTemplate": "{endpoint}/datamap/api", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "PurviewDataMap.endpoint" + }, + { + "$id": "6803", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "doc": "The API version to use for this operation.", + "type": { + "$id": "6804", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "6805", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2023-09-01" + }, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Customizations.TypeDefinition", + "apiVersions": [ + "2023-09-01" + ], + "parent": { + "$ref": "1353" + } + } + ] + } + ], + "auth": { + "oAuth2": { + "flows": [ + { + "scopes": [ + "https://purview.azure.net/.default" + ], + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize" + } + ] + } + } +} From 9ab6e73a7df2d9c6cb4436ae1365a116fd2ce587 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Mon, 24 Nov 2025 23:17:19 -0800 Subject: [PATCH 03/14] Fix build errors in custom code --- .../BusinessMetadataOptions.Serialization.cs | 4 +-- .../src/Custom/Entity.cs | 27 ++++--------------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/BusinessMetadataOptions.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/BusinessMetadataOptions.Serialization.cs index 733765d15223..60d26c790aa3 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/BusinessMetadataOptions.Serialization.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/BusinessMetadataOptions.Serialization.cs @@ -15,8 +15,8 @@ public partial class BusinessMetadataOptions internal virtual RequestContent ToRequestContent() { - MultipartFormDataContent content = new MultipartFormDataContent(); - content.Add(MultipartContent.Create(File), "file", "file.csv", null); + MultiPartFormDataBinaryContent content = new MultiPartFormDataBinaryContent(); + content.Add(File, "file", "file.csv", "text/csv"); return content; } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/Entity.cs index ca0a8c6c43c4..a31833c87dc0 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/Entity.cs @@ -4,6 +4,7 @@ #nullable disable using System; +using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; using System.Threading; @@ -19,24 +20,6 @@ public partial class Entity // CUSTOM CODE NOTE: // This file is the central hub of .NET client customization for Purview DataMap. - internal HttpMessage CreateImportBusinessMetadataRequest(RequestContent content, RequestContext context) - { - var message = _pipeline.CreateMessage(context, ResponseClassifier200); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRaw("/datamap/api", false); - uri.AppendPath("/atlas/v2/entity/businessmetadata/import", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "multipart/form-data"); - request.Content = content; - (content as MultipartFormDataContent).ApplyToRequest(request); - return message; - } - /// Upload the file for creating Business Metadata in BULK. /// InputStream of file. /// The cancellation token to use. @@ -45,10 +28,10 @@ public virtual Response ImportBusinessMetadata(BinaryData file { Argument.AssertNotNull(file, nameof(file)); - RequestContext context = FromCancellationToken(cancellationToken); - BusinessMetadataOptions businessMetadataOptions = new BusinessMetadataOptions(file.ToStream()); - using MultipartFormDataRequestContent content = businessMetadataOptions.ToMultipartRequestContent(); + RequestContext context = new RequestContext { CancellationToken = cancellationToken }; + BusinessMetadataOptions businessMetadataOptions = new BusinessMetadataOptions(file); + using MultiPartFormDataBinaryContent content = (MultiPartFormDataBinaryContent)businessMetadataOptions.ToRequestContent(); Response response = ImportBusinessMetadata(content, content.ContentType, context); - return Response.FromValue(BulkImportResult.FromResponse(response), response); + return Response.FromValue(BulkImportResult.DeserializeBulkImportResult(JsonDocument.Parse(response.Content).RootElement, new ModelReaderWriterOptions("W")), response); } } From 0f6e95e2bc6dd38470b92eb9635f4891bdb56d3c Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 14:11:39 -0800 Subject: [PATCH 04/14] Remove MultipartContent and MultipartFormDataContent from project references --- .../src/Azure.Analytics.Purview.DataMap.csproj | 2 -- 1 file changed, 2 deletions(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj index a2a0506651fc..99f95862c69d 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj @@ -12,8 +12,6 @@ - - From 7e71833355b8fe7a8c79bc4fb12551ef0207c887 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 14:14:44 -0800 Subject: [PATCH 05/14] Export API --- .../Azure.Analytics.Purview.DataMap.net8.0.cs | 593 ++++++++++++++---- ...nalytics.Purview.DataMap.netstandard2.0.cs | 593 ++++++++++++++---- 2 files changed, 912 insertions(+), 274 deletions(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs index 1de3cb812b13..6eff3ce0e551 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs @@ -1,31 +1,5 @@ namespace Azure.Analytics.Purview.DataMap { - public static partial class AnalyticsPurviewDataMapModelFactory - { - public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IReadOnlyDictionary categoryInfo = null, System.Collections.Generic.IReadOnlyDictionary termInfo = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IReadOnlyDictionary guidEntityMap = null, System.Collections.Generic.IReadOnlyDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IReadOnlyDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IReadOnlyDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IReadOnlyDictionary guidAssignments = null, System.Collections.Generic.IReadOnlyDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } - } public partial class AtlasAttributeDef : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AtlasAttributeDef() { } @@ -42,7 +16,10 @@ public AtlasAttributeDef() { } public string TypeName { get { throw null; } set { } } public int? ValuesMaxCount { get { throw null; } set { } } public int? ValuesMinCount { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasAttributeDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasAttributeDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasAttributeDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasAttributeDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -67,7 +44,11 @@ public AtlasBusinessMetadataDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -84,7 +65,11 @@ public AtlasClassification() { } public bool? RemovePropagationsOnEntityDelete { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IList ValidityPeriods { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassification JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasClassification (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassification PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasClassification System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasClassification System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -112,7 +97,11 @@ public AtlasClassificationDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassificationDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasClassificationDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassificationDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasClassificationDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasClassificationDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -122,13 +111,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasClassifications : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasClassifications() { } - public System.Collections.Generic.IReadOnlyList List { get { throw null; } } + public System.Collections.Generic.IList List { get { throw null; } } public int? PageSize { get { throw null; } } public string SortBy { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasSortType? SortType { get { throw null; } } public int? StartIndex { get { throw null; } } public int? TotalCount { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassifications JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasClassifications (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassifications PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasClassifications System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasClassifications System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -140,7 +133,10 @@ public partial class AtlasConstraintDef : System.ClientModel.Primitives.IJsonMod public AtlasConstraintDef() { } public System.Collections.Generic.IDictionary Params { get { throw null; } } public string Type { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasConstraintDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasConstraintDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasConstraintDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasConstraintDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -159,7 +155,10 @@ public AtlasDateFormat() { } public Azure.Analytics.Purview.DataMap.AtlasNumberFormat NumberFormat { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasDateFormat TimeInstance { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasTimeZone TimeZone { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasDateFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasDateFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasDateFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasDateFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -171,7 +170,12 @@ public partial class AtlasEntitiesWithExtInfo : System.ClientModel.Primitives.IJ public AtlasEntitiesWithExtInfo() { } public System.Collections.Generic.IList Entities { get { throw null; } } public System.Collections.Generic.IDictionary ReferredEntities { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -203,7 +207,10 @@ public AtlasEntity() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntity JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntity PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -231,7 +238,11 @@ public AtlasEntityDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntityDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -253,7 +264,11 @@ public AtlasEntityHeader() { } public System.Collections.Generic.IList Meanings { get { throw null; } } public Azure.Analytics.Purview.DataMap.EntityStatus? Status { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntityHeader (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -264,7 +279,11 @@ public partial class AtlasEntityHeaders : System.ClientModel.Primitives.IJsonMod { public AtlasEntityHeaders() { } public System.Collections.Generic.IDictionary GuidHeaderMap { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeaders JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasEntityHeaders atlasEntityHeaders) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeaders PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityHeaders System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityHeaders System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -276,7 +295,12 @@ public partial class AtlasEntityWithExtInfo : System.ClientModel.Primitives.IJso public AtlasEntityWithExtInfo() { } public Azure.Analytics.Purview.DataMap.AtlasEntity Entity { get { throw null; } set { } } public System.Collections.Generic.IDictionary ReferredEntities { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo atlasEntityWithExtInfo) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -302,7 +326,11 @@ public AtlasEnumDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEnumDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEnumDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEnumDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -315,7 +343,10 @@ public AtlasEnumElementDef() { } public string Description { get { throw null; } set { } } public int? Ordinal { get { throw null; } set { } } public string Value { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumElementDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumElementDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEnumElementDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEnumElementDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -340,7 +371,12 @@ public AtlasGlossary() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public string Usage { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossary JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossary (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasGlossary atlasGlossary) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossary PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -365,7 +401,12 @@ public AtlasGlossaryCategory() { } public System.Collections.Generic.IList Terms { get { throw null; } } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory atlasGlossaryCategory) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -375,9 +416,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasGlossaryExtInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasGlossaryExtInfo() { } - public System.Collections.Generic.IReadOnlyList Categories { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary CategoryInfo { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classifications { get { throw null; } } + public System.Collections.Generic.IList Categories { get { throw null; } } + public System.Collections.Generic.IDictionary CategoryInfo { get { throw null; } } + public System.Collections.Generic.IList Classifications { get { throw null; } } public string CreatedBy { get { throw null; } } public long? CreateTime { get { throw null; } } public string Guid { get { throw null; } } @@ -387,12 +428,16 @@ internal AtlasGlossaryExtInfo() { } public string Name { get { throw null; } } public string QualifiedName { get { throw null; } } public string ShortDescription { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary TermInfo { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Terms { get { throw null; } } + public System.Collections.Generic.IDictionary TermInfo { get { throw null; } } + public System.Collections.Generic.IList Terms { get { throw null; } } public string UpdatedBy { get { throw null; } } public long? UpdateTime { get { throw null; } } public string Usage { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -405,7 +450,10 @@ public AtlasGlossaryHeader() { } public string DisplayText { get { throw null; } set { } } public string GlossaryGuid { get { throw null; } set { } } public string RelationGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -452,7 +500,12 @@ public AtlasGlossaryTerm() { } public string Usage { get { throw null; } set { } } public System.Collections.Generic.IList ValidValues { get { throw null; } } public System.Collections.Generic.IList ValidValuesFor { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm atlasGlossaryTerm) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -464,14 +517,18 @@ public partial class AtlasLineageInfo : System.ClientModel.Primitives.IJsonModel internal AtlasLineageInfo() { } public string BaseEntityGuid { get { throw null; } } public int? ChildrenCount { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary GuidEntityMap { get { throw null; } } + public System.Collections.Generic.IDictionary GuidEntityMap { get { throw null; } } public int? LineageDepth { get { throw null; } } public Azure.Analytics.Purview.DataMap.LineageDirection? LineageDirection { get { throw null; } } public int? LineageWidth { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ParentRelations { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Relations { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary> WidthCounts { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IList ParentRelations { get { throw null; } } + public System.Collections.Generic.IList Relations { get { throw null; } } + public System.Collections.Generic.IDictionary> WidthCounts { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasLineageInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasLineageInfo (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasLineageInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasLineageInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasLineageInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -495,7 +552,10 @@ public AtlasNumberFormat() { } public bool? ParseIntegerOnly { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasNumberFormat PercentInstance { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.RoundingMode? RoundingMode { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasNumberFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasNumberFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasNumberFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasNumberFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -508,7 +568,10 @@ public AtlasObjectId() { } public string Guid { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IDictionary UniqueAttributes { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasObjectId JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasObjectId PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasObjectId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasObjectId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -523,7 +586,10 @@ public AtlasRelatedCategoryHeader() { } public string DisplayText { get { throw null; } set { } } public string ParentCategoryGuid { get { throw null; } set { } } public string RelationGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -542,7 +608,10 @@ public AtlasRelatedObjectId() { } public string RelationshipType { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IDictionary UniqueAttributes { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -559,7 +628,10 @@ public AtlasRelatedTermHeader() { } public Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? Status { get { throw null; } set { } } public string Steward { get { throw null; } set { } } public string TermGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -584,7 +656,12 @@ public AtlasRelationship() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationship JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasRelationship (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasRelationship atlasRelationship) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationship PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationship System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationship System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -609,7 +686,10 @@ public AtlasRelationshipAttributeDef() { } public string TypeName { get { throw null; } set { } } public int? ValuesMaxCount { get { throw null; } set { } } public int? ValuesMinCount { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -638,7 +718,11 @@ public AtlasRelationshipDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasRelationshipDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -654,7 +738,10 @@ public AtlasRelationshipEndDef() { } public bool? IsLegacyAttribute { get { throw null; } set { } } public string Name { get { throw null; } set { } } public string Type { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -664,9 +751,13 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasRelationshipWithExtInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasRelationshipWithExtInfo() { } - public System.Collections.Generic.IReadOnlyDictionary ReferredEntities { get { throw null; } } + public System.Collections.Generic.IDictionary ReferredEntities { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasRelationship Relationship { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -689,6 +780,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.AtlasSortType left, Azure.Analytics.Purview.DataMap.AtlasSortType right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.AtlasSortType (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.AtlasSortType? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.AtlasSortType left, Azure.Analytics.Purview.DataMap.AtlasSortType right) { throw null; } public override string ToString() { throw null; } } @@ -698,7 +790,10 @@ public AtlasStruct() { } public System.Collections.Generic.IDictionary Attributes { get { throw null; } } public string LastModifiedTS { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStruct JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStruct PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasStruct System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasStruct System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -723,7 +818,11 @@ public AtlasStructDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStructDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasStructDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStructDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasStructDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasStructDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -742,7 +841,10 @@ public AtlasTermAssignmentHeader() { } public Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? Status { get { throw null; } set { } } public string Steward { get { throw null; } set { } } public System.Guid? TermGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -769,6 +871,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus left, Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus left, Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus right) { throw null; } public override string ToString() { throw null; } } @@ -780,7 +883,10 @@ public AtlasTermCategorizationHeader() { } public string DisplayText { get { throw null; } set { } } public System.Guid? RelationGuid { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? Status { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -805,6 +911,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus left, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus left, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus right) { throw null; } public override string ToString() { throw null; } } @@ -817,7 +924,10 @@ public AtlasTimeZone() { } public int? DstSavings { get { throw null; } set { } } public string Id { get { throw null; } set { } } public int? RawOffset { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTimeZone JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTimeZone PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTimeZone System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTimeZone System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -827,32 +937,36 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasTypeDef : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasTypeDef() { } - public System.Collections.Generic.IReadOnlyList AttributeDefs { get { throw null; } } + public System.Collections.Generic.IList AttributeDefs { get { throw null; } } public Azure.Analytics.Purview.DataMap.TypeCategory? Category { get { throw null; } } public string CreatedBy { get { throw null; } } public long? CreateTime { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasDateFormat DateFormatter { get { throw null; } } public string DefaultValue { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ElementDefs { get { throw null; } } + public System.Collections.Generic.IList ElementDefs { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef EndDef1 { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef EndDef2 { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EntityTypes { get { throw null; } } + public System.Collections.Generic.IList EntityTypes { get { throw null; } } public string Guid { get { throw null; } } public string LastModifiedTS { get { throw null; } } public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Options { get { throw null; } } - public System.Collections.Generic.IReadOnlyList RelationshipAttributeDefs { get { throw null; } } + public System.Collections.Generic.IDictionary Options { get { throw null; } } + public System.Collections.Generic.IList RelationshipAttributeDefs { get { throw null; } } public Azure.Analytics.Purview.DataMap.RelationshipCategory? RelationshipCategory { get { throw null; } } public string RelationshipLabel { get { throw null; } } public string ServiceType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SubTypes { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SuperTypes { get { throw null; } } + public System.Collections.Generic.IList SubTypes { get { throw null; } } + public System.Collections.Generic.IList SuperTypes { get { throw null; } } public string TypeVersion { get { throw null; } } public string UpdatedBy { get { throw null; } } public long? UpdateTime { get { throw null; } } public long? Version { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasTypeDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTypeDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTypeDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -865,7 +979,10 @@ internal AtlasTypeDefHeader() { } public Azure.Analytics.Purview.DataMap.TypeCategory? Category { get { throw null; } } public string Guid { get { throw null; } } public string Name { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -882,7 +999,12 @@ public AtlasTypesDef() { } public System.Collections.Generic.IList RelationshipDefs { get { throw null; } } public System.Collections.Generic.IList StructDefs { get { throw null; } } public System.Collections.Generic.IList TermTemplateDefs { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypesDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasTypesDef (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasTypesDef atlasTypesDef) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypesDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTypesDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTypesDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -895,7 +1017,11 @@ public AutoCompleteConfig() { } public System.BinaryData Filter { get { throw null; } set { } } public string Keywords { get { throw null; } set { } } public int? Limit { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AutoCompleteConfig autoCompleteConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AutoCompleteConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AutoCompleteConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -905,8 +1031,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AutoCompleteResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AutoCompleteResult() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AutoCompleteResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AutoCompleteResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AutoCompleteResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -918,7 +1048,10 @@ public partial class AutoCompleteResultValue : System.ClientModel.Primitives.IJs internal AutoCompleteResultValue() { } public string QueryPlusText { get { throw null; } } public string Text { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AutoCompleteResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AutoCompleteResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -934,9 +1067,13 @@ internal AzureAnalyticsPurviewDataMapContext() { } public partial class BulkImportResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal BulkImportResult() { } - public System.Collections.Generic.IReadOnlyList FailedImportInfoList { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SuccessImportInfoList { get { throw null; } } + public System.Collections.Generic.IList FailedImportInfoList { get { throw null; } } + public System.Collections.Generic.IList SuccessImportInfoList { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.BulkImportResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.BulkImportResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.BulkImportResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.BulkImportResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.BulkImportResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -959,14 +1096,19 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior left, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior left, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior right) { throw null; } public override string ToString() { throw null; } } public partial class BusinessMetadataOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public BusinessMetadataOptions(System.IO.Stream file) { } - public System.IO.Stream File { get { throw null; } } + public BusinessMetadataOptions(System.BinaryData file) { } + public System.BinaryData File { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.BusinessMetadataOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.BusinessMetadataOptions businessMetadataOptions) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.BusinessMetadataOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.BusinessMetadataOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.BusinessMetadataOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -989,6 +1131,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.CardinalityValue left, Azure.Analytics.Purview.DataMap.CardinalityValue right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.CardinalityValue (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.CardinalityValue? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.CardinalityValue left, Azure.Analytics.Purview.DataMap.CardinalityValue right) { throw null; } public override string ToString() { throw null; } } @@ -997,7 +1140,11 @@ public partial class ClassificationAssociateConfig : System.ClientModel.Primitiv public ClassificationAssociateConfig() { } public Azure.Analytics.Purview.DataMap.AtlasClassification Classification { get { throw null; } set { } } public System.Collections.Generic.IList EntityGuids { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig classificationAssociateConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1009,7 +1156,10 @@ public partial class ContactInfo : System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ContactInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1022,7 +1172,10 @@ internal ContactSearchResultValue() { } public string ContactType { get { throw null; } } public string Id { get { throw null; } } public string Info { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ContactSearchResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.ContactSearchResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ContactSearchResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ContactSearchResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1035,12 +1188,12 @@ protected DataMapClient() { } public DataMapClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public DataMapClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.DataMap.DataMapClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Analytics.Purview.DataMap.Discovery GetDiscoveryClient(string apiVersion = "2023-09-01") { throw null; } - public virtual Azure.Analytics.Purview.DataMap.Entity GetEntityClient(string apiVersion = "2023-09-01") { throw null; } - public virtual Azure.Analytics.Purview.DataMap.Glossary GetGlossaryClient(string apiVersion = "2023-09-01") { throw null; } - public virtual Azure.Analytics.Purview.DataMap.Lineage GetLineageClient(string apiVersion = "2023-09-01") { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Discovery GetDiscoveryClient() { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Entity GetEntityClient() { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Glossary GetGlossaryClient() { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Lineage GetLineageClient() { throw null; } public virtual Azure.Analytics.Purview.DataMap.Relationship GetRelationshipClient() { throw null; } - public virtual Azure.Analytics.Purview.DataMap.TypeDefinition GetTypeDefinitionClient(string apiVersion = "2023-09-01") { throw null; } + public virtual Azure.Analytics.Purview.DataMap.TypeDefinition GetTypeDefinitionClient() { throw null; } } public partial class DataMapClientOptions : Azure.Core.ClientOptions { @@ -1095,10 +1248,10 @@ protected Entity() { } public virtual Azure.Response AddOrUpdateBusinessMetadata(string guid, System.Collections.Generic.IDictionary> body, bool? overwrite = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, bool? overwrite = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAsync(string guid, System.Collections.Generic.IDictionary> body, bool? overwrite = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response BatchCreateOrUpdate(Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo body, string collectionId = null, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response BatchCreateOrUpdate(Azure.Core.RequestContent content, string collectionId = null, string businessAttributeUpdateBehavior = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> BatchCreateOrUpdateAsync(Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo body, string collectionId = null, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1127,6 +1280,10 @@ protected Entity() { } public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attribute, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> DeleteByUniqueAttributeAsync(string typeName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Get(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetBusinessMetadataTemplate(Azure.RequestContext context) { throw null; } public virtual Azure.Response GetBusinessMetadataTemplate(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetBusinessMetadataTemplateAsync(Azure.RequestContext context) { throw null; } @@ -1147,18 +1304,12 @@ protected Entity() { } public virtual Azure.Response GetClassifications(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetClassificationsAsync(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetEntity(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetEntity(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetEntityAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetHeader(string guid, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetHeader(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetHeaderAsync(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ImportBusinessMetadata(Azure.Analytics.Purview.DataMap.BusinessMetadataOptions body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ImportBusinessMetadata(Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response ImportBusinessMetadata(System.BinaryData file, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ImportBusinessMetadataAsync(Azure.Analytics.Purview.DataMap.BusinessMetadataOptions body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ImportBusinessMetadataAsync(Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response MoveEntitiesToCollection(string collectionId, Azure.Analytics.Purview.DataMap.MoveEntitiesConfig body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response MoveEntitiesToCollection(string collectionId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -1168,14 +1319,18 @@ protected Entity() { } public virtual Azure.Response RemoveBusinessMetadata(string guid, System.Collections.Generic.IDictionary> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAsync(string guid, System.Collections.Generic.IDictionary> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveBusinessMetadataAttributes(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response RemoveBusinessMetadataAttributes(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveClassification(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveClassificationAsync(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response RemoveBusinessMetadataAttributes(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response RemoveBusinessMetadataAttributes(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveClassification(string guid, string classificationName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response RemoveClassification(string guid, string classificationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationAsync(string guid, string classificationName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationAsync(string guid, string classificationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute, Azure.RequestContext context) { throw null; } + public virtual Azure.Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveLabels(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response RemoveLabels(string guid, System.Collections.Generic.IEnumerable body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RemoveLabelsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -1212,10 +1367,14 @@ protected Entity() { } public partial class EntityMutationResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal EntityMutationResult() { } - public System.Collections.Generic.IReadOnlyDictionary GuidAssignments { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary> MutatedEntities { get { throw null; } } - public System.Collections.Generic.IReadOnlyList PartialUpdatedEntities { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IDictionary GuidAssignments { get { throw null; } } + public System.Collections.Generic.IDictionary> MutatedEntities { get { throw null; } } + public System.Collections.Generic.IList PartialUpdatedEntities { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.EntityMutationResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.EntityMutationResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.EntityMutationResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.EntityMutationResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.EntityMutationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1237,6 +1396,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.EntityStatus left, Azure.Analytics.Purview.DataMap.EntityStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.EntityStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.EntityStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.EntityStatus left, Azure.Analytics.Purview.DataMap.EntityStatus right) { throw null; } public override string ToString() { throw null; } } @@ -1272,16 +1432,26 @@ protected Glossary() { } public virtual Azure.Response> CreateTerms(System.Collections.Generic.IEnumerable body, bool? includeTermHierarchy = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CreateTermsAsync(Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task>> CreateTermsAsync(System.Collections.Generic.IEnumerable body, bool? includeTermHierarchy = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Delete(string glossaryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string glossaryId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteCategory(string categoryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteCategoryAsync(string categoryId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteTerm(string termId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Delete(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteCategory(string categoryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteCategory(string categoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteCategoryAsync(string categoryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteCategoryAsync(string categoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteTerm(string termId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteTerm(string termId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteTermAssignmentFromEntities(string termId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteTermAssignmentFromEntities(string termId, System.Collections.Generic.IEnumerable body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termId, System.Collections.Generic.IEnumerable body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTermAsync(string termId, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTermAsync(string termId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTermAsync(string termId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Get(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetCategories(string glossaryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } public virtual Azure.Response> GetCategories(string glossaryId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetCategoriesAsync(string glossaryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } @@ -1306,10 +1476,6 @@ protected Glossary() { } public virtual Azure.Response> GetEntitiesAssignedWithTerm(string termId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task>> GetEntitiesAssignedWithTermAsync(string termId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetGlossary(string glossaryId, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetGlossary(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryAsync(string glossaryId, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetGlossaryAsync(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetRelatedCategories(string categoryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } public virtual Azure.Response>> GetRelatedCategories(string categoryId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } @@ -1362,7 +1528,10 @@ internal ImportInfo() { } public Azure.Analytics.Purview.DataMap.ImportStatus? ImportStatus { get { throw null; } } public string ParentObjectName { get { throw null; } } public string Remarks { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ImportInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.ImportInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ImportInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ImportInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1384,6 +1553,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.ImportStatus left, Azure.Analytics.Purview.DataMap.ImportStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.ImportStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.ImportStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.ImportStatus left, Azure.Analytics.Purview.DataMap.ImportStatus right) { throw null; } public override string ToString() { throw null; } } @@ -1391,14 +1561,14 @@ public partial class Lineage { protected Lineage() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response Get(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } public virtual Azure.Response GetByUniqueAttribute(string typeName, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetByUniqueAttribute(string typeName, string direction, int? depth = default(int?), string attribute = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> GetByUniqueAttributeAsync(string typeName, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetByUniqueAttributeAsync(string typeName, string direction, int? depth = default(int?), string attribute = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetLineage(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetLineage(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> GetLineageAsync(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetLineageAsync(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } public virtual Azure.Response GetNextPage(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? offset = default(int?), int? limit = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetNextPage(string guid, string direction, int? offset = default(int?), int? limit = default(int?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> GetNextPageAsync(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? offset = default(int?), int? limit = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1420,6 +1590,7 @@ protected Lineage() { } public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.LineageDirection left, Azure.Analytics.Purview.DataMap.LineageDirection right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.LineageDirection (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.LineageDirection? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.LineageDirection left, Azure.Analytics.Purview.DataMap.LineageDirection right) { throw null; } public override string ToString() { throw null; } } @@ -1429,7 +1600,10 @@ internal LineageRelation() { } public string FromEntityId { get { throw null; } } public string RelationshipId { get { throw null; } } public string ToEntityId { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.LineageRelation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.LineageRelation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.LineageRelation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.LineageRelation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1440,7 +1614,11 @@ public partial class MoveEntitiesConfig : System.ClientModel.Primitives.IJsonMod { public MoveEntitiesConfig() { } public System.Collections.Generic.IList EntityGuids { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.MoveEntitiesConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.MoveEntitiesConfig moveEntitiesConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.MoveEntitiesConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.MoveEntitiesConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.MoveEntitiesConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1453,13 +1631,88 @@ internal ParentRelation() { } public string ChildEntityId { get { throw null; } } public string ParentEntityId { get { throw null; } } public string RelationshipId { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ParentRelation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.ParentRelation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ParentRelation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ParentRelation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public static partial class PurviewDataMapModelFactory + { + public static Azure.Analytics.Purview.DataMap.AtlasAttributeDef AtlasAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef AtlasBusinessMetadataDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassification AtlasClassification(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, string entityGuid = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), bool? removePropagationsOnEntityDelete = default(bool?), System.Collections.Generic.IEnumerable validityPeriods = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassificationDef AtlasClassificationDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasConstraintDef AtlasConstraintDef(System.Collections.Generic.IDictionary @params = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasDateFormat AtlasDateFormat(System.Collections.Generic.IEnumerable availableLocales = null, float? calendar = default(float?), Azure.Analytics.Purview.DataMap.AtlasDateFormat dateInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateTimeInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat instance = null, bool? lenient = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberFormat = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat timeInstance = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone timeZone = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, System.Collections.Generic.IEnumerable entities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityDef AtlasEntityDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeader AtlasEntityHeader(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IEnumerable classificationNames = null, System.Collections.Generic.IEnumerable classifications = null, string displayText = null, string guid = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meaningNames = null, System.Collections.Generic.IEnumerable meanings = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeaders AtlasEntityHeaders(System.Collections.Generic.IDictionary guidHeaderMap = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo AtlasEntityWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasEntity entity = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumDef AtlasEnumDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumElementDef AtlasEnumElementDef(string description = null, int? ordinal = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossary AtlasGlossary(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory AtlasGlossaryCategory(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable childrenCategories = null, Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader parentCategory = null, System.Collections.Generic.IEnumerable terms = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IDictionary categoryInfo = null, System.Collections.Generic.IDictionary termInfo = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = null, string glossaryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm AtlasGlossaryTerm(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, string abbreviation = null, System.Collections.Generic.IEnumerable templateName = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable antonyms = null, Azure.Analytics.Purview.DataMap.TermStatus? status = default(Azure.Analytics.Purview.DataMap.TermStatus?), string nickName = null, System.Collections.Generic.IEnumerable hierarchyInfo = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IDictionary> contacts = null, System.Collections.Generic.IDictionary> attributes = null, System.Collections.Generic.IEnumerable assignedEntities = null, System.Collections.Generic.IEnumerable categories = null, System.Collections.Generic.IEnumerable classifies = null, System.Collections.Generic.IEnumerable examples = null, System.Collections.Generic.IEnumerable isA = null, System.Collections.Generic.IEnumerable preferredTerms = null, System.Collections.Generic.IEnumerable preferredToTerms = null, System.Collections.Generic.IEnumerable replacedBy = null, System.Collections.Generic.IEnumerable replacementTerms = null, System.Collections.Generic.IEnumerable seeAlso = null, System.Collections.Generic.IEnumerable synonyms = null, System.Collections.Generic.IEnumerable translatedTerms = null, System.Collections.Generic.IEnumerable translationTerms = null, string usage = null, System.Collections.Generic.IEnumerable validValues = null, System.Collections.Generic.IEnumerable validValuesFor = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IDictionary guidEntityMap = null, System.Collections.Generic.IDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasNumberFormat AtlasNumberFormat(System.Collections.Generic.IEnumerable availableLocales = null, string currency = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat currencyInstance = null, bool? groupingUsed = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat instance = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat integerInstance = null, int? maximumFractionDigits = default(int?), int? maximumIntegerDigits = default(int?), int? minimumFractionDigits = default(int?), int? minimumIntegerDigits = default(int?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberInstance = null, bool? parseIntegerOnly = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat percentInstance = null, Azure.Analytics.Purview.DataMap.RoundingMode? roundingMode = default(Azure.Analytics.Purview.DataMap.RoundingMode?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasObjectId AtlasObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = null, string description = null, string displayText = null, string parentCategoryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId AtlasRelatedObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string displayText = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), string relationshipType = null, Azure.Analytics.Purview.DataMap.AtlasStruct relationshipAttributes = null, System.Guid? relationshipGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? relationshipStatus = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = null, string displayText = null, string expression = null, string relationGuid = null, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?), string steward = null, string termGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationship AtlasRelationship(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end1 = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end2 = null, string guid = null, string homeId = null, string label = null, int? provenanceType = default(int?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? status = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?), bool? isLegacyAttribute = default(bool?), string relationshipTypeName = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipDef AtlasRelationshipDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef AtlasRelationshipEndDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), string description = null, bool? isContainer = default(bool?), bool? isLegacyAttribute = default(bool?), string name = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStruct AtlasStruct(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStructDef AtlasStructDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default(int?), string createdBy = null, string description = null, string displayText = null, string expression = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus?), string steward = null, System.Guid? termGuid = default(System.Guid?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader AtlasTermCategorizationHeader(System.Guid? categoryGuid = default(System.Guid?), string description = null, string displayText = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTimeZone AtlasTimeZone(int? dstSavings = default(int?), string id = null, System.Collections.Generic.IEnumerable availableIds = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone @default = null, string displayName = null, int? rawOffset = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypesDef AtlasTypesDef(System.Collections.Generic.IEnumerable businessMetadataDefs = null, System.Collections.Generic.IEnumerable classificationDefs = null, System.Collections.Generic.IEnumerable entityDefs = null, System.Collections.Generic.IEnumerable enumDefs = null, System.Collections.Generic.IEnumerable relationshipDefs = null, System.Collections.Generic.IEnumerable structDefs = null, System.Collections.Generic.IEnumerable termTemplateDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteConfig AutoCompleteConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BusinessMetadataOptions BusinessMetadataOptions(System.BinaryData file = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig ClassificationAssociateConfig(Azure.Analytics.Purview.DataMap.AtlasClassification classification = null, System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactInfo ContactInfo(string id = null, string info = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IDictionary guidAssignments = null, System.Collections.Generic.IDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.MoveEntitiesConfig MoveEntitiesConfig(System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.PurviewObjectId PurviewObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string name = null, string displayText = null, string itemPath = null, string resourceId = null, System.Collections.Generic.IDictionary properties = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryConfig QueryConfig(string keywords = null, int? limit = default(int?), string continuationToken = null, System.Collections.Generic.IEnumerable orderby = null, System.BinaryData filter = null, System.Collections.Generic.IEnumerable facets = null, Azure.Analytics.Purview.DataMap.SearchTaxonomySetting taxonomySetting = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ResourceLink ResourceLink(string displayName = null, string url = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItem SearchFacetItem(int? count = default(int?), string facet = null, Azure.Analytics.Purview.DataMap.SearchFacetSort sort = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetSort SearchFacetSort(Azure.Analytics.Purview.DataMap.SearchSortOrder? count = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?), Azure.Analytics.Purview.DataMap.SearchSortOrder? value = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchTaxonomySetting SearchTaxonomySetting(System.Collections.Generic.IEnumerable assetTypes = null, Azure.Analytics.Purview.DataMap.SearchFacetItem facet = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestConfig SuggestConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermTemplateDef TermTemplateDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TimeBoundary TimeBoundary(string endTime = null, string startTime = null, string timeZone = null) { throw null; } + } public partial class PurviewObjectId : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PurviewObjectId() { } @@ -1471,7 +1724,10 @@ public PurviewObjectId() { } public string ResourceId { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IDictionary UniqueAttributes { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.PurviewObjectId JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.PurviewObjectId PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.PurviewObjectId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.PurviewObjectId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1488,7 +1744,11 @@ public QueryConfig() { } public int? Limit { get { throw null; } set { } } public System.Collections.Generic.IList Orderby { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchTaxonomySetting TaxonomySetting { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.QueryConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.QueryConfig queryConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.QueryConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.QueryConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.QueryConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1502,8 +1762,12 @@ internal QueryResult() { } public int? SearchCount { get { throw null; } } public bool? SearchCountApproximate { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacets { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.QueryResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.QueryResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.QueryResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.QueryResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.QueryResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1518,12 +1782,14 @@ protected Relationship() { } public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Analytics.Purview.DataMap.AtlasRelationship body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRelationship(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetRelationship(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetRelationshipAsync(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetRelationshipAsync(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Get(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Update(Azure.Analytics.Purview.DataMap.AtlasRelationship body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Update(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.Analytics.Purview.DataMap.AtlasRelationship body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1545,6 +1811,7 @@ protected Relationship() { } public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.RelationshipCategory left, Azure.Analytics.Purview.DataMap.RelationshipCategory right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.RelationshipCategory (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.RelationshipCategory? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.RelationshipCategory left, Azure.Analytics.Purview.DataMap.RelationshipCategory right) { throw null; } public override string ToString() { throw null; } } @@ -1553,7 +1820,10 @@ public partial class ResourceLink : System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ResourceLink System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1581,6 +1851,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.RoundingMode left, Azure.Analytics.Purview.DataMap.RoundingMode right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.RoundingMode (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.RoundingMode? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.RoundingMode left, Azure.Analytics.Purview.DataMap.RoundingMode right) { throw null; } public override string ToString() { throw null; } } @@ -1590,7 +1861,10 @@ public SearchFacetItem() { } public int? Count { get { throw null; } set { } } public string Facet { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.SearchFacetSort Sort { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1602,7 +1876,10 @@ public partial class SearchFacetItemValue : System.ClientModel.Primitives.IJsonM internal SearchFacetItemValue() { } public int? Count { get { throw null; } } public string Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItemValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItemValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetItemValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetItemValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1612,17 +1889,20 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SearchFacetResultValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SearchFacetResultValue() { } - public System.Collections.Generic.IReadOnlyList AssetType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classification { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ContactId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ContactType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EntityType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList GlossaryType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Label { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Term { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermStatus { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermTemplate { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IList AssetType { get { throw null; } } + public System.Collections.Generic.IList Classification { get { throw null; } } + public System.Collections.Generic.IList ContactId { get { throw null; } } + public System.Collections.Generic.IList ContactType { get { throw null; } } + public System.Collections.Generic.IList EntityType { get { throw null; } } + public System.Collections.Generic.IList GlossaryType { get { throw null; } } + public System.Collections.Generic.IList Label { get { throw null; } } + public System.Collections.Generic.IList Term { get { throw null; } } + public System.Collections.Generic.IList TermStatus { get { throw null; } } + public System.Collections.Generic.IList TermTemplate { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1634,7 +1914,10 @@ public partial class SearchFacetSort : System.ClientModel.Primitives.IJsonModel< public SearchFacetSort() { } public Azure.Analytics.Purview.DataMap.SearchSortOrder? Count { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.SearchSortOrder? Value { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetSort JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetSort PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetSort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetSort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1644,12 +1927,15 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SearchHighlights : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SearchHighlights() { } - public System.Collections.Generic.IReadOnlyList Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EntityType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList QualifiedName { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IList Description { get { throw null; } } + public System.Collections.Generic.IList EntityType { get { throw null; } } + public System.Collections.Generic.IList Id { get { throw null; } } + public System.Collections.Generic.IList Name { get { throw null; } } + public System.Collections.Generic.IList QualifiedName { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchHighlights JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchHighlights PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchHighlights System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchHighlights System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1659,17 +1945,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SearchResultValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SearchResultValue() { } - public System.Collections.Generic.IReadOnlyList AssetType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classification { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Contact { get { throw null; } } + public System.Collections.Generic.IList AssetType { get { throw null; } } + public System.Collections.Generic.IList Classification { get { throw null; } } + public System.Collections.Generic.IList Contact { get { throw null; } } public long? CreateTime { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Endorsement { get { throw null; } } + public System.Collections.Generic.IList Endorsement { get { throw null; } } public string EntityType { get { throw null; } } public string Glossary { get { throw null; } } public string GlossaryType { get { throw null; } } public string Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Label { get { throw null; } } + public System.Collections.Generic.IList Label { get { throw null; } } public string LongDescription { get { throw null; } } public string Name { get { throw null; } } public string ObjectType { get { throw null; } } @@ -1677,11 +1963,14 @@ internal SearchResultValue() { } public string QualifiedName { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights { get { throw null; } } public float? SearchScore { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Term { get { throw null; } } + public System.Collections.Generic.IList Term { get { throw null; } } public string TermStatus { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermTemplate { get { throw null; } } + public System.Collections.Generic.IList TermTemplate { get { throw null; } } public long? UpdateTime { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1703,6 +1992,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.SearchSortOrder left, Azure.Analytics.Purview.DataMap.SearchSortOrder right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.SearchSortOrder (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.SearchSortOrder? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.SearchSortOrder left, Azure.Analytics.Purview.DataMap.SearchSortOrder right) { throw null; } public override string ToString() { throw null; } } @@ -1711,7 +2001,10 @@ public partial class SearchTaxonomySetting : System.ClientModel.Primitives.IJson public SearchTaxonomySetting() { } public System.Collections.Generic.IList AssetTypes { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchFacetItem Facet { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SearchTaxonomySetting JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchTaxonomySetting PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchTaxonomySetting System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchTaxonomySetting System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1733,6 +2026,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship left, Azure.Analytics.Purview.DataMap.StatusAtlasRelationship right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.StatusAtlasRelationship (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship left, Azure.Analytics.Purview.DataMap.StatusAtlasRelationship right) { throw null; } public override string ToString() { throw null; } } @@ -1742,7 +2036,11 @@ public SuggestConfig() { } public System.BinaryData Filter { get { throw null; } set { } } public string Keywords { get { throw null; } set { } } public int? Limit { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SuggestConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.SuggestConfig suggestConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.SuggestConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SuggestConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SuggestConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1752,8 +2050,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SuggestResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SuggestResult() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.SuggestResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SuggestResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SuggestResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1763,17 +2065,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SuggestResultValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SuggestResultValue() { } - public System.Collections.Generic.IReadOnlyList AssetType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classification { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Contact { get { throw null; } } + public System.Collections.Generic.IList AssetType { get { throw null; } } + public System.Collections.Generic.IList Classification { get { throw null; } } + public System.Collections.Generic.IList Contact { get { throw null; } } public long? CreateTime { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Endorsement { get { throw null; } } + public System.Collections.Generic.IList Endorsement { get { throw null; } } public string EntityType { get { throw null; } } public string Glossary { get { throw null; } } public string GlossaryType { get { throw null; } } public string Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Label { get { throw null; } } + public System.Collections.Generic.IList Label { get { throw null; } } public string LongDescription { get { throw null; } } public string Name { get { throw null; } } public string ObjectType { get { throw null; } } @@ -1781,11 +2083,14 @@ internal SuggestResultValue() { } public string QualifiedName { get { throw null; } } public float? SearchScore { get { throw null; } } public string SearchText { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Term { get { throw null; } } + public System.Collections.Generic.IList Term { get { throw null; } } public string TermStatus { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermTemplate { get { throw null; } } + public System.Collections.Generic.IList TermTemplate { get { throw null; } } public long? UpdateTime { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SuggestResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SuggestResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1798,7 +2103,10 @@ internal TermSearchResultValue() { } public string GlossaryName { get { throw null; } } public string Guid { get { throw null; } } public string Name { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.TermSearchResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.TermSearchResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.TermSearchResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.TermSearchResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1822,6 +2130,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.TermStatus left, Azure.Analytics.Purview.DataMap.TermStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.TermStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.TermStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.TermStatus left, Azure.Analytics.Purview.DataMap.TermStatus right) { throw null; } public override string ToString() { throw null; } } @@ -1843,7 +2152,11 @@ public TermTemplateDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.TermTemplateDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.TermTemplateDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.TermTemplateDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.TermTemplateDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.TermTemplateDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1856,7 +2169,10 @@ public TimeBoundary() { } public string EndTime { get { throw null; } set { } } public string StartTime { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.TimeBoundary JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.TimeBoundary PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.TimeBoundary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.TimeBoundary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1886,6 +2202,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.TypeCategory left, Azure.Analytics.Purview.DataMap.TypeCategory right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.TypeCategory (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.TypeCategory? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.TypeCategory left, Azure.Analytics.Purview.DataMap.TypeCategory right) { throw null; } public override string ToString() { throw null; } } @@ -1905,8 +2222,14 @@ protected TypeDefinition() { } public virtual Azure.Response BatchUpdate(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> BatchUpdateAsync(Azure.Analytics.Purview.DataMap.AtlasTypesDef body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task BatchUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string name, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Delete(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetBusinessMetadataById(string guid, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetBusinessMetadataById(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetBusinessMetadataByIdAsync(string guid, Azure.RequestContext context) { throw null; } @@ -1975,15 +2298,11 @@ protected TypeDefinition() { } public virtual Azure.Response GetTermTemplateByName(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetTermTemplateByNameAsync(string name, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetTermTemplateByNameAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTypeDefinition(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTypeDefinition(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetTypeDefinitionAsync(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionAsync(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure { - public static partial class AnalyticsPurviewDataMapClientBuilderExtensions + public static partial class PurviewDataMapClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddDataMapClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs index 5dd9d3c1fd31..0b459d48d352 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs @@ -1,31 +1,5 @@ namespace Azure.Analytics.Purview.DataMap { - public static partial class AnalyticsPurviewDataMapModelFactory - { - public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IReadOnlyDictionary categoryInfo = null, System.Collections.Generic.IReadOnlyDictionary termInfo = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IReadOnlyDictionary guidEntityMap = null, System.Collections.Generic.IReadOnlyDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IReadOnlyDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IReadOnlyDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IReadOnlyDictionary guidAssignments = null, System.Collections.Generic.IReadOnlyDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } - } public partial class AtlasAttributeDef : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AtlasAttributeDef() { } @@ -42,7 +16,10 @@ public AtlasAttributeDef() { } public string TypeName { get { throw null; } set { } } public int? ValuesMaxCount { get { throw null; } set { } } public int? ValuesMinCount { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasAttributeDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasAttributeDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasAttributeDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasAttributeDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -67,7 +44,11 @@ public AtlasBusinessMetadataDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -84,7 +65,11 @@ public AtlasClassification() { } public bool? RemovePropagationsOnEntityDelete { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IList ValidityPeriods { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassification JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasClassification (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassification PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasClassification System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasClassification System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -112,7 +97,11 @@ public AtlasClassificationDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassificationDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasClassificationDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassificationDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasClassificationDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasClassificationDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -122,13 +111,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasClassifications : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasClassifications() { } - public System.Collections.Generic.IReadOnlyList List { get { throw null; } } + public System.Collections.Generic.IList List { get { throw null; } } public int? PageSize { get { throw null; } } public string SortBy { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasSortType? SortType { get { throw null; } } public int? StartIndex { get { throw null; } } public int? TotalCount { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassifications JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasClassifications (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasClassifications PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasClassifications System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasClassifications System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -140,7 +133,10 @@ public partial class AtlasConstraintDef : System.ClientModel.Primitives.IJsonMod public AtlasConstraintDef() { } public System.Collections.Generic.IDictionary Params { get { throw null; } } public string Type { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasConstraintDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasConstraintDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasConstraintDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasConstraintDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -159,7 +155,10 @@ public AtlasDateFormat() { } public Azure.Analytics.Purview.DataMap.AtlasNumberFormat NumberFormat { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasDateFormat TimeInstance { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasTimeZone TimeZone { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasDateFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasDateFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasDateFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasDateFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -171,7 +170,12 @@ public partial class AtlasEntitiesWithExtInfo : System.ClientModel.Primitives.IJ public AtlasEntitiesWithExtInfo() { } public System.Collections.Generic.IList Entities { get { throw null; } } public System.Collections.Generic.IDictionary ReferredEntities { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -203,7 +207,10 @@ public AtlasEntity() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntity JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntity PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntity System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -231,7 +238,11 @@ public AtlasEntityDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntityDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -253,7 +264,11 @@ public AtlasEntityHeader() { } public System.Collections.Generic.IList Meanings { get { throw null; } } public Azure.Analytics.Purview.DataMap.EntityStatus? Status { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntityHeader (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -264,7 +279,11 @@ public partial class AtlasEntityHeaders : System.ClientModel.Primitives.IJsonMod { public AtlasEntityHeaders() { } public System.Collections.Generic.IDictionary GuidHeaderMap { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeaders JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasEntityHeaders atlasEntityHeaders) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityHeaders PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityHeaders System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityHeaders System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -276,7 +295,12 @@ public partial class AtlasEntityWithExtInfo : System.ClientModel.Primitives.IJso public AtlasEntityWithExtInfo() { } public Azure.Analytics.Purview.DataMap.AtlasEntity Entity { get { throw null; } set { } } public System.Collections.Generic.IDictionary ReferredEntities { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo atlasEntityWithExtInfo) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -302,7 +326,11 @@ public AtlasEnumDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasEnumDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEnumDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEnumDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -315,7 +343,10 @@ public AtlasEnumElementDef() { } public string Description { get { throw null; } set { } } public int? Ordinal { get { throw null; } set { } } public string Value { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumElementDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasEnumElementDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasEnumElementDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasEnumElementDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -340,7 +371,12 @@ public AtlasGlossary() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public string Usage { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossary JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossary (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasGlossary atlasGlossary) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossary PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -365,7 +401,12 @@ public AtlasGlossaryCategory() { } public System.Collections.Generic.IList Terms { get { throw null; } } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory atlasGlossaryCategory) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -375,9 +416,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasGlossaryExtInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasGlossaryExtInfo() { } - public System.Collections.Generic.IReadOnlyList Categories { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary CategoryInfo { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classifications { get { throw null; } } + public System.Collections.Generic.IList Categories { get { throw null; } } + public System.Collections.Generic.IDictionary CategoryInfo { get { throw null; } } + public System.Collections.Generic.IList Classifications { get { throw null; } } public string CreatedBy { get { throw null; } } public long? CreateTime { get { throw null; } } public string Guid { get { throw null; } } @@ -387,12 +428,16 @@ internal AtlasGlossaryExtInfo() { } public string Name { get { throw null; } } public string QualifiedName { get { throw null; } } public string ShortDescription { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary TermInfo { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Terms { get { throw null; } } + public System.Collections.Generic.IDictionary TermInfo { get { throw null; } } + public System.Collections.Generic.IList Terms { get { throw null; } } public string UpdatedBy { get { throw null; } } public long? UpdateTime { get { throw null; } } public string Usage { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -405,7 +450,10 @@ public AtlasGlossaryHeader() { } public string DisplayText { get { throw null; } set { } } public string GlossaryGuid { get { throw null; } set { } } public string RelationGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -452,7 +500,12 @@ public AtlasGlossaryTerm() { } public string Usage { get { throw null; } set { } } public System.Collections.Generic.IList ValidValues { get { throw null; } } public System.Collections.Generic.IList ValidValuesFor { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm atlasGlossaryTerm) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -464,14 +517,18 @@ public partial class AtlasLineageInfo : System.ClientModel.Primitives.IJsonModel internal AtlasLineageInfo() { } public string BaseEntityGuid { get { throw null; } } public int? ChildrenCount { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary GuidEntityMap { get { throw null; } } + public System.Collections.Generic.IDictionary GuidEntityMap { get { throw null; } } public int? LineageDepth { get { throw null; } } public Azure.Analytics.Purview.DataMap.LineageDirection? LineageDirection { get { throw null; } } public int? LineageWidth { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ParentRelations { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Relations { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary> WidthCounts { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IList ParentRelations { get { throw null; } } + public System.Collections.Generic.IList Relations { get { throw null; } } + public System.Collections.Generic.IDictionary> WidthCounts { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasLineageInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasLineageInfo (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasLineageInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasLineageInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasLineageInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -495,7 +552,10 @@ public AtlasNumberFormat() { } public bool? ParseIntegerOnly { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasNumberFormat PercentInstance { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.RoundingMode? RoundingMode { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasNumberFormat JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasNumberFormat PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasNumberFormat System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasNumberFormat System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -508,7 +568,10 @@ public AtlasObjectId() { } public string Guid { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IDictionary UniqueAttributes { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasObjectId JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasObjectId PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasObjectId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasObjectId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -523,7 +586,10 @@ public AtlasRelatedCategoryHeader() { } public string DisplayText { get { throw null; } set { } } public string ParentCategoryGuid { get { throw null; } set { } } public string RelationGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -542,7 +608,10 @@ public AtlasRelatedObjectId() { } public string RelationshipType { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IDictionary UniqueAttributes { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -559,7 +628,10 @@ public AtlasRelatedTermHeader() { } public Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? Status { get { throw null; } set { } } public string Steward { get { throw null; } set { } } public string TermGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -584,7 +656,12 @@ public AtlasRelationship() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationship JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasRelationship (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasRelationship atlasRelationship) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationship PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationship System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationship System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -609,7 +686,10 @@ public AtlasRelationshipAttributeDef() { } public string TypeName { get { throw null; } set { } } public int? ValuesMaxCount { get { throw null; } set { } } public int? ValuesMinCount { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -638,7 +718,11 @@ public AtlasRelationshipDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasRelationshipDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -654,7 +738,10 @@ public AtlasRelationshipEndDef() { } public bool? IsLegacyAttribute { get { throw null; } set { } } public string Name { get { throw null; } set { } } public string Type { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -664,9 +751,13 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasRelationshipWithExtInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasRelationshipWithExtInfo() { } - public System.Collections.Generic.IReadOnlyDictionary ReferredEntities { get { throw null; } } + public System.Collections.Generic.IDictionary ReferredEntities { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasRelationship Relationship { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -689,6 +780,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.AtlasSortType left, Azure.Analytics.Purview.DataMap.AtlasSortType right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.AtlasSortType (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.AtlasSortType? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.AtlasSortType left, Azure.Analytics.Purview.DataMap.AtlasSortType right) { throw null; } public override string ToString() { throw null; } } @@ -698,7 +790,10 @@ public AtlasStruct() { } public System.Collections.Generic.IDictionary Attributes { get { throw null; } } public string LastModifiedTS { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStruct JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStruct PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasStruct System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasStruct System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -723,7 +818,11 @@ public AtlasStructDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStructDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasStructDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasStructDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasStructDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasStructDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -742,7 +841,10 @@ public AtlasTermAssignmentHeader() { } public Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? Status { get { throw null; } set { } } public string Steward { get { throw null; } set { } } public System.Guid? TermGuid { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -769,6 +871,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus left, Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus left, Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus right) { throw null; } public override string ToString() { throw null; } } @@ -780,7 +883,10 @@ public AtlasTermCategorizationHeader() { } public string DisplayText { get { throw null; } set { } } public System.Guid? RelationGuid { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? Status { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -805,6 +911,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus left, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus left, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus right) { throw null; } public override string ToString() { throw null; } } @@ -817,7 +924,10 @@ public AtlasTimeZone() { } public int? DstSavings { get { throw null; } set { } } public string Id { get { throw null; } set { } } public int? RawOffset { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTimeZone JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTimeZone PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTimeZone System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTimeZone System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -827,32 +937,36 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AtlasTypeDef : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AtlasTypeDef() { } - public System.Collections.Generic.IReadOnlyList AttributeDefs { get { throw null; } } + public System.Collections.Generic.IList AttributeDefs { get { throw null; } } public Azure.Analytics.Purview.DataMap.TypeCategory? Category { get { throw null; } } public string CreatedBy { get { throw null; } } public long? CreateTime { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasDateFormat DateFormatter { get { throw null; } } public string DefaultValue { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ElementDefs { get { throw null; } } + public System.Collections.Generic.IList ElementDefs { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef EndDef1 { get { throw null; } } public Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef EndDef2 { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EntityTypes { get { throw null; } } + public System.Collections.Generic.IList EntityTypes { get { throw null; } } public string Guid { get { throw null; } } public string LastModifiedTS { get { throw null; } } public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Options { get { throw null; } } - public System.Collections.Generic.IReadOnlyList RelationshipAttributeDefs { get { throw null; } } + public System.Collections.Generic.IDictionary Options { get { throw null; } } + public System.Collections.Generic.IList RelationshipAttributeDefs { get { throw null; } } public Azure.Analytics.Purview.DataMap.RelationshipCategory? RelationshipCategory { get { throw null; } } public string RelationshipLabel { get { throw null; } } public string ServiceType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SubTypes { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SuperTypes { get { throw null; } } + public System.Collections.Generic.IList SubTypes { get { throw null; } } + public System.Collections.Generic.IList SuperTypes { get { throw null; } } public string TypeVersion { get { throw null; } } public string UpdatedBy { get { throw null; } } public long? UpdateTime { get { throw null; } } public long? Version { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasTypeDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTypeDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTypeDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -865,7 +979,10 @@ internal AtlasTypeDefHeader() { } public Azure.Analytics.Purview.DataMap.TypeCategory? Category { get { throw null; } } public string Guid { get { throw null; } } public string Name { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -882,7 +999,12 @@ public AtlasTypesDef() { } public System.Collections.Generic.IList RelationshipDefs { get { throw null; } } public System.Collections.Generic.IList StructDefs { get { throw null; } } public System.Collections.Generic.IList TermTemplateDefs { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypesDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AtlasTypesDef (Azure.Response response) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AtlasTypesDef atlasTypesDef) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AtlasTypesDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AtlasTypesDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AtlasTypesDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -895,7 +1017,11 @@ public AutoCompleteConfig() { } public System.BinaryData Filter { get { throw null; } set { } } public string Keywords { get { throw null; } set { } } public int? Limit { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.AutoCompleteConfig autoCompleteConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AutoCompleteConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AutoCompleteConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -905,8 +1031,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AutoCompleteResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AutoCompleteResult() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.AutoCompleteResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AutoCompleteResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AutoCompleteResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -918,7 +1048,10 @@ public partial class AutoCompleteResultValue : System.ClientModel.Primitives.IJs internal AutoCompleteResultValue() { } public string QueryPlusText { get { throw null; } } public string Text { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.AutoCompleteResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.AutoCompleteResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.AutoCompleteResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -934,9 +1067,13 @@ internal AzureAnalyticsPurviewDataMapContext() { } public partial class BulkImportResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal BulkImportResult() { } - public System.Collections.Generic.IReadOnlyList FailedImportInfoList { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SuccessImportInfoList { get { throw null; } } + public System.Collections.Generic.IList FailedImportInfoList { get { throw null; } } + public System.Collections.Generic.IList SuccessImportInfoList { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.BulkImportResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.BulkImportResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.BulkImportResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.BulkImportResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.BulkImportResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -959,14 +1096,19 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior left, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior left, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior right) { throw null; } public override string ToString() { throw null; } } public partial class BusinessMetadataOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public BusinessMetadataOptions(System.IO.Stream file) { } - public System.IO.Stream File { get { throw null; } } + public BusinessMetadataOptions(System.BinaryData file) { } + public System.BinaryData File { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.BusinessMetadataOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.BusinessMetadataOptions businessMetadataOptions) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.BusinessMetadataOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.BusinessMetadataOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.BusinessMetadataOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -989,6 +1131,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.CardinalityValue left, Azure.Analytics.Purview.DataMap.CardinalityValue right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.CardinalityValue (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.CardinalityValue? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.CardinalityValue left, Azure.Analytics.Purview.DataMap.CardinalityValue right) { throw null; } public override string ToString() { throw null; } } @@ -997,7 +1140,11 @@ public partial class ClassificationAssociateConfig : System.ClientModel.Primitiv public ClassificationAssociateConfig() { } public Azure.Analytics.Purview.DataMap.AtlasClassification Classification { get { throw null; } set { } } public System.Collections.Generic.IList EntityGuids { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig classificationAssociateConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1009,7 +1156,10 @@ public partial class ContactInfo : System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ContactInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1022,7 +1172,10 @@ internal ContactSearchResultValue() { } public string ContactType { get { throw null; } } public string Id { get { throw null; } } public string Info { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ContactSearchResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.ContactSearchResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ContactSearchResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ContactSearchResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1035,12 +1188,12 @@ protected DataMapClient() { } public DataMapClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public DataMapClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.DataMap.DataMapClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Analytics.Purview.DataMap.Discovery GetDiscoveryClient(string apiVersion = "2023-09-01") { throw null; } - public virtual Azure.Analytics.Purview.DataMap.Entity GetEntityClient(string apiVersion = "2023-09-01") { throw null; } - public virtual Azure.Analytics.Purview.DataMap.Glossary GetGlossaryClient(string apiVersion = "2023-09-01") { throw null; } - public virtual Azure.Analytics.Purview.DataMap.Lineage GetLineageClient(string apiVersion = "2023-09-01") { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Discovery GetDiscoveryClient() { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Entity GetEntityClient() { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Glossary GetGlossaryClient() { throw null; } + public virtual Azure.Analytics.Purview.DataMap.Lineage GetLineageClient() { throw null; } public virtual Azure.Analytics.Purview.DataMap.Relationship GetRelationshipClient() { throw null; } - public virtual Azure.Analytics.Purview.DataMap.TypeDefinition GetTypeDefinitionClient(string apiVersion = "2023-09-01") { throw null; } + public virtual Azure.Analytics.Purview.DataMap.TypeDefinition GetTypeDefinitionClient() { throw null; } } public partial class DataMapClientOptions : Azure.Core.ClientOptions { @@ -1095,10 +1248,10 @@ protected Entity() { } public virtual Azure.Response AddOrUpdateBusinessMetadata(string guid, System.Collections.Generic.IDictionary> body, bool? overwrite = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, bool? overwrite = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAsync(string guid, System.Collections.Generic.IDictionary> body, bool? overwrite = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response AddOrUpdateBusinessMetadataAttributes(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task AddOrUpdateBusinessMetadataAttributesAsync(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response BatchCreateOrUpdate(Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo body, string collectionId = null, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response BatchCreateOrUpdate(Azure.Core.RequestContent content, string collectionId = null, string businessAttributeUpdateBehavior = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> BatchCreateOrUpdateAsync(Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo body, string collectionId = null, Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior? businessAttributeUpdateBehavior = default(Azure.Analytics.Purview.DataMap.BusinessAttributeUpdateBehavior?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1127,6 +1280,10 @@ protected Entity() { } public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attribute, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> DeleteByUniqueAttributeAsync(string typeName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Get(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetBusinessMetadataTemplate(Azure.RequestContext context) { throw null; } public virtual Azure.Response GetBusinessMetadataTemplate(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetBusinessMetadataTemplateAsync(Azure.RequestContext context) { throw null; } @@ -1147,18 +1304,12 @@ protected Entity() { } public virtual Azure.Response GetClassifications(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetClassificationsAsync(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetEntity(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetEntity(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityAsync(string guid, bool? minExtInfo, bool? ignoreRelationships, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetEntityAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetHeader(string guid, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetHeader(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetHeaderAsync(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ImportBusinessMetadata(Azure.Analytics.Purview.DataMap.BusinessMetadataOptions body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ImportBusinessMetadata(Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response ImportBusinessMetadata(System.BinaryData file, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ImportBusinessMetadataAsync(Azure.Analytics.Purview.DataMap.BusinessMetadataOptions body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ImportBusinessMetadataAsync(Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response MoveEntitiesToCollection(string collectionId, Azure.Analytics.Purview.DataMap.MoveEntitiesConfig body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response MoveEntitiesToCollection(string collectionId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -1168,14 +1319,18 @@ protected Entity() { } public virtual Azure.Response RemoveBusinessMetadata(string guid, System.Collections.Generic.IDictionary> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAsync(string guid, System.Collections.Generic.IDictionary> body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveBusinessMetadataAttributes(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response RemoveBusinessMetadataAttributes(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string guid, string businessMetadataName, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveClassification(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveClassificationAsync(string guid, string classificationName, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute = null, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute = null, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response RemoveBusinessMetadataAttributes(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response RemoveBusinessMetadataAttributes(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string businessMetadataName, string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task RemoveBusinessMetadataAttributesAsync(string businessMetadataName, string guid, System.Collections.Generic.IDictionary body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveClassification(string guid, string classificationName, Azure.RequestContext context) { throw null; } + public virtual Azure.Response RemoveClassification(string guid, string classificationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationAsync(string guid, string classificationName, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationAsync(string guid, string classificationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute, Azure.RequestContext context) { throw null; } + public virtual Azure.Response RemoveClassificationByUniqueAttribute(string typeName, string classificationName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task RemoveClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveLabels(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response RemoveLabels(string guid, System.Collections.Generic.IEnumerable body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RemoveLabelsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -1212,10 +1367,14 @@ protected Entity() { } public partial class EntityMutationResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal EntityMutationResult() { } - public System.Collections.Generic.IReadOnlyDictionary GuidAssignments { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary> MutatedEntities { get { throw null; } } - public System.Collections.Generic.IReadOnlyList PartialUpdatedEntities { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IDictionary GuidAssignments { get { throw null; } } + public System.Collections.Generic.IDictionary> MutatedEntities { get { throw null; } } + public System.Collections.Generic.IList PartialUpdatedEntities { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.EntityMutationResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.EntityMutationResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.EntityMutationResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.EntityMutationResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.EntityMutationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1237,6 +1396,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.EntityStatus left, Azure.Analytics.Purview.DataMap.EntityStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.EntityStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.EntityStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.EntityStatus left, Azure.Analytics.Purview.DataMap.EntityStatus right) { throw null; } public override string ToString() { throw null; } } @@ -1272,16 +1432,26 @@ protected Glossary() { } public virtual Azure.Response> CreateTerms(System.Collections.Generic.IEnumerable body, bool? includeTermHierarchy = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CreateTermsAsync(Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task>> CreateTermsAsync(System.Collections.Generic.IEnumerable body, bool? includeTermHierarchy = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Delete(string glossaryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string glossaryId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteCategory(string categoryId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteCategoryAsync(string categoryId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DeleteTerm(string termId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Delete(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteCategory(string categoryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteCategory(string categoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteCategoryAsync(string categoryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteCategoryAsync(string categoryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteTerm(string termId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response DeleteTerm(string termId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteTermAssignmentFromEntities(string termId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual Azure.Response DeleteTermAssignmentFromEntities(string termId, System.Collections.Generic.IEnumerable body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termId, System.Collections.Generic.IEnumerable body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTermAsync(string termId, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTermAsync(string termId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTermAsync(string termId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Get(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string glossaryId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetCategories(string glossaryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } public virtual Azure.Response> GetCategories(string glossaryId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetCategoriesAsync(string glossaryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } @@ -1306,10 +1476,6 @@ protected Glossary() { } public virtual Azure.Response> GetEntitiesAssignedWithTerm(string termId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task>> GetEntitiesAssignedWithTermAsync(string termId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetGlossary(string glossaryId, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetGlossary(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryAsync(string glossaryId, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetGlossaryAsync(string glossaryId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetRelatedCategories(string categoryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } public virtual Azure.Response>> GetRelatedCategories(string categoryId, int? limit = default(int?), int? offset = default(int?), string sort = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryId, int? limit, int? offset, string sort, Azure.RequestContext context) { throw null; } @@ -1362,7 +1528,10 @@ internal ImportInfo() { } public Azure.Analytics.Purview.DataMap.ImportStatus? ImportStatus { get { throw null; } } public string ParentObjectName { get { throw null; } } public string Remarks { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ImportInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.ImportInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ImportInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ImportInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1384,6 +1553,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.ImportStatus left, Azure.Analytics.Purview.DataMap.ImportStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.ImportStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.ImportStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.ImportStatus left, Azure.Analytics.Purview.DataMap.ImportStatus right) { throw null; } public override string ToString() { throw null; } } @@ -1391,14 +1561,14 @@ public partial class Lineage { protected Lineage() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response Get(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } public virtual Azure.Response GetByUniqueAttribute(string typeName, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetByUniqueAttribute(string typeName, string direction, int? depth = default(int?), string attribute = null, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> GetByUniqueAttributeAsync(string typeName, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), string attribute = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetByUniqueAttributeAsync(string typeName, string direction, int? depth = default(int?), string attribute = null, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetLineage(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetLineage(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> GetLineageAsync(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetLineageAsync(string guid, string direction, int? depth = default(int?), Azure.RequestContext context = null) { throw null; } public virtual Azure.Response GetNextPage(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? offset = default(int?), int? limit = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetNextPage(string guid, string direction, int? offset = default(int?), int? limit = default(int?), Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> GetNextPageAsync(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? offset = default(int?), int? limit = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1420,6 +1590,7 @@ protected Lineage() { } public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.LineageDirection left, Azure.Analytics.Purview.DataMap.LineageDirection right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.LineageDirection (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.LineageDirection? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.LineageDirection left, Azure.Analytics.Purview.DataMap.LineageDirection right) { throw null; } public override string ToString() { throw null; } } @@ -1429,7 +1600,10 @@ internal LineageRelation() { } public string FromEntityId { get { throw null; } } public string RelationshipId { get { throw null; } } public string ToEntityId { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.LineageRelation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.LineageRelation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.LineageRelation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.LineageRelation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1440,7 +1614,11 @@ public partial class MoveEntitiesConfig : System.ClientModel.Primitives.IJsonMod { public MoveEntitiesConfig() { } public System.Collections.Generic.IList EntityGuids { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.MoveEntitiesConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.MoveEntitiesConfig moveEntitiesConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.MoveEntitiesConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.MoveEntitiesConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.MoveEntitiesConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1453,13 +1631,88 @@ internal ParentRelation() { } public string ChildEntityId { get { throw null; } } public string ParentEntityId { get { throw null; } } public string RelationshipId { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.ParentRelation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.ParentRelation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.ParentRelation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ParentRelation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public static partial class PurviewDataMapModelFactory + { + public static Azure.Analytics.Purview.DataMap.AtlasAttributeDef AtlasAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef AtlasBusinessMetadataDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassification AtlasClassification(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, string entityGuid = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), bool? removePropagationsOnEntityDelete = default(bool?), System.Collections.Generic.IEnumerable validityPeriods = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassificationDef AtlasClassificationDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasConstraintDef AtlasConstraintDef(System.Collections.Generic.IDictionary @params = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasDateFormat AtlasDateFormat(System.Collections.Generic.IEnumerable availableLocales = null, float? calendar = default(float?), Azure.Analytics.Purview.DataMap.AtlasDateFormat dateInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateTimeInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat instance = null, bool? lenient = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberFormat = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat timeInstance = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone timeZone = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, System.Collections.Generic.IEnumerable entities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityDef AtlasEntityDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeader AtlasEntityHeader(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IEnumerable classificationNames = null, System.Collections.Generic.IEnumerable classifications = null, string displayText = null, string guid = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meaningNames = null, System.Collections.Generic.IEnumerable meanings = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeaders AtlasEntityHeaders(System.Collections.Generic.IDictionary guidHeaderMap = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo AtlasEntityWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasEntity entity = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumDef AtlasEnumDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumElementDef AtlasEnumElementDef(string description = null, int? ordinal = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossary AtlasGlossary(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory AtlasGlossaryCategory(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable childrenCategories = null, Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader parentCategory = null, System.Collections.Generic.IEnumerable terms = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IDictionary categoryInfo = null, System.Collections.Generic.IDictionary termInfo = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = null, string glossaryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm AtlasGlossaryTerm(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, string abbreviation = null, System.Collections.Generic.IEnumerable templateName = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable antonyms = null, Azure.Analytics.Purview.DataMap.TermStatus? status = default(Azure.Analytics.Purview.DataMap.TermStatus?), string nickName = null, System.Collections.Generic.IEnumerable hierarchyInfo = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IDictionary> contacts = null, System.Collections.Generic.IDictionary> attributes = null, System.Collections.Generic.IEnumerable assignedEntities = null, System.Collections.Generic.IEnumerable categories = null, System.Collections.Generic.IEnumerable classifies = null, System.Collections.Generic.IEnumerable examples = null, System.Collections.Generic.IEnumerable isA = null, System.Collections.Generic.IEnumerable preferredTerms = null, System.Collections.Generic.IEnumerable preferredToTerms = null, System.Collections.Generic.IEnumerable replacedBy = null, System.Collections.Generic.IEnumerable replacementTerms = null, System.Collections.Generic.IEnumerable seeAlso = null, System.Collections.Generic.IEnumerable synonyms = null, System.Collections.Generic.IEnumerable translatedTerms = null, System.Collections.Generic.IEnumerable translationTerms = null, string usage = null, System.Collections.Generic.IEnumerable validValues = null, System.Collections.Generic.IEnumerable validValuesFor = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IDictionary guidEntityMap = null, System.Collections.Generic.IDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasNumberFormat AtlasNumberFormat(System.Collections.Generic.IEnumerable availableLocales = null, string currency = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat currencyInstance = null, bool? groupingUsed = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat instance = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat integerInstance = null, int? maximumFractionDigits = default(int?), int? maximumIntegerDigits = default(int?), int? minimumFractionDigits = default(int?), int? minimumIntegerDigits = default(int?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberInstance = null, bool? parseIntegerOnly = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat percentInstance = null, Azure.Analytics.Purview.DataMap.RoundingMode? roundingMode = default(Azure.Analytics.Purview.DataMap.RoundingMode?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasObjectId AtlasObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = null, string description = null, string displayText = null, string parentCategoryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId AtlasRelatedObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string displayText = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), string relationshipType = null, Azure.Analytics.Purview.DataMap.AtlasStruct relationshipAttributes = null, System.Guid? relationshipGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? relationshipStatus = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = null, string displayText = null, string expression = null, string relationGuid = null, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?), string steward = null, string termGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationship AtlasRelationship(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end1 = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end2 = null, string guid = null, string homeId = null, string label = null, int? provenanceType = default(int?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? status = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?), bool? isLegacyAttribute = default(bool?), string relationshipTypeName = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipDef AtlasRelationshipDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef AtlasRelationshipEndDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), string description = null, bool? isContainer = default(bool?), bool? isLegacyAttribute = default(bool?), string name = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStruct AtlasStruct(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStructDef AtlasStructDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default(int?), string createdBy = null, string description = null, string displayText = null, string expression = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus?), string steward = null, System.Guid? termGuid = default(System.Guid?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader AtlasTermCategorizationHeader(System.Guid? categoryGuid = default(System.Guid?), string description = null, string displayText = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTimeZone AtlasTimeZone(int? dstSavings = default(int?), string id = null, System.Collections.Generic.IEnumerable availableIds = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone @default = null, string displayName = null, int? rawOffset = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypesDef AtlasTypesDef(System.Collections.Generic.IEnumerable businessMetadataDefs = null, System.Collections.Generic.IEnumerable classificationDefs = null, System.Collections.Generic.IEnumerable entityDefs = null, System.Collections.Generic.IEnumerable enumDefs = null, System.Collections.Generic.IEnumerable relationshipDefs = null, System.Collections.Generic.IEnumerable structDefs = null, System.Collections.Generic.IEnumerable termTemplateDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteConfig AutoCompleteConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BusinessMetadataOptions BusinessMetadataOptions(System.BinaryData file = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig ClassificationAssociateConfig(Azure.Analytics.Purview.DataMap.AtlasClassification classification = null, System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactInfo ContactInfo(string id = null, string info = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IDictionary guidAssignments = null, System.Collections.Generic.IDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.MoveEntitiesConfig MoveEntitiesConfig(System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.PurviewObjectId PurviewObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string name = null, string displayText = null, string itemPath = null, string resourceId = null, System.Collections.Generic.IDictionary properties = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryConfig QueryConfig(string keywords = null, int? limit = default(int?), string continuationToken = null, System.Collections.Generic.IEnumerable orderby = null, System.BinaryData filter = null, System.Collections.Generic.IEnumerable facets = null, Azure.Analytics.Purview.DataMap.SearchTaxonomySetting taxonomySetting = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ResourceLink ResourceLink(string displayName = null, string url = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItem SearchFacetItem(int? count = default(int?), string facet = null, Azure.Analytics.Purview.DataMap.SearchFacetSort sort = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetSort SearchFacetSort(Azure.Analytics.Purview.DataMap.SearchSortOrder? count = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?), Azure.Analytics.Purview.DataMap.SearchSortOrder? value = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchTaxonomySetting SearchTaxonomySetting(System.Collections.Generic.IEnumerable assetTypes = null, Azure.Analytics.Purview.DataMap.SearchFacetItem facet = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestConfig SuggestConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermTemplateDef TermTemplateDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TimeBoundary TimeBoundary(string endTime = null, string startTime = null, string timeZone = null) { throw null; } + } public partial class PurviewObjectId : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PurviewObjectId() { } @@ -1471,7 +1724,10 @@ public PurviewObjectId() { } public string ResourceId { get { throw null; } set { } } public string TypeName { get { throw null; } set { } } public System.Collections.Generic.IDictionary UniqueAttributes { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.PurviewObjectId JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.PurviewObjectId PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.PurviewObjectId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.PurviewObjectId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1488,7 +1744,11 @@ public QueryConfig() { } public int? Limit { get { throw null; } set { } } public System.Collections.Generic.IList Orderby { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchTaxonomySetting TaxonomySetting { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.QueryConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.QueryConfig queryConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.QueryConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.QueryConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.QueryConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1502,8 +1762,12 @@ internal QueryResult() { } public int? SearchCount { get { throw null; } } public bool? SearchCountApproximate { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacets { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.QueryResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.QueryResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.QueryResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.QueryResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.QueryResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1518,12 +1782,14 @@ protected Relationship() { } public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Analytics.Purview.DataMap.AtlasRelationship body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(string guid, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetRelationship(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetRelationship(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetRelationshipAsync(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetRelationshipAsync(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(string guid, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Get(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? extendedInfo, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string guid, bool? extendedInfo = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Update(Azure.Analytics.Purview.DataMap.AtlasRelationship body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Update(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.Analytics.Purview.DataMap.AtlasRelationship body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1545,6 +1811,7 @@ protected Relationship() { } public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.RelationshipCategory left, Azure.Analytics.Purview.DataMap.RelationshipCategory right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.RelationshipCategory (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.RelationshipCategory? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.RelationshipCategory left, Azure.Analytics.Purview.DataMap.RelationshipCategory right) { throw null; } public override string ToString() { throw null; } } @@ -1553,7 +1820,10 @@ public partial class ResourceLink : System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.ResourceLink System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1581,6 +1851,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.RoundingMode left, Azure.Analytics.Purview.DataMap.RoundingMode right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.RoundingMode (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.RoundingMode? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.RoundingMode left, Azure.Analytics.Purview.DataMap.RoundingMode right) { throw null; } public override string ToString() { throw null; } } @@ -1590,7 +1861,10 @@ public SearchFacetItem() { } public int? Count { get { throw null; } set { } } public string Facet { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.SearchFacetSort Sort { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1602,7 +1876,10 @@ public partial class SearchFacetItemValue : System.ClientModel.Primitives.IJsonM internal SearchFacetItemValue() { } public int? Count { get { throw null; } } public string Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItemValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetItemValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetItemValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetItemValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1612,17 +1889,20 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SearchFacetResultValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SearchFacetResultValue() { } - public System.Collections.Generic.IReadOnlyList AssetType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classification { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ContactId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ContactType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EntityType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList GlossaryType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Label { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Term { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermStatus { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermTemplate { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IList AssetType { get { throw null; } } + public System.Collections.Generic.IList Classification { get { throw null; } } + public System.Collections.Generic.IList ContactId { get { throw null; } } + public System.Collections.Generic.IList ContactType { get { throw null; } } + public System.Collections.Generic.IList EntityType { get { throw null; } } + public System.Collections.Generic.IList GlossaryType { get { throw null; } } + public System.Collections.Generic.IList Label { get { throw null; } } + public System.Collections.Generic.IList Term { get { throw null; } } + public System.Collections.Generic.IList TermStatus { get { throw null; } } + public System.Collections.Generic.IList TermTemplate { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1634,7 +1914,10 @@ public partial class SearchFacetSort : System.ClientModel.Primitives.IJsonModel< public SearchFacetSort() { } public Azure.Analytics.Purview.DataMap.SearchSortOrder? Count { get { throw null; } set { } } public Azure.Analytics.Purview.DataMap.SearchSortOrder? Value { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetSort JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchFacetSort PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchFacetSort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchFacetSort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1644,12 +1927,15 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SearchHighlights : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SearchHighlights() { } - public System.Collections.Generic.IReadOnlyList Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList EntityType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList QualifiedName { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public System.Collections.Generic.IList Description { get { throw null; } } + public System.Collections.Generic.IList EntityType { get { throw null; } } + public System.Collections.Generic.IList Id { get { throw null; } } + public System.Collections.Generic.IList Name { get { throw null; } } + public System.Collections.Generic.IList QualifiedName { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchHighlights JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchHighlights PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchHighlights System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchHighlights System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1659,17 +1945,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SearchResultValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SearchResultValue() { } - public System.Collections.Generic.IReadOnlyList AssetType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classification { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Contact { get { throw null; } } + public System.Collections.Generic.IList AssetType { get { throw null; } } + public System.Collections.Generic.IList Classification { get { throw null; } } + public System.Collections.Generic.IList Contact { get { throw null; } } public long? CreateTime { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Endorsement { get { throw null; } } + public System.Collections.Generic.IList Endorsement { get { throw null; } } public string EntityType { get { throw null; } } public string Glossary { get { throw null; } } public string GlossaryType { get { throw null; } } public string Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Label { get { throw null; } } + public System.Collections.Generic.IList Label { get { throw null; } } public string LongDescription { get { throw null; } } public string Name { get { throw null; } } public string ObjectType { get { throw null; } } @@ -1677,11 +1963,14 @@ internal SearchResultValue() { } public string QualifiedName { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights { get { throw null; } } public float? SearchScore { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Term { get { throw null; } } + public System.Collections.Generic.IList Term { get { throw null; } } public string TermStatus { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermTemplate { get { throw null; } } + public System.Collections.Generic.IList TermTemplate { get { throw null; } } public long? UpdateTime { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SearchResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1703,6 +1992,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.SearchSortOrder left, Azure.Analytics.Purview.DataMap.SearchSortOrder right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.SearchSortOrder (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.SearchSortOrder? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.SearchSortOrder left, Azure.Analytics.Purview.DataMap.SearchSortOrder right) { throw null; } public override string ToString() { throw null; } } @@ -1711,7 +2001,10 @@ public partial class SearchTaxonomySetting : System.ClientModel.Primitives.IJson public SearchTaxonomySetting() { } public System.Collections.Generic.IList AssetTypes { get { throw null; } } public Azure.Analytics.Purview.DataMap.SearchFacetItem Facet { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SearchTaxonomySetting JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SearchTaxonomySetting PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SearchTaxonomySetting System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SearchTaxonomySetting System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1733,6 +2026,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship left, Azure.Analytics.Purview.DataMap.StatusAtlasRelationship right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.StatusAtlasRelationship (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship left, Azure.Analytics.Purview.DataMap.StatusAtlasRelationship right) { throw null; } public override string ToString() { throw null; } } @@ -1742,7 +2036,11 @@ public SuggestConfig() { } public System.BinaryData Filter { get { throw null; } set { } } public string Keywords { get { throw null; } set { } } public int? Limit { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.SuggestConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static implicit operator Azure.Core.RequestContent (Azure.Analytics.Purview.DataMap.SuggestConfig suggestConfig) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.SuggestConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SuggestConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SuggestConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1752,8 +2050,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SuggestResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SuggestResult() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.SuggestResult (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SuggestResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SuggestResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1763,17 +2065,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class SuggestResultValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal SuggestResultValue() { } - public System.Collections.Generic.IReadOnlyList AssetType { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Classification { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Contact { get { throw null; } } + public System.Collections.Generic.IList AssetType { get { throw null; } } + public System.Collections.Generic.IList Classification { get { throw null; } } + public System.Collections.Generic.IList Contact { get { throw null; } } public long? CreateTime { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Endorsement { get { throw null; } } + public System.Collections.Generic.IList Endorsement { get { throw null; } } public string EntityType { get { throw null; } } public string Glossary { get { throw null; } } public string GlossaryType { get { throw null; } } public string Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Label { get { throw null; } } + public System.Collections.Generic.IList Label { get { throw null; } } public string LongDescription { get { throw null; } } public string Name { get { throw null; } } public string ObjectType { get { throw null; } } @@ -1781,11 +2083,14 @@ internal SuggestResultValue() { } public string QualifiedName { get { throw null; } } public float? SearchScore { get { throw null; } } public string SearchText { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Term { get { throw null; } } + public System.Collections.Generic.IList Term { get { throw null; } } public string TermStatus { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TermTemplate { get { throw null; } } + public System.Collections.Generic.IList TermTemplate { get { throw null; } } public long? UpdateTime { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.SuggestResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.SuggestResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.SuggestResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1798,7 +2103,10 @@ internal TermSearchResultValue() { } public string GlossaryName { get { throw null; } } public string Guid { get { throw null; } } public string Name { get { throw null; } } + protected virtual Azure.Analytics.Purview.DataMap.TermSearchResultValue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.TermSearchResultValue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.TermSearchResultValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.TermSearchResultValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1822,6 +2130,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.TermStatus left, Azure.Analytics.Purview.DataMap.TermStatus right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.TermStatus (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.TermStatus? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.TermStatus left, Azure.Analytics.Purview.DataMap.TermStatus right) { throw null; } public override string ToString() { throw null; } } @@ -1843,7 +2152,11 @@ public TermTemplateDef() { } public string UpdatedBy { get { throw null; } set { } } public long? UpdateTime { get { throw null; } set { } } public long? Version { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.TermTemplateDef JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Analytics.Purview.DataMap.TermTemplateDef (Azure.Response response) { throw null; } + protected virtual Azure.Analytics.Purview.DataMap.TermTemplateDef PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.TermTemplateDef System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.TermTemplateDef System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1856,7 +2169,10 @@ public TimeBoundary() { } public string EndTime { get { throw null; } set { } } public string StartTime { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } + protected virtual Azure.Analytics.Purview.DataMap.TimeBoundary JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Analytics.Purview.DataMap.TimeBoundary PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } Azure.Analytics.Purview.DataMap.TimeBoundary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Analytics.Purview.DataMap.TimeBoundary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1886,6 +2202,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override int GetHashCode() { throw null; } public static bool operator ==(Azure.Analytics.Purview.DataMap.TypeCategory left, Azure.Analytics.Purview.DataMap.TypeCategory right) { throw null; } public static implicit operator Azure.Analytics.Purview.DataMap.TypeCategory (string value) { throw null; } + public static implicit operator Azure.Analytics.Purview.DataMap.TypeCategory? (string value) { throw null; } public static bool operator !=(Azure.Analytics.Purview.DataMap.TypeCategory left, Azure.Analytics.Purview.DataMap.TypeCategory right) { throw null; } public override string ToString() { throw null; } } @@ -1905,8 +2222,14 @@ protected TypeDefinition() { } public virtual Azure.Response BatchUpdate(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task> BatchUpdateAsync(Azure.Analytics.Purview.DataMap.AtlasTypesDef body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task BatchUpdateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response Delete(string name, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string name, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response Delete(string name, Azure.RequestContext context) { throw null; } + public virtual Azure.Response Delete(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string name, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetBusinessMetadataById(string guid, Azure.RequestContext context) { throw null; } public virtual Azure.Response GetBusinessMetadataById(string guid, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetBusinessMetadataByIdAsync(string guid, Azure.RequestContext context) { throw null; } @@ -1975,15 +2298,11 @@ protected TypeDefinition() { } public virtual Azure.Response GetTermTemplateByName(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task GetTermTemplateByNameAsync(string name, Azure.RequestContext context) { throw null; } public virtual System.Threading.Tasks.Task> GetTermTemplateByNameAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTypeDefinition(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTypeDefinition(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetTypeDefinitionAsync(bool? includeTermTemplate = default(bool?), Azure.Analytics.Purview.DataMap.TypeCategory? type = default(Azure.Analytics.Purview.DataMap.TypeCategory?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionAsync(bool? includeTermTemplate, string type, Azure.RequestContext context) { throw null; } } } namespace Microsoft.Extensions.Azure { - public static partial class AnalyticsPurviewDataMapClientBuilderExtensions + public static partial class PurviewDataMapClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddDataMapClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddDataMapClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } From c5de4fe96080664408264aa6dfeb22aaee1b641f Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 15:12:44 -0800 Subject: [PATCH 06/14] Update and fix the Generated Samples manually --- .../Generated/Samples/Samples_Discovery.cs | 184 +++++++++--------- .../tests/Generated/Samples/Samples_Entity.cs | 54 ++--- .../Generated/Samples/Samples_Glossary.cs | 8 +- .../Generated/Samples/Samples_Lineage.cs | 16 +- .../Generated/Samples/Samples_Relationship.cs | 8 +- .../Samples/Samples_TypeDefinition.cs | 46 +++-- 6 files changed, 162 insertions(+), 154 deletions(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs index 41336ceed35b..844a680723f0 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs @@ -23,7 +23,7 @@ public void Example_Discovery_Query_DiscoveryQuery() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -115,7 +115,7 @@ public async Task Example_Discovery_Query_DiscoveryQuery_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -207,7 +207,7 @@ public void Example_Discovery_Query_DiscoveryQuery_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -285,7 +285,7 @@ public async Task Example_Discovery_Query_DiscoveryQuery_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -363,7 +363,7 @@ public void Example_Discovery_Query_DiscoveryQueryAnd() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -397,7 +397,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAnd_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -431,7 +431,7 @@ public void Example_Discovery_Query_DiscoveryQueryAnd_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -462,7 +462,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAnd_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -493,7 +493,7 @@ public void Example_Discovery_Query_DiscoveryQueryAndOrNested() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -545,7 +545,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAndOrNested_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -597,7 +597,7 @@ public void Example_Discovery_Query_DiscoveryQueryAndOrNested_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -646,7 +646,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAndOrNested_Convenience_ { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -695,7 +695,7 @@ public void Example_Discovery_Query_DiscoveryQueryAssetType() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -827,7 +827,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAssetType_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -959,7 +959,7 @@ public void Example_Discovery_Query_DiscoveryQueryAssetType_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1088,7 +1088,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAssetType_Convenience_As { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1217,7 +1217,7 @@ public void Example_Discovery_Query_DiscoveryQueryAttribute() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1259,7 +1259,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAttribute_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1301,7 +1301,7 @@ public void Example_Discovery_Query_DiscoveryQueryAttribute_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1340,7 +1340,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryAttribute_Convenience_As { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1379,7 +1379,7 @@ public void Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribute() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1427,7 +1427,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribut { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1475,7 +1475,7 @@ public void Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribute_Conv { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1520,7 +1520,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribut { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1565,7 +1565,7 @@ public void Example_Discovery_Query_DiscoveryQueryClassification() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1588,7 +1588,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryClassification_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1611,7 +1611,7 @@ public void Example_Discovery_Query_DiscoveryQueryClassification_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1631,7 +1631,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryClassification_Convenien { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1651,7 +1651,7 @@ public void Example_Discovery_Query_DiscoveryQueryCollection() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1673,7 +1673,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryCollection_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1695,7 +1695,7 @@ public void Example_Discovery_Query_DiscoveryQueryCollection_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1714,7 +1714,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryCollection_Convenience_A { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1733,7 +1733,7 @@ public void Example_Discovery_Query_DiscoveryQueryFacet() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1778,7 +1778,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryFacet_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1823,7 +1823,7 @@ public void Example_Discovery_Query_DiscoveryQueryFacet_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1859,7 +1859,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryFacet_Convenience_Async( { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1895,7 +1895,7 @@ public void Example_Discovery_Query_DiscoveryQueryFileExtension() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1923,7 +1923,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryFileExtension_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -1951,7 +1951,7 @@ public void Example_Discovery_Query_DiscoveryQueryFileExtension_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -1976,7 +1976,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryFileExtension_Convenienc { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2001,7 +2001,7 @@ public void Example_Discovery_Query_DiscoveryQueryGlossaryTerm() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2065,7 +2065,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryGlossaryTerm_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2129,7 +2129,7 @@ public void Example_Discovery_Query_DiscoveryQueryGlossaryTerm_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2186,7 +2186,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryGlossaryTerm_Convenience { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2243,7 +2243,7 @@ public void Example_Discovery_Query_DiscoveryQueryId() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2271,7 +2271,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryId_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2299,7 +2299,7 @@ public void Example_Discovery_Query_DiscoveryQueryId_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2324,7 +2324,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryId_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2349,7 +2349,7 @@ public void Example_Discovery_Query_DiscoveryQueryNot() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2374,7 +2374,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryNot_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2399,7 +2399,7 @@ public void Example_Discovery_Query_DiscoveryQueryNot_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2421,7 +2421,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryNot_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2443,7 +2443,7 @@ public void Example_Discovery_Query_DiscoveryQueryObjectType() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2499,7 +2499,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryObjectType_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2555,7 +2555,7 @@ public void Example_Discovery_Query_DiscoveryQueryObjectType_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2608,7 +2608,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryObjectType_Convenience_A { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2661,7 +2661,7 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationContinuationPage() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2754,7 +2754,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationContinuationPa { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -2847,7 +2847,7 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationContinuationPage_Con { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -2926,7 +2926,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationContinuationPa { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3005,7 +3005,7 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationFirstPage() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3097,7 +3097,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationFirstPage_Asyn { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3189,7 +3189,7 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationFirstPage_Convenienc { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3267,7 +3267,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationFirstPage_Conv { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3345,7 +3345,7 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationLastPage() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3438,7 +3438,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationLastPage_Async { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3531,7 +3531,7 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationLastPage_Convenience { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3610,7 +3610,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationLastPage_Conve { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3689,7 +3689,7 @@ public void Example_Discovery_Query_DiscoveryQuerySystemTime() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3725,7 +3725,7 @@ public async Task Example_Discovery_Query_DiscoveryQuerySystemTime_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3761,7 +3761,7 @@ public void Example_Discovery_Query_DiscoveryQuerySystemTime_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3794,7 +3794,7 @@ public async Task Example_Discovery_Query_DiscoveryQuerySystemTime_Convenience_A { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -3827,7 +3827,7 @@ public void Example_Discovery_Query_DiscoveryQueryTaxonomy() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3899,7 +3899,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryTaxonomy_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -3971,7 +3971,7 @@ public void Example_Discovery_Query_DiscoveryQueryTaxonomy_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -4037,7 +4037,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryTaxonomy_Convenience_Asy { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -4103,7 +4103,7 @@ public void Example_Discovery_Query_DiscoveryQueryTermAssignment() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4141,7 +4141,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryTermAssignment_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4179,7 +4179,7 @@ public void Example_Discovery_Query_DiscoveryQueryTermAssignment_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -4214,7 +4214,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryTermAssignment_Convenien { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -4249,7 +4249,7 @@ public void Example_Discovery_Query_DiscoveryQueryType() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4278,7 +4278,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryType_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4307,7 +4307,7 @@ public void Example_Discovery_Query_DiscoveryQueryType_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -4333,7 +4333,7 @@ public async Task Example_Discovery_Query_DiscoveryQueryType_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); QueryConfig body = new QueryConfig { @@ -4359,7 +4359,7 @@ public void Example_Discovery_Suggest_DiscoverySuggest() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4389,7 +4389,7 @@ public async Task Example_Discovery_Suggest_DiscoverySuggest_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4419,7 +4419,7 @@ public void Example_Discovery_Suggest_DiscoverySuggest_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); SuggestConfig body = new SuggestConfig { @@ -4446,7 +4446,7 @@ public async Task Example_Discovery_Suggest_DiscoverySuggest_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); SuggestConfig body = new SuggestConfig { @@ -4473,7 +4473,7 @@ public void Example_Discovery_AutoComplete_DiscoveryAutoComplete() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4503,7 +4503,7 @@ public async Task Example_Discovery_AutoComplete_DiscoveryAutoComplete_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); using RequestContent content = RequestContent.Create(new { @@ -4533,7 +4533,7 @@ public void Example_Discovery_AutoComplete_DiscoveryAutoComplete_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); AutoCompleteConfig body = new AutoCompleteConfig { @@ -4560,7 +4560,7 @@ public async Task Example_Discovery_AutoComplete_DiscoveryAutoComplete_Convenien { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(apiVersion: "2023-09-01"); + Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(); AutoCompleteConfig body = new AutoCompleteConfig { diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs index b13def507e16..b21b22214087 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs @@ -23,7 +23,7 @@ public void Example_Entity_CreateOrUpdate_EntityAddCustomAttribute() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -58,7 +58,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityAddCustomAttribute_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -93,7 +93,7 @@ public void Example_Entity_CreateOrUpdate_EntityAddCustomAttribute_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -127,7 +127,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityAddCustomAttribute_Conveni { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -161,7 +161,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreate() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -214,7 +214,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreate_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -267,7 +267,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreate_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -319,7 +319,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreate_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -371,7 +371,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -410,7 +410,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -449,7 +449,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText_Conve { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -487,7 +487,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -525,7 +525,7 @@ public void Example_Entity_CreateOrUpdate_EntityUpdate() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -578,7 +578,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityUpdate_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -631,7 +631,7 @@ public void Example_Entity_CreateOrUpdate_EntityUpdate_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -683,7 +683,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityUpdate_Convenience_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo { @@ -1293,7 +1293,7 @@ public void Example_Entity_GetEntity_EntityGet() TokenCredential credential = new DefaultAzureCredential(); Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - Response response = client.GetEntity("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", true, null, null); + Response response = client.Get("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", true, null, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1307,7 +1307,7 @@ public async Task Example_Entity_GetEntity_EntityGet_Async() TokenCredential credential = new DefaultAzureCredential(); Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - Response response = await client.GetEntityAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", true, null, null); + Response response = await client.GetAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", true, null, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -1321,7 +1321,7 @@ public void Example_Entity_GetEntity_EntityGet_Convenience() TokenCredential credential = new DefaultAzureCredential(); Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - Response response = client.GetEntity("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); + Response response = client.Get("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); } [Test] @@ -1332,7 +1332,7 @@ public async Task Example_Entity_GetEntity_EntityGet_Convenience_Async() TokenCredential credential = new DefaultAzureCredential(); Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); - Response response = await client.GetEntityAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); + Response response = await client.GetAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); } [Test] @@ -2866,7 +2866,8 @@ public void Example_Entity_ImportBusinessMetadata_EntityImportBusinessMetadata_C Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); BusinessMetadataOptions body = null; - Response response = client.ImportBusinessMetadata(body); + using RequestContent content = body?.ToRequestContent(); + Response response = client.ImportBusinessMetadata(content, "multipart/form-data"); } [Test] @@ -2878,7 +2879,8 @@ public async Task Example_Entity_ImportBusinessMetadata_EntityImportBusinessMeta Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); BusinessMetadataOptions body = null; - Response response = await client.ImportBusinessMetadataAsync(body); + using RequestContent content = body?.ToRequestContent(); + Response response = await client.ImportBusinessMetadataAsync(content, "multipart/form-data"); } [Test] @@ -3231,7 +3233,7 @@ public void Example_Entity_MoveEntitiesToCollection_EntityMoveEntitiesToCollecti { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -3253,7 +3255,7 @@ public async Task Example_Entity_MoveEntitiesToCollection_EntityMoveEntitiesToCo { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); using RequestContent content = RequestContent.Create(new { @@ -3275,7 +3277,7 @@ public void Example_Entity_MoveEntitiesToCollection_EntityMoveEntitiesToCollecti { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); MoveEntitiesConfig body = new MoveEntitiesConfig { @@ -3290,7 +3292,7 @@ public async Task Example_Entity_MoveEntitiesToCollection_EntityMoveEntitiesToCo { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Entity client = new DataMapClient(endpoint, credential).GetEntityClient(apiVersion: "2023-09-01"); + Entity client = new DataMapClient(endpoint, credential).GetEntityClient(); MoveEntitiesConfig body = new MoveEntitiesConfig { diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs index 287bb64debbe..7723ff563e23 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs @@ -2023,7 +2023,7 @@ public void Example_Glossary_GetGlossary_GlossaryGet() TokenCredential credential = new DefaultAzureCredential(); Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - Response response = client.GetGlossary("47029611-67a1-42d5-8766-90eb904f7f22", null); + Response response = client.Get("47029611-67a1-42d5-8766-90eb904f7f22", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2037,7 +2037,7 @@ public async Task Example_Glossary_GetGlossary_GlossaryGet_Async() TokenCredential credential = new DefaultAzureCredential(); Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - Response response = await client.GetGlossaryAsync("47029611-67a1-42d5-8766-90eb904f7f22", null); + Response response = await client.GetAsync("47029611-67a1-42d5-8766-90eb904f7f22", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -2051,7 +2051,7 @@ public void Example_Glossary_GetGlossary_GlossaryGet_Convenience() TokenCredential credential = new DefaultAzureCredential(); Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - Response response = client.GetGlossary("47029611-67a1-42d5-8766-90eb904f7f22"); + Response response = client.Get("47029611-67a1-42d5-8766-90eb904f7f22"); } [Test] @@ -2062,7 +2062,7 @@ public async Task Example_Glossary_GetGlossary_GlossaryGet_Convenience_Async() TokenCredential credential = new DefaultAzureCredential(); Glossary client = new DataMapClient(endpoint, credential).GetGlossaryClient(); - Response response = await client.GetGlossaryAsync("47029611-67a1-42d5-8766-90eb904f7f22"); + Response response = await client.GetAsync("47029611-67a1-42d5-8766-90eb904f7f22"); } [Test] diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs index f588c40a0df0..8989ff2a90f8 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs @@ -24,7 +24,7 @@ public void Example_Lineage_GetLineage_LineageGet() TokenCredential credential = new DefaultAzureCredential(); Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - Response response = client.GetLineage("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); + Response response = client.Get("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -38,7 +38,7 @@ public async Task Example_Lineage_GetLineage_LineageGet_Async() TokenCredential credential = new DefaultAzureCredential(); Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - Response response = await client.GetLineageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); + Response response = await client.GetAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -52,7 +52,7 @@ public void Example_Lineage_GetLineage_LineageGet_Convenience() TokenCredential credential = new DefaultAzureCredential(); Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - Response response = client.GetLineage("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); + Response response = client.Get("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); } [Test] @@ -63,7 +63,7 @@ public async Task Example_Lineage_GetLineage_LineageGet_Convenience_Async() TokenCredential credential = new DefaultAzureCredential(); Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); - Response response = await client.GetLineageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); + Response response = await client.GetAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); } [Test] @@ -72,7 +72,7 @@ public void Example_Lineage_GetNextPage_LineageGetNextPage() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); + Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); Response response = client.GetNextPage("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); @@ -86,7 +86,7 @@ public async Task Example_Lineage_GetNextPage_LineageGetNextPage_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); + Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); Response response = await client.GetNextPageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT"); @@ -100,7 +100,7 @@ public void Example_Lineage_GetNextPage_LineageGetNextPage_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); + Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); Response response = client.GetNextPage("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); } @@ -111,7 +111,7 @@ public async Task Example_Lineage_GetNextPage_LineageGetNextPage_Convenience_Asy { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(apiVersion: "2023-09-01"); + Lineage client = new DataMapClient(endpoint, credential).GetLineageClient(); Response response = await client.GetNextPageAsync("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input); } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs index b6dc4d4a673d..fa0926581d6e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs @@ -336,7 +336,7 @@ public void Example_Relationship_GetRelationship_RelationshipGet() TokenCredential credential = new DefaultAzureCredential(); Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - Response response = client.GetRelationship("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", false, null); + Response response = client.Get("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", false, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -350,7 +350,7 @@ public async Task Example_Relationship_GetRelationship_RelationshipGet_Async() TokenCredential credential = new DefaultAzureCredential(); Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - Response response = await client.GetRelationshipAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", false, null); + Response response = await client.GetAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb", false, null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -364,7 +364,7 @@ public void Example_Relationship_GetRelationship_RelationshipGet_Convenience() TokenCredential credential = new DefaultAzureCredential(); Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - Response response = client.GetRelationship("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); + Response response = client.Get("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); } [Test] @@ -375,7 +375,7 @@ public async Task Example_Relationship_GetRelationship_RelationshipGet_Convenien TokenCredential credential = new DefaultAzureCredential(); Relationship client = new DataMapClient(endpoint, credential).GetRelationshipClient(); - Response response = await client.GetRelationshipAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); + Response response = await client.GetAsync("5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb"); } [Test] diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs index b016234ce36a..9e1dc7ffcc62 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs @@ -743,13 +743,18 @@ public async Task Example_TypeDefinition_Delete_TypeDelete_Async() Console.WriteLine(response.Status); } + // NOTE: The following samples are commented out because the new code generator + // doesn't generate a GetTypeDefinition method with these signatures. + // These will need to be regenerated when sample generation is added to the new generator. + + /* [Test] [Ignore("Only validating compilation of examples")] public void Example_TypeDefinition_GetTypeDefinition_TypeList() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTypeDefinition(true, null, null); @@ -763,7 +768,7 @@ public async Task Example_TypeDefinition_GetTypeDefinition_TypeList_Async() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTypeDefinitionAsync(true, null, null); @@ -777,7 +782,7 @@ public void Example_TypeDefinition_GetTypeDefinition_TypeList_Convenience() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTypeDefinition(); } @@ -788,7 +793,7 @@ public async Task Example_TypeDefinition_GetTypeDefinition_TypeList_Convenience_ { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTypeDefinitionAsync(); } @@ -799,7 +804,7 @@ public void Example_TypeDefinition_GetTypeDefinition_TypeListEnumDefs() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTypeDefinition(null, "ENUM", null); @@ -813,7 +818,7 @@ public async Task Example_TypeDefinition_GetTypeDefinition_TypeListEnumDefs_Asyn { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTypeDefinitionAsync(null, "ENUM", null); @@ -827,7 +832,7 @@ public void Example_TypeDefinition_GetTypeDefinition_TypeListEnumDefs_Convenienc { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTypeDefinition(); } @@ -838,7 +843,7 @@ public async Task Example_TypeDefinition_GetTypeDefinition_TypeListEnumDefs_Conv { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTypeDefinitionAsync(); } @@ -849,7 +854,7 @@ public void Example_TypeDefinition_GetTypeDefinition_TypeListTermTemplateDefs() { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTypeDefinition(null, "TERM_TEMPLATE", null); @@ -863,7 +868,7 @@ public async Task Example_TypeDefinition_GetTypeDefinition_TypeListTermTemplateD { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTypeDefinitionAsync(null, "TERM_TEMPLATE", null); @@ -877,7 +882,7 @@ public void Example_TypeDefinition_GetTypeDefinition_TypeListTermTemplateDefs_Co { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTypeDefinition(); } @@ -888,10 +893,11 @@ public async Task Example_TypeDefinition_GetTypeDefinition_TypeListTermTemplateD { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTypeDefinitionAsync(); } + */ [Test] [Ignore("Only validating compilation of examples")] @@ -1971,7 +1977,7 @@ public void Example_TypeDefinition_GetTermTemplateById_TypeGetTermTemplateDefByG { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTermTemplateById("d776af9c-985c-4168-abb2-477523dbfc70", null); @@ -1985,7 +1991,7 @@ public async Task Example_TypeDefinition_GetTermTemplateById_TypeGetTermTemplate { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTermTemplateByIdAsync("d776af9c-985c-4168-abb2-477523dbfc70", null); @@ -1999,7 +2005,7 @@ public void Example_TypeDefinition_GetTermTemplateById_TypeGetTermTemplateDefByG { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTermTemplateById("d776af9c-985c-4168-abb2-477523dbfc70"); } @@ -2010,7 +2016,7 @@ public async Task Example_TypeDefinition_GetTermTemplateById_TypeGetTermTemplate { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTermTemplateByIdAsync("d776af9c-985c-4168-abb2-477523dbfc70"); } @@ -2021,7 +2027,7 @@ public void Example_TypeDefinition_GetTermTemplateByName_TypeGetTermTemplateDefB { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTermTemplateByName("MS KPI", null); @@ -2035,7 +2041,7 @@ public async Task Example_TypeDefinition_GetTermTemplateByName_TypeGetTermTempla { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTermTemplateByNameAsync("MS KPI", null); @@ -2049,7 +2055,7 @@ public void Example_TypeDefinition_GetTermTemplateByName_TypeGetTermTemplateDefB { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = client.GetTermTemplateByName("MS KPI"); } @@ -2060,7 +2066,7 @@ public async Task Example_TypeDefinition_GetTermTemplateByName_TypeGetTermTempla { Uri endpoint = new Uri(""); TokenCredential credential = new DefaultAzureCredential(); - TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(apiVersion: "2023-09-01"); + TypeDefinition client = new DataMapClient(endpoint, credential).GetTypeDefinitionClient(); Response response = await client.GetTermTemplateByNameAsync("MS KPI"); } From af32720928dad0453390b81e36260a1ed38ab45c Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 15:18:26 -0800 Subject: [PATCH 07/14] Remove references of autogenerated code for samples --- .../tests/{Generated => }/Samples/Samples_Discovery.cs | 2 -- .../tests/{Generated => }/Samples/Samples_Entity.cs | 2 -- .../tests/{Generated => }/Samples/Samples_Glossary.cs | 2 -- .../tests/{Generated => }/Samples/Samples_Lineage.cs | 2 -- .../tests/{Generated => }/Samples/Samples_Relationship.cs | 2 -- .../tests/{Generated => }/Samples/Samples_TypeDefinition.cs | 2 -- 6 files changed, 12 deletions(-) rename sdk/purview/Azure.Analytics.Purview.DataMap/tests/{Generated => }/Samples/Samples_Discovery.cs (99%) rename sdk/purview/Azure.Analytics.Purview.DataMap/tests/{Generated => }/Samples/Samples_Entity.cs (99%) rename sdk/purview/Azure.Analytics.Purview.DataMap/tests/{Generated => }/Samples/Samples_Glossary.cs (99%) rename sdk/purview/Azure.Analytics.Purview.DataMap/tests/{Generated => }/Samples/Samples_Lineage.cs (99%) rename sdk/purview/Azure.Analytics.Purview.DataMap/tests/{Generated => }/Samples/Samples_Relationship.cs (99%) rename sdk/purview/Azure.Analytics.Purview.DataMap/tests/{Generated => }/Samples/Samples_TypeDefinition.cs (99%) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Discovery.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Discovery.cs index 844a680723f0..6791492fd044 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Discovery.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Entity.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Entity.cs index b21b22214087..5fec5fda11f4 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Entity.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Glossary.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Glossary.cs index 7723ff563e23..9d71fb07c4e5 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Glossary.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Glossary.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Lineage.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Lineage.cs index 8989ff2a90f8..c9c93304ba7f 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Lineage.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Lineage.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Relationship.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Relationship.cs index fa0926581d6e..ce5f3b739c56 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_Relationship.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs index 9e1dc7ffcc62..bda347f77ff6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_TypeDefinition.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; From 4aa5f0581c41c4e1e8a31bd1946dd2ef67e76f92 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 16:56:15 -0800 Subject: [PATCH 08/14] Remove debugging files --- .../Configuration.json | 12 - .../tspCodeModel.json | 75154 ---------------- 2 files changed, 75166 deletions(-) delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json delete mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json b/sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json deleted file mode 100644 index ede811efdd93..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/Configuration.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "package-name": "Azure.Analytics.Purview.DataMap", - "namespace": "Azure.Analytics.Purview.DataMap", - "model-namespace": false, - "license": { - "name": "MIT License", - "company": "Microsoft Corporation", - "link": "https://mit-license.org", - "header": "Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License.", - "description": "Copyright (c) Microsoft Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE." - } -} diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json b/sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json deleted file mode 100644 index a9e10f59b4d8..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tspCodeModel.json +++ /dev/null @@ -1,75154 +0,0 @@ -{ - "name": "Azure.Analytics.Purview.DataMap", - "apiVersions": [ - "2023-09-01" - ], - "enums": [ - { - "$id": "1", - "kind": "enum", - "name": "EntityStatus", - "crossLanguageDefinitionId": "PurviewDataMap.EntityStatus", - "valueType": { - "$id": "2", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "3", - "kind": "enumvalue", - "name": "Active", - "value": "ACTIVE", - "valueType": { - "$ref": "2" - }, - "enumType": { - "$ref": "1" - }, - "doc": "The status is active.", - "decorators": [] - }, - { - "$id": "4", - "kind": "enumvalue", - "name": "Deleted", - "value": "DELETED", - "valueType": { - "$ref": "2" - }, - "enumType": { - "$ref": "1" - }, - "doc": "The status is deleted.", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Status - can be active or deleted", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "5", - "kind": "enum", - "name": "AtlasTermAssignmentStatus", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentStatus", - "valueType": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "7", - "kind": "enumvalue", - "name": "Discovered", - "value": "DISCOVERED", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "The status is discovered.", - "decorators": [] - }, - { - "$id": "8", - "kind": "enumvalue", - "name": "Proposed", - "value": "PROPOSED", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "The status is proposed.", - "decorators": [] - }, - { - "$id": "9", - "kind": "enumvalue", - "name": "Imported", - "value": "IMPORTED", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "The status is imported.", - "decorators": [] - }, - { - "$id": "10", - "kind": "enumvalue", - "name": "Validated", - "value": "VALIDATED", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "The status is validated.", - "decorators": [] - }, - { - "$id": "11", - "kind": "enumvalue", - "name": "Deprecated", - "value": "DEPRECATED", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "The status is deprecated.", - "decorators": [] - }, - { - "$id": "12", - "kind": "enumvalue", - "name": "Obsolete", - "value": "OBSOLETE", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "The status is obsolete.", - "decorators": [] - }, - { - "$id": "13", - "kind": "enumvalue", - "name": "Other", - "value": "OTHER", - "valueType": { - "$ref": "6" - }, - "enumType": { - "$ref": "5" - }, - "doc": "Other status.", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Status for term assignment", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "14", - "kind": "enum", - "name": "AtlasSortType", - "crossLanguageDefinitionId": "PurviewDataMap.SortType", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "16", - "kind": "enumvalue", - "name": "None", - "value": "NONE", - "valueType": { - "$ref": "15" - }, - "enumType": { - "$ref": "14" - }, - "doc": "No sorting order", - "decorators": [] - }, - { - "$id": "17", - "kind": "enumvalue", - "name": "Ascend", - "value": "ASC", - "valueType": { - "$ref": "15" - }, - "enumType": { - "$ref": "14" - }, - "doc": "Use ascending order for sorting", - "decorators": [] - }, - { - "$id": "18", - "kind": "enumvalue", - "name": "Descend", - "value": "DESC", - "valueType": { - "$ref": "15" - }, - "enumType": { - "$ref": "14" - }, - "doc": "Use descending order for sorting", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Type for sorting", - "isFixed": false, - "isFlags": false, - "usage": "Output,Json", - "decorators": [] - }, - { - "$id": "19", - "kind": "enum", - "name": "ImportStatus", - "crossLanguageDefinitionId": "PurviewDataMap.ImportStatus", - "valueType": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "21", - "kind": "enumvalue", - "name": "Success", - "value": "SUCCESS", - "valueType": { - "$ref": "20" - }, - "enumType": { - "$ref": "19" - }, - "doc": "Success", - "decorators": [] - }, - { - "$id": "22", - "kind": "enumvalue", - "name": "Failed", - "value": "FAILED", - "valueType": { - "$ref": "20" - }, - "enumType": { - "$ref": "19" - }, - "doc": "Failed", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Status for import", - "isFixed": false, - "isFlags": false, - "usage": "Output,Json", - "decorators": [] - }, - { - "$id": "23", - "kind": "enum", - "name": "AtlasTermRelationshipStatus", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermRelationshipStatus", - "valueType": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "25", - "kind": "enumvalue", - "name": "Draft", - "value": "DRAFT", - "valueType": { - "$ref": "24" - }, - "enumType": { - "$ref": "23" - }, - "doc": "draft", - "decorators": [] - }, - { - "$id": "26", - "kind": "enumvalue", - "name": "Active", - "value": "ACTIVE", - "valueType": { - "$ref": "24" - }, - "enumType": { - "$ref": "23" - }, - "doc": "active", - "decorators": [] - }, - { - "$id": "27", - "kind": "enumvalue", - "name": "Deprecated", - "value": "DEPRECATED", - "valueType": { - "$ref": "24" - }, - "enumType": { - "$ref": "23" - }, - "doc": "deprecated", - "decorators": [] - }, - { - "$id": "28", - "kind": "enumvalue", - "name": "Obsolete", - "value": "OBSOLETE", - "valueType": { - "$ref": "24" - }, - "enumType": { - "$ref": "23" - }, - "doc": "obsolete", - "decorators": [] - }, - { - "$id": "29", - "kind": "enumvalue", - "name": "Other", - "value": "OTHER", - "valueType": { - "$ref": "24" - }, - "enumType": { - "$ref": "23" - }, - "doc": "other", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Status for atlas term relationship", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "30", - "kind": "enum", - "name": "TermStatus", - "crossLanguageDefinitionId": "PurviewDataMap.TermStatus", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "32", - "kind": "enumvalue", - "name": "Draft", - "value": "Draft", - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - }, - "doc": "draft", - "decorators": [] - }, - { - "$id": "33", - "kind": "enumvalue", - "name": "Approved", - "value": "Approved", - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - }, - "doc": "approved", - "decorators": [] - }, - { - "$id": "34", - "kind": "enumvalue", - "name": "Alert", - "value": "Alert", - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - }, - "doc": "alert", - "decorators": [] - }, - { - "$id": "35", - "kind": "enumvalue", - "name": "Expired", - "value": "Expired", - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - }, - "doc": "expired", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Status for term", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "36", - "kind": "enum", - "name": "StatusAtlasRelationship", - "crossLanguageDefinitionId": "PurviewDataMap.StatusAtlasRelationship", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "38", - "kind": "enumvalue", - "name": "Active", - "value": "ACTIVE", - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - }, - "doc": "active", - "decorators": [] - }, - { - "$id": "39", - "kind": "enumvalue", - "name": "Deleted", - "value": "DELETED", - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - }, - "doc": "deleted", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Status for atlas relationship", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "40", - "kind": "enum", - "name": "SearchSortOrder", - "crossLanguageDefinitionId": "PurviewDataMap.SearchSortOrder", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "42", - "kind": "enumvalue", - "name": "Ascend", - "value": "asc", - "valueType": { - "$ref": "41" - }, - "enumType": { - "$ref": "40" - }, - "doc": "Use ascending order for sorting", - "decorators": [] - }, - { - "$id": "43", - "kind": "enumvalue", - "name": "Descend", - "value": "desc", - "valueType": { - "$ref": "41" - }, - "enumType": { - "$ref": "40" - }, - "doc": "Use descending order for sorting", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Search sort order", - "isFixed": false, - "isFlags": false, - "usage": "Input,Json", - "decorators": [] - }, - { - "$id": "44", - "kind": "enum", - "name": "LineageDirection", - "crossLanguageDefinitionId": "PurviewDataMap.LineageDirection", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "46", - "kind": "enumvalue", - "name": "Input", - "value": "INPUT", - "valueType": { - "$ref": "45" - }, - "enumType": { - "$ref": "44" - }, - "doc": "input", - "decorators": [] - }, - { - "$id": "47", - "kind": "enumvalue", - "name": "Output", - "value": "OUTPUT", - "valueType": { - "$ref": "45" - }, - "enumType": { - "$ref": "44" - }, - "doc": "output", - "decorators": [] - }, - { - "$id": "48", - "kind": "enumvalue", - "name": "Both", - "value": "BOTH", - "valueType": { - "$ref": "45" - }, - "enumType": { - "$ref": "44" - }, - "doc": "both", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Lineage direction", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "49", - "kind": "enum", - "name": "TypeCategory", - "crossLanguageDefinitionId": "PurviewDataMap.TypeCategory", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "51", - "kind": "enumvalue", - "name": "Primitive", - "value": "PRIMITIVE", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "primitive", - "decorators": [] - }, - { - "$id": "52", - "kind": "enumvalue", - "name": "ObjectIdType", - "value": "OBJECT_ID_TYPE", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "object id type", - "decorators": [] - }, - { - "$id": "53", - "kind": "enumvalue", - "name": "Enum", - "value": "ENUM", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "enum", - "decorators": [] - }, - { - "$id": "54", - "kind": "enumvalue", - "name": "Struct", - "value": "STRUCT", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "struct", - "decorators": [] - }, - { - "$id": "55", - "kind": "enumvalue", - "name": "Classification", - "value": "CLASSIFICATION", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "classification", - "decorators": [] - }, - { - "$id": "56", - "kind": "enumvalue", - "name": "Entity", - "value": "ENTITY", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "entity", - "decorators": [] - }, - { - "$id": "57", - "kind": "enumvalue", - "name": "Array", - "value": "ARRAY", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "array", - "decorators": [] - }, - { - "$id": "58", - "kind": "enumvalue", - "name": "Map", - "value": "MAP", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "map", - "decorators": [] - }, - { - "$id": "59", - "kind": "enumvalue", - "name": "Relationship", - "value": "RELATIONSHIP", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "relationship", - "decorators": [] - }, - { - "$id": "60", - "kind": "enumvalue", - "name": "TermTemplate", - "value": "TERM_TEMPLATE", - "valueType": { - "$ref": "50" - }, - "enumType": { - "$ref": "49" - }, - "doc": "term template", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Type Category", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "61", - "kind": "enum", - "name": "RoundingMode", - "crossLanguageDefinitionId": "PurviewDataMap.RoundingMode", - "valueType": { - "$id": "62", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "63", - "kind": "enumvalue", - "name": "Up", - "value": "UP", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "up", - "decorators": [] - }, - { - "$id": "64", - "kind": "enumvalue", - "name": "Down", - "value": "DOWN", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "down", - "decorators": [] - }, - { - "$id": "65", - "kind": "enumvalue", - "name": "Ceiling", - "value": "CEILING", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "ceiling", - "decorators": [] - }, - { - "$id": "66", - "kind": "enumvalue", - "name": "Floor", - "value": "FLOOR", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "floor", - "decorators": [] - }, - { - "$id": "67", - "kind": "enumvalue", - "name": "HalfUp", - "value": "HALF_UP", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "half up", - "decorators": [] - }, - { - "$id": "68", - "kind": "enumvalue", - "name": "HalfDown", - "value": "HALF_DOWN", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "half down", - "decorators": [] - }, - { - "$id": "69", - "kind": "enumvalue", - "name": "HalfEven", - "value": "HALF_EVEN", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "half even", - "decorators": [] - }, - { - "$id": "70", - "kind": "enumvalue", - "name": "Unnecessary", - "value": "UNNECESSARY", - "valueType": { - "$ref": "62" - }, - "enumType": { - "$ref": "61" - }, - "doc": "unnecessary", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Rounding Mode", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "71", - "kind": "enum", - "name": "CardinalityValue", - "crossLanguageDefinitionId": "PurviewDataMap.CardinalityValue", - "valueType": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "73", - "kind": "enumvalue", - "name": "Single", - "value": "SINGLE", - "valueType": { - "$ref": "72" - }, - "enumType": { - "$ref": "71" - }, - "doc": "single", - "decorators": [] - }, - { - "$id": "74", - "kind": "enumvalue", - "name": "List", - "value": "LIST", - "valueType": { - "$ref": "72" - }, - "enumType": { - "$ref": "71" - }, - "doc": "list", - "decorators": [] - }, - { - "$id": "75", - "kind": "enumvalue", - "name": "Set", - "value": "SET", - "valueType": { - "$ref": "72" - }, - "enumType": { - "$ref": "71" - }, - "doc": "set", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Cardinality", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "76", - "kind": "enum", - "name": "RelationshipCategory", - "crossLanguageDefinitionId": "PurviewDataMap.RelationshipCategory", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "78", - "kind": "enumvalue", - "name": "Association", - "value": "ASSOCIATION", - "valueType": { - "$ref": "77" - }, - "enumType": { - "$ref": "76" - }, - "doc": "association", - "decorators": [] - }, - { - "$id": "79", - "kind": "enumvalue", - "name": "Aggregation", - "value": "AGGREGATION", - "valueType": { - "$ref": "77" - }, - "enumType": { - "$ref": "76" - }, - "doc": "aggregation", - "decorators": [] - }, - { - "$id": "80", - "kind": "enumvalue", - "name": "Composition", - "value": "COMPOSITION", - "valueType": { - "$ref": "77" - }, - "enumType": { - "$ref": "76" - }, - "doc": "composition", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Relationship Category", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "81", - "kind": "enum", - "name": "BusinessAttributeUpdateBehavior", - "crossLanguageDefinitionId": "PurviewDataMap.BusinessAttributeUpdateBehavior", - "valueType": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "83", - "kind": "enumvalue", - "name": "Ignore", - "value": "ignore", - "valueType": { - "$ref": "82" - }, - "enumType": { - "$ref": "81" - }, - "doc": "Ignore the business attribute payload for update.", - "decorators": [] - }, - { - "$id": "84", - "kind": "enumvalue", - "name": "Replace", - "value": "replace", - "valueType": { - "$ref": "82" - }, - "enumType": { - "$ref": "81" - }, - "doc": "Replace all the business attributes using the payload.", - "decorators": [] - }, - { - "$id": "85", - "kind": "enumvalue", - "name": "Merge", - "value": "merge", - "valueType": { - "$ref": "82" - }, - "enumType": { - "$ref": "81" - }, - "doc": "Merge the business attributes. Business attributes will not be updated if not provided.", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Enum for business attribute update behavior", - "isFixed": false, - "isFlags": false, - "usage": "Input", - "decorators": [] - }, - { - "$id": "86", - "kind": "enum", - "name": "ApiVersions", - "crossLanguageDefinitionId": "PurviewDataMap.ApiVersions", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "88", - "kind": "enumvalue", - "name": "v2023_09_01", - "value": "2023-09-01", - "valueType": { - "$ref": "87" - }, - "enumType": { - "$ref": "86" - }, - "doc": "2023-09-01 service API version", - "decorators": [] - } - ], - "namespace": "Azure.Analytics.Purview.DataMap", - "doc": "Service API versions", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - } - ], - "constants": [ - { - "$id": "89", - "kind": "constant", - "name": "createOrUpdateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "91", - "kind": "constant", - "name": "createOrUpdateContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "93", - "kind": "constant", - "name": "getByIdsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "95", - "kind": "constant", - "name": "batchCreateOrUpdateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "97", - "kind": "constant", - "name": "batchCreateOrUpdateContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "99", - "kind": "constant", - "name": "batchDeleteContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "101", - "kind": "constant", - "name": "addClassificationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "103", - "kind": "constant", - "name": "getContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "105", - "kind": "constant", - "name": "updateAttributeByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "107", - "kind": "constant", - "name": "updateAttributeByIdContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "109", - "kind": "constant", - "name": "deleteContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "111", - "kind": "constant", - "name": "getClassificationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "113", - "kind": "constant", - "name": "getClassificationsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "115", - "kind": "constant", - "name": "addClassificationsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "117", - "kind": "constant", - "name": "updateClassificationsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "119", - "kind": "constant", - "name": "getByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "121", - "kind": "constant", - "name": "updateByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "123", - "kind": "constant", - "name": "updateByUniqueAttributeContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "125", - "kind": "constant", - "name": "deleteByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "127", - "kind": "constant", - "name": "addClassificationsByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "128", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "129", - "kind": "constant", - "name": "updateClassificationsUniqueByAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "131", - "kind": "constant", - "name": "batchSetClassificationsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "133", - "kind": "constant", - "name": "batchSetClassificationsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "135", - "kind": "constant", - "name": "batchGetByUniqueAttributesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "137", - "kind": "constant", - "name": "getHeaderContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "139", - "kind": "constant", - "name": "removeBusinessMetadataContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "141", - "kind": "constant", - "name": "addOrUpdateBusinessMetadataContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "143", - "kind": "constant", - "name": "removeBusinessMetadataAttributesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "145", - "kind": "constant", - "name": "addOrUpdateBusinessMetadataAttributesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "147", - "kind": "constant", - "name": "getBusinessMetadataTemplateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "148", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "149", - "kind": "constant", - "name": "GetBusinessMetadataTemplateResponseContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "151", - "kind": "constant", - "name": "ImportBusinessMetadataRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "153", - "kind": "constant", - "name": "importBusinessMetadataContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "155", - "kind": "constant", - "name": "ImportBusinessMetadataRequestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - { - "$id": "157", - "kind": "constant", - "name": "removeLabelsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "159", - "kind": "constant", - "name": "setLabelsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "161", - "kind": "constant", - "name": "addLabelContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "163", - "kind": "constant", - "name": "removeLabelsByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "165", - "kind": "constant", - "name": "setLabelsByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "167", - "kind": "constant", - "name": "addLabelsByUniqueAttributeContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "169", - "kind": "constant", - "name": "moveEntitiesToCollectionContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "170", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "171", - "kind": "constant", - "name": "moveEntitiesToCollectionContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "173", - "kind": "constant", - "name": "batchGetContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "174", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "175", - "kind": "constant", - "name": "createContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "177", - "kind": "constant", - "name": "createContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "179", - "kind": "constant", - "name": "createCategoriesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "181", - "kind": "constant", - "name": "createCategoriesContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "183", - "kind": "constant", - "name": "createCategoryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "185", - "kind": "constant", - "name": "createCategoryContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "186", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "187", - "kind": "constant", - "name": "getCategoryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "188", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "189", - "kind": "constant", - "name": "updateCategoryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "191", - "kind": "constant", - "name": "updateCategoryContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "193", - "kind": "constant", - "name": "partialUpdateCategoryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "195", - "kind": "constant", - "name": "partialUpdateCategoryContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "197", - "kind": "constant", - "name": "getRelatedCategoriesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "199", - "kind": "constant", - "name": "getCategoryTermsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "201", - "kind": "constant", - "name": "createTermContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "203", - "kind": "constant", - "name": "createTermContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "205", - "kind": "constant", - "name": "getTermContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "206", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "207", - "kind": "constant", - "name": "updateTermContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "209", - "kind": "constant", - "name": "updateTermContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "211", - "kind": "constant", - "name": "partialUpdateTermContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "213", - "kind": "constant", - "name": "partialUpdateTermContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "214", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "215", - "kind": "constant", - "name": "createTermsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "217", - "kind": "constant", - "name": "createTermsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "219", - "kind": "constant", - "name": "getEntitiesAssignedWithTermContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "221", - "kind": "constant", - "name": "assignTermToEntitiesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "223", - "kind": "constant", - "name": "deleteTermAssignmentFromEntitiesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "225", - "kind": "constant", - "name": "getRelatedTermsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "227", - "kind": "constant", - "name": "getContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "229", - "kind": "constant", - "name": "updateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "231", - "kind": "constant", - "name": "updateContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "232", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "233", - "kind": "constant", - "name": "getCategoriesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "234", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "235", - "kind": "constant", - "name": "getCategoriesHeadersContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "237", - "kind": "constant", - "name": "getDetailedContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "239", - "kind": "constant", - "name": "partialUpdateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "241", - "kind": "constant", - "name": "partialUpdateContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "242", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "243", - "kind": "constant", - "name": "getTermsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "245", - "kind": "constant", - "name": "getTermHeadersContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "246", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "247", - "kind": "constant", - "name": "queryContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "249", - "kind": "constant", - "name": "queryContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "251", - "kind": "constant", - "name": "suggestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "253", - "kind": "constant", - "name": "suggestContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "255", - "kind": "constant", - "name": "autoCompleteContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "256", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "257", - "kind": "constant", - "name": "autoCompleteContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "259", - "kind": "constant", - "name": "getContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "261", - "kind": "constant", - "name": "getNextPageContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "263", - "kind": "constant", - "name": "getByUniqueAttributeContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "265", - "kind": "constant", - "name": "createContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "267", - "kind": "constant", - "name": "createContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "269", - "kind": "constant", - "name": "updateContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "271", - "kind": "constant", - "name": "updateContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "273", - "kind": "constant", - "name": "getContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "275", - "kind": "constant", - "name": "getBusinessMetadataByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "277", - "kind": "constant", - "name": "getBusinessMetadataByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "279", - "kind": "constant", - "name": "getClassificationByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "280", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "281", - "kind": "constant", - "name": "getClassificationByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "283", - "kind": "constant", - "name": "getEntityByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "285", - "kind": "constant", - "name": "getEntityByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "287", - "kind": "constant", - "name": "getEnumByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "288", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "289", - "kind": "constant", - "name": "getEnumByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "291", - "kind": "constant", - "name": "getRelationshipByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "293", - "kind": "constant", - "name": "getRelationshipByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "294", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "295", - "kind": "constant", - "name": "getStructByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "297", - "kind": "constant", - "name": "getStructByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "298", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "299", - "kind": "constant", - "name": "getByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "301", - "kind": "constant", - "name": "getByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "303", - "kind": "constant", - "name": "getContentType4", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "304", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "305", - "kind": "constant", - "name": "batchCreateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "307", - "kind": "constant", - "name": "batchCreateContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "309", - "kind": "constant", - "name": "batchUpdateContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "310", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "311", - "kind": "constant", - "name": "batchUpdateContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "312", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "313", - "kind": "constant", - "name": "batchDeleteContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "315", - "kind": "constant", - "name": "getHeadersContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "317", - "kind": "constant", - "name": "getTermTemplateByIdContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "318", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "319", - "kind": "constant", - "name": "getTermTemplateByNameContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "321", - "kind": "model", - "name": "AtlasEntityWithExtInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityWithExtInfo", - "usage": "Input,Output,Json", - "doc": "An instance of an entity along with extended info - like hive_table,\nhive_database.", - "decorators": [], - "properties": [ - { - "$id": "322", - "kind": "property", - "name": "referredEntities", - "serializedName": "referredEntities", - "doc": "The referred entities.", - "type": { - "$id": "323", - "kind": "dict", - "keyType": { - "$id": "324", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "325", - "kind": "model", - "name": "AtlasEntity", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity", - "usage": "Input,Output,Json", - "doc": "An instance of an entity - like hive_table, hive_database.", - "decorators": [], - "properties": [ - { - "$id": "326", - "kind": "property", - "name": "attributes", - "serializedName": "attributes", - "doc": "The attributes of the struct.", - "type": { - "$id": "327", - "kind": "dict", - "keyType": { - "$id": "328", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "329", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.attributes", - "serializationOptions": { - "json": { - "name": "attributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "330", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "332", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "333", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "334", - "kind": "property", - "name": "businessAttributes", - "serializedName": "businessAttributes", - "doc": "Business attributes", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.businessAttributes", - "serializationOptions": { - "json": { - "name": "businessAttributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "335", - "kind": "property", - "name": "classifications", - "serializedName": "classifications", - "doc": "An array of classifications.", - "type": { - "$id": "336", - "kind": "array", - "name": "ArrayAtlasClassification", - "valueType": { - "$id": "337", - "kind": "model", - "name": "AtlasClassification", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification", - "usage": "Input,Output,Json", - "doc": "An instance of a classification; it doesn't have an identity, this object\nexists only when associated with an entity.", - "decorators": [], - "properties": [ - { - "$id": "338", - "kind": "property", - "name": "attributes", - "serializedName": "attributes", - "doc": "The attributes of the struct.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.attributes", - "serializationOptions": { - "json": { - "name": "attributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "339", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "341", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "342", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "343", - "kind": "property", - "name": "entityGuid", - "serializedName": "entityGuid", - "doc": "The GUID of the entity.", - "type": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.entityGuid", - "serializationOptions": { - "json": { - "name": "entityGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "345", - "kind": "property", - "name": "entityStatus", - "serializedName": "entityStatus", - "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", - "type": { - "$ref": "1" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.entityStatus", - "serializationOptions": { - "json": { - "name": "entityStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "346", - "kind": "property", - "name": "removePropagationsOnEntityDelete", - "serializedName": "removePropagationsOnEntityDelete", - "doc": "Determines if propagations will be removed on entity deletion.", - "type": { - "$id": "347", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.removePropagationsOnEntityDelete", - "serializationOptions": { - "json": { - "name": "removePropagationsOnEntityDelete" - } - }, - "isHttpMetadata": false - }, - { - "$id": "348", - "kind": "property", - "name": "validityPeriods", - "serializedName": "validityPeriods", - "doc": "An array of time boundaries indicating validity periods.", - "type": { - "$id": "349", - "kind": "array", - "name": "ArrayTimeBoundary", - "valueType": { - "$id": "350", - "kind": "model", - "name": "TimeBoundary", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary", - "usage": "Input,Output,Json", - "doc": "Captures time-boundary details", - "decorators": [], - "properties": [ - { - "$id": "351", - "kind": "property", - "name": "endTime", - "serializedName": "endTime", - "doc": "The end of the time boundary.", - "type": { - "$id": "352", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary.endTime", - "serializationOptions": { - "json": { - "name": "endTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "353", - "kind": "property", - "name": "startTime", - "serializedName": "startTime", - "doc": "The start of the time boundary.", - "type": { - "$id": "354", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary.startTime", - "serializationOptions": { - "json": { - "name": "startTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "355", - "kind": "property", - "name": "timeZone", - "serializedName": "timeZone", - "doc": "The timezone of the time boundary.", - "type": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeBoundary.timeZone", - "serializationOptions": { - "json": { - "name": "timeZone" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassification.validityPeriods", - "serializationOptions": { - "json": { - "name": "validityPeriods" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.classifications", - "serializationOptions": { - "json": { - "name": "classifications" - } - }, - "isHttpMetadata": false - }, - { - "$id": "357", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "358", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "359", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "361", - "kind": "property", - "name": "customAttributes", - "serializedName": "customAttributes", - "doc": "Custom Attribute", - "type": { - "$id": "362", - "kind": "dict", - "keyType": { - "$id": "363", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "364", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.customAttributes", - "serializationOptions": { - "json": { - "name": "customAttributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "365", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the entity.", - "type": { - "$id": "366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "367", - "kind": "property", - "name": "homeId", - "serializedName": "homeId", - "doc": "The home ID of the entity.", - "type": { - "$id": "368", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.homeId", - "serializationOptions": { - "json": { - "name": "homeId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "369", - "kind": "property", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection ID of the entity.", - "type": { - "$id": "370", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.collectionId", - "serializationOptions": { - "json": { - "name": "collectionId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "371", - "kind": "property", - "name": "isIncomplete", - "serializedName": "isIncomplete", - "doc": "Whether it is a shell entity", - "type": { - "$id": "372", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.isIncomplete", - "serializationOptions": { - "json": { - "name": "isIncomplete" - } - }, - "isHttpMetadata": false - }, - { - "$id": "373", - "kind": "property", - "name": "labels", - "serializedName": "labels", - "doc": "labels", - "type": { - "$id": "374", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "375", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.labels", - "serializationOptions": { - "json": { - "name": "labels" - } - }, - "isHttpMetadata": false - }, - { - "$id": "376", - "kind": "property", - "name": "meanings", - "serializedName": "meanings", - "doc": "An array of term assignment headers indicating the meanings of the entity.", - "type": { - "$id": "377", - "kind": "array", - "name": "ArrayAtlasTermAssignmentHeader", - "valueType": { - "$id": "378", - "kind": "model", - "name": "AtlasTermAssignmentHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader", - "usage": "Input,Output,Json", - "doc": "The header for term assignment.", - "decorators": [], - "properties": [ - { - "$id": "379", - "kind": "property", - "name": "confidence", - "serializedName": "confidence", - "doc": "The confidence of the term assignment.", - "type": { - "$id": "380", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.confidence", - "serializationOptions": { - "json": { - "name": "confidence" - } - }, - "isHttpMetadata": false - }, - { - "$id": "381", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "382", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "383", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the term assignment.", - "type": { - "$id": "384", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "385", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "387", - "kind": "property", - "name": "expression", - "serializedName": "expression", - "doc": "The expression of the term assignment.", - "type": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.expression", - "serializationOptions": { - "json": { - "name": "expression" - } - }, - "isHttpMetadata": false - }, - { - "$id": "389", - "kind": "property", - "name": "relationGuid", - "serializedName": "relationGuid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "390", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "391", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.relationGuid", - "serializationOptions": { - "json": { - "name": "relationGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "392", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "The status of terms assignment.", - "type": { - "$ref": "5" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - }, - { - "$id": "393", - "kind": "property", - "name": "steward", - "serializedName": "steward", - "doc": "The steward of the term.", - "type": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.steward", - "serializationOptions": { - "json": { - "name": "steward" - } - }, - "isHttpMetadata": false - }, - { - "$id": "395", - "kind": "property", - "name": "termGuid", - "serializedName": "termGuid", - "doc": "The GUID of the term.", - "type": { - "$id": "396", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "397", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermAssignmentHeader.termGuid", - "serializationOptions": { - "json": { - "name": "termGuid" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.meanings", - "serializationOptions": { - "json": { - "name": "meanings" - } - }, - "isHttpMetadata": false - }, - { - "$id": "398", - "kind": "property", - "name": "provenanceType", - "serializedName": "provenanceType", - "doc": "Used to record the provenance of an instance of an entity or relationship.", - "type": { - "$id": "399", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.provenanceType", - "serializationOptions": { - "json": { - "name": "provenanceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "400", - "kind": "property", - "name": "proxy", - "serializedName": "proxy", - "doc": "Determines if there's a proxy.", - "type": { - "$id": "401", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.proxy", - "serializationOptions": { - "json": { - "name": "proxy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "402", - "kind": "property", - "name": "relationshipAttributes", - "serializedName": "relationshipAttributes", - "doc": "The attributes of relationship.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.relationshipAttributes", - "serializationOptions": { - "json": { - "name": "relationshipAttributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "403", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", - "type": { - "$ref": "1" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - }, - { - "$id": "404", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "405", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "406", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "407", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "408", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the entity.", - "type": { - "$id": "409", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "410", - "kind": "property", - "name": "contacts", - "serializedName": "contacts", - "doc": "The dictionary of contacts for entities. Key could be Expert or Owner.", - "type": { - "$id": "411", - "kind": "dict", - "keyType": { - "$id": "412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "413", - "kind": "array", - "name": "ArrayContactInfo", - "valueType": { - "$id": "414", - "kind": "model", - "name": "ContactInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.ContactInfo", - "usage": "Input,Output,Json", - "doc": "ContactInfo", - "decorators": [], - "properties": [ - { - "$id": "415", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Azure Active Directory object Id.", - "type": { - "$id": "416", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ContactInfo.id", - "serializationOptions": { - "json": { - "name": "id" - } - }, - "isHttpMetadata": false - }, - { - "$id": "417", - "kind": "property", - "name": "info", - "serializedName": "info", - "doc": "additional information to describe this contact.", - "type": { - "$id": "418", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ContactInfo.info", - "serializationOptions": { - "json": { - "name": "info" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntity.contacts", - "serializationOptions": { - "json": { - "name": "contacts" - } - }, - "isHttpMetadata": false - } - ] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityWithExtInfo.referredEntities", - "serializationOptions": { - "json": { - "name": "referredEntities" - } - }, - "isHttpMetadata": false - }, - { - "$id": "419", - "kind": "property", - "name": "entity", - "serializedName": "entity", - "doc": "An instance of an entity - like hive_table, hive_database.", - "type": { - "$ref": "325" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityWithExtInfo.entity", - "serializationOptions": { - "json": { - "name": "entity" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "325" - }, - { - "$ref": "337" - }, - { - "$ref": "350" - }, - { - "$ref": "378" - }, - { - "$ref": "414" - }, - { - "$id": "420", - "kind": "model", - "name": "EntityMutationResult", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult", - "usage": "Output,Json", - "doc": "The mutation response result of entity.", - "decorators": [], - "properties": [ - { - "$id": "421", - "kind": "property", - "name": "guidAssignments", - "serializedName": "guidAssignments", - "doc": "A map of GUID assignments with entities.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult.guidAssignments", - "serializationOptions": { - "json": { - "name": "guidAssignments" - } - }, - "isHttpMetadata": false - }, - { - "$id": "422", - "kind": "property", - "name": "mutatedEntities", - "serializedName": "mutatedEntities", - "doc": "The entity headers of mutated entities.", - "type": { - "$id": "423", - "kind": "dict", - "keyType": { - "$id": "424", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "425", - "kind": "array", - "name": "ArrayAtlasEntityHeader", - "valueType": { - "$id": "426", - "kind": "model", - "name": "AtlasEntityHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader", - "usage": "Input,Output,Json", - "doc": "An instance of an entity - like hive_table, hive_database.", - "decorators": [], - "properties": [ - { - "$id": "427", - "kind": "property", - "name": "attributes", - "serializedName": "attributes", - "doc": "The attributes of the struct.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.attributes", - "serializationOptions": { - "json": { - "name": "attributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "428", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "429", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "430", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "431", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "432", - "kind": "property", - "name": "classificationNames", - "serializedName": "classificationNames", - "doc": "An array of classification names.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.classificationNames", - "serializationOptions": { - "json": { - "name": "classificationNames" - } - }, - "isHttpMetadata": false - }, - { - "$id": "433", - "kind": "property", - "name": "classifications", - "serializedName": "classifications", - "doc": "An array of classifications.", - "type": { - "$ref": "336" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.classifications", - "serializationOptions": { - "json": { - "name": "classifications" - } - }, - "isHttpMetadata": false - }, - { - "$id": "434", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "435", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "436", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the record.", - "type": { - "$id": "437", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "438", - "kind": "property", - "name": "isIncomplete", - "serializedName": "isIncomplete", - "doc": "Whether it is a shell entity", - "type": { - "$id": "439", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.isIncomplete", - "serializationOptions": { - "json": { - "name": "isIncomplete" - } - }, - "isHttpMetadata": false - }, - { - "$id": "440", - "kind": "property", - "name": "labels", - "serializedName": "labels", - "doc": "labels", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.labels", - "serializationOptions": { - "json": { - "name": "labels" - } - }, - "isHttpMetadata": false - }, - { - "$id": "441", - "kind": "property", - "name": "meaningNames", - "serializedName": "meaningNames", - "doc": "An array of meanings.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.meaningNames", - "serializationOptions": { - "json": { - "name": "meaningNames" - } - }, - "isHttpMetadata": false - }, - { - "$id": "442", - "kind": "property", - "name": "meanings", - "serializedName": "meanings", - "doc": "An array of term assignment headers.", - "type": { - "$ref": "377" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.meanings", - "serializationOptions": { - "json": { - "name": "meanings" - } - }, - "isHttpMetadata": false - }, - { - "$id": "443", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", - "type": { - "$ref": "1" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeader.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult.mutatedEntities", - "serializationOptions": { - "json": { - "name": "mutatedEntities" - } - }, - "isHttpMetadata": false - }, - { - "$id": "444", - "kind": "property", - "name": "partialUpdatedEntities", - "serializedName": "partialUpdatedEntities", - "doc": "An array of entity headers that partially updated.", - "type": { - "$ref": "425" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.EntityMutationResult.partialUpdatedEntities", - "serializationOptions": { - "json": { - "name": "partialUpdatedEntities" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "426" - }, - { - "$id": "445", - "kind": "model", - "name": "AtlasErrorResponse", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse", - "usage": "Json,Exception", - "doc": "An error response from the service", - "decorators": [], - "properties": [ - { - "$id": "446", - "kind": "property", - "name": "requestId", - "serializedName": "requestId", - "doc": "The request ID.", - "type": { - "$id": "447", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "448", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse.requestId", - "serializationOptions": { - "json": { - "name": "requestId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "449", - "kind": "property", - "name": "errorCode", - "serializedName": "errorCode", - "doc": "The error code.", - "type": { - "$id": "450", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse.errorCode", - "serializationOptions": { - "json": { - "name": "errorCode" - } - }, - "isHttpMetadata": false - }, - { - "$id": "451", - "kind": "property", - "name": "errorMessage", - "serializedName": "errorMessage", - "doc": "The error message.", - "type": { - "$id": "452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasErrorResponse.errorMessage", - "serializationOptions": { - "json": { - "name": "errorMessage" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "453", - "kind": "model", - "name": "AtlasEntitiesWithExtInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntitiesWithExtInfo", - "usage": "Input,Output,Json", - "doc": "An instance of an entity along with extended info - like hive_table,\nhive_database.", - "decorators": [], - "properties": [ - { - "$id": "454", - "kind": "property", - "name": "referredEntities", - "serializedName": "referredEntities", - "doc": "The referred entities.", - "type": { - "$ref": "323" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntitiesWithExtInfo.referredEntities", - "serializationOptions": { - "json": { - "name": "referredEntities" - } - }, - "isHttpMetadata": false - }, - { - "$id": "455", - "kind": "property", - "name": "entities", - "serializedName": "entities", - "doc": "An array of entities.", - "type": { - "$id": "456", - "kind": "array", - "name": "ArrayAtlasEntity", - "valueType": { - "$ref": "325" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntitiesWithExtInfo.entities", - "serializationOptions": { - "json": { - "name": "entities" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "457", - "kind": "model", - "name": "ClassificationAssociateConfig", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.ClassificationAssociateOptions", - "usage": "Input,Json", - "doc": "The request payload for classification association.", - "decorators": [], - "properties": [ - { - "$id": "458", - "kind": "property", - "name": "classification", - "serializedName": "classification", - "doc": "An instance of a classification; it doesn't have an identity, this object\nexists only when associated with an entity.", - "type": { - "$ref": "337" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ClassificationAssociateOptions.classification", - "serializationOptions": { - "json": { - "name": "classification" - } - }, - "isHttpMetadata": false - }, - { - "$id": "459", - "kind": "property", - "name": "entityGuids", - "serializedName": "entityGuids", - "doc": "The GUID of the entity.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ClassificationAssociateOptions.entityGuids", - "serializationOptions": { - "json": { - "name": "entityGuids" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "460", - "kind": "model", - "name": "AtlasClassifications", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications", - "usage": "Output,Json", - "doc": "REST serialization friendly list.", - "decorators": [], - "properties": [ - { - "$id": "461", - "kind": "property", - "name": "list", - "serializedName": "list", - "doc": "An array of objects.", - "type": { - "$id": "462", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "463", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.list", - "serializationOptions": { - "json": { - "name": "list" - } - }, - "isHttpMetadata": false - }, - { - "$id": "464", - "kind": "property", - "name": "pageSize", - "serializedName": "pageSize", - "doc": "The size of the page.", - "type": { - "$id": "465", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.pageSize", - "serializationOptions": { - "json": { - "name": "pageSize" - } - }, - "isHttpMetadata": false - }, - { - "$id": "466", - "kind": "property", - "name": "sortBy", - "serializedName": "sortBy", - "doc": "The sorted by field.", - "type": { - "$id": "467", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.sortBy", - "serializationOptions": { - "json": { - "name": "sortBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "468", - "kind": "property", - "name": "sortType", - "serializedName": "sortType", - "doc": "to specify whether the result should be sorted? If yes, whether asc or desc.", - "type": { - "$ref": "14" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.sortType", - "serializationOptions": { - "json": { - "name": "sortType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "469", - "kind": "property", - "name": "startIndex", - "serializedName": "startIndex", - "doc": "The start index of the page.", - "type": { - "$id": "470", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.startIndex", - "serializationOptions": { - "json": { - "name": "startIndex" - } - }, - "isHttpMetadata": false - }, - { - "$id": "471", - "kind": "property", - "name": "totalCount", - "serializedName": "totalCount", - "doc": "The total count of items.", - "type": { - "$id": "472", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassifications.totalCount", - "serializationOptions": { - "json": { - "name": "totalCount" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "473", - "kind": "model", - "name": "AtlasEntityHeaders", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeaders", - "usage": "Input,Json", - "doc": "An instance of an entity header map.", - "decorators": [], - "properties": [ - { - "$id": "474", - "kind": "property", - "name": "guidHeaderMap", - "serializedName": "guidHeaderMap", - "doc": "The description of the guid header map,", - "type": { - "$id": "475", - "kind": "dict", - "keyType": { - "$id": "476", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "426" - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityHeaders.guidHeaderMap", - "serializationOptions": { - "json": { - "name": "guidHeaderMap" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "477", - "kind": "model", - "name": "BusinessMetadataOptions", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.BusinessMetadataOptions", - "usage": "Input,MultipartFormData", - "doc": "Business metadata to send to the service", - "decorators": [], - "properties": [ - { - "$id": "478", - "kind": "property", - "name": "file", - "serializedName": "file", - "doc": "InputStream of file", - "type": { - "$id": "479", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.BusinessMetadataOptions.file", - "serializationOptions": { - "multipart": { - "isFilePart": true, - "isMulti": false, - "defaultContentTypes": [ - "application/octet-stream" - ], - "name": "file", - "headers": [] - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "480", - "kind": "model", - "name": "BulkImportResult", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.BulkImportResult", - "usage": "Output,Json", - "doc": "Bulk import result", - "decorators": [], - "properties": [ - { - "$id": "481", - "kind": "property", - "name": "failedImportInfoList", - "serializedName": "failedImportInfoList", - "doc": "failed importInfoList", - "type": { - "$id": "482", - "kind": "array", - "name": "ArrayImportInfo", - "valueType": { - "$id": "483", - "kind": "model", - "name": "ImportInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo", - "usage": "Output,Json", - "doc": "ImportInfo", - "decorators": [], - "properties": [ - { - "$id": "484", - "kind": "property", - "name": "childObjectName", - "serializedName": "childObjectName", - "doc": "childObjectName", - "type": { - "$id": "485", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.childObjectName", - "serializationOptions": { - "json": { - "name": "childObjectName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "486", - "kind": "property", - "name": "importStatus", - "serializedName": "importStatus", - "doc": "importStatus", - "type": { - "$ref": "19" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.importStatus", - "serializationOptions": { - "json": { - "name": "importStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "487", - "kind": "property", - "name": "parentObjectName", - "serializedName": "parentObjectName", - "doc": "parentObjectName", - "type": { - "$id": "488", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.parentObjectName", - "serializationOptions": { - "json": { - "name": "parentObjectName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "489", - "kind": "property", - "name": "remarks", - "serializedName": "remarks", - "doc": "remarks", - "type": { - "$id": "490", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ImportInfo.remarks", - "serializationOptions": { - "json": { - "name": "remarks" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.BulkImportResult.failedImportInfoList", - "serializationOptions": { - "json": { - "name": "failedImportInfoList" - } - }, - "isHttpMetadata": false - }, - { - "$id": "491", - "kind": "property", - "name": "successImportInfoList", - "serializedName": "successImportInfoList", - "doc": "successful importInfoList", - "type": { - "$ref": "482" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.BulkImportResult.successImportInfoList", - "serializationOptions": { - "json": { - "name": "successImportInfoList" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "483" - }, - { - "$id": "492", - "kind": "model", - "name": "MoveEntitiesConfig", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.MoveEntitiesOptions", - "usage": "Input,Json", - "doc": "MoveEntitiesOptions", - "decorators": [], - "properties": [ - { - "$id": "493", - "kind": "property", - "name": "entityGuids", - "serializedName": "entityGuids", - "doc": "An array of entity guids to be moved to target collection.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.MoveEntitiesOptions.entityGuids", - "serializationOptions": { - "json": { - "name": "entityGuids" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "494", - "kind": "model", - "name": "AtlasGlossary", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary", - "usage": "Input,Output,Json", - "doc": "The glossary object.", - "decorators": [], - "properties": [ - { - "$id": "495", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "496", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "497", - "kind": "property", - "name": "classifications", - "serializedName": "classifications", - "doc": "An array of classifications.", - "type": { - "$ref": "336" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.classifications", - "serializationOptions": { - "json": { - "name": "classifications" - } - }, - "isHttpMetadata": false - }, - { - "$id": "498", - "kind": "property", - "name": "longDescription", - "serializedName": "longDescription", - "doc": "The long version description.", - "type": { - "$id": "499", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.longDescription", - "serializationOptions": { - "json": { - "name": "longDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "500", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the glossary object.", - "type": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "502", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "The qualified name of the glossary object.", - "type": { - "$id": "503", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "504", - "kind": "property", - "name": "shortDescription", - "serializedName": "shortDescription", - "doc": "The short version of description.", - "type": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.shortDescription", - "serializationOptions": { - "json": { - "name": "shortDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "506", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "507", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "508", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "509", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "510", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "512", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "513", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "514", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "515", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "516", - "kind": "property", - "name": "categories", - "serializedName": "categories", - "doc": "An array of categories.", - "type": { - "$id": "517", - "kind": "array", - "name": "ArrayAtlasRelatedCategoryHeader", - "valueType": { - "$id": "518", - "kind": "model", - "name": "AtlasRelatedCategoryHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader", - "usage": "Input,Output,Json", - "doc": "The header of the related category.", - "decorators": [], - "properties": [ - { - "$id": "519", - "kind": "property", - "name": "categoryGuid", - "serializedName": "categoryGuid", - "doc": "The GUID of the category.", - "type": { - "$id": "520", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.categoryGuid", - "serializationOptions": { - "json": { - "name": "categoryGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "521", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the category header.", - "type": { - "$id": "522", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "523", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "524", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "525", - "kind": "property", - "name": "parentCategoryGuid", - "serializedName": "parentCategoryGuid", - "doc": "The GUID of the parent category.", - "type": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.parentCategoryGuid", - "serializationOptions": { - "json": { - "name": "parentCategoryGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "527", - "kind": "property", - "name": "relationGuid", - "serializedName": "relationGuid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "528", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedCategoryHeader.relationGuid", - "serializationOptions": { - "json": { - "name": "relationGuid" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.categories", - "serializationOptions": { - "json": { - "name": "categories" - } - }, - "isHttpMetadata": false - }, - { - "$id": "529", - "kind": "property", - "name": "language", - "serializedName": "language", - "doc": "The language of the glossary.", - "type": { - "$id": "530", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.language", - "serializationOptions": { - "json": { - "name": "language" - } - }, - "isHttpMetadata": false - }, - { - "$id": "531", - "kind": "property", - "name": "terms", - "serializedName": "terms", - "doc": "An array of related term headers.", - "type": { - "$id": "532", - "kind": "array", - "name": "ArrayAtlasRelatedTermHeader", - "valueType": { - "$id": "533", - "kind": "model", - "name": "AtlasRelatedTermHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader", - "usage": "Input,Output,Json", - "doc": "The header of the related term.", - "decorators": [], - "properties": [ - { - "$id": "534", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the related term.", - "type": { - "$id": "535", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "536", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "538", - "kind": "property", - "name": "expression", - "serializedName": "expression", - "doc": "The expression of the term.", - "type": { - "$id": "539", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.expression", - "serializationOptions": { - "json": { - "name": "expression" - } - }, - "isHttpMetadata": false - }, - { - "$id": "540", - "kind": "property", - "name": "relationGuid", - "serializedName": "relationGuid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "541", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.relationGuid", - "serializationOptions": { - "json": { - "name": "relationGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "542", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "The status of term relationship.", - "type": { - "$ref": "23" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - }, - { - "$id": "543", - "kind": "property", - "name": "steward", - "serializedName": "steward", - "doc": "The steward of the term.", - "type": { - "$id": "544", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.steward", - "serializationOptions": { - "json": { - "name": "steward" - } - }, - "isHttpMetadata": false - }, - { - "$id": "545", - "kind": "property", - "name": "termGuid", - "serializedName": "termGuid", - "doc": "The GUID of the term.", - "type": { - "$id": "546", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedTermHeader.termGuid", - "serializationOptions": { - "json": { - "name": "termGuid" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.terms", - "serializationOptions": { - "json": { - "name": "terms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "547", - "kind": "property", - "name": "usage", - "serializedName": "usage", - "doc": "The usage of the glossary.", - "type": { - "$id": "548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossary.usage", - "serializationOptions": { - "json": { - "name": "usage" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "518" - }, - { - "$ref": "533" - }, - { - "$id": "549", - "kind": "model", - "name": "AtlasGlossaryCategory", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory", - "usage": "Input,Output,Json", - "doc": "The glossary category.", - "decorators": [], - "properties": [ - { - "$id": "550", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "551", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "552", - "kind": "property", - "name": "classifications", - "serializedName": "classifications", - "doc": "An array of classifications.", - "type": { - "$ref": "336" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.classifications", - "serializationOptions": { - "json": { - "name": "classifications" - } - }, - "isHttpMetadata": false - }, - { - "$id": "553", - "kind": "property", - "name": "longDescription", - "serializedName": "longDescription", - "doc": "The long version description.", - "type": { - "$id": "554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.longDescription", - "serializationOptions": { - "json": { - "name": "longDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "555", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the glossary object.", - "type": { - "$id": "556", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "557", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "The qualified name of the glossary object.", - "type": { - "$id": "558", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "559", - "kind": "property", - "name": "shortDescription", - "serializedName": "shortDescription", - "doc": "The short version of description.", - "type": { - "$id": "560", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.shortDescription", - "serializationOptions": { - "json": { - "name": "shortDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "561", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "562", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "563", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "564", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "565", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "566", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "567", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "568", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "569", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "570", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "571", - "kind": "property", - "name": "anchor", - "serializedName": "anchor", - "doc": "The glossary header with basic information.", - "type": { - "$id": "572", - "kind": "model", - "name": "AtlasGlossaryHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader", - "usage": "Input,Output,Json", - "doc": "The glossary header with basic information.", - "decorators": [], - "properties": [ - { - "$id": "573", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "574", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "575", - "kind": "property", - "name": "glossaryGuid", - "serializedName": "glossaryGuid", - "doc": "The GUID of the glossary.", - "type": { - "$id": "576", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader.glossaryGuid", - "serializationOptions": { - "json": { - "name": "glossaryGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "577", - "kind": "property", - "name": "relationGuid", - "serializedName": "relationGuid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "578", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryHeader.relationGuid", - "serializationOptions": { - "json": { - "name": "relationGuid" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.anchor", - "serializationOptions": { - "json": { - "name": "anchor" - } - }, - "isHttpMetadata": false - }, - { - "$id": "579", - "kind": "property", - "name": "childrenCategories", - "serializedName": "childrenCategories", - "doc": "An array of children categories.", - "type": { - "$ref": "517" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.childrenCategories", - "serializationOptions": { - "json": { - "name": "childrenCategories" - } - }, - "isHttpMetadata": false - }, - { - "$id": "580", - "kind": "property", - "name": "parentCategory", - "serializedName": "parentCategory", - "doc": "The header of the related category.", - "type": { - "$ref": "518" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.parentCategory", - "serializationOptions": { - "json": { - "name": "parentCategory" - } - }, - "isHttpMetadata": false - }, - { - "$id": "581", - "kind": "property", - "name": "terms", - "serializedName": "terms", - "doc": "An array of related term headers.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryCategory.terms", - "serializationOptions": { - "json": { - "name": "terms" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "572" - }, - { - "$id": "582", - "kind": "model", - "name": "AtlasGlossaryTerm", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm", - "usage": "Input,Output,Json", - "doc": "The glossary term.", - "decorators": [], - "properties": [ - { - "$id": "583", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "584", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "585", - "kind": "property", - "name": "classifications", - "serializedName": "classifications", - "doc": "An array of classifications.", - "type": { - "$ref": "336" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.classifications", - "serializationOptions": { - "json": { - "name": "classifications" - } - }, - "isHttpMetadata": false - }, - { - "$id": "586", - "kind": "property", - "name": "longDescription", - "serializedName": "longDescription", - "doc": "The long version description.", - "type": { - "$id": "587", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.longDescription", - "serializationOptions": { - "json": { - "name": "longDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "588", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the glossary object.", - "type": { - "$id": "589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "590", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "The qualified name of the glossary object.", - "type": { - "$id": "591", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "592", - "kind": "property", - "name": "shortDescription", - "serializedName": "shortDescription", - "doc": "The short version of description.", - "type": { - "$id": "593", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.shortDescription", - "serializationOptions": { - "json": { - "name": "shortDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "594", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "595", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "596", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "597", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "598", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "599", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "600", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "601", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "602", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "603", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "604", - "kind": "property", - "name": "abbreviation", - "serializedName": "abbreviation", - "doc": "The abbreviation of the term.", - "type": { - "$id": "605", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.abbreviation", - "serializationOptions": { - "json": { - "name": "abbreviation" - } - }, - "isHttpMetadata": false - }, - { - "$id": "606", - "kind": "property", - "name": "templateName", - "serializedName": "templateName", - "doc": "The name of the template.", - "type": { - "$ref": "462" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.templateName", - "serializationOptions": { - "json": { - "name": "templateName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "607", - "kind": "property", - "name": "anchor", - "serializedName": "anchor", - "doc": "The glossary header with basic information.", - "type": { - "$ref": "572" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.anchor", - "serializationOptions": { - "json": { - "name": "anchor" - } - }, - "isHttpMetadata": false - }, - { - "$id": "608", - "kind": "property", - "name": "antonyms", - "serializedName": "antonyms", - "doc": "An array of related term headers as antonyms.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.antonyms", - "serializationOptions": { - "json": { - "name": "antonyms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "609", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "Status of the AtlasGlossaryTerm", - "type": { - "$ref": "30" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - }, - { - "$id": "610", - "kind": "property", - "name": "nickName", - "serializedName": "nickName", - "doc": "The nick name of the term.", - "type": { - "$id": "611", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.nickName", - "serializationOptions": { - "json": { - "name": "nickName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "612", - "kind": "property", - "name": "hierarchyInfo", - "serializedName": "hierarchyInfo", - "doc": "The hierarchy information of the term.", - "type": { - "$id": "613", - "kind": "array", - "name": "ArrayPurviewObjectId", - "valueType": { - "$id": "614", - "kind": "model", - "name": "PurviewObjectId", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId", - "usage": "Input,Output,Json", - "doc": "PurviewObjectId", - "decorators": [], - "properties": [ - { - "$id": "615", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "616", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "617", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "618", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "619", - "kind": "property", - "name": "uniqueAttributes", - "serializedName": "uniqueAttributes", - "doc": "The unique attributes of the object.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.uniqueAttributes", - "serializationOptions": { - "json": { - "name": "uniqueAttributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "620", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "Name", - "type": { - "$id": "621", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "622", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "Display text", - "type": { - "$id": "623", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "624", - "kind": "property", - "name": "itemPath", - "serializedName": "itemPath", - "doc": "Item path", - "type": { - "$id": "625", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.itemPath", - "serializationOptions": { - "json": { - "name": "itemPath" - } - }, - "isHttpMetadata": false - }, - { - "$id": "626", - "kind": "property", - "name": "resourceId", - "serializedName": "resourceId", - "doc": "Resource Id", - "type": { - "$id": "627", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.resourceId", - "serializationOptions": { - "json": { - "name": "resourceId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "628", - "kind": "property", - "name": "properties", - "serializedName": "properties", - "doc": "Dictionary of ", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.PurviewObjectId.properties", - "serializationOptions": { - "json": { - "name": "properties" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.hierarchyInfo", - "serializationOptions": { - "json": { - "name": "hierarchyInfo" - } - }, - "isHttpMetadata": false - }, - { - "$id": "629", - "kind": "property", - "name": "resources", - "serializedName": "resources", - "doc": "An array of resource link for term", - "type": { - "$id": "630", - "kind": "array", - "name": "ArrayResourceLink", - "valueType": { - "$id": "631", - "kind": "model", - "name": "ResourceLink", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.ResourceLink", - "usage": "Input,Output,Json", - "doc": "ResourceLink", - "decorators": [], - "properties": [ - { - "$id": "632", - "kind": "property", - "name": "displayName", - "serializedName": "displayName", - "doc": "Display name for url.", - "type": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ResourceLink.displayName", - "serializationOptions": { - "json": { - "name": "displayName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "634", - "kind": "property", - "name": "url", - "serializedName": "url", - "doc": "web url. http or https", - "type": { - "$id": "635", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ResourceLink.url", - "serializationOptions": { - "json": { - "name": "url" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.resources", - "serializationOptions": { - "json": { - "name": "resources" - } - }, - "isHttpMetadata": false - }, - { - "$id": "636", - "kind": "property", - "name": "contacts", - "serializedName": "contacts", - "doc": "The dictionary of contacts for terms. Key could be Expert or Steward.", - "type": { - "$ref": "411" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.contacts", - "serializationOptions": { - "json": { - "name": "contacts" - } - }, - "isHttpMetadata": false - }, - { - "$id": "637", - "kind": "property", - "name": "attributes", - "serializedName": "attributes", - "doc": "The custom attributes of the term, which is map>.\nThe\nkey of the first layer map is term template name.", - "type": { - "$id": "638", - "kind": "dict", - "keyType": { - "$id": "639", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "327" - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.attributes", - "serializationOptions": { - "json": { - "name": "attributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "640", - "kind": "property", - "name": "assignedEntities", - "serializedName": "assignedEntities", - "doc": "An array of related object IDs.", - "type": { - "$id": "641", - "kind": "array", - "name": "ArrayAtlasRelatedObjectId", - "valueType": { - "$id": "642", - "kind": "model", - "name": "AtlasRelatedObjectId", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId", - "usage": "Input,Output,Json", - "doc": "Reference to an object-instance of AtlasEntity type used in relationship\nattribute values", - "decorators": [], - "properties": [ - { - "$id": "643", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "644", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "645", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "646", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "647", - "kind": "property", - "name": "uniqueAttributes", - "serializedName": "uniqueAttributes", - "doc": "The unique attributes of the object.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.uniqueAttributes", - "serializationOptions": { - "json": { - "name": "uniqueAttributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "648", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "650", - "kind": "property", - "name": "entityStatus", - "serializedName": "entityStatus", - "doc": "Status of the entity - can be active or deleted. Deleted entities are not\nremoved.", - "type": { - "$ref": "1" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.entityStatus", - "serializationOptions": { - "json": { - "name": "entityStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "651", - "kind": "property", - "name": "relationshipType", - "serializedName": "relationshipType", - "doc": "Relationship type", - "type": { - "$id": "652", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipType", - "serializationOptions": { - "json": { - "name": "relationshipType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "653", - "kind": "property", - "name": "relationshipAttributes", - "serializedName": "relationshipAttributes", - "doc": "Captures details of struct contents. Not instantiated directly, used only via\nAtlasEntity, AtlasClassification.", - "type": { - "$id": "654", - "kind": "model", - "name": "AtlasStruct", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct", - "usage": "Input,Output,Json", - "doc": "Captures details of struct contents. Not instantiated directly, used only via\nAtlasEntity, AtlasClassification.", - "decorators": [], - "properties": [ - { - "$id": "655", - "kind": "property", - "name": "attributes", - "serializedName": "attributes", - "doc": "The attributes of the struct.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct.attributes", - "serializationOptions": { - "json": { - "name": "attributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "656", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "657", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "658", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "659", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStruct.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipAttributes", - "serializationOptions": { - "json": { - "name": "relationshipAttributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "660", - "kind": "property", - "name": "relationshipGuid", - "serializedName": "relationshipGuid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "661", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "662", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipGuid", - "serializationOptions": { - "json": { - "name": "relationshipGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "663", - "kind": "property", - "name": "relationshipStatus", - "serializedName": "relationshipStatus", - "doc": "The enum of relationship status.", - "type": { - "$ref": "36" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelatedObjectId.relationshipStatus", - "serializationOptions": { - "json": { - "name": "relationshipStatus" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.assignedEntities", - "serializationOptions": { - "json": { - "name": "assignedEntities" - } - }, - "isHttpMetadata": false - }, - { - "$id": "664", - "kind": "property", - "name": "categories", - "serializedName": "categories", - "doc": "An array of term categorization headers.", - "type": { - "$id": "665", - "kind": "array", - "name": "ArrayAtlasTermCategorizationHeader", - "valueType": { - "$id": "666", - "kind": "model", - "name": "AtlasTermCategorizationHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader", - "usage": "Input,Output,Json", - "doc": "The basic information for term categorization.", - "decorators": [], - "properties": [ - { - "$id": "667", - "kind": "property", - "name": "categoryGuid", - "serializedName": "categoryGuid", - "doc": "The GUID of the category.", - "type": { - "$id": "668", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "669", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.categoryGuid", - "serializationOptions": { - "json": { - "name": "categoryGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "670", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the record.", - "type": { - "$id": "671", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "672", - "kind": "property", - "name": "displayText", - "serializedName": "displayText", - "doc": "The display text.", - "type": { - "$id": "673", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.displayText", - "serializationOptions": { - "json": { - "name": "displayText" - } - }, - "isHttpMetadata": false - }, - { - "$id": "674", - "kind": "property", - "name": "relationGuid", - "serializedName": "relationGuid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "675", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "676", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.relationGuid", - "serializationOptions": { - "json": { - "name": "relationGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "677", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "The status of term relationship.", - "type": { - "$ref": "23" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTermCategorizationHeader.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.categories", - "serializationOptions": { - "json": { - "name": "categories" - } - }, - "isHttpMetadata": false - }, - { - "$id": "678", - "kind": "property", - "name": "classifies", - "serializedName": "classifies", - "doc": "An array of related term headers.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.classifies", - "serializationOptions": { - "json": { - "name": "classifies" - } - }, - "isHttpMetadata": false - }, - { - "$id": "679", - "kind": "property", - "name": "examples", - "serializedName": "examples", - "doc": "An array of examples.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.examples", - "serializationOptions": { - "json": { - "name": "examples" - } - }, - "isHttpMetadata": false - }, - { - "$id": "680", - "kind": "property", - "name": "isA", - "serializedName": "isA", - "doc": "An array of related term headers indicating the is-a relationship.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.isA", - "serializationOptions": { - "json": { - "name": "isA" - } - }, - "isHttpMetadata": false - }, - { - "$id": "681", - "kind": "property", - "name": "preferredTerms", - "serializedName": "preferredTerms", - "doc": "An array of preferred related term headers.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.preferredTerms", - "serializationOptions": { - "json": { - "name": "preferredTerms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "682", - "kind": "property", - "name": "preferredToTerms", - "serializedName": "preferredToTerms", - "doc": "An array of related term headers that are preferred to.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.preferredToTerms", - "serializationOptions": { - "json": { - "name": "preferredToTerms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "683", - "kind": "property", - "name": "replacedBy", - "serializedName": "replacedBy", - "doc": "An array of related term headers that are replaced by.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.replacedBy", - "serializationOptions": { - "json": { - "name": "replacedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "684", - "kind": "property", - "name": "replacementTerms", - "serializedName": "replacementTerms", - "doc": "An array of related term headers for replacement.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.replacementTerms", - "serializationOptions": { - "json": { - "name": "replacementTerms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "685", - "kind": "property", - "name": "seeAlso", - "serializedName": "seeAlso", - "doc": "An array of related term headers for see also.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.seeAlso", - "serializationOptions": { - "json": { - "name": "seeAlso" - } - }, - "isHttpMetadata": false - }, - { - "$id": "686", - "kind": "property", - "name": "synonyms", - "serializedName": "synonyms", - "doc": "An array of related term headers as synonyms.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.synonyms", - "serializationOptions": { - "json": { - "name": "synonyms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "687", - "kind": "property", - "name": "translatedTerms", - "serializedName": "translatedTerms", - "doc": "An array of translated related term headers.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.translatedTerms", - "serializationOptions": { - "json": { - "name": "translatedTerms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "688", - "kind": "property", - "name": "translationTerms", - "serializedName": "translationTerms", - "doc": "An array of related term headers for translation.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.translationTerms", - "serializationOptions": { - "json": { - "name": "translationTerms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "689", - "kind": "property", - "name": "usage", - "serializedName": "usage", - "doc": "The usage of the term.", - "type": { - "$id": "690", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.usage", - "serializationOptions": { - "json": { - "name": "usage" - } - }, - "isHttpMetadata": false - }, - { - "$id": "691", - "kind": "property", - "name": "validValues", - "serializedName": "validValues", - "doc": "An array of related term headers as valid values.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.validValues", - "serializationOptions": { - "json": { - "name": "validValues" - } - }, - "isHttpMetadata": false - }, - { - "$id": "692", - "kind": "property", - "name": "validValuesFor", - "serializedName": "validValuesFor", - "doc": "An array of related term headers as valid values for other records.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryTerm.validValuesFor", - "serializationOptions": { - "json": { - "name": "validValuesFor" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "614" - }, - { - "$ref": "631" - }, - { - "$ref": "642" - }, - { - "$ref": "654" - }, - { - "$ref": "666" - }, - { - "$id": "693", - "kind": "model", - "name": "AtlasGlossaryExtInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo", - "usage": "Output,Json", - "doc": "The extended information of glossary.", - "decorators": [], - "properties": [ - { - "$id": "694", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "695", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "696", - "kind": "property", - "name": "classifications", - "serializedName": "classifications", - "doc": "An array of classifications.", - "type": { - "$ref": "336" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.classifications", - "serializationOptions": { - "json": { - "name": "classifications" - } - }, - "isHttpMetadata": false - }, - { - "$id": "697", - "kind": "property", - "name": "longDescription", - "serializedName": "longDescription", - "doc": "The long version description.", - "type": { - "$id": "698", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.longDescription", - "serializationOptions": { - "json": { - "name": "longDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "699", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the glossary object.", - "type": { - "$id": "700", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "701", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "The qualified name of the glossary object.", - "type": { - "$id": "702", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "703", - "kind": "property", - "name": "shortDescription", - "serializedName": "shortDescription", - "doc": "The short version of description.", - "type": { - "$id": "704", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.shortDescription", - "serializationOptions": { - "json": { - "name": "shortDescription" - } - }, - "isHttpMetadata": false - }, - { - "$id": "705", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "706", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "707", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "708", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "709", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "710", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "711", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "712", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "713", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "714", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "715", - "kind": "property", - "name": "categories", - "serializedName": "categories", - "doc": "An array of categories.", - "type": { - "$ref": "517" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.categories", - "serializationOptions": { - "json": { - "name": "categories" - } - }, - "isHttpMetadata": false - }, - { - "$id": "716", - "kind": "property", - "name": "language", - "serializedName": "language", - "doc": "The language of the glossary.", - "type": { - "$id": "717", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.language", - "serializationOptions": { - "json": { - "name": "language" - } - }, - "isHttpMetadata": false - }, - { - "$id": "718", - "kind": "property", - "name": "terms", - "serializedName": "terms", - "doc": "An array of related term headers.", - "type": { - "$ref": "532" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.terms", - "serializationOptions": { - "json": { - "name": "terms" - } - }, - "isHttpMetadata": false - }, - { - "$id": "719", - "kind": "property", - "name": "usage", - "serializedName": "usage", - "doc": "The usage of the glossary.", - "type": { - "$id": "720", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.usage", - "serializationOptions": { - "json": { - "name": "usage" - } - }, - "isHttpMetadata": false - }, - { - "$id": "721", - "kind": "property", - "name": "categoryInfo", - "serializedName": "categoryInfo", - "doc": "The glossary category information.", - "type": { - "$id": "722", - "kind": "dict", - "keyType": { - "$id": "723", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "549" - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.categoryInfo", - "serializationOptions": { - "json": { - "name": "categoryInfo" - } - }, - "isHttpMetadata": false - }, - { - "$id": "724", - "kind": "property", - "name": "termInfo", - "serializedName": "termInfo", - "doc": "The glossary term information.", - "type": { - "$id": "725", - "kind": "dict", - "keyType": { - "$id": "726", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "582" - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasGlossaryExtInfo.termInfo", - "serializationOptions": { - "json": { - "name": "termInfo" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "727", - "kind": "model", - "name": "QueryConfig", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions", - "usage": "Input,Json", - "doc": "The search query of advanced search request.", - "decorators": [], - "properties": [ - { - "$id": "728", - "kind": "property", - "name": "keywords", - "serializedName": "keywords", - "doc": "The keywords applied to all searchable fields.", - "type": { - "$id": "729", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.keywords", - "serializationOptions": { - "json": { - "name": "keywords" - } - }, - "isHttpMetadata": false - }, - { - "$id": "730", - "kind": "property", - "name": "limit", - "serializedName": "limit", - "doc": "The limit of the number of the search result. default value is 50; maximum\nvalue is 1000.", - "type": { - "$id": "731", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.limit", - "serializationOptions": { - "json": { - "name": "limit" - } - }, - "isHttpMetadata": false - }, - { - "$id": "732", - "kind": "property", - "name": "continuationToken", - "serializedName": "continuationToken", - "doc": "The token used to get next batch of data. Default 'Null' to get the first\nbatch, and will return new token in each response unless there's no more data.", - "type": { - "$id": "733", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.continuationToken", - "serializationOptions": { - "json": { - "name": "continuationToken" - } - }, - "isHttpMetadata": false - }, - { - "$id": "734", - "kind": "property", - "name": "orderby", - "serializedName": "orderby", - "doc": "The sort order of search results, can specify multiple fields.", - "type": { - "$ref": "462" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.orderby", - "serializationOptions": { - "json": { - "name": "orderby" - } - }, - "isHttpMetadata": false - }, - { - "$id": "735", - "kind": "property", - "name": "filter", - "serializedName": "filter", - "doc": "The filter for the search. See examples for the usage of supported filters.", - "type": { - "$id": "736", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.filter", - "serializationOptions": { - "json": { - "name": "filter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "737", - "kind": "property", - "name": "facets", - "serializedName": "facets", - "doc": "The facets for search. See examples for the usage of supported facets.", - "type": { - "$id": "738", - "kind": "array", - "name": "ArraySearchFacetItem", - "valueType": { - "$id": "739", - "kind": "model", - "name": "SearchFacetItem", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem", - "usage": "Input,Json", - "doc": "The content of a search facet result item.", - "decorators": [], - "properties": [ - { - "$id": "740", - "kind": "property", - "name": "count", - "serializedName": "count", - "doc": "The count of the facet item.", - "type": { - "$id": "741", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem.count", - "serializationOptions": { - "json": { - "name": "count" - } - }, - "isHttpMetadata": false - }, - { - "$id": "742", - "kind": "property", - "name": "facet", - "serializedName": "facet", - "doc": "The name of the facet item.", - "type": { - "$id": "743", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem.facet", - "serializationOptions": { - "json": { - "name": "facet" - } - }, - "isHttpMetadata": false - }, - { - "$id": "744", - "kind": "property", - "name": "sort", - "serializedName": "sort", - "doc": "Define the sorting criteria for items", - "type": { - "$id": "745", - "kind": "model", - "name": "SearchFacetSort", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetSort", - "usage": "Input,Json", - "doc": "The sorting criteria", - "decorators": [], - "properties": [ - { - "$id": "746", - "kind": "property", - "name": "count", - "serializedName": "count", - "doc": "Order by count", - "type": { - "$ref": "40" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetSort.count", - "serializationOptions": { - "json": { - "name": "count" - } - }, - "isHttpMetadata": false - }, - { - "$id": "747", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "Order by value", - "type": { - "$ref": "40" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetSort.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItem.sort", - "serializationOptions": { - "json": { - "name": "sort" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.facets", - "serializationOptions": { - "json": { - "name": "facets" - } - }, - "isHttpMetadata": false - }, - { - "$id": "748", - "kind": "property", - "name": "taxonomySetting", - "serializedName": "taxonomySetting", - "doc": "The taxonomy setting for search.", - "type": { - "$id": "749", - "kind": "model", - "name": "SearchTaxonomySetting", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchTaxonomySetting", - "usage": "Input,Json", - "doc": "Taxonomy setting for search request", - "decorators": [], - "properties": [ - { - "$id": "750", - "kind": "property", - "name": "assetTypes", - "serializedName": "assetTypes", - "doc": "Asset types", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchTaxonomySetting.assetTypes", - "serializationOptions": { - "json": { - "name": "assetTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "751", - "kind": "property", - "name": "facet", - "serializedName": "facet", - "doc": "The content of a search facet result item.", - "type": { - "$ref": "739" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchTaxonomySetting.facet", - "serializationOptions": { - "json": { - "name": "facet" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryOptions.taxonomySetting", - "serializationOptions": { - "json": { - "name": "taxonomySetting" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "739" - }, - { - "$ref": "745" - }, - { - "$ref": "749" - }, - { - "$id": "752", - "kind": "model", - "name": "QueryResult", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.QueryResult", - "usage": "Output,Json", - "doc": "The result of the search result.", - "decorators": [], - "properties": [ - { - "$id": "753", - "kind": "property", - "name": "searchCount", - "serializedName": "@search.count", - "doc": "The total number of search results (not the number of documents in a single\npage).", - "type": { - "$id": "754", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.searchCount", - "serializationOptions": { - "json": { - "name": "@search.count" - } - }, - "isHttpMetadata": false - }, - { - "$id": "755", - "kind": "property", - "name": "searchCountApproximate", - "serializedName": "@search.count.approximate", - "doc": "'True' if the '@search.count' is an approximate value and vise versa.", - "type": { - "$id": "756", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.searchCountApproximate", - "serializationOptions": { - "json": { - "name": "@search.count.approximate" - } - }, - "isHttpMetadata": false - }, - { - "$id": "757", - "kind": "property", - "name": "continuationToken", - "serializedName": "continuationToken", - "doc": "The token used to get next batch of data. Absent if there's no more data.", - "type": { - "$id": "758", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.continuationToken", - "serializationOptions": { - "json": { - "name": "continuationToken" - } - }, - "isHttpMetadata": false - }, - { - "$id": "759", - "kind": "property", - "name": "searchFacets", - "serializedName": "@search.facets", - "doc": "A facet list that consists of index fields assetType ,classification,\ncontactId, and label. When the facet is specified in the request, the value of\nthe facet is returned as an element of @search.facets.", - "type": { - "$id": "760", - "kind": "model", - "name": "SearchFacetResultValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue", - "usage": "Output,Json", - "doc": "A facet list that consists of index fields assetType ,classification,\ncontactId, and label. When the facet is specified in the request, the value of\nthe facet is returned as an element of @search.facets.", - "decorators": [], - "properties": [ - { - "$id": "761", - "kind": "property", - "name": "entityType", - "serializedName": "entityType", - "doc": "Entity type", - "type": { - "$id": "762", - "kind": "array", - "name": "ArraySearchFacetItemValue", - "valueType": { - "$id": "763", - "kind": "model", - "name": "SearchFacetItemValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItemValue", - "usage": "Output,Json", - "doc": "The content of a search facet result item.", - "decorators": [], - "properties": [ - { - "$id": "764", - "kind": "property", - "name": "count", - "serializedName": "count", - "doc": "The count of the facet item.", - "type": { - "$id": "765", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItemValue.count", - "serializationOptions": { - "json": { - "name": "count" - } - }, - "isHttpMetadata": false - }, - { - "$id": "766", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The name of the facet item.", - "type": { - "$id": "767", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetItemValue.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.entityType", - "serializationOptions": { - "json": { - "name": "entityType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "768", - "kind": "property", - "name": "assetType", - "serializedName": "assetType", - "doc": "Asset type", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.assetType", - "serializationOptions": { - "json": { - "name": "assetType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "769", - "kind": "property", - "name": "classification", - "serializedName": "classification", - "doc": "Classification", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.classification", - "serializationOptions": { - "json": { - "name": "classification" - } - }, - "isHttpMetadata": false - }, - { - "$id": "770", - "kind": "property", - "name": "term", - "serializedName": "term", - "doc": "Term", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.term", - "serializationOptions": { - "json": { - "name": "term" - } - }, - "isHttpMetadata": false - }, - { - "$id": "771", - "kind": "property", - "name": "contactId", - "serializedName": "contactId", - "doc": "Contact id", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.contactId", - "serializationOptions": { - "json": { - "name": "contactId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "772", - "kind": "property", - "name": "contactType", - "serializedName": "contactType", - "doc": "Contact type", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.contactType", - "serializationOptions": { - "json": { - "name": "contactType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "773", - "kind": "property", - "name": "label", - "serializedName": "label", - "doc": "Label", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.label", - "serializationOptions": { - "json": { - "name": "label" - } - }, - "isHttpMetadata": false - }, - { - "$id": "774", - "kind": "property", - "name": "glossaryType", - "serializedName": "glossaryType", - "doc": "Glossary type", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.glossaryType", - "serializationOptions": { - "json": { - "name": "glossaryType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "775", - "kind": "property", - "name": "termStatus", - "serializedName": "termStatus", - "doc": "Term status", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.termStatus", - "serializationOptions": { - "json": { - "name": "termStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "776", - "kind": "property", - "name": "termTemplate", - "serializedName": "termTemplate", - "doc": "Term template", - "type": { - "$ref": "762" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchFacetResultValue.termTemplate", - "serializationOptions": { - "json": { - "name": "termTemplate" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.searchFacets", - "serializationOptions": { - "json": { - "name": "@search.facets" - } - }, - "isHttpMetadata": false - }, - { - "$id": "777", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "Search result value", - "type": { - "$id": "778", - "kind": "array", - "name": "ArraySearchResultValue", - "valueType": { - "$id": "779", - "kind": "model", - "name": "SearchResultValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue", - "usage": "Output,Json", - "doc": "The value item of the search result.", - "decorators": [], - "properties": [ - { - "$id": "780", - "kind": "property", - "name": "searchScore", - "serializedName": "@search.score", - "doc": "The search score calculated by the search engine. The results are ordered by\nsearch score by default.", - "type": { - "$id": "781", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.searchScore", - "serializationOptions": { - "json": { - "name": "@search.score" - } - }, - "isHttpMetadata": false - }, - { - "$id": "782", - "kind": "property", - "name": "searchHighlights", - "serializedName": "@search.highlights", - "doc": "A highlight list that consists of index fields id ,qualifiedName, name,\ndescription, entityType. When the keyword appears in those fields, the value of\nthe field, attached with emphasis mark, is returned as an element of\n@search.highlights.", - "type": { - "$id": "783", - "kind": "model", - "name": "SearchHighlights", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights", - "usage": "Output,Json", - "doc": "A highlight list that consists of index fields id ,qualifiedName, name,\ndescription, entityType. When the keyword appears in those fields, the value of\nthe field, attached with emphasis mark, is returned as an element of\n@search.highlights.", - "decorators": [], - "properties": [ - { - "$id": "784", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Id", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.id", - "serializationOptions": { - "json": { - "name": "id" - } - }, - "isHttpMetadata": false - }, - { - "$id": "785", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "Qualified name", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "786", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "Name", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "787", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "Description", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "788", - "kind": "property", - "name": "entityType", - "serializedName": "entityType", - "doc": "Entity type", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchHighlights.entityType", - "serializationOptions": { - "json": { - "name": "entityType" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.searchHighlights", - "serializationOptions": { - "json": { - "name": "@search.highlights" - } - }, - "isHttpMetadata": false - }, - { - "$id": "789", - "kind": "property", - "name": "objectType", - "serializedName": "objectType", - "doc": "The object type of the record. Object type is the top-level property to\ndistinguish whether a record is an asset or a term.", - "type": { - "$id": "790", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.objectType", - "serializationOptions": { - "json": { - "name": "objectType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "791", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The create time of the record. The Unix epoch format.", - "type": { - "$id": "792", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "793", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The last update time of the record. The Unix epoch format.", - "type": { - "$id": "794", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "795", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The GUID of the record.", - "type": { - "$id": "796", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.id", - "serializationOptions": { - "json": { - "name": "id" - } - }, - "isHttpMetadata": false - }, - { - "$id": "797", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the record.", - "type": { - "$id": "798", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "799", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "The qualified name of the record.", - "type": { - "$id": "800", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "801", - "kind": "property", - "name": "entityType", - "serializedName": "entityType", - "doc": "The type name of the asset.", - "type": { - "$id": "802", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.entityType", - "serializationOptions": { - "json": { - "name": "entityType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "803", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the asset.", - "type": { - "$id": "804", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "805", - "kind": "property", - "name": "endorsement", - "serializedName": "endorsement", - "doc": "The endorsement of the asset.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.endorsement", - "serializationOptions": { - "json": { - "name": "endorsement" - } - }, - "isHttpMetadata": false - }, - { - "$id": "806", - "kind": "property", - "name": "owner", - "serializedName": "owner", - "doc": "The owner of the record.", - "type": { - "$id": "807", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.owner", - "serializationOptions": { - "json": { - "name": "owner" - } - }, - "isHttpMetadata": false - }, - { - "$id": "808", - "kind": "property", - "name": "classification", - "serializedName": "classification", - "doc": "The classifications of the record.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.classification", - "serializationOptions": { - "json": { - "name": "classification" - } - }, - "isHttpMetadata": false - }, - { - "$id": "809", - "kind": "property", - "name": "label", - "serializedName": "label", - "doc": "The labels of the asset.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.label", - "serializationOptions": { - "json": { - "name": "label" - } - }, - "isHttpMetadata": false - }, - { - "$id": "810", - "kind": "property", - "name": "term", - "serializedName": "term", - "doc": "The terms assigned to the asset.", - "type": { - "$id": "811", - "kind": "array", - "name": "ArrayTermSearchResultValue", - "valueType": { - "$id": "812", - "kind": "model", - "name": "TermSearchResultValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue", - "usage": "Output,Json", - "doc": "The context.", - "decorators": [], - "properties": [ - { - "$id": "813", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the term.", - "type": { - "$id": "814", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "815", - "kind": "property", - "name": "glossaryName", - "serializedName": "glossaryName", - "doc": "The name of the glossary which contains the term.", - "type": { - "$id": "816", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue.glossaryName", - "serializationOptions": { - "json": { - "name": "glossaryName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "817", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the term.", - "type": { - "$id": "818", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermSearchResultValue.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.term", - "serializationOptions": { - "json": { - "name": "term" - } - }, - "isHttpMetadata": false - }, - { - "$id": "819", - "kind": "property", - "name": "contact", - "serializedName": "contact", - "doc": "The contacts of the asset.", - "type": { - "$id": "820", - "kind": "array", - "name": "ArrayContactSearchResultValue", - "valueType": { - "$id": "821", - "kind": "model", - "name": "ContactSearchResultValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue", - "usage": "Output,Json", - "doc": "The contact in the search and suggest result.", - "decorators": [], - "properties": [ - { - "$id": "822", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The GUID of the contact.", - "type": { - "$id": "823", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue.id", - "serializationOptions": { - "json": { - "name": "id" - } - }, - "isHttpMetadata": false - }, - { - "$id": "824", - "kind": "property", - "name": "info", - "serializedName": "info", - "doc": "The description of the contact.", - "type": { - "$id": "825", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue.info", - "serializationOptions": { - "json": { - "name": "info" - } - }, - "isHttpMetadata": false - }, - { - "$id": "826", - "kind": "property", - "name": "contactType", - "serializedName": "contactType", - "doc": "The type of the contact. It can be Expert or Owner for an entity. It can be\nExpert or Steward for a glossary term.", - "type": { - "$id": "827", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ContactSearchResultValue.contactType", - "serializationOptions": { - "json": { - "name": "contactType" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.contact", - "serializationOptions": { - "json": { - "name": "contact" - } - }, - "isHttpMetadata": false - }, - { - "$id": "828", - "kind": "property", - "name": "assetType", - "serializedName": "assetType", - "doc": "The asset types of the asset.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.assetType", - "serializationOptions": { - "json": { - "name": "assetType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "829", - "kind": "property", - "name": "glossaryType", - "serializedName": "glossaryType", - "doc": "The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or\nAtlasGlossaryCategory.", - "type": { - "$id": "830", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.glossaryType", - "serializationOptions": { - "json": { - "name": "glossaryType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "831", - "kind": "property", - "name": "glossary", - "serializedName": "glossary", - "doc": "The glossary name of the term.", - "type": { - "$id": "832", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.glossary", - "serializationOptions": { - "json": { - "name": "glossary" - } - }, - "isHttpMetadata": false - }, - { - "$id": "833", - "kind": "property", - "name": "termStatus", - "serializedName": "termStatus", - "doc": "The status of the term.", - "type": { - "$id": "834", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.termStatus", - "serializationOptions": { - "json": { - "name": "termStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "835", - "kind": "property", - "name": "termTemplate", - "serializedName": "termTemplate", - "doc": "The term template names used by the term.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.termTemplate", - "serializationOptions": { - "json": { - "name": "termTemplate" - } - }, - "isHttpMetadata": false - }, - { - "$id": "836", - "kind": "property", - "name": "longDescription", - "serializedName": "longDescription", - "doc": "The definition of the term.", - "type": { - "$id": "837", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SearchResultValue.longDescription", - "serializationOptions": { - "json": { - "name": "longDescription" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.QueryResult.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "760" - }, - { - "$ref": "763" - }, - { - "$ref": "779" - }, - { - "$ref": "783" - }, - { - "$ref": "812" - }, - { - "$ref": "821" - }, - { - "$id": "838", - "kind": "model", - "name": "SuggestConfig", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions", - "usage": "Input,Json", - "doc": "The payload of suggest request.", - "decorators": [], - "properties": [ - { - "$id": "839", - "kind": "property", - "name": "keywords", - "serializedName": "keywords", - "doc": "The keywords applied to all fields that support suggest operation. It must be\nat least 1 character, and no more than 100 characters. In the index schema we\ndefined a default suggester which lists all the supported fields and specifies\na search mode.", - "type": { - "$id": "840", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions.keywords", - "serializationOptions": { - "json": { - "name": "keywords" - } - }, - "isHttpMetadata": false - }, - { - "$id": "841", - "kind": "property", - "name": "limit", - "serializedName": "limit", - "doc": "The number of suggestions we hope to return. The default value is 5. The value\nmust be a number between 1 and 100.", - "type": { - "$id": "842", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions.limit", - "serializationOptions": { - "json": { - "name": "limit" - } - }, - "isHttpMetadata": false - }, - { - "$id": "843", - "kind": "property", - "name": "filter", - "serializedName": "filter", - "doc": "The filter for the search.", - "type": { - "$id": "844", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestOptions.filter", - "serializationOptions": { - "json": { - "name": "filter" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "845", - "kind": "model", - "name": "SuggestResult", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResult", - "usage": "Output,Json", - "doc": "The result item of the search suggest.", - "decorators": [], - "properties": [ - { - "$id": "846", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The result value", - "type": { - "$id": "847", - "kind": "array", - "name": "ArraySuggestResultValue", - "valueType": { - "$id": "848", - "kind": "model", - "name": "SuggestResultValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue", - "usage": "Output,Json", - "doc": "The value item of the search suggest.", - "decorators": [], - "properties": [ - { - "$id": "849", - "kind": "property", - "name": "searchScore", - "serializedName": "@search.score", - "doc": "The search score calculated by the search engine. The results are ordered by\nsearch score by default.", - "type": { - "$id": "850", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.searchScore", - "serializationOptions": { - "json": { - "name": "@search.score" - } - }, - "isHttpMetadata": false - }, - { - "$id": "851", - "kind": "property", - "name": "searchText", - "serializedName": "@search.text", - "doc": "The target text that contains the keyword as prefix. The keyword is wrapped\nwith emphasis mark.", - "type": { - "$id": "852", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.searchText", - "serializationOptions": { - "json": { - "name": "@search.text" - } - }, - "isHttpMetadata": false - }, - { - "$id": "853", - "kind": "property", - "name": "objectType", - "serializedName": "objectType", - "doc": "The object type of the record. Object type is the top-level property to\ndistinguish whether a record is an asset or a term.", - "type": { - "$id": "854", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.objectType", - "serializationOptions": { - "json": { - "name": "objectType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "855", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The create time of the record. The Unix epoch format.", - "type": { - "$id": "856", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "857", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The last update time of the record. The Unix epoch format.", - "type": { - "$id": "858", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "859", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The GUID of the record.", - "type": { - "$id": "860", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.id", - "serializationOptions": { - "json": { - "name": "id" - } - }, - "isHttpMetadata": false - }, - { - "$id": "861", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the record.", - "type": { - "$id": "862", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "863", - "kind": "property", - "name": "qualifiedName", - "serializedName": "qualifiedName", - "doc": "The qualified name of the record.", - "type": { - "$id": "864", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.qualifiedName", - "serializationOptions": { - "json": { - "name": "qualifiedName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "865", - "kind": "property", - "name": "entityType", - "serializedName": "entityType", - "doc": "The type name of the asset.", - "type": { - "$id": "866", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.entityType", - "serializationOptions": { - "json": { - "name": "entityType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "867", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the asset.", - "type": { - "$id": "868", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "869", - "kind": "property", - "name": "endorsement", - "serializedName": "endorsement", - "doc": "The endorsement of the asset.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.endorsement", - "serializationOptions": { - "json": { - "name": "endorsement" - } - }, - "isHttpMetadata": false - }, - { - "$id": "870", - "kind": "property", - "name": "owner", - "serializedName": "owner", - "doc": "The owner of the record.", - "type": { - "$id": "871", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.owner", - "serializationOptions": { - "json": { - "name": "owner" - } - }, - "isHttpMetadata": false - }, - { - "$id": "872", - "kind": "property", - "name": "classification", - "serializedName": "classification", - "doc": "The classifications of the record.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.classification", - "serializationOptions": { - "json": { - "name": "classification" - } - }, - "isHttpMetadata": false - }, - { - "$id": "873", - "kind": "property", - "name": "label", - "serializedName": "label", - "doc": "The labels of the asset.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.label", - "serializationOptions": { - "json": { - "name": "label" - } - }, - "isHttpMetadata": false - }, - { - "$id": "874", - "kind": "property", - "name": "term", - "serializedName": "term", - "doc": "The terms assigned to the asset.", - "type": { - "$ref": "811" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.term", - "serializationOptions": { - "json": { - "name": "term" - } - }, - "isHttpMetadata": false - }, - { - "$id": "875", - "kind": "property", - "name": "contact", - "serializedName": "contact", - "doc": "The contacts of the asset.", - "type": { - "$ref": "820" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.contact", - "serializationOptions": { - "json": { - "name": "contact" - } - }, - "isHttpMetadata": false - }, - { - "$id": "876", - "kind": "property", - "name": "assetType", - "serializedName": "assetType", - "doc": "The asset types of the asset.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.assetType", - "serializationOptions": { - "json": { - "name": "assetType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "877", - "kind": "property", - "name": "glossaryType", - "serializedName": "glossaryType", - "doc": "The type name of the term. Could be AtlasGlossary, AtlasGlossaryTerm or\nAtlasGlossaryCategory.", - "type": { - "$id": "878", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.glossaryType", - "serializationOptions": { - "json": { - "name": "glossaryType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "879", - "kind": "property", - "name": "glossary", - "serializedName": "glossary", - "doc": "The glossary name of the term.", - "type": { - "$id": "880", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.glossary", - "serializationOptions": { - "json": { - "name": "glossary" - } - }, - "isHttpMetadata": false - }, - { - "$id": "881", - "kind": "property", - "name": "termStatus", - "serializedName": "termStatus", - "doc": "The status of the term.", - "type": { - "$id": "882", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.termStatus", - "serializationOptions": { - "json": { - "name": "termStatus" - } - }, - "isHttpMetadata": false - }, - { - "$id": "883", - "kind": "property", - "name": "termTemplate", - "serializedName": "termTemplate", - "doc": "The term template names used by the term.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.termTemplate", - "serializationOptions": { - "json": { - "name": "termTemplate" - } - }, - "isHttpMetadata": false - }, - { - "$id": "884", - "kind": "property", - "name": "longDescription", - "serializedName": "longDescription", - "doc": "The definition of the term.", - "type": { - "$id": "885", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResultValue.longDescription", - "serializationOptions": { - "json": { - "name": "longDescription" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.SuggestResult.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "848" - }, - { - "$id": "886", - "kind": "model", - "name": "AutoCompleteConfig", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions", - "usage": "Input,Json", - "doc": "The payload of autocomplete request.", - "decorators": [], - "properties": [ - { - "$id": "887", - "kind": "property", - "name": "keywords", - "serializedName": "keywords", - "doc": "The keywords applied to all fields that support autocomplete operation. It must\nbe at least 1 character, and no more than 100 characters.", - "type": { - "$id": "888", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions.keywords", - "serializationOptions": { - "json": { - "name": "keywords" - } - }, - "isHttpMetadata": false - }, - { - "$id": "889", - "kind": "property", - "name": "limit", - "serializedName": "limit", - "doc": "The number of autocomplete results we hope to return. The default value is 50.\nThe value must be a number between 1 and 100.", - "type": { - "$id": "890", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions.limit", - "serializationOptions": { - "json": { - "name": "limit" - } - }, - "isHttpMetadata": false - }, - { - "$id": "891", - "kind": "property", - "name": "filter", - "serializedName": "filter", - "doc": "The filter for the autocomplete request.", - "type": { - "$id": "892", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteOptions.filter", - "serializationOptions": { - "json": { - "name": "filter" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "893", - "kind": "model", - "name": "AutoCompleteResult", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResult", - "usage": "Output,Json", - "doc": "The result of the autocomplete request.", - "decorators": [], - "properties": [ - { - "$id": "894", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The result value", - "type": { - "$id": "895", - "kind": "array", - "name": "ArrayAutoCompleteResultValue", - "valueType": { - "$id": "896", - "kind": "model", - "name": "AutoCompleteResultValue", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResultValue", - "usage": "Output,Json", - "doc": "The value item of the autocomplete suggest.", - "decorators": [], - "properties": [ - { - "$id": "897", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The completed term or phrase.", - "type": { - "$id": "898", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResultValue.text", - "serializationOptions": { - "json": { - "name": "text" - } - }, - "isHttpMetadata": false - }, - { - "$id": "899", - "kind": "property", - "name": "queryPlusText", - "serializedName": "queryPlusText", - "doc": "The completed search query text.", - "type": { - "$id": "900", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResultValue.queryPlusText", - "serializationOptions": { - "json": { - "name": "queryPlusText" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AutoCompleteResult.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "896" - }, - { - "$id": "901", - "kind": "model", - "name": "AtlasLineageInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo", - "usage": "Output,Json", - "doc": "The lineage information.", - "decorators": [], - "properties": [ - { - "$id": "902", - "kind": "property", - "name": "baseEntityGuid", - "serializedName": "baseEntityGuid", - "doc": "The GUID of the base entity.", - "type": { - "$id": "903", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.baseEntityGuid", - "serializationOptions": { - "json": { - "name": "baseEntityGuid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "904", - "kind": "property", - "name": "guidEntityMap", - "serializedName": "guidEntityMap", - "doc": "The GUID entity map.", - "type": { - "$ref": "475" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.guidEntityMap", - "serializationOptions": { - "json": { - "name": "guidEntityMap" - } - }, - "isHttpMetadata": false - }, - { - "$id": "905", - "kind": "property", - "name": "widthCounts", - "serializedName": "widthCounts", - "doc": "The entity count in specific direction.", - "type": { - "$ref": "638" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.widthCounts", - "serializationOptions": { - "json": { - "name": "widthCounts" - } - }, - "isHttpMetadata": false - }, - { - "$id": "906", - "kind": "property", - "name": "lineageDepth", - "serializedName": "lineageDepth", - "doc": "The depth of lineage.", - "type": { - "$id": "907", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.lineageDepth", - "serializationOptions": { - "json": { - "name": "lineageDepth" - } - }, - "isHttpMetadata": false - }, - { - "$id": "908", - "kind": "property", - "name": "lineageWidth", - "serializedName": "lineageWidth", - "doc": "The width of lineage.", - "type": { - "$id": "909", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.lineageWidth", - "serializationOptions": { - "json": { - "name": "lineageWidth" - } - }, - "isHttpMetadata": false - }, - { - "$id": "910", - "kind": "property", - "name": "childrenCount", - "serializedName": "childrenCount", - "doc": "The number of children node.", - "type": { - "$id": "911", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.childrenCount", - "serializationOptions": { - "json": { - "name": "childrenCount" - } - }, - "isHttpMetadata": false - }, - { - "$id": "912", - "kind": "property", - "name": "lineageDirection", - "serializedName": "lineageDirection", - "doc": "The enum of lineage direction.", - "type": { - "$ref": "44" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.lineageDirection", - "serializationOptions": { - "json": { - "name": "lineageDirection" - } - }, - "isHttpMetadata": false - }, - { - "$id": "913", - "kind": "property", - "name": "parentRelations", - "serializedName": "parentRelations", - "doc": "An array of parentRelations relations.", - "type": { - "$id": "914", - "kind": "array", - "name": "ArrayParentRelation", - "valueType": { - "$id": "915", - "kind": "model", - "name": "ParentRelation", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation", - "usage": "Output,Json", - "doc": "The lineage parents relation with GUID of the parent entity and to child entity.", - "decorators": [], - "properties": [ - { - "$id": "916", - "kind": "property", - "name": "childEntityId", - "serializedName": "childEntityId", - "doc": "The GUID of child entity.", - "type": { - "$id": "917", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation.childEntityId", - "serializationOptions": { - "json": { - "name": "childEntityId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "918", - "kind": "property", - "name": "relationshipId", - "serializedName": "relationshipId", - "doc": "The GUID of relationship.", - "type": { - "$id": "919", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation.relationshipId", - "serializationOptions": { - "json": { - "name": "relationshipId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "920", - "kind": "property", - "name": "parentEntityId", - "serializedName": "parentEntityId", - "doc": "The GUID of parent entity.", - "type": { - "$id": "921", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.ParentRelation.parentEntityId", - "serializationOptions": { - "json": { - "name": "parentEntityId" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.parentRelations", - "serializationOptions": { - "json": { - "name": "parentRelations" - } - }, - "isHttpMetadata": false - }, - { - "$id": "922", - "kind": "property", - "name": "relations", - "serializedName": "relations", - "doc": "An array of lineage relations.", - "type": { - "$id": "923", - "kind": "array", - "name": "ArrayLineageRelation", - "valueType": { - "$id": "924", - "kind": "model", - "name": "LineageRelation", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation", - "usage": "Output,Json", - "doc": "The lineage relation with GUID of the from and to entity.", - "decorators": [], - "properties": [ - { - "$id": "925", - "kind": "property", - "name": "fromEntityId", - "serializedName": "fromEntityId", - "doc": "The GUID of from-entity.", - "type": { - "$id": "926", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation.fromEntityId", - "serializationOptions": { - "json": { - "name": "fromEntityId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "927", - "kind": "property", - "name": "relationshipId", - "serializedName": "relationshipId", - "doc": "The GUID of relationship.", - "type": { - "$id": "928", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation.relationshipId", - "serializationOptions": { - "json": { - "name": "relationshipId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "929", - "kind": "property", - "name": "toEntityId", - "serializedName": "toEntityId", - "doc": "The GUID of to-entity.", - "type": { - "$id": "930", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.LineageRelation.toEntityId", - "serializationOptions": { - "json": { - "name": "toEntityId" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasLineageInfo.relations", - "serializationOptions": { - "json": { - "name": "relations" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "915" - }, - { - "$ref": "924" - }, - { - "$id": "931", - "kind": "model", - "name": "AtlasRelationship", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship", - "usage": "Input,Output,Json", - "doc": "Atlas relationship instance.", - "decorators": [], - "properties": [ - { - "$id": "932", - "kind": "property", - "name": "attributes", - "serializedName": "attributes", - "doc": "The attributes of the struct.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.attributes", - "serializationOptions": { - "json": { - "name": "attributes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "933", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "934", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "935", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "936", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "937", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "938", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "939", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "940", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "941", - "kind": "property", - "name": "end1", - "serializedName": "end1", - "doc": "Reference to an object-instance of a type - like entity.", - "type": { - "$id": "942", - "kind": "model", - "name": "AtlasObjectId", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId", - "usage": "Input,Output,Json", - "doc": "Reference to an object-instance of a type - like entity.", - "decorators": [], - "properties": [ - { - "$id": "943", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the object.", - "type": { - "$id": "944", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "945", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "946", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "947", - "kind": "property", - "name": "uniqueAttributes", - "serializedName": "uniqueAttributes", - "doc": "The unique attributes of the object.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasObjectId.uniqueAttributes", - "serializationOptions": { - "json": { - "name": "uniqueAttributes" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.end1", - "serializationOptions": { - "json": { - "name": "end1" - } - }, - "isHttpMetadata": false - }, - { - "$id": "948", - "kind": "property", - "name": "end2", - "serializedName": "end2", - "doc": "Reference to an object-instance of a type - like entity.", - "type": { - "$ref": "942" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.end2", - "serializationOptions": { - "json": { - "name": "end2" - } - }, - "isHttpMetadata": false - }, - { - "$id": "949", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the relationship.", - "type": { - "$id": "950", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "951", - "kind": "property", - "name": "homeId", - "serializedName": "homeId", - "doc": "The home ID of the relationship.", - "type": { - "$id": "952", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.homeId", - "serializationOptions": { - "json": { - "name": "homeId" - } - }, - "isHttpMetadata": false - }, - { - "$id": "953", - "kind": "property", - "name": "label", - "serializedName": "label", - "doc": "The label of the relationship.", - "type": { - "$id": "954", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.label", - "serializationOptions": { - "json": { - "name": "label" - } - }, - "isHttpMetadata": false - }, - { - "$id": "955", - "kind": "property", - "name": "provenanceType", - "serializedName": "provenanceType", - "doc": "Used to record the provenance of an instance of an entity or relationship", - "type": { - "$id": "956", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.provenanceType", - "serializationOptions": { - "json": { - "name": "provenanceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "957", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "The enum of relationship status.", - "type": { - "$ref": "36" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.status", - "serializationOptions": { - "json": { - "name": "status" - } - }, - "isHttpMetadata": false - }, - { - "$id": "958", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "959", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "960", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "961", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "962", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the relationship.", - "type": { - "$id": "963", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationship.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "942" - }, - { - "$id": "964", - "kind": "model", - "name": "AtlasRelationshipWithExtInfo", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipWithExtInfo", - "usage": "Output,Json", - "doc": "The relationship with extended information.", - "decorators": [], - "properties": [ - { - "$id": "965", - "kind": "property", - "name": "referredEntities", - "serializedName": "referredEntities", - "doc": "The referred entity header.", - "type": { - "$ref": "475" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipWithExtInfo.referredEntities", - "serializationOptions": { - "json": { - "name": "referredEntities" - } - }, - "isHttpMetadata": false - }, - { - "$id": "966", - "kind": "property", - "name": "relationship", - "serializedName": "relationship", - "doc": "Atlas relationship instance.", - "type": { - "$ref": "931" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipWithExtInfo.relationship", - "serializationOptions": { - "json": { - "name": "relationship" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "967", - "kind": "model", - "name": "AtlasBusinessMetadataDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of a struct-type.", - "decorators": [], - "properties": [ - { - "$id": "968", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "969", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "970", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "971", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "972", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "973", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$id": "974", - "kind": "model", - "name": "AtlasDateFormat", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat", - "usage": "Input,Output,Json", - "doc": "The date format.", - "decorators": [], - "properties": [ - { - "$id": "975", - "kind": "property", - "name": "availableLocales", - "serializedName": "availableLocales", - "doc": "An array of available locales.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.availableLocales", - "serializationOptions": { - "json": { - "name": "availableLocales" - } - }, - "isHttpMetadata": false - }, - { - "$id": "976", - "kind": "property", - "name": "calendar", - "serializedName": "calendar", - "doc": "Calendar", - "type": { - "$id": "977", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.calendar", - "serializationOptions": { - "json": { - "name": "calendar" - } - }, - "isHttpMetadata": false - }, - { - "$id": "978", - "kind": "property", - "name": "dateInstance", - "serializedName": "dateInstance", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.dateInstance", - "serializationOptions": { - "json": { - "name": "dateInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "979", - "kind": "property", - "name": "dateTimeInstance", - "serializedName": "dateTimeInstance", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.dateTimeInstance", - "serializationOptions": { - "json": { - "name": "dateTimeInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "980", - "kind": "property", - "name": "instance", - "serializedName": "instance", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.instance", - "serializationOptions": { - "json": { - "name": "instance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "981", - "kind": "property", - "name": "lenient", - "serializedName": "lenient", - "doc": "Determines the leniency of the date format.", - "type": { - "$id": "982", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.lenient", - "serializationOptions": { - "json": { - "name": "lenient" - } - }, - "isHttpMetadata": false - }, - { - "$id": "983", - "kind": "property", - "name": "numberFormat", - "serializedName": "numberFormat", - "doc": "The number format.", - "type": { - "$id": "984", - "kind": "model", - "name": "AtlasNumberFormat", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat", - "usage": "Input,Output,Json", - "doc": "The number format.", - "decorators": [], - "properties": [ - { - "$id": "985", - "kind": "property", - "name": "availableLocales", - "serializedName": "availableLocales", - "doc": "The number format.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.availableLocales", - "serializationOptions": { - "json": { - "name": "availableLocales" - } - }, - "isHttpMetadata": false - }, - { - "$id": "986", - "kind": "property", - "name": "currency", - "serializedName": "currency", - "doc": "The currency.", - "type": { - "$id": "987", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.currency", - "serializationOptions": { - "json": { - "name": "currency" - } - }, - "isHttpMetadata": false - }, - { - "$id": "988", - "kind": "property", - "name": "currencyInstance", - "serializedName": "currencyInstance", - "doc": "The number format.", - "type": { - "$ref": "984" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.currencyInstance", - "serializationOptions": { - "json": { - "name": "currencyInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "989", - "kind": "property", - "name": "groupingUsed", - "serializedName": "groupingUsed", - "doc": "Determines if grouping is used.", - "type": { - "$id": "990", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.groupingUsed", - "serializationOptions": { - "json": { - "name": "groupingUsed" - } - }, - "isHttpMetadata": false - }, - { - "$id": "991", - "kind": "property", - "name": "instance", - "serializedName": "instance", - "doc": "The number format.", - "type": { - "$ref": "984" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.instance", - "serializationOptions": { - "json": { - "name": "instance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "992", - "kind": "property", - "name": "integerInstance", - "serializedName": "integerInstance", - "doc": "The number format.", - "type": { - "$ref": "984" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.integerInstance", - "serializationOptions": { - "json": { - "name": "integerInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "993", - "kind": "property", - "name": "maximumFractionDigits", - "serializedName": "maximumFractionDigits", - "doc": "The maximum of fraction digits.", - "type": { - "$id": "994", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.maximumFractionDigits", - "serializationOptions": { - "json": { - "name": "maximumFractionDigits" - } - }, - "isHttpMetadata": false - }, - { - "$id": "995", - "kind": "property", - "name": "maximumIntegerDigits", - "serializedName": "maximumIntegerDigits", - "doc": "The maximum of integer digits.", - "type": { - "$id": "996", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.maximumIntegerDigits", - "serializationOptions": { - "json": { - "name": "maximumIntegerDigits" - } - }, - "isHttpMetadata": false - }, - { - "$id": "997", - "kind": "property", - "name": "minimumFractionDigits", - "serializedName": "minimumFractionDigits", - "doc": "The minimum of fraction digits.", - "type": { - "$id": "998", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.minimumFractionDigits", - "serializationOptions": { - "json": { - "name": "minimumFractionDigits" - } - }, - "isHttpMetadata": false - }, - { - "$id": "999", - "kind": "property", - "name": "minimumIntegerDigits", - "serializedName": "minimumIntegerDigits", - "doc": "The minimum of integer digits.", - "type": { - "$id": "1000", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.minimumIntegerDigits", - "serializationOptions": { - "json": { - "name": "minimumIntegerDigits" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1001", - "kind": "property", - "name": "numberInstance", - "serializedName": "numberInstance", - "doc": "The number format.", - "type": { - "$ref": "984" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.numberInstance", - "serializationOptions": { - "json": { - "name": "numberInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1002", - "kind": "property", - "name": "parseIntegerOnly", - "serializedName": "parseIntegerOnly", - "doc": "Determines if only integer is parsed.", - "type": { - "$id": "1003", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.parseIntegerOnly", - "serializationOptions": { - "json": { - "name": "parseIntegerOnly" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1004", - "kind": "property", - "name": "percentInstance", - "serializedName": "percentInstance", - "doc": "The number format.", - "type": { - "$ref": "984" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.percentInstance", - "serializationOptions": { - "json": { - "name": "percentInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1005", - "kind": "property", - "name": "roundingMode", - "serializedName": "roundingMode", - "doc": "The enum of rounding mode.", - "type": { - "$ref": "61" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.NumberFormat.roundingMode", - "serializationOptions": { - "json": { - "name": "roundingMode" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.numberFormat", - "serializationOptions": { - "json": { - "name": "numberFormat" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1006", - "kind": "property", - "name": "timeInstance", - "serializedName": "timeInstance", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.timeInstance", - "serializationOptions": { - "json": { - "name": "timeInstance" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1007", - "kind": "property", - "name": "timeZone", - "serializedName": "timeZone", - "doc": "The timezone information.", - "type": { - "$id": "1008", - "kind": "model", - "name": "AtlasTimeZone", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone", - "usage": "Input,Output,Json", - "doc": "The timezone information.", - "decorators": [], - "properties": [ - { - "$id": "1009", - "kind": "property", - "name": "dstSavings", - "serializedName": "dstSavings", - "doc": "The value of the daylight saving time.", - "type": { - "$id": "1010", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.dstSavings", - "serializationOptions": { - "json": { - "name": "dstSavings" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1011", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The ID of the timezone.", - "type": { - "$id": "1012", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.id", - "serializationOptions": { - "json": { - "name": "id" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1013", - "kind": "property", - "name": "availableIds", - "serializedName": "availableIds", - "doc": "An array of available IDs.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.availableIds", - "serializationOptions": { - "json": { - "name": "availableIds" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1014", - "kind": "property", - "name": "default", - "serializedName": "default", - "doc": "The timezone information.", - "type": { - "$ref": "1008" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.default", - "serializationOptions": { - "json": { - "name": "default" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1015", - "kind": "property", - "name": "displayName", - "serializedName": "displayName", - "doc": "The display name of the timezone.", - "type": { - "$id": "1016", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.displayName", - "serializationOptions": { - "json": { - "name": "displayName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1017", - "kind": "property", - "name": "rawOffset", - "serializedName": "rawOffset", - "doc": "The raw offset of the timezone.", - "type": { - "$id": "1018", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TimeZone.rawOffset", - "serializationOptions": { - "json": { - "name": "rawOffset" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.DateFormat.timeZone", - "serializationOptions": { - "json": { - "name": "timeZone" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1019", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1020", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1021", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1022", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1023", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1024", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1025", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1026", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1027", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1028", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1029", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1030", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1031", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1032", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1033", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1034", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1035", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1036", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1037", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1038", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$id": "1039", - "kind": "array", - "name": "ArrayAtlasAttributeDef", - "valueType": { - "$id": "1040", - "kind": "model", - "name": "AtlasAttributeDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of a struct-attribute.", - "decorators": [], - "properties": [ - { - "$id": "1041", - "kind": "property", - "name": "cardinality", - "serializedName": "cardinality", - "doc": "single-valued attribute or multi-valued attribute.", - "type": { - "$ref": "71" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.cardinality", - "serializationOptions": { - "json": { - "name": "cardinality" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1042", - "kind": "property", - "name": "constraints", - "serializedName": "constraints", - "doc": "An array of constraints.", - "type": { - "$id": "1043", - "kind": "array", - "name": "ArrayAtlasConstraintDef", - "valueType": { - "$id": "1044", - "kind": "model", - "name": "AtlasConstraintDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasConstraintDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of a constraint.", - "decorators": [], - "properties": [ - { - "$id": "1045", - "kind": "property", - "name": "params", - "serializedName": "params", - "doc": "The parameters of the constraint definition.", - "type": { - "$ref": "327" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasConstraintDef.params", - "serializationOptions": { - "json": { - "name": "params" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1046", - "kind": "property", - "name": "type", - "serializedName": "type", - "doc": "The type of the constraint.", - "type": { - "$id": "1047", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasConstraintDef.type", - "serializationOptions": { - "json": { - "name": "type" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.constraints", - "serializationOptions": { - "json": { - "name": "constraints" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1048", - "kind": "property", - "name": "defaultValue", - "serializedName": "defaultValue", - "doc": "The default value of the attribute.", - "type": { - "$id": "1049", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.defaultValue", - "serializationOptions": { - "json": { - "name": "defaultValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1050", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the attribute.", - "type": { - "$id": "1051", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1052", - "kind": "property", - "name": "includeInNotification", - "serializedName": "includeInNotification", - "doc": "Determines if it is included in notification.", - "type": { - "$id": "1053", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.includeInNotification", - "serializationOptions": { - "json": { - "name": "includeInNotification" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1054", - "kind": "property", - "name": "isIndexable", - "serializedName": "isIndexable", - "doc": "Determines if it is indexable.", - "type": { - "$id": "1055", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.isIndexable", - "serializationOptions": { - "json": { - "name": "isIndexable" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1056", - "kind": "property", - "name": "isOptional", - "serializedName": "isOptional", - "doc": "Determines if it is optional.", - "type": { - "$id": "1057", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.isOptional", - "serializationOptions": { - "json": { - "name": "isOptional" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1058", - "kind": "property", - "name": "isUnique", - "serializedName": "isUnique", - "doc": "Determines if it unique.", - "type": { - "$id": "1059", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.isUnique", - "serializationOptions": { - "json": { - "name": "isUnique" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1060", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the attribute.", - "type": { - "$id": "1061", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1062", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the attribute.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1063", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "1064", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1065", - "kind": "property", - "name": "valuesMaxCount", - "serializedName": "valuesMaxCount", - "doc": "The maximum count of the values.", - "type": { - "$id": "1066", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.valuesMaxCount", - "serializationOptions": { - "json": { - "name": "valuesMaxCount" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1067", - "kind": "property", - "name": "valuesMinCount", - "serializedName": "valuesMinCount", - "doc": "The minimum count of the values.", - "type": { - "$id": "1068", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasAttributeDef.valuesMinCount", - "serializationOptions": { - "json": { - "name": "valuesMinCount" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasBusinessMetadataDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "974" - }, - { - "$ref": "984" - }, - { - "$ref": "1008" - }, - { - "$ref": "1040" - }, - { - "$ref": "1044" - }, - { - "$id": "1069", - "kind": "model", - "name": "AtlasClassificationDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of a classification-type.", - "decorators": [], - "properties": [ - { - "$id": "1070", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1071", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1072", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1073", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1074", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1075", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1076", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1077", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1078", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1079", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1080", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1081", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1082", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1083", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1084", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1085", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1086", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1087", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1088", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1089", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1090", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1091", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1092", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1093", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1094", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1095", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$ref": "1039" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1096", - "kind": "property", - "name": "entityTypes", - "serializedName": "entityTypes", - "doc": "Specifying a list of entityType names in the classificationDef, ensures that\nclassifications can\nonly be applied to those entityTypes.\n\nAny subtypes of the entity types inherit the restriction.\n\nAny classificationDef subtypes inherit the parents entityTypes restrictions.\n\nAny classificationDef subtypes can further restrict the parents entityTypes\nrestrictions by specifying a subset of the entityTypes.\n\nAn empty entityTypes list when there are no parent restrictions means there are no\nrestrictions.\n\nAn empty entityTypes list when there are parent\nrestrictions means that the subtype picks up the parents\nrestrictions.\n\nIf a list of entityTypes are supplied, where one inherits\nfrom another, this will be rejected. This should encourage cleaner\nclassificationsDefs.\n", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.entityTypes", - "serializationOptions": { - "json": { - "name": "entityTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1097", - "kind": "property", - "name": "subTypes", - "serializedName": "subTypes", - "doc": "An array of sub types.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.subTypes", - "serializationOptions": { - "json": { - "name": "subTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1098", - "kind": "property", - "name": "superTypes", - "serializedName": "superTypes", - "doc": "An array of super types.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasClassificationDef.superTypes", - "serializationOptions": { - "json": { - "name": "superTypes" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "1099", - "kind": "model", - "name": "AtlasEntityDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of a entity-type.", - "decorators": [], - "properties": [ - { - "$id": "1100", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1101", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1102", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1103", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1105", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1106", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1108", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1110", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1112", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1113", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1115", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1117", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1118", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1119", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1121", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1122", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1123", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1125", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$ref": "1039" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1126", - "kind": "property", - "name": "subTypes", - "serializedName": "subTypes", - "doc": "An array of sub types.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.subTypes", - "serializationOptions": { - "json": { - "name": "subTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1127", - "kind": "property", - "name": "superTypes", - "serializedName": "superTypes", - "doc": "An array of super types.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.superTypes", - "serializationOptions": { - "json": { - "name": "superTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1128", - "kind": "property", - "name": "relationshipAttributeDefs", - "serializedName": "relationshipAttributeDefs", - "doc": "An array of relationship attributes.", - "type": { - "$id": "1129", - "kind": "array", - "name": "ArrayAtlasRelationshipAttributeDef", - "valueType": { - "$id": "1130", - "kind": "model", - "name": "AtlasRelationshipAttributeDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef", - "usage": "Input,Output,Json", - "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", - "decorators": [], - "properties": [ - { - "$id": "1131", - "kind": "property", - "name": "cardinality", - "serializedName": "cardinality", - "doc": "single-valued attribute or multi-valued attribute.", - "type": { - "$ref": "71" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.cardinality", - "serializationOptions": { - "json": { - "name": "cardinality" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1132", - "kind": "property", - "name": "constraints", - "serializedName": "constraints", - "doc": "An array of constraints.", - "type": { - "$ref": "1043" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.constraints", - "serializationOptions": { - "json": { - "name": "constraints" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1133", - "kind": "property", - "name": "defaultValue", - "serializedName": "defaultValue", - "doc": "The default value of the attribute.", - "type": { - "$id": "1134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.defaultValue", - "serializationOptions": { - "json": { - "name": "defaultValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1135", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the attribute.", - "type": { - "$id": "1136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1137", - "kind": "property", - "name": "includeInNotification", - "serializedName": "includeInNotification", - "doc": "Determines if it is included in notification.", - "type": { - "$id": "1138", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.includeInNotification", - "serializationOptions": { - "json": { - "name": "includeInNotification" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1139", - "kind": "property", - "name": "isIndexable", - "serializedName": "isIndexable", - "doc": "Determines if it is indexable.", - "type": { - "$id": "1140", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isIndexable", - "serializationOptions": { - "json": { - "name": "isIndexable" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1141", - "kind": "property", - "name": "isOptional", - "serializedName": "isOptional", - "doc": "Determines if it is optional.", - "type": { - "$id": "1142", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isOptional", - "serializationOptions": { - "json": { - "name": "isOptional" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1143", - "kind": "property", - "name": "isUnique", - "serializedName": "isUnique", - "doc": "Determines if it unique.", - "type": { - "$id": "1144", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isUnique", - "serializationOptions": { - "json": { - "name": "isUnique" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1145", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the attribute.", - "type": { - "$id": "1146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1147", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the attribute.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1148", - "kind": "property", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "1149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.typeName", - "serializationOptions": { - "json": { - "name": "typeName" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1150", - "kind": "property", - "name": "valuesMaxCount", - "serializedName": "valuesMaxCount", - "doc": "The maximum count of the values.", - "type": { - "$id": "1151", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.valuesMaxCount", - "serializationOptions": { - "json": { - "name": "valuesMaxCount" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1152", - "kind": "property", - "name": "valuesMinCount", - "serializedName": "valuesMinCount", - "doc": "The minimum count of the values.", - "type": { - "$id": "1153", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.valuesMinCount", - "serializationOptions": { - "json": { - "name": "valuesMinCount" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1154", - "kind": "property", - "name": "isLegacyAttribute", - "serializedName": "isLegacyAttribute", - "doc": "Determines if it is a legacy attribute.", - "type": { - "$id": "1155", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.isLegacyAttribute", - "serializationOptions": { - "json": { - "name": "isLegacyAttribute" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1156", - "kind": "property", - "name": "relationshipTypeName", - "serializedName": "relationshipTypeName", - "doc": "The name of the relationship type.", - "type": { - "$id": "1157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipAttributeDef.relationshipTypeName", - "serializationOptions": { - "json": { - "name": "relationshipTypeName" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEntityDef.relationshipAttributeDefs", - "serializationOptions": { - "json": { - "name": "relationshipAttributeDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "1130" - }, - { - "$id": "1158", - "kind": "model", - "name": "AtlasEnumDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of an enum-type.", - "decorators": [], - "properties": [ - { - "$id": "1159", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1160", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1161", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1162", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1163", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1164", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1165", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1167", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1169", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1170", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1171", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1172", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1174", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1176", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1177", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1178", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1180", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1181", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1182", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1184", - "kind": "property", - "name": "defaultValue", - "serializedName": "defaultValue", - "doc": "The default value.", - "type": { - "$id": "1185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.defaultValue", - "serializationOptions": { - "json": { - "name": "defaultValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1186", - "kind": "property", - "name": "elementDefs", - "serializedName": "elementDefs", - "doc": "An array of enum element definitions.", - "type": { - "$id": "1187", - "kind": "array", - "name": "ArrayAtlasEnumElementDef", - "valueType": { - "$id": "1188", - "kind": "model", - "name": "AtlasEnumElementDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of an enum-element.", - "decorators": [], - "properties": [ - { - "$id": "1189", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the enum element definition.", - "type": { - "$id": "1190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1191", - "kind": "property", - "name": "ordinal", - "serializedName": "ordinal", - "doc": "The ordinal of the enum element definition.", - "type": { - "$id": "1192", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef.ordinal", - "serializationOptions": { - "json": { - "name": "ordinal" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1193", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The value of the enum element definition.", - "type": { - "$id": "1194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumElementDef.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasEnumDef.elementDefs", - "serializationOptions": { - "json": { - "name": "elementDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "1188" - }, - { - "$id": "1195", - "kind": "model", - "name": "AtlasRelationshipDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef", - "usage": "Input,Output,Json", - "doc": "AtlasRelationshipDef is a TypeDef that defines a relationship.\nAs with other typeDefs the AtlasRelationshipDef has a name. Once created the\nRelationshipDef has a guid.\nThe name and the guid are the 2 ways that the\nRelationshipDef is identified.\nRelationshipDefs have 2 ends, each of which\nspecify cardinality, an EntityDef type name and name and optionally\nwhether the\nend is a container.\nRelationshipDefs can have AttributeDefs - though only\nprimitive types are allowed. \nRelationshipDefs have a relationshipCategory\nspecifying the UML type of relationship required \nThe way EntityDefs and\nRelationshipDefs are intended to be used is that EntityDefs will define\nAttributeDefs these AttributeDefs\nwill not specify an EntityDef type name as\ntheir types.\nRelationshipDefs introduce new attributes to the entity\ninstances. For example\nEntityDef A might have attributes attr1,attr2,attr3\n\nEntityDef B might have attributes attr4,attr5,attr6 \nRelationshipDef\nAtoB might define 2 ends \n\nend1: type A, name attr7\nend2: type B, name attr8 \n\nWhen an instance of EntityDef A is created, it\nwill have attributes attr1,attr2,attr3,attr7 \nWhen an instance of EntityDef\nB is created, it will have attributes attr4,attr5,attr6,attr8\n\nIn this way\nrelationshipDefs can be authored separately from entityDefs and can inject\nrelationship attributes into\nthe entity instances", - "decorators": [], - "properties": [ - { - "$id": "1196", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1197", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1198", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1199", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1201", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1202", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1204", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1206", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1208", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1209", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1211", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1213", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1214", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1215", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1217", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1218", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1219", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1221", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$ref": "1039" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1222", - "kind": "property", - "name": "endDef1", - "serializedName": "endDef1", - "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", - "type": { - "$id": "1223", - "kind": "model", - "name": "AtlasRelationshipEndDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef", - "usage": "Input,Output,Json", - "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", - "decorators": [], - "properties": [ - { - "$id": "1224", - "kind": "property", - "name": "cardinality", - "serializedName": "cardinality", - "doc": "single-valued attribute or multi-valued attribute.", - "type": { - "$ref": "71" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.cardinality", - "serializationOptions": { - "json": { - "name": "cardinality" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1225", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the relationship end definition.", - "type": { - "$id": "1226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1227", - "kind": "property", - "name": "isContainer", - "serializedName": "isContainer", - "doc": "Determines if it is container.", - "type": { - "$id": "1228", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.isContainer", - "serializationOptions": { - "json": { - "name": "isContainer" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1229", - "kind": "property", - "name": "isLegacyAttribute", - "serializedName": "isLegacyAttribute", - "doc": "Determines if it is a legacy attribute.", - "type": { - "$id": "1230", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.isLegacyAttribute", - "serializationOptions": { - "json": { - "name": "isLegacyAttribute" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1231", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the relationship end definition.", - "type": { - "$id": "1232", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1233", - "kind": "property", - "name": "type", - "serializedName": "type", - "doc": "The type of the relationship end.", - "type": { - "$id": "1234", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipEndDef.type", - "serializationOptions": { - "json": { - "name": "type" - } - }, - "isHttpMetadata": false - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.endDef1", - "serializationOptions": { - "json": { - "name": "endDef1" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1235", - "kind": "property", - "name": "endDef2", - "serializedName": "endDef2", - "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", - "type": { - "$ref": "1223" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.endDef2", - "serializationOptions": { - "json": { - "name": "endDef2" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1236", - "kind": "property", - "name": "relationshipCategory", - "serializedName": "relationshipCategory", - "doc": "The Relationship category determines the style of relationship around\ncontainment and lifecycle.\nUML terminology is used for the values.\nASSOCIATION is a relationship with no containment. \nCOMPOSITION and AGGREGATION are containment relationships.\nThe difference being in the lifecycles of the container and its children. \nIn the COMPOSITION case, the children cannot exist without the container.\nFor AGGREGATION, the life cycles of the container and children are totally independent.", - "type": { - "$ref": "76" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.relationshipCategory", - "serializationOptions": { - "json": { - "name": "relationshipCategory" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1237", - "kind": "property", - "name": "relationshipLabel", - "serializedName": "relationshipLabel", - "doc": "The label of the relationship.", - "type": { - "$id": "1238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasRelationshipDef.relationshipLabel", - "serializationOptions": { - "json": { - "name": "relationshipLabel" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "1223" - }, - { - "$id": "1239", - "kind": "model", - "name": "AtlasStructDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef", - "usage": "Input,Output,Json", - "doc": "class that captures details of a struct-type.", - "decorators": [], - "properties": [ - { - "$id": "1240", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1241", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1242", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1243", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1245", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1246", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1248", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1250", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1251", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1252", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1253", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1255", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1256", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1257", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1258", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1259", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1261", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1262", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1263", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1265", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$ref": "1039" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasStructDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "1266", - "kind": "model", - "name": "AtlasTypeDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef", - "usage": "Output,Json", - "doc": "The definitions of type.", - "decorators": [], - "properties": [ - { - "$id": "1267", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1268", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1269", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1270", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1271", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1272", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1273", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1275", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1277", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1279", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1280", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1281", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1282", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1283", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1284", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1285", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1286", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1288", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1289", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1290", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1291", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1292", - "kind": "property", - "name": "entityTypes", - "serializedName": "entityTypes", - "doc": "Specifying a list of entityType names in the classificationDef, ensures that\nclassifications can\nonly be applied to those entityTypes.\n\nAny subtypes of the entity types inherit the restriction.\n\nAny classificationDef subtypes inherit the parents entityTypes restrictions.\n\nAny classificationDef subtypes can further restrict the parents entityTypes\nrestrictions by specifying a subset of the entityTypes.\n\nAn empty entityTypes list when there are no parent restrictions means there are no\nrestrictions.\n\nAn empty entityTypes list when there are parent\nrestrictions means that the subtype picks up the parents\nrestrictions.\n\nIf a list of entityTypes are supplied, where one inherits\nfrom another, this will be rejected. This should encourage cleaner\nclassificationsDefs.\n", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.entityTypes", - "serializationOptions": { - "json": { - "name": "entityTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1293", - "kind": "property", - "name": "subTypes", - "serializedName": "subTypes", - "doc": "An array of sub types.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.subTypes", - "serializationOptions": { - "json": { - "name": "subTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1294", - "kind": "property", - "name": "superTypes", - "serializedName": "superTypes", - "doc": "An array of super types.", - "type": { - "$ref": "374" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.superTypes", - "serializationOptions": { - "json": { - "name": "superTypes" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1295", - "kind": "property", - "name": "relationshipAttributeDefs", - "serializedName": "relationshipAttributeDefs", - "doc": "An array of relationship attributes.", - "type": { - "$ref": "1129" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.relationshipAttributeDefs", - "serializationOptions": { - "json": { - "name": "relationshipAttributeDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1296", - "kind": "property", - "name": "defaultValue", - "serializedName": "defaultValue", - "doc": "The default value.", - "type": { - "$id": "1297", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.defaultValue", - "serializationOptions": { - "json": { - "name": "defaultValue" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1298", - "kind": "property", - "name": "elementDefs", - "serializedName": "elementDefs", - "doc": "An array of enum element definitions.", - "type": { - "$ref": "1187" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.elementDefs", - "serializationOptions": { - "json": { - "name": "elementDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1299", - "kind": "property", - "name": "endDef1", - "serializedName": "endDef1", - "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", - "type": { - "$ref": "1223" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.endDef1", - "serializationOptions": { - "json": { - "name": "endDef1" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1300", - "kind": "property", - "name": "endDef2", - "serializedName": "endDef2", - "doc": "The relationshipEndDef represents an end of the relationship. The end of the\nrelationship is defined by a type, an\nattribute name, cardinality and whether\nit is the container end of the relationship.", - "type": { - "$ref": "1223" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.endDef2", - "serializationOptions": { - "json": { - "name": "endDef2" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1301", - "kind": "property", - "name": "relationshipCategory", - "serializedName": "relationshipCategory", - "doc": "The Relationship category determines the style of relationship around\ncontainment and lifecycle.\nUML terminology is used for the values.\n\nASSOCIATION is a relationship with no containment. \nCOMPOSITION and AGGREGATION are containment relationships.\n\nThe difference being in the lifecycles of the container and its children. \nIn the COMPOSITION case, the children cannot exist without the container. \nFor AGGREGATION, the life cycles of the container and children are totally independent.", - "type": { - "$ref": "76" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.relationshipCategory", - "serializationOptions": { - "json": { - "name": "relationshipCategory" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1302", - "kind": "property", - "name": "relationshipLabel", - "serializedName": "relationshipLabel", - "doc": "The label of the relationship.", - "type": { - "$id": "1303", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.relationshipLabel", - "serializationOptions": { - "json": { - "name": "relationshipLabel" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1304", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$ref": "1039" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "1305", - "kind": "model", - "name": "AtlasTypesDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef", - "usage": "Input,Output,Json", - "doc": "The definitions of types.", - "decorators": [], - "properties": [ - { - "$id": "1306", - "kind": "property", - "name": "businessMetadataDefs", - "serializedName": "businessMetadataDefs", - "doc": "businessMetadataDefs", - "type": { - "$id": "1307", - "kind": "array", - "name": "ArrayAtlasBusinessMetadataDef", - "valueType": { - "$ref": "967" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.businessMetadataDefs", - "serializationOptions": { - "json": { - "name": "businessMetadataDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1308", - "kind": "property", - "name": "classificationDefs", - "serializedName": "classificationDefs", - "doc": "An array of classification definitions.", - "type": { - "$id": "1309", - "kind": "array", - "name": "ArrayAtlasClassificationDef", - "valueType": { - "$ref": "1069" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.classificationDefs", - "serializationOptions": { - "json": { - "name": "classificationDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1310", - "kind": "property", - "name": "entityDefs", - "serializedName": "entityDefs", - "doc": "An array of entity definitions.", - "type": { - "$id": "1311", - "kind": "array", - "name": "ArrayAtlasEntityDef", - "valueType": { - "$ref": "1099" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.entityDefs", - "serializationOptions": { - "json": { - "name": "entityDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1312", - "kind": "property", - "name": "enumDefs", - "serializedName": "enumDefs", - "doc": "An array of enum definitions.", - "type": { - "$id": "1313", - "kind": "array", - "name": "ArrayAtlasEnumDef", - "valueType": { - "$ref": "1158" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.enumDefs", - "serializationOptions": { - "json": { - "name": "enumDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1314", - "kind": "property", - "name": "relationshipDefs", - "serializedName": "relationshipDefs", - "doc": "An array of relationship definitions.", - "type": { - "$id": "1315", - "kind": "array", - "name": "ArrayAtlasRelationshipDef", - "valueType": { - "$ref": "1195" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.relationshipDefs", - "serializationOptions": { - "json": { - "name": "relationshipDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1316", - "kind": "property", - "name": "structDefs", - "serializedName": "structDefs", - "doc": "An array of struct definitions.", - "type": { - "$id": "1317", - "kind": "array", - "name": "ArrayAtlasStructDef", - "valueType": { - "$ref": "1239" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.structDefs", - "serializationOptions": { - "json": { - "name": "structDefs" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1318", - "kind": "property", - "name": "termTemplateDefs", - "serializedName": "termTemplateDefs", - "doc": "An array of term template definitions.", - "type": { - "$id": "1319", - "kind": "array", - "name": "ArrayTermTemplateDef", - "valueType": { - "$id": "1320", - "kind": "model", - "name": "TermTemplateDef", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef", - "usage": "Input,Output,Json", - "doc": "Term template definition for glossary term.", - "decorators": [], - "properties": [ - { - "$id": "1321", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1322", - "kind": "property", - "name": "createTime", - "serializedName": "createTime", - "doc": "The created time of the record.", - "type": { - "$id": "1323", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.createTime", - "serializationOptions": { - "json": { - "name": "createTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1324", - "kind": "property", - "name": "createdBy", - "serializedName": "createdBy", - "doc": "The user who created the record.", - "type": { - "$id": "1325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.createdBy", - "serializationOptions": { - "json": { - "name": "createdBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1326", - "kind": "property", - "name": "dateFormatter", - "serializedName": "dateFormatter", - "doc": "The date format.", - "type": { - "$ref": "974" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.dateFormatter", - "serializationOptions": { - "json": { - "name": "dateFormatter" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1327", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "The description of the type definition.", - "type": { - "$id": "1328", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.description", - "serializationOptions": { - "json": { - "name": "description" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1329", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1331", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1332", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1333", - "kind": "property", - "name": "options", - "serializedName": "options", - "doc": "The options for the type definition.", - "type": { - "$ref": "362" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.options", - "serializationOptions": { - "json": { - "name": "options" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1334", - "kind": "property", - "name": "serviceType", - "serializedName": "serviceType", - "doc": "The service type.", - "type": { - "$id": "1335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.serviceType", - "serializationOptions": { - "json": { - "name": "serviceType" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1336", - "kind": "property", - "name": "typeVersion", - "serializedName": "typeVersion", - "doc": "The version of the type.", - "type": { - "$id": "1337", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.typeVersion", - "serializationOptions": { - "json": { - "name": "typeVersion" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1338", - "kind": "property", - "name": "updateTime", - "serializedName": "updateTime", - "doc": "The update time of the record.", - "type": { - "$id": "1339", - "kind": "safeint", - "name": "safeint", - "crossLanguageDefinitionId": "TypeSpec.safeint", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.updateTime", - "serializationOptions": { - "json": { - "name": "updateTime" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1340", - "kind": "property", - "name": "updatedBy", - "serializedName": "updatedBy", - "doc": "The user who updated the record.", - "type": { - "$id": "1341", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.updatedBy", - "serializationOptions": { - "json": { - "name": "updatedBy" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1342", - "kind": "property", - "name": "version", - "serializedName": "version", - "doc": "The version of the record.", - "type": { - "$id": "1343", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.version", - "serializationOptions": { - "json": { - "name": "version" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1344", - "kind": "property", - "name": "lastModifiedTS", - "serializedName": "lastModifiedTS", - "doc": "ETag for concurrency control.", - "type": { - "$id": "1345", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.lastModifiedTS", - "serializationOptions": { - "json": { - "name": "lastModifiedTS" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1346", - "kind": "property", - "name": "attributeDefs", - "serializedName": "attributeDefs", - "doc": "An array of attribute definitions.", - "type": { - "$ref": "1039" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.TermTemplateDef.attributeDefs", - "serializationOptions": { - "json": { - "name": "attributeDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypesDef.termTemplateDefs", - "serializationOptions": { - "json": { - "name": "termTemplateDefs" - } - }, - "isHttpMetadata": false - } - ] - }, - { - "$ref": "1320" - }, - { - "$id": "1347", - "kind": "model", - "name": "AtlasTypeDefHeader", - "namespace": "Azure.Analytics.Purview.DataMap", - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader", - "usage": "Output,Json", - "doc": "The basic information of the type definition.", - "decorators": [], - "properties": [ - { - "$id": "1348", - "kind": "property", - "name": "category", - "serializedName": "category", - "doc": "The enum of type category.", - "type": { - "$ref": "49" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader.category", - "serializationOptions": { - "json": { - "name": "category" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1349", - "kind": "property", - "name": "guid", - "serializedName": "guid", - "doc": "The GUID of the type definition.", - "type": { - "$id": "1350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader.guid", - "serializationOptions": { - "json": { - "name": "guid" - } - }, - "isHttpMetadata": false - }, - { - "$id": "1351", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The name of the type definition.", - "type": { - "$id": "1352", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "PurviewDataMap.AtlasTypeDefHeader.name", - "serializationOptions": { - "json": { - "name": "name" - } - }, - "isHttpMetadata": false - } - ] - } - ], - "clients": [ - { - "$id": "1353", - "kind": "client", - "name": "DataMapClient", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [], - "parameters": [ - { - "$id": "1354", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "1355", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - }, - { - "$id": "1356", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "1358", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "initializedBy": 1, - "decorators": [], - "crossLanguageDefinitionId": "Customizations", - "apiVersions": [ - "2023-09-01" - ], - "children": [ - { - "$id": "1359", - "kind": "client", - "name": "Entity", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [ - { - "$id": "1360", - "kind": "basic", - "name": "createOrUpdate", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create or update an entity.\nExisting entity is matched using its unique guid if\nsupplied or by its unique attributes eg: qualifiedName.\nMap and array of\ncollections are not well supported. E.g., array>, array>.\nFor each contact type, the maximum number of contacts is 20.", - "operation": { - "$id": "1361", - "name": "createOrUpdate", - "resourceName": "Entity", - "doc": "Create or update an entity.\nExisting entity is matched using its unique guid if\nsupplied or by its unique attributes eg: qualifiedName.\nMap and array of\ncollections are not well supported. E.g., array>, array>.\nFor each contact type, the maximum number of contacts is 20.", - "accessibility": "public", - "parameters": [ - { - "$id": "1362", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1363", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "1364", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.apiVersion", - "readOnly": false - }, - { - "$id": "1365", - "kind": "query", - "name": "businessAttributeUpdateBehavior", - "serializedName": "businessAttributeUpdateBehavior", - "doc": "Used to define the update behavior for business attributes when updating\nentities.", - "type": { - "$ref": "81" - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.businessAttributeUpdateBehavior", - "readOnly": false - }, - { - "$id": "1366", - "kind": "query", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", - "type": { - "$id": "1367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.collectionId", - "readOnly": false - }, - { - "$id": "1368", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "89" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.contentType" - }, - { - "$id": "1369", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "91" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.accept" - }, - { - "$id": "1370", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "321" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate", - "decorators": [], - "examples": [ - { - "$id": "1371", - "kind": "http", - "name": "Entity_AddCustomAttribute", - "description": "Entity_AddCustomAttribute", - "filePath": "2023-09-01/Entity_AddCustomAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "1362" - }, - "value": { - "$id": "1372", - "kind": "string", - "type": { - "$ref": "1363" - }, - "value": "2023-09-01" - } - }, - { - "parameter": { - "$ref": "1370" - }, - "value": { - "$id": "1373", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "referredEntities": { - "$id": "1374", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entity": { - "$id": "1375", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1376", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1377", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1378", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "modifiedTime": { - "$id": "1379", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "createTime": { - "$id": "1380", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1381", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "1382", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount" - }, - "description": { - "$id": "1383", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "publicAccessLevel": { - "$id": "1384", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "customAttributes": { - "$id": "1385", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "custAttr1": { - "$id": "1386", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "attr1" - }, - "custAttr2": { - "$id": "1387", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "attr2" - } - } - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1388", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1389", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "CREATE": { - "$id": "1390", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1391", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1392", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1393", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1394", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "createTime": { - "$id": "1395", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1396", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "1397", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount" - } - } - }, - "lastModifiedTS": { - "$id": "1398", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "1399", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "c696b935-2c76-4208-bc0d-8864553a67f1" - }, - "displayText": { - "$id": "1400", - "kind": "string", - "type": { - "$ref": "435" - }, - "value": "ExampleStorageAccount" - }, - "classificationNames": { - "$id": "1401", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "classifications": { - "$id": "1402", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [] - }, - "meaningNames": { - "$id": "1403", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "meanings": { - "$id": "1404", - "kind": "array", - "type": { - "$ref": "377" - }, - "value": [] - }, - "isIncomplete": { - "$id": "1405", - "kind": "boolean", - "type": { - "$ref": "439" - }, - "value": false - }, - "labels": { - "$id": "1406", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - ] - } - } - }, - "guidAssignments": { - "$id": "1407", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "-16806536444330": { - "$id": "1408", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "c696b935-2c76-4208-bc0d-8864553a67f1" - } - } - } - } - } - } - ] - }, - { - "$id": "1409", - "kind": "http", - "name": "Entity_Create", - "description": "Entity_Create", - "filePath": "2023-09-01/Entity_Create.json", - "parameters": [ - { - "parameter": { - "$ref": "1362" - }, - "value": { - "$id": "1410", - "kind": "string", - "type": { - "$ref": "1363" - }, - "value": "2023-09-01" - } - }, - { - "parameter": { - "$ref": "1370" - }, - "value": { - "$id": "1411", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "referredEntities": { - "$id": "1412", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entity": { - "$id": "1413", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1414", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1415", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1416", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "modifiedTime": { - "$id": "1417", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "createTime": { - "$id": "1418", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1419", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "1420", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount" - }, - "description": { - "$id": "1421", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "publicAccessLevel": { - "$id": "1422", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1423", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1424", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1425", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1426", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1427", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1428", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1429", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1430", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1431", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - }, - "status": { - "$id": "1432", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1433", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1434", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "1435", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1436", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1437", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "CREATE": { - "$id": "1438", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1439", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1440", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1441", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1442", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - }, - "lastModifiedTS": { - "$id": "1443", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "1444", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" - }, - "status": { - "$id": "1445", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - } - } - }, - "guidAssignments": { - "$id": "1446", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "-9514774903018162": { - "$id": "1447", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" - } - } - } - } - } - } - ] - }, - { - "$id": "1448", - "kind": "http", - "name": "Entity_CreateOrUpdateWithRichText", - "description": "Entity_CreateOrUpdateWithRichText", - "filePath": "2023-09-01/Entity_CreateOrUpdateWithRichText.json", - "parameters": [ - { - "parameter": { - "$ref": "1362" - }, - "value": { - "$id": "1449", - "kind": "string", - "type": { - "$ref": "1363" - }, - "value": "2023-09-01" - } - }, - { - "parameter": { - "$ref": "1370" - }, - "value": { - "$id": "1450", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "referredEntities": { - "$id": "1451", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entity": { - "$id": "1452", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1453", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1454", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1455", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "modifiedTime": { - "$id": "1456", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "createTime": { - "$id": "1457", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1458", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "1459", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount" - }, - "description": { - "$id": "1460", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "userDescription": { - "$id": "1461", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "
testing
" - }, - "publicAccessLevel": { - "$id": "1462", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "customAttributes": { - "$id": "1463", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "microsoft_isDescriptionRichText": { - "$id": "1464", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "true" - } - } - }, - "status": { - "$id": "1465", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1466", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1467", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "1468", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1469", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1470", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "CREATE": { - "$id": "1471", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1472", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1473", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1474", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1475", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - }, - "lastModifiedTS": { - "$id": "1476", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "1477", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" - }, - "status": { - "$id": "1478", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - } - } - }, - "guidAssignments": { - "$id": "1479", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "-9514774903018162": { - "$id": "1480", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "38d3c41f-300c-434e-8dad-0b1a7cb5efd6" - } - } - } - } - } - } - ] - }, - { - "$id": "1481", - "kind": "http", - "name": "Entity_Update", - "description": "Entity_Update", - "filePath": "2023-09-01/Entity_Update.json", - "parameters": [ - { - "parameter": { - "$ref": "1362" - }, - "value": { - "$id": "1482", - "kind": "string", - "type": { - "$ref": "1363" - }, - "value": "2023-09-01" - } - }, - { - "parameter": { - "$ref": "1370" - }, - "value": { - "$id": "1483", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "referredEntities": { - "$id": "1484", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entity": { - "$id": "1485", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1486", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1487", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1488", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "modifiedTime": { - "$id": "1489", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "createTime": { - "$id": "1490", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1491", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount" - }, - "name": { - "$id": "1492", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount" - }, - "description": { - "$id": "1493", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "publicAccessLevel": { - "$id": "1494", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1495", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1496", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1497", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1498", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1499", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1500", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1501", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1502", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1503", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - }, - "status": { - "$id": "1504", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1505", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1506", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "1507", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1508", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1509", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "UPDATE": { - "$id": "1510", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1511", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1512", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1513", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1514", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount" - } - } - }, - "lastModifiedTS": { - "$id": "1515", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "2" - }, - "guid": { - "$id": "1516", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "029d5668-a36c-40a9-bc11-6f352bafdc3b" - } - } - } - ] - } - } - }, - "guidAssignments": { - "$id": "1517", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "-9514774903018167": { - "$id": "1518", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "029d5668-a36c-40a9-bc11-6f352bafdc3b" - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1519", - "kind": "method", - "name": "businessAttributeUpdateBehavior", - "serializedName": "businessAttributeUpdateBehavior", - "doc": "Used to define the update behavior for business attributes when updating\nentities.", - "type": { - "$ref": "81" - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.businessAttributeUpdateBehavior", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1520", - "kind": "method", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", - "type": { - "$id": "1521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.collectionId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1522", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "321" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1523", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "89" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1524", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "91" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.createOrUpdate" - }, - { - "$id": "1525", - "kind": "basic", - "name": "getByIds", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "List entities in bulk identified by its GUIDs.", - "operation": { - "$id": "1526", - "name": "getByIds", - "resourceName": "Entity", - "doc": "List entities in bulk identified by its GUIDs.", - "accessibility": "public", - "parameters": [ - { - "$id": "1527", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1528", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "1529", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.apiVersion", - "readOnly": false - }, - { - "$id": "1530", - "kind": "query", - "name": "guid", - "serializedName": "guid", - "doc": "An array of GUIDs of entities to list.", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "explode": true, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.guid", - "readOnly": false - }, - { - "$id": "1531", - "kind": "query", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "1532", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.minExtInfo", - "readOnly": false - }, - { - "$id": "1533", - "kind": "query", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "1534", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.ignoreRelationships", - "readOnly": false - }, - { - "$id": "1535", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "93" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "453" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/bulk", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.getByIds", - "decorators": [], - "examples": [ - { - "$id": "1536", - "kind": "http", - "name": "Entity_ListByGuids", - "description": "Entity_ListByGuids", - "filePath": "2023-09-01/Entity_ListByGuids.json", - "parameters": [ - { - "parameter": { - "$ref": "1530" - }, - "value": { - "$id": "1537", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "1538", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" - }, - { - "$id": "1539", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" - } - ] - } - }, - { - "parameter": { - "$ref": "1531" - }, - "value": { - "$id": "1540", - "kind": "boolean", - "type": { - "$ref": "1532" - }, - "value": true - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "453" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1541", - "kind": "model", - "type": { - "$ref": "453" - }, - "value": { - "referredEntities": { - "$id": "1542", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entities": { - "$id": "1543", - "kind": "array", - "type": { - "$ref": "456" - }, - "value": [ - { - "$id": "1544", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1545", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "column" - }, - "attributes": { - "$id": "1546", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1547", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "qualifiedName": { - "$id": "1548", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1" - }, - "name": { - "$id": "1549", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleName1" - }, - "description": { - "$id": "1550", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "type": { - "$id": "1551", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "string" - } - } - }, - "guid": { - "$id": "1552", - "kind": "string", - "type": { - "$ref": "366" - }, - "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" - }, - "status": { - "$id": "1553", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1554", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1555", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "1556", - "kind": "number", - "type": { - "$ref": "358" - }, - "value": 1553072455110 - }, - "updateTime": { - "$id": "1557", - "kind": "number", - "type": { - "$ref": "405" - }, - "value": 1553072455110 - }, - "version": { - "$id": "1558", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - }, - "relationshipAttributes": { - "$id": "1559", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "schema": { - "$id": "1560", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "inputToProcesses": { - "$id": "1561", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "composeSchema": { - "$id": "1562", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": { - "guid": "cc6652ae-dc6d-90c9-1899-252eabc0e929", - "typeName": "tabular_schema", - "displayText": "tabular_schema", - "relationshipGuid": "400fd8e4-97bd-45eb-a21c-880b4094ce5b", - "relationshipStatus": "ACTIVE", - "relationshipAttributes": { - "typeName": "tabular_schema_columns" - } - } - }, - "meanings": { - "$id": "1563", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "outputFromProcesses": { - "$id": "1564", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "tabular_schema": { - "$id": "1565", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1566", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1567", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1568", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1569", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1570", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1571", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1572", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1573", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1574", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - } - } - }, - { - "$id": "1575", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1576", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "column" - }, - "attributes": { - "$id": "1577", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1578", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "qualifiedName": { - "$id": "1579", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "adl://exampleaccount.azuredatalakestore.net/123/1/Experience/CBT/Extensions/CodeAnalysis.targets#:xml/Project/PropertyGroup/ExampleName2" - }, - "name": { - "$id": "1580", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleName2" - }, - "description": { - "$id": "1581", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "type": { - "$id": "1582", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "string" - } - } - }, - "guid": { - "$id": "1583", - "kind": "string", - "type": { - "$ref": "366" - }, - "value": "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" - }, - "status": { - "$id": "1584", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1585", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1586", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "1587", - "kind": "number", - "type": { - "$ref": "358" - }, - "value": 1553072455110 - }, - "updateTime": { - "$id": "1588", - "kind": "number", - "type": { - "$ref": "405" - }, - "value": 1553072455110 - }, - "version": { - "$id": "1589", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - }, - "relationshipAttributes": { - "$id": "1590", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "schema": { - "$id": "1591", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "inputToProcesses": { - "$id": "1592", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "composeSchema": { - "$id": "1593", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": { - "guid": "381dd3e6-dad5-7409-c21d-ea55b666e420", - "typeName": "tabular_schema", - "displayText": "tabular_schema", - "relationshipGuid": "0b652860-ab79-48cd-a0cf-0867fbba31a3", - "relationshipStatus": "ACTIVE", - "relationshipAttributes": { - "typeName": "tabular_schema_columns" - } - } - }, - "meanings": { - "$id": "1594", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "outputFromProcesses": { - "$id": "1595", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "tabular_schema": { - "$id": "1596", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1597", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1598", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1599", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1600", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1601", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1602", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1603", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1604", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1605", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1606", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "An array of GUIDs of entities to list.", - "type": { - "$ref": "374" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1607", - "kind": "method", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "1608", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.minExtInfo", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1609", - "kind": "method", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "1610", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.ignoreRelationships", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1611", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "93" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.getByIds.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "453" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.getByIds" - }, - { - "$id": "1612", - "kind": "basic", - "name": "batchCreateOrUpdate", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create or update entities in bulk.\nExisting entity is matched using its unique\nguid if supplied or by its unique attributes eg: qualifiedName.\nMap and array\nof collections are not well supported. E.g., array>,\narray>.\nFor each contact type, the maximum number of contacts\nis 20.", - "operation": { - "$id": "1613", - "name": "batchCreateOrUpdate", - "resourceName": "Entity", - "doc": "Create or update entities in bulk.\nExisting entity is matched using its unique\nguid if supplied or by its unique attributes eg: qualifiedName.\nMap and array\nof collections are not well supported. E.g., array>,\narray>.\nFor each contact type, the maximum number of contacts\nis 20.", - "accessibility": "public", - "parameters": [ - { - "$id": "1614", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1615", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "1616", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.apiVersion", - "readOnly": false - }, - { - "$id": "1617", - "kind": "query", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", - "type": { - "$id": "1618", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.collectionId", - "readOnly": false - }, - { - "$id": "1619", - "kind": "query", - "name": "businessAttributeUpdateBehavior", - "serializedName": "businessAttributeUpdateBehavior", - "doc": "Used to define the update behavior for business attributes when updating\nentities.", - "type": { - "$ref": "81" - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.businessAttributeUpdateBehavior", - "readOnly": false - }, - { - "$id": "1620", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "95" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.contentType" - }, - { - "$id": "1621", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "97" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.accept" - }, - { - "$id": "1622", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "453" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/bulk", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate", - "decorators": [], - "examples": [ - { - "$id": "1623", - "kind": "http", - "name": "Entity_BulkCreateOrUpdate", - "description": "Entity_BulkCreateOrUpdate", - "filePath": "2023-09-01/Entity_BulkCreateOrUpdate.json", - "parameters": [ - { - "parameter": { - "$ref": "1622" - }, - "value": { - "$id": "1624", - "kind": "model", - "type": { - "$ref": "453" - }, - "value": { - "referredEntities": { - "$id": "1625", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entities": { - "$id": "1626", - "kind": "array", - "type": { - "$ref": "456" - }, - "value": [ - { - "$id": "1627", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1628", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1629", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1630", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "modifiedTime": { - "$id": "1631", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "createTime": { - "$id": "1632", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1633", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount1" - }, - "name": { - "$id": "1634", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount1" - }, - "description": { - "$id": "1635", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "publicAccessLevel": { - "$id": "1636", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1637", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1638", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1639", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1640", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1641", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1642", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1643", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1644", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1645", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - }, - "status": { - "$id": "1646", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1647", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1648", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "1649", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - } - } - }, - { - "$id": "1650", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1651", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1652", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1653", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "modifiedTime": { - "$id": "1654", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "createTime": { - "$id": "1655", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "1656", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount2" - }, - "name": { - "$id": "1657", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount2" - }, - "description": { - "$id": "1658", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "publicAccessLevel": { - "$id": "1659", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1660", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1661", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1662", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1663", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1664", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1665", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1666", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1667", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1668", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - }, - "status": { - "$id": "1669", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1670", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1671", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "1672", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1673", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1674", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "UPDATE": { - "$id": "1675", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1676", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1677", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1678", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1679", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount2" - } - } - }, - "lastModifiedTS": { - "$id": "1680", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "2" - }, - "guid": { - "$id": "1681", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - }, - "status": { - "$id": "1682", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - }, - "CREATE": { - "$id": "1683", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1684", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1685", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1686", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1687", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount1" - } - } - }, - "lastModifiedTS": { - "$id": "1688", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "1689", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" - }, - "status": { - "$id": "1690", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - } - } - }, - "guidAssignments": { - "$id": "1691", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "-9514774903018192": { - "$id": "1692", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" - }, - "-9514774903018193": { - "$id": "1693", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1694", - "kind": "method", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection where entities will be moved to. Only specify a value if you\nneed to move an entity to another collection.", - "type": { - "$id": "1695", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.collectionId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1696", - "kind": "method", - "name": "businessAttributeUpdateBehavior", - "serializedName": "businessAttributeUpdateBehavior", - "doc": "Used to define the update behavior for business attributes when updating\nentities.", - "type": { - "$ref": "81" - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.businessAttributeUpdateBehavior", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1697", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "453" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1698", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "95" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1699", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "97" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchCreateOrUpdate" - }, - { - "$id": "1700", - "kind": "basic", - "name": "batchDelete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a list of entities in bulk identified by their GUIDs or unique\nattributes.", - "operation": { - "$id": "1701", - "name": "batchDelete", - "resourceName": "Entity", - "doc": "Delete a list of entities in bulk identified by their GUIDs or unique\nattributes.", - "accessibility": "public", - "parameters": [ - { - "$id": "1702", - "kind": "query", - "name": "guid", - "serializedName": "guid", - "doc": "An array of GUIDs of entities to delete.", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "explode": true, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.guid", - "readOnly": false - }, - { - "$id": "1703", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "99" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/bulk", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchDelete", - "decorators": [], - "examples": [ - { - "$id": "1704", - "kind": "http", - "name": "Entity_BulkDelete", - "description": "Entity_BulkDelete", - "filePath": "2023-09-01/Entity_BulkDelete.json", - "parameters": [ - { - "parameter": { - "$ref": "1702" - }, - "value": { - "$id": "1705", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "1706", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "18e06957-e265-967a-07f1-e14e2ab8940f" - }, - { - "$id": "1707", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1708", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1709", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "DELETE": { - "$id": "1710", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1711", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1712", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_blob_container" - }, - "attributes": { - "$id": "1713", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1714", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplecontainer" - } - } - }, - "guid": { - "$id": "1715", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "18e06957-e265-967a-07f1-e14e2ab8940f" - }, - "status": { - "$id": "1716", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - }, - { - "$id": "1717", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1718", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_blob_container" - }, - "attributes": { - "$id": "1719", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1720", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplecontainer2" - } - } - }, - "guid": { - "$id": "1721", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" - }, - "status": { - "$id": "1722", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1723", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "An array of GUIDs of entities to delete.", - "type": { - "$ref": "374" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1724", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "99" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.batchDelete.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchDelete" - }, - { - "$id": "1725", - "kind": "basic", - "name": "addClassification", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Associate a classification to multiple entities in bulk.", - "operation": { - "$id": "1726", - "name": "addClassification", - "resourceName": "Entity", - "doc": "Associate a classification to multiple entities in bulk.", - "accessibility": "public", - "parameters": [ - { - "$id": "1727", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "101" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addClassification.contentType" - }, - { - "$id": "1728", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "457" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addClassification.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/bulk/classification", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addClassification", - "decorators": [], - "examples": [ - { - "$id": "1729", - "kind": "http", - "name": "Entity_AddClassificationToEntityByGuids", - "description": "Entity_AddClassificationToEntityByGuids", - "filePath": "2023-09-01/Entity_AddClassificationToEntityByGuids.json", - "parameters": [ - { - "parameter": { - "$ref": "1728" - }, - "value": { - "$id": "1730", - "kind": "model", - "type": { - "$ref": "457" - }, - "value": { - "classification": { - "$id": "1731", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "1732", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" - }, - "attributes": { - "$id": "1733", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": {} - }, - "validityPeriods": { - "$id": "1734", - "kind": "array", - "type": { - "$ref": "349" - }, - "value": [] - } - } - }, - "entityGuids": { - "$id": "1735", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "1736", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" - }, - { - "$id": "1737", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "b4ebc8be-cef4-860a-bee9-28cc34cb5caa" - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1738", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "457" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addClassification.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1739", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "101" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addClassification.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addClassification" - }, - { - "$id": "1740", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get complete definition of an entity given its GUID.", - "operation": { - "$id": "1741", - "name": "get", - "resourceName": "Entity", - "doc": "Get complete definition of an entity given its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "1742", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1743", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.get.guid" - }, - { - "$id": "1744", - "kind": "query", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "1745", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.get.minExtInfo", - "readOnly": false - }, - { - "$id": "1746", - "kind": "query", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "1747", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.get.ignoreRelationships", - "readOnly": false - }, - { - "$id": "1748", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "103" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.get.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "321" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.get", - "decorators": [], - "examples": [ - { - "$id": "1749", - "kind": "http", - "name": "Entity_Get", - "description": "Entity_Get", - "filePath": "2023-09-01/Entity_Get.json", - "parameters": [ - { - "parameter": { - "$ref": "1742" - }, - "value": { - "$id": "1750", - "kind": "string", - "type": { - "$ref": "1743" - }, - "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" - } - }, - { - "parameter": { - "$ref": "1744" - }, - "value": { - "$id": "1751", - "kind": "boolean", - "type": { - "$ref": "1745" - }, - "value": true - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "321" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1752", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "referredEntities": { - "$id": "1753", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entity": { - "$id": "1754", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "1755", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "column" - }, - "attributes": { - "$id": "1756", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1757", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "qualifiedName": { - "$id": "1758", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/Target/XmlPeek/@XmlInputPath" - }, - "name": { - "$id": "1759", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "~XmlInputPath" - }, - "description": { - "$id": "1760", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "type": { - "$id": "1761", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "string" - } - } - }, - "guid": { - "$id": "1762", - "kind": "string", - "type": { - "$ref": "366" - }, - "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" - }, - "status": { - "$id": "1763", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "1764", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "1765", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "1766", - "kind": "number", - "type": { - "$ref": "358" - }, - "value": 1553072455110 - }, - "updateTime": { - "$id": "1767", - "kind": "number", - "type": { - "$ref": "405" - }, - "value": 1553072455110 - }, - "version": { - "$id": "1768", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - }, - "relationshipAttributes": { - "$id": "1769", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "schema": { - "$id": "1770", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "inputToProcesses": { - "$id": "1771", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "composeSchema": { - "$id": "1772", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": { - "guid": "cc6652ae-dc6d-90c9-1899-252eabc0e929", - "typeName": "tabular_schema", - "displayText": "tabular_schema", - "relationshipGuid": "5a4510d4-57d0-467c-888f-4b61df42702b", - "relationshipStatus": "ACTIVE", - "relationshipAttributes": { - "typeName": "tabular_schema_columns" - } - } - }, - "meanings": { - "$id": "1773", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "outputFromProcesses": { - "$id": "1774", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "tabular_schema": { - "$id": "1775", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "contacts": { - "$id": "1776", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "1777", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1778", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1779", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1780", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Owner": { - "$id": "1781", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "1782", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "1783", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "1784", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Owner Info" - } - } - } - ] - } - } - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1785", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1786", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.get.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1787", - "kind": "method", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "1788", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.get.minExtInfo", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1789", - "kind": "method", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "1790", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.get.ignoreRelationships", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1791", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "103" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "321" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.get" - }, - { - "$id": "1792", - "kind": "basic", - "name": "updateAttributeById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update entity partially - create or update entity attribute identified by its\nGUID.\nSupports only primitive attribute type and entity references.\nIt does not support updating complex types like arrays, and maps.\nNull updates are not possible.", - "operation": { - "$id": "1793", - "name": "updateAttributeById", - "resourceName": "Entity", - "doc": "Update entity partially - create or update entity attribute identified by its\nGUID.\nSupports only primitive attribute type and entity references.\nIt does not support updating complex types like arrays, and maps.\nNull updates are not possible.", - "accessibility": "public", - "parameters": [ - { - "$id": "1794", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1795", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.guid" - }, - { - "$id": "1796", - "kind": "query", - "name": "name", - "serializedName": "name", - "doc": "The name of the attribute.", - "type": { - "$id": "1797", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.name", - "readOnly": false - }, - { - "$id": "1798", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "105" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.contentType" - }, - { - "$id": "1799", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "107" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.accept" - }, - { - "$id": "1800", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "The value of the attribute.", - "type": { - "$id": "1801", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById", - "decorators": [], - "examples": [ - { - "$id": "1802", - "kind": "http", - "name": "Entity_PartialUpdateAttributeByGuid", - "description": "Entity_PartialUpdateAttributeByGuid", - "filePath": "2023-09-01/Entity_PartialUpdateAttributeByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "1794" - }, - "value": { - "$id": "1803", - "kind": "string", - "type": { - "$ref": "1795" - }, - "value": "394d9a03-912e-483b-bbd2-bedee1a69798" - } - }, - { - "parameter": { - "$ref": "1796" - }, - "value": { - "$id": "1804", - "kind": "string", - "type": { - "$ref": "1797" - }, - "value": "ExampleName" - } - }, - { - "parameter": { - "$ref": "1800" - }, - "value": { - "$id": "1805", - "kind": "unknown", - "type": { - "$ref": "1801" - }, - "value": "ExampleNewName" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1806", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1807", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "CREATE": { - "$id": "1808", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1809", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1810", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1811", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1812", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - }, - "lastModifiedTS": { - "$id": "1813", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "1814", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "394d9a03-912e-483b-bbd2-bedee1a69798" - }, - "status": { - "$id": "1815", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - } - } - }, - "partialUpdatedEntities": { - "$id": "1816", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1817", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "1818", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "1819", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "1820", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - }, - "lastModifiedTS": { - "$id": "1821", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "1822", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "394d9a03-912e-483b-bbd2-bedee1a69798" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1823", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1824", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1825", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the attribute.", - "type": { - "$id": "1826", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1827", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "The value of the attribute.", - "type": { - "$id": "1828", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1829", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "105" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1830", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "107" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateAttributeById" - }, - { - "$id": "1831", - "kind": "basic", - "name": "delete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete an entity identified by its GUID.", - "operation": { - "$id": "1832", - "name": "delete", - "resourceName": "Entity", - "doc": "Delete an entity identified by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "1833", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1834", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.delete.guid" - }, - { - "$id": "1835", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "109" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.delete.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.delete", - "decorators": [], - "examples": [ - { - "$id": "1836", - "kind": "http", - "name": "Entity_Delete", - "description": "Entity_Delete", - "filePath": "2023-09-01/Entity_Delete.json", - "parameters": [ - { - "parameter": { - "$ref": "1833" - }, - "value": { - "$id": "1837", - "kind": "string", - "type": { - "$ref": "1834" - }, - "value": "fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1838", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "1839", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "DELETE": { - "$id": "1840", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "1841", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "guid": { - "$id": "1842", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "fd279eb4-f6c3-1b0b-ad67-e4f8abd2972f" - }, - "status": { - "$id": "1843", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "lastModifiedTS": { - "$id": "1844", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "2" - }, - "attributes": { - "$id": "1845", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1846", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "qualifiedName": { - "$id": "1847", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "1848", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAaccount" - } - } - }, - "typeName": { - "$id": "1849", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - } - } - } - ] - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1850", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1851", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.delete.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1852", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "109" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.delete.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.delete" - }, - { - "$id": "1853", - "kind": "basic", - "name": "getClassification", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get classification for a given entity represented by a GUID.", - "operation": { - "$id": "1854", - "name": "getClassification", - "resourceName": "Entity", - "doc": "Get classification for a given entity represented by a GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "1855", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1856", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.getClassification.guid" - }, - { - "$id": "1857", - "kind": "path", - "name": "classificationName", - "serializedName": "classificationName", - "doc": "The name of the classification.", - "type": { - "$id": "1858", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.getClassification.classificationName" - }, - { - "$id": "1859", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "111" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getClassification.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "337" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/classification/{classificationName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.getClassification", - "decorators": [], - "examples": [ - { - "$id": "1860", - "kind": "http", - "name": "Entity_GetClassification", - "description": "Entity_GetClassification", - "filePath": "2023-09-01/Entity_GetClassification.json", - "parameters": [ - { - "parameter": { - "$ref": "1855" - }, - "value": { - "$id": "1861", - "kind": "string", - "type": { - "$ref": "1856" - }, - "value": "9347abc5-7b86-4b82-a1e2-ad77c7c3cac3" - } - }, - { - "parameter": { - "$ref": "1857" - }, - "value": { - "$id": "1862", - "kind": "string", - "type": { - "$ref": "1858" - }, - "value": "MICROSOFT.PERSONAL.DATE_OF_BIRTH" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "337" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1863", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "1864", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.PERSONAL.DATE_OF_BIRTH" - }, - "lastModifiedTS": { - "$id": "1865", - "kind": "string", - "type": { - "$ref": "342" - }, - "value": "1" - }, - "entityGuid": { - "$id": "1866", - "kind": "string", - "type": { - "$ref": "344" - }, - "value": "9347abc5-7b86-4b82-a1e2-ad77c7c3cac3" - }, - "entityStatus": { - "$id": "1867", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1868", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1869", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getClassification.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1870", - "kind": "method", - "name": "classificationName", - "serializedName": "classificationName", - "doc": "The name of the classification.", - "type": { - "$id": "1871", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getClassification.classificationName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1872", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "111" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.getClassification.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "337" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.getClassification" - }, - { - "$id": "1873", - "kind": "basic", - "name": "removeClassification", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a given classification from an existing entity represented by a GUID.", - "operation": { - "$id": "1874", - "name": "removeClassification", - "resourceName": "Entity", - "doc": "Delete a given classification from an existing entity represented by a GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "1875", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1876", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.guid" - }, - { - "$id": "1877", - "kind": "path", - "name": "classificationName", - "serializedName": "classificationName", - "doc": "The name of the classification.", - "type": { - "$id": "1878", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.classificationName" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/classification/{classificationName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassification", - "decorators": [], - "examples": [ - { - "$id": "1879", - "kind": "http", - "name": "Entity_RemoveClassification", - "description": "Entity_RemoveClassification", - "filePath": "2023-09-01/Entity_RemoveClassification.json", - "parameters": [ - { - "parameter": { - "$ref": "1875" - }, - "value": { - "$id": "1880", - "kind": "string", - "type": { - "$ref": "1876" - }, - "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" - } - }, - { - "parameter": { - "$ref": "1877" - }, - "value": { - "$id": "1881", - "kind": "string", - "type": { - "$ref": "1878" - }, - "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1882", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1883", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1884", - "kind": "method", - "name": "classificationName", - "serializedName": "classificationName", - "doc": "The name of the classification.", - "type": { - "$id": "1885", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeClassification.classificationName", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassification" - }, - { - "$id": "1886", - "kind": "basic", - "name": "getClassifications", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "List classifications for a given entity represented by a GUID.", - "operation": { - "$id": "1887", - "name": "getClassifications", - "resourceName": "Entity", - "doc": "List classifications for a given entity represented by a GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "1888", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1889", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.guid" - }, - { - "$id": "1890", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "113" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "460" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/classifications", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.getClassifications", - "decorators": [], - "examples": [ - { - "$id": "1891", - "kind": "http", - "name": "Entity_GetClassifications", - "description": "Entity_GetClassifications", - "filePath": "2023-09-01/Entity_GetClassifications.json", - "parameters": [ - { - "parameter": { - "$ref": "1888" - }, - "value": { - "$id": "1892", - "kind": "string", - "type": { - "$ref": "1889" - }, - "value": "67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "460" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1893", - "kind": "model", - "type": { - "$ref": "460" - }, - "value": { - "list": { - "$id": "1894", - "kind": "array", - "type": { - "$ref": "462" - }, - "value": [ - { - "$id": "1895", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "typeName": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER", - "entityGuid": "67d26de6-771d-1a2d-cb2b-dec4dbd2a9bd" - } - } - ] - }, - "startIndex": { - "$id": "1896", - "kind": "number", - "type": { - "$ref": "470" - }, - "value": 0 - }, - "pageSize": { - "$id": "1897", - "kind": "number", - "type": { - "$ref": "465" - }, - "value": 1 - }, - "totalCount": { - "$id": "1898", - "kind": "number", - "type": { - "$ref": "472" - }, - "value": 1 - }, - "sortType": { - "$id": "1899", - "kind": "string", - "type": { - "$ref": "14" - }, - "value": "NONE" - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1900", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1901", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1902", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "113" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.getClassifications.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "460" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.getClassifications" - }, - { - "$id": "1903", - "kind": "basic", - "name": "addClassifications", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Add classifications to an existing entity represented by a GUID.", - "operation": { - "$id": "1904", - "name": "addClassifications", - "resourceName": "Entity", - "doc": "Add classifications to an existing entity represented by a GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "1905", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1906", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.guid" - }, - { - "$id": "1907", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "115" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.contentType" - }, - { - "$id": "1908", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of classifications to be added.", - "type": { - "$ref": "336" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/classifications", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications", - "decorators": [], - "examples": [ - { - "$id": "1909", - "kind": "http", - "name": "Entity_AddClassifications", - "description": "Entity_AddClassifications", - "filePath": "2023-09-01/Entity_AddClassifications.json", - "parameters": [ - { - "parameter": { - "$ref": "1905" - }, - "value": { - "$id": "1910", - "kind": "string", - "type": { - "$ref": "1906" - }, - "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" - } - }, - { - "parameter": { - "$ref": "1908" - }, - "value": { - "$id": "1911", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [ - { - "$id": "1912", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "1913", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" - }, - "entityGuid": { - "$id": "1914", - "kind": "string", - "type": { - "$ref": "344" - }, - "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" - } - } - }, - { - "$id": "1915", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "1916", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" - }, - "entityGuid": { - "$id": "1917", - "kind": "string", - "type": { - "$ref": "344" - }, - "value": "cc0730ba-9b30-41f0-6953-559d17626d2b" - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1918", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1919", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1920", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of classifications to be added.", - "type": { - "$ref": "336" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1921", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "115" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addClassifications" - }, - { - "$id": "1922", - "kind": "basic", - "name": "updateClassifications", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update classifications to an existing entity represented by a guid.", - "operation": { - "$id": "1923", - "name": "updateClassifications", - "resourceName": "Entity", - "doc": "Update classifications to an existing entity represented by a guid.", - "accessibility": "public", - "parameters": [ - { - "$id": "1924", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1925", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.guid" - }, - { - "$id": "1926", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "117" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.contentType" - }, - { - "$id": "1927", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of classifications to be updated.", - "type": { - "$ref": "336" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/classifications", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications", - "decorators": [], - "examples": [ - { - "$id": "1928", - "kind": "http", - "name": "Entity_UpdateClassifications", - "description": "Entity_UpdateClassifications", - "filePath": "2023-09-01/Entity_UpdateClassifications.json", - "parameters": [ - { - "parameter": { - "$ref": "1924" - }, - "value": { - "$id": "1929", - "kind": "string", - "type": { - "$ref": "1925" - }, - "value": "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24" - } - }, - { - "parameter": { - "$ref": "1927" - }, - "value": { - "$id": "1930", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [ - { - "$id": "1931", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "1932", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" - }, - "entityGuid": { - "$id": "1933", - "kind": "string", - "type": { - "$ref": "344" - }, - "value": "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24" - } - } - }, - { - "$id": "1934", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "1935", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.US_BANK_ACCOUNT_NUMBER" - }, - "entityGuid": { - "$id": "1936", - "kind": "string", - "type": { - "$ref": "344" - }, - "value": "45dd4404-e897-b7e2-ca3c-f6e6b11b4f24" - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1937", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "1938", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1939", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of classifications to be updated.", - "type": { - "$ref": "336" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1940", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "117" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassifications" - }, - { - "$id": "1941", - "kind": "basic", - "name": "getByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get complete definition of an entity given its type and unique attribute.\n\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following format:\nattr:\\=.\n\nNOTE: The\nattrName and attrValue should be unique across entities, eg.\nqualifiedName.\n\nThe REST request would look something like this:\nGET\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "1942", - "name": "getByUniqueAttribute", - "resourceName": "Entity", - "doc": "Get complete definition of an entity given its type and unique attribute.\n\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following format:\nattr:\\=.\n\nNOTE: The\nattrName and attrValue should be unique across entities, eg.\nqualifiedName.\n\nThe REST request would look something like this:\nGET\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "1943", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "1944", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.typeName" - }, - { - "$id": "1945", - "kind": "query", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "1946", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.minExtInfo", - "readOnly": false - }, - { - "$id": "1947", - "kind": "query", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "1948", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.ignoreRelationships", - "readOnly": false - }, - { - "$id": "1949", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "1950", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "1951", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "119" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "321" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "1952", - "kind": "http", - "name": "Entity_GetByUniqueAttributes", - "description": "Entity_GetByUniqueAttributes", - "filePath": "2023-09-01/Entity_GetByUniqueAttributes.json", - "parameters": [ - { - "parameter": { - "$ref": "1943" - }, - "value": { - "$id": "1953", - "kind": "string", - "type": { - "$ref": "1944" - }, - "value": "azure_storage_account" - } - }, - { - "parameter": { - "$ref": "1949" - }, - "value": { - "$id": "1954", - "kind": "string", - "type": { - "$ref": "1950" - }, - "value": "https://exampleaccount.core.windows.net" - } - }, - { - "parameter": { - "$ref": "1945" - }, - "value": { - "$id": "1955", - "kind": "boolean", - "type": { - "$ref": "1946" - }, - "value": true - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "321" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "1956", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "entity": { - "$id": "1957", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "createTime": { - "$id": "1958", - "kind": "number", - "type": { - "$ref": "358" - }, - "value": 1605703532110 - }, - "createdBy": { - "$id": "1959", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" - }, - "guid": { - "$id": "1960", - "kind": "string", - "type": { - "$ref": "366" - }, - "value": "e0ba3f20-f3b5-4d52-b769-ed35a02df60a" - }, - "relationshipAttributes": { - "$id": "1961", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "services": { - "$id": "1962", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "meanings": { - "$id": "1963", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - } - } - }, - "status": { - "$id": "1964", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "updateTime": { - "$id": "1965", - "kind": "number", - "type": { - "$ref": "405" - }, - "value": 1605703532110 - }, - "updatedBy": { - "$id": "1966", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" - }, - "lastModifiedTS": { - "$id": "1967", - "kind": "string", - "type": { - "$ref": "333" - }, - "value": "2" - }, - "version": { - "$id": "1968", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - }, - "attributes": { - "$id": "1969", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "1970", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "qualifiedName": { - "$id": "1971", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "createTime": { - "$id": "1972", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "name": { - "$id": "1973", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleNewName" - } - } - }, - "typeName": { - "$id": "1974", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - } - } - }, - "referredEntities": { - "$id": "1975", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1976", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "1977", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1978", - "kind": "method", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "1979", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.minExtInfo", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1980", - "kind": "method", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "1981", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.ignoreRelationships", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1982", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "1983", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "1984", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "119" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "321" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.getByUniqueAttribute" - }, - { - "$id": "1985", - "kind": "basic", - "name": "updateByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update entity partially - Allow a subset of attributes to be updated on an\nentity which is identified by its type and unique attribute eg:\nReferenceable.qualifiedName. Null updates are not possible.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\n\nattr:=.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nPUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "1986", - "name": "updateByUniqueAttribute", - "resourceName": "Entity", - "doc": "Update entity partially - Allow a subset of attributes to be updated on an\nentity which is identified by its type and unique attribute eg:\nReferenceable.qualifiedName. Null updates are not possible.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\n\nattr:=.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nPUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "1987", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "1988", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.typeName" - }, - { - "$id": "1989", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "1990", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "1991", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "121" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.contentType" - }, - { - "$id": "1992", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "123" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.accept" - }, - { - "$id": "1993", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "321" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "1994", - "kind": "http", - "name": "Entity_PartialUpdateByUniqueAttributes", - "description": "Entity_PartialUpdateByUniqueAttributes", - "filePath": "2023-09-01/Entity_PartialUpdateByUniqueAttributes.json", - "parameters": [ - { - "parameter": { - "$ref": "1987" - }, - "value": { - "$id": "1995", - "kind": "string", - "type": { - "$ref": "1988" - }, - "value": "azure_storage_account" - } - }, - { - "parameter": { - "$ref": "1989" - }, - "value": { - "$id": "1996", - "kind": "string", - "type": { - "$ref": "1990" - }, - "value": "https://exampleaccount.core.windows.net" - } - }, - { - "parameter": { - "$ref": "1993" - }, - "value": { - "$id": "1997", - "kind": "model", - "type": { - "$ref": "321" - }, - "value": { - "entity": { - "$id": "1998", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "createTime": { - "$id": "1999", - "kind": "number", - "type": { - "$ref": "358" - }, - "value": 1605766397985 - }, - "createdBy": { - "$id": "2000", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" - }, - "guid": { - "$id": "2001", - "kind": "string", - "type": { - "$ref": "366" - }, - "value": "dc507ccf-0c57-4165-9327-f37b0d13fda0" - }, - "relationshipAttributes": { - "$id": "2002", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "services": { - "$id": "2003", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "meanings": { - "$id": "2004", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - } - } - }, - "status": { - "$id": "2005", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "updateTime": { - "$id": "2006", - "kind": "number", - "type": { - "$ref": "405" - }, - "value": 1605766397985 - }, - "updatedBy": { - "$id": "2007", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "8c062c84-5d25-449f-a990-9d8ab70b8ec7" - }, - "lastModifiedTS": { - "$id": "2008", - "kind": "string", - "type": { - "$ref": "333" - }, - "value": "1" - }, - "version": { - "$id": "2009", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - }, - "attributes": { - "$id": "2010", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "2011", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "qualifiedName": { - "$id": "2012", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "createTime": { - "$id": "2013", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "name": { - "$id": "2014", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleNewName" - } - } - }, - "typeName": { - "$id": "2015", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "azure_storage_account" - } - } - }, - "referredEntities": { - "$id": "2016", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2017", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "guidAssignments": { - "$id": "2018", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": {} - }, - "mutatedEntities": { - "$id": "2019", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "PARTIAL_UPDATE": { - "$id": "2020", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "2021", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "guid": { - "$id": "2022", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "dc507ccf-0c57-4165-9327-f37b0d13fda0" - }, - "lastModifiedTS": { - "$id": "2023", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "2" - }, - "attributes": { - "$id": "2024", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "2025", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - }, - "typeName": { - "$id": "2026", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - } - } - } - ] - } - } - }, - "partialUpdatedEntities": { - "$id": "2027", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "2028", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "guid": { - "$id": "2029", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "dc507ccf-0c57-4165-9327-f37b0d13fda0" - }, - "lastModifiedTS": { - "$id": "2030", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "2" - }, - "attributes": { - "$id": "2031", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "2032", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - }, - "typeName": { - "$id": "2033", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2034", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2035", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2036", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2037", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2038", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "321" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2039", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "121" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2040", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "123" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateByUniqueAttribute" - }, - { - "$id": "2041", - "kind": "basic", - "name": "deleteByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete an entity identified by its type and unique attributes.\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\nattr:\\=\\.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nDELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "2042", - "name": "deleteByUniqueAttribute", - "resourceName": "Entity", - "doc": "Delete an entity identified by its type and unique attributes.\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format:\nattr:\\=\\.\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this:\nDELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "2043", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2044", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.typeName" - }, - { - "$id": "2045", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2046", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "2047", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "125" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "2048", - "kind": "http", - "name": "Entity_DeleteByUniqueAttribute", - "description": "Entity_DeleteByUniqueAttribute", - "filePath": "2023-09-01/Entity_DeleteByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2043" - }, - "value": { - "$id": "2049", - "kind": "string", - "type": { - "$ref": "2044" - }, - "value": "azure_storage_account" - } - }, - { - "parameter": { - "$ref": "2045" - }, - "value": { - "$id": "2050", - "kind": "string", - "type": { - "$ref": "2046" - }, - "value": "https://exampleaccount.core.windows.net" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2051", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "2052", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "DELETE": { - "$id": "2053", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "2054", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "classificationNames": { - "$id": "2055", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "displayText": { - "$id": "2056", - "kind": "string", - "type": { - "$ref": "435" - }, - "value": "Example Name" - }, - "guid": { - "$id": "2057", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "e0ba3f20-f3b5-4d52-b769-ed35a02df60a" - }, - "meaningNames": { - "$id": "2058", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "meanings": { - "$id": "2059", - "kind": "array", - "type": { - "$ref": "377" - }, - "value": [] - }, - "status": { - "$id": "2060", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "lastModifiedTS": { - "$id": "2061", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "attributes": { - "$id": "2062", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "2063", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "createTime": { - "$id": "2064", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "2065", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "2066", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleName" - } - } - }, - "typeName": { - "$id": "2067", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - } - } - } - ] - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2068", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2069", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2070", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2071", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2072", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "125" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.deleteByUniqueAttribute" - }, - { - "$id": "2073", - "kind": "basic", - "name": "removeClassificationByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a given classification from an entity identified by its type and unique\nattributes.", - "operation": { - "$id": "2074", - "name": "removeClassificationByUniqueAttribute", - "resourceName": "Entity", - "doc": "Delete a given classification from an entity identified by its type and unique\nattributes.", - "accessibility": "public", - "parameters": [ - { - "$id": "2075", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2076", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.typeName" - }, - { - "$id": "2077", - "kind": "path", - "name": "classificationName", - "serializedName": "classificationName", - "doc": "The name of the classification.", - "type": { - "$id": "2078", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.classificationName" - }, - { - "$id": "2079", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2080", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.attribute", - "readOnly": false - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "2081", - "kind": "http", - "name": "Entity_RemoveClassificationByUniqueAttribute", - "description": "Entity_RemoveClassificationByUniqueAttribute", - "filePath": "2023-09-01/Entity_RemoveClassificationByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2075" - }, - "value": { - "$id": "2082", - "kind": "string", - "type": { - "$ref": "2076" - }, - "value": "column" - } - }, - { - "parameter": { - "$ref": "2077" - }, - "value": { - "$id": "2083", - "kind": "string", - "type": { - "$ref": "2078" - }, - "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" - } - }, - { - "parameter": { - "$ref": "2079" - }, - "value": { - "$id": "2084", - "kind": "string", - "type": { - "$ref": "2080" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplecontainer/exampledata.csv" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2085", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2086", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2087", - "kind": "method", - "name": "classificationName", - "serializedName": "classificationName", - "doc": "The name of the classification.", - "type": { - "$id": "2088", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.classificationName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2089", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2090", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeClassificationByUniqueAttribute" - }, - { - "$id": "2091", - "kind": "basic", - "name": "addClassificationsByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Add classification to the entity identified by its type and unique attributes.", - "operation": { - "$id": "2092", - "name": "addClassificationsByUniqueAttribute", - "resourceName": "Entity", - "doc": "Add classification to the entity identified by its type and unique attributes.", - "accessibility": "public", - "parameters": [ - { - "$id": "2093", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2094", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.typeName" - }, - { - "$id": "2095", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2096", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "2097", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "127" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.contentType" - }, - { - "$id": "2098", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of classification to be added.", - "type": { - "$ref": "336" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "2099", - "kind": "http", - "name": "Entity_AddClassificationsByUniqueAttribute", - "description": "Entity_AddClassificationsByUniqueAttribute", - "filePath": "2023-09-01/Entity_AddClassificationsByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2093" - }, - "value": { - "$id": "2100", - "kind": "string", - "type": { - "$ref": "2094" - }, - "value": "azure_storage_account" - } - }, - { - "parameter": { - "$ref": "2095" - }, - "value": { - "$id": "2101", - "kind": "string", - "type": { - "$ref": "2096" - }, - "value": "https://exampleaccount.core.windows.net" - } - }, - { - "parameter": { - "$ref": "2098" - }, - "value": { - "$id": "2102", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [ - { - "$id": "2103", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "2104", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" - } - } - }, - { - "$id": "2105", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "2106", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2107", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2109", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2111", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of classification to be added.", - "type": { - "$ref": "336" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2112", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "127" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addClassificationsByUniqueAttribute" - }, - { - "$id": "2113", - "kind": "basic", - "name": "updateClassificationsUniqueByAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update classification on an entity identified by its type and unique attributes.", - "operation": { - "$id": "2114", - "name": "updateClassificationsUniqueByAttribute", - "resourceName": "Entity", - "doc": "Update classification on an entity identified by its type and unique attributes.", - "accessibility": "public", - "parameters": [ - { - "$id": "2115", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.typeName" - }, - { - "$id": "2117", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.attribute", - "readOnly": false - }, - { - "$id": "2119", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "129" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.contentType" - }, - { - "$id": "2120", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of classification to be updated.", - "type": { - "$ref": "336" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute", - "decorators": [], - "examples": [ - { - "$id": "2121", - "kind": "http", - "name": "Entity_UpdateClassificationsByUniqueAttribute", - "description": "Entity_UpdateClassificationsByUniqueAttribute", - "filePath": "2023-09-01/Entity_UpdateClassificationsByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2115" - }, - "value": { - "$id": "2122", - "kind": "string", - "type": { - "$ref": "2116" - }, - "value": "azure_storage_account" - } - }, - { - "parameter": { - "$ref": "2117" - }, - "value": { - "$id": "2123", - "kind": "string", - "type": { - "$ref": "2118" - }, - "value": "https://exampleaccount.core.windows.net" - } - }, - { - "parameter": { - "$ref": "2120" - }, - "value": { - "$id": "2124", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [ - { - "$id": "2125", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "2126", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER" - } - } - }, - { - "$id": "2127", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "2128", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER" - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2129", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2131", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2133", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of classification to be updated.", - "type": { - "$ref": "336" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2134", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "129" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.updateClassificationsUniqueByAttribute" - }, - { - "$id": "2135", - "kind": "basic", - "name": "batchSetClassifications", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Set classifications on entities in bulk.", - "operation": { - "$id": "2136", - "name": "batchSetClassifications", - "resourceName": "Entity", - "doc": "Set classifications on entities in bulk.", - "accessibility": "public", - "parameters": [ - { - "$id": "2137", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "131" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.contentType" - }, - { - "$id": "2138", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "133" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.accept" - }, - { - "$id": "2139", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "473" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "374" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/bulk/setClassifications", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications", - "decorators": [], - "examples": [ - { - "$id": "2140", - "kind": "http", - "name": "Entity_BulkSetClassifications", - "description": "Entity_BulkSetClassifications", - "filePath": "2023-09-01/Entity_BulkSetClassifications.json", - "parameters": [ - { - "parameter": { - "$ref": "2139" - }, - "value": { - "$id": "2141", - "kind": "model", - "type": { - "$ref": "473" - }, - "value": { - "guidHeaderMap": { - "$id": "2142", - "kind": "dict", - "type": { - "$ref": "475" - }, - "value": { - "9fb74c11-ac48-4650-95bc-760665c5bd92": { - "$id": "2143", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "attributes": { - "$id": "2144", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "2145", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount1.core.windows.net" - } - } - }, - "typeName": { - "$id": "2146", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "classifications": { - "$id": "2147", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [ - { - "$id": "2148", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "2149", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - } - } - ] - } - } - }, - "7fcc43ab-55ea-45d4-9971-ce0443cb10bb": { - "$id": "2150", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "attributes": { - "$id": "2151", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "2152", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount2.core.windows.net" - } - } - }, - "typeName": { - "$id": "2153", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "classifications": { - "$id": "2154", - "kind": "array", - "type": { - "$ref": "336" - }, - "value": [ - { - "$id": "2155", - "kind": "model", - "type": { - "$ref": "337" - }, - "value": { - "typeName": { - "$id": "2156", - "kind": "string", - "type": { - "$ref": "340" - }, - "value": "MICROSOFT.PERSONAL.IPADDRESS" - } - } - } - ] - } - } - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "374" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2157", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2158", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Add:9fb74c11-ac48-4650-95bc-760665c5bd92:azure_storage_account:qualifiedName -> MICROSOFT.PERSONAL.EMAIL:(Done)" - }, - { - "$id": "2159", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Update:7fcc43ab-55ea-45d4-9971-ce0443cb10bb:azure_storage_account:qualifiedName -> MICROSOFT.PERSONAL.IPADDRESS:(Done)" - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2160", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "473" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2161", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "131" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2162", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "133" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "374" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchSetClassifications" - }, - { - "$id": "2163", - "kind": "basic", - "name": "batchGetByUniqueAttributes", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Bulk API to retrieve list of entities identified by its unique attributes.\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following\nformat\n\ntypeName=\\&attr_1:\\=\\&attr_2:\\=\\&attr_3:\\=\\\n\nNOTE:\nThe attrName should be an unique attribute for the given entity-type.\nThe REST\nrequest would look something like this\n\nGET\n/v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1\n\nNote:\nat least one unique attribute must be provided.", - "operation": { - "$id": "2164", - "name": "batchGetByUniqueAttributes", - "resourceName": "Entity", - "doc": "Bulk API to retrieve list of entities identified by its unique attributes.\nIn\naddition to the typeName path parameter, attribute key-value pair(s) can be\nprovided in the following\nformat\n\ntypeName=\\&attr_1:\\=\\&attr_2:\\=\\&attr_3:\\=\\\n\nNOTE:\nThe attrName should be an unique attribute for the given entity-type.\nThe REST\nrequest would look something like this\n\nGET\n/v2/entity/bulk/uniqueAttribute/type/hive_db?attr_1:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1\n\nNote:\nat least one unique attribute must be provided.", - "accessibility": "public", - "parameters": [ - { - "$id": "2165", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.typeName" - }, - { - "$id": "2167", - "kind": "query", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "2168", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.minExtInfo", - "readOnly": false - }, - { - "$id": "2169", - "kind": "query", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "2170", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.ignoreRelationships", - "readOnly": false - }, - { - "$id": "2171", - "kind": "query", - "name": "attr_N:qualifiedName", - "serializedName": "attr_N:qualifiedName", - "doc": "Qualified name of an entity. E.g. to find 2 entities you can set\nattrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an\nexample. qualifiedName can be changed to other unique attributes)", - "type": { - "$id": "2172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.attr_N:qualifiedName", - "readOnly": false - }, - { - "$id": "2173", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "135" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "453" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes", - "decorators": [], - "examples": [ - { - "$id": "2174", - "kind": "http", - "name": "Entity_ListByUniqueAttributes", - "description": "Entity_ListByUniqueAttributes", - "filePath": "2023-09-01/Entity_ListByUniqueAttributes.json", - "parameters": [ - { - "parameter": { - "$ref": "2165" - }, - "value": { - "$id": "2175", - "kind": "string", - "type": { - "$ref": "2166" - }, - "value": "azure_storage_account" - } - }, - { - "parameter": { - "$ref": "2171" - }, - "value": { - "$id": "2176", - "kind": "string", - "type": { - "$ref": "2172" - }, - "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1" - } - }, - { - "parameter": { - "$ref": "2167" - }, - "value": { - "$id": "2177", - "kind": "boolean", - "type": { - "$ref": "2168" - }, - "value": true - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "453" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2178", - "kind": "model", - "type": { - "$ref": "453" - }, - "value": { - "referredEntities": { - "$id": "2179", - "kind": "dict", - "type": { - "$ref": "323" - }, - "value": {} - }, - "entities": { - "$id": "2180", - "kind": "array", - "type": { - "$ref": "456" - }, - "value": [ - { - "$id": "2181", - "kind": "model", - "type": { - "$ref": "325" - }, - "value": { - "typeName": { - "$id": "2182", - "kind": "string", - "type": { - "$ref": "331" - }, - "value": "column" - }, - "attributes": { - "$id": "2183", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "2184", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "qualifiedName": { - "$id": "2185", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "adl://exampleaccount.azuredatalakestore.net/123/1/DP_TFS/CBT/Extensions/DTTP.targets#:xml/Project/PropertyGroup/ExampleName1" - }, - "name": { - "$id": "2186", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleName1" - }, - "description": { - "$id": "2187", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "type": { - "$id": "2188", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "string" - } - } - }, - "guid": { - "$id": "2189", - "kind": "string", - "type": { - "$ref": "366" - }, - "value": "784c0f2f-afd2-e26b-f9cb-984f6c2c5021" - }, - "status": { - "$id": "2190", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "2191", - "kind": "string", - "type": { - "$ref": "360" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "2192", - "kind": "string", - "type": { - "$ref": "407" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "2193", - "kind": "number", - "type": { - "$ref": "358" - }, - "value": 1553072455110 - }, - "updateTime": { - "$id": "2194", - "kind": "number", - "type": { - "$ref": "405" - }, - "value": 1553072455110 - }, - "version": { - "$id": "2195", - "kind": "number", - "type": { - "$ref": "409" - }, - "value": 0 - }, - "relationshipAttributes": { - "$id": "2196", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "schema": { - "$id": "2197", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "inputToProcesses": { - "$id": "2198", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "composeSchema": { - "$id": "2199", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": { - "guid": "cc6652ae-dc6d-90c9-1899-252eabc0e929", - "typeName": "tabular_schema", - "displayText": "tabular_schema", - "relationshipGuid": "400fd8e4-97bd-45eb-a21c-880b4094ce5b", - "relationshipStatus": "ACTIVE", - "relationshipAttributes": { - "typeName": "tabular_schema_columns" - } - } - }, - "meanings": { - "$id": "2200", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "outputFromProcesses": { - "$id": "2201", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [] - }, - "tabular_schema": { - "$id": "2202", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2203", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2205", - "kind": "method", - "name": "minExtInfo", - "serializedName": "minExtInfo", - "doc": "Whether to return minimal information for referred entities.", - "type": { - "$id": "2206", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.minExtInfo", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2207", - "kind": "method", - "name": "ignoreRelationships", - "serializedName": "ignoreRelationships", - "doc": "Whether to ignore relationship attributes.", - "type": { - "$id": "2208", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.ignoreRelationships", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2209", - "kind": "method", - "name": "attr_N:qualifiedName", - "serializedName": "attr_N:qualifiedName", - "doc": "Qualified name of an entity. E.g. to find 2 entities you can set\nattrs_1:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. (This is only an\nexample. qualifiedName can be changed to other unique attributes)", - "type": { - "$id": "2210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.attr_N:qualifiedName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2211", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "135" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "453" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.batchGetByUniqueAttributes" - }, - { - "$id": "2212", - "kind": "basic", - "name": "getHeader", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get entity header given its GUID.", - "operation": { - "$id": "2213", - "name": "getHeader", - "resourceName": "Entity", - "doc": "Get entity header given its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "2214", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2215", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.getHeader.guid" - }, - { - "$id": "2216", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "137" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getHeader.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "426" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/header", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.getHeader", - "decorators": [], - "examples": [ - { - "$id": "2217", - "kind": "http", - "name": "Entity_GetHeader", - "description": "Entity_GetHeader", - "filePath": "2023-09-01/Entity_GetHeader.json", - "parameters": [ - { - "parameter": { - "$ref": "2214" - }, - "value": { - "$id": "2218", - "kind": "string", - "type": { - "$ref": "2215" - }, - "value": "9fb74c11-ac48-4650-95bc-760665c5bd92" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "426" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2219", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "classificationNames": { - "$id": "2220", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2221", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - ] - }, - "displayText": { - "$id": "2222", - "kind": "string", - "type": { - "$ref": "435" - }, - "value": "Example Storage Account" - }, - "guid": { - "$id": "2223", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "9fb74c11-ac48-4650-95bc-760665c5bd92" - }, - "meaningNames": { - "$id": "2224", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "meanings": { - "$id": "2225", - "kind": "array", - "type": { - "$ref": "377" - }, - "value": [] - }, - "status": { - "$id": "2226", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "lastModifiedTS": { - "$id": "2227", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "3" - }, - "attributes": { - "$id": "2228", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "2229", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleOwner" - }, - "createTime": { - "$id": "2230", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "2231", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://exampleaccount.core.windows.net" - }, - "name": { - "$id": "2232", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleStorageAccount" - } - } - }, - "typeName": { - "$id": "2233", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2234", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2235", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.getHeader.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2236", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "137" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.getHeader.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "426" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.getHeader" - }, - { - "$id": "2237", - "kind": "basic", - "name": "removeBusinessMetadata", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Remove business metadata from an entity.", - "operation": { - "$id": "2238", - "name": "removeBusinessMetadata", - "resourceName": "Entity", - "doc": "Remove business metadata from an entity.", - "accessibility": "public", - "parameters": [ - { - "$id": "2239", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.guid" - }, - { - "$id": "2241", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "139" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.contentType" - }, - { - "$id": "2242", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Business metadata payload", - "type": { - "$ref": "638" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/businessmetadata", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata", - "decorators": [], - "examples": [ - { - "$id": "2243", - "kind": "http", - "name": "Entity_RemoveBusinessMetadata", - "description": "Entity_RemoveBusinessMetadata", - "filePath": "2023-09-01/Entity_RemoveBusinessMetadata.json", - "parameters": [ - { - "parameter": { - "$ref": "2239" - }, - "value": { - "$id": "2244", - "kind": "string", - "type": { - "$ref": "2240" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2242" - }, - "value": { - "$id": "2245", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": { - "myBizMetadata1": { - "$id": "2246", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "bizAttr1": { - "$id": "2247", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "myBizMetaData1.bizAttr1" - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2248", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2250", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Business metadata payload", - "type": { - "$ref": "638" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2251", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "139" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadata" - }, - { - "$id": "2252", - "kind": "basic", - "name": "addOrUpdateBusinessMetadata", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Add business metadata to an entity.", - "operation": { - "$id": "2253", - "name": "addOrUpdateBusinessMetadata", - "resourceName": "Entity", - "doc": "Add business metadata to an entity.", - "accessibility": "public", - "parameters": [ - { - "$id": "2254", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2255", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.guid" - }, - { - "$id": "2256", - "kind": "query", - "name": "overwrite", - "serializedName": "isOverwrite", - "doc": "Whether to overwrite the existing business metadata on the entity or not,\ndefault is false.", - "type": { - "$id": "2257", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.overwrite", - "readOnly": false - }, - { - "$id": "2258", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "141" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.contentType" - }, - { - "$id": "2259", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "BusinessMetadata payload", - "type": { - "$ref": "638" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/businessmetadata", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata", - "decorators": [], - "examples": [ - { - "$id": "2260", - "kind": "http", - "name": "Entity_AddOrUpdate_BusinessMetadata", - "description": "Entity_AddOrUpdate_BusinessMetadata", - "filePath": "2023-09-01/Entity_AddOrUpdate_BusinessMetadata.json", - "parameters": [ - { - "parameter": { - "$ref": "2254" - }, - "value": { - "$id": "2261", - "kind": "string", - "type": { - "$ref": "2255" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2259" - }, - "value": { - "$id": "2262", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": { - "myBizMetadata1": { - "$id": "2263", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "bizAttr1": { - "$id": "2264", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "myBizMetaData1.bizAttr1" - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2265", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2267", - "kind": "method", - "name": "overwrite", - "serializedName": "isOverwrite", - "doc": "Whether to overwrite the existing business metadata on the entity or not,\ndefault is false.", - "type": { - "$id": "2268", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.overwrite", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2269", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "BusinessMetadata payload", - "type": { - "$ref": "638" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2270", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "141" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadata" - }, - { - "$id": "2271", - "kind": "basic", - "name": "removeBusinessMetadataAttributes", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete business metadata attributes from an entity.", - "operation": { - "$id": "2272", - "name": "removeBusinessMetadataAttributes", - "resourceName": "Entity", - "doc": "Delete business metadata attributes from an entity.", - "accessibility": "public", - "parameters": [ - { - "$id": "2273", - "kind": "path", - "name": "businessMetadataName", - "serializedName": "businessMetadataName", - "doc": "BusinessMetadata name", - "type": { - "$id": "2274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.businessMetadataName" - }, - { - "$id": "2275", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.guid" - }, - { - "$id": "2277", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "143" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.contentType" - }, - { - "$id": "2278", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Business metadata attribute payload", - "type": { - "$ref": "327" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes", - "decorators": [], - "examples": [ - { - "$id": "2279", - "kind": "http", - "name": "Entity_RemoveBusinessAttribute", - "description": "Entity_RemoveBusinessAttribute", - "filePath": "2023-09-01/Entity_RemoveBusinessAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2275" - }, - "value": { - "$id": "2280", - "kind": "string", - "type": { - "$ref": "2276" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2273" - }, - "value": { - "$id": "2281", - "kind": "string", - "type": { - "$ref": "2274" - }, - "value": "myBizMetaData1" - } - }, - { - "parameter": { - "$ref": "2278" - }, - "value": { - "$id": "2282", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "bizAttr1": { - "$id": "2283", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "bizAttr1" - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2284", - "kind": "method", - "name": "businessMetadataName", - "serializedName": "businessMetadataName", - "doc": "BusinessMetadata name", - "type": { - "$id": "2285", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.businessMetadataName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2286", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2288", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Business metadata attribute payload", - "type": { - "$ref": "327" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2289", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "143" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeBusinessMetadataAttributes" - }, - { - "$id": "2290", - "kind": "basic", - "name": "addOrUpdateBusinessMetadataAttributes", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Add or update business metadata attributes.", - "operation": { - "$id": "2291", - "name": "addOrUpdateBusinessMetadataAttributes", - "resourceName": "Entity", - "doc": "Add or update business metadata attributes.", - "accessibility": "public", - "parameters": [ - { - "$id": "2292", - "kind": "path", - "name": "businessMetadataName", - "serializedName": "businessMetadataName", - "doc": "BusinessMetadata name", - "type": { - "$id": "2293", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.businessMetadataName" - }, - { - "$id": "2294", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2295", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.guid" - }, - { - "$id": "2296", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "145" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.contentType" - }, - { - "$id": "2297", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Business metadata attribute payload", - "type": { - "$ref": "327" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes", - "decorators": [], - "examples": [ - { - "$id": "2298", - "kind": "http", - "name": "Entity_AddOrUpdate_BusinessAttribute", - "description": "Entity_AddOrUpdate_BusinessAttribute", - "filePath": "2023-09-01/Entity_AddOrUpdate_BusinessAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2294" - }, - "value": { - "$id": "2299", - "kind": "string", - "type": { - "$ref": "2295" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2292" - }, - "value": { - "$id": "2300", - "kind": "string", - "type": { - "$ref": "2293" - }, - "value": "myBizMetaData1" - } - }, - { - "parameter": { - "$ref": "2297" - }, - "value": { - "$id": "2301", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "bizAttr1": { - "$id": "2302", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "bizAttr1" - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2303", - "kind": "method", - "name": "businessMetadataName", - "serializedName": "businessMetadataName", - "doc": "BusinessMetadata name", - "type": { - "$id": "2304", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.businessMetadataName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2305", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2307", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Business metadata attribute payload", - "type": { - "$ref": "327" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2308", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "145" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addOrUpdateBusinessMetadataAttributes" - }, - { - "$id": "2309", - "kind": "basic", - "name": "getBusinessMetadataTemplate", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the sample Template for uploading/creating bulk BusinessMetaData", - "operation": { - "$id": "2310", - "name": "getBusinessMetadataTemplate", - "resourceName": "Entity", - "doc": "Get the sample Template for uploading/creating bulk BusinessMetaData", - "accessibility": "public", - "parameters": [ - { - "$id": "2311", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "147" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "2312", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "149" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/octet-stream" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/businessmetadata/import/template", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate", - "decorators": [], - "examples": [ - { - "$id": "2313", - "kind": "http", - "name": "Entity_GetSampleBusinessMetadataTemplate", - "description": "Entity_GetSampleBusinessMetadataTemplate", - "filePath": "2023-09-01/Entity_GetSampleBusinessMetadataTemplate.json", - "parameters": [], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2312" - }, - "headers": [ - { - "name": "contentType", - "nameInResponse": "content-type", - "type": { - "$ref": "149" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/octet-stream" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2314", - "kind": "string", - "type": { - "$ref": "2312" - }, - "value": "EntityType,EntityUniqueAttributeValue,BusinessAttributeName,BusinessAttributeValue,EntityUniqueAttributeName[optional]" - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2315", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "147" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "2312" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.getBusinessMetadataTemplate" - }, - { - "$id": "2316", - "kind": "basic", - "name": "importBusinessMetadata", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Upload the file for creating Business Metadata in BULK", - "operation": { - "$id": "2317", - "name": "importBusinessMetadata", - "resourceName": "Entity", - "doc": "Upload the file for creating Business Metadata in BULK", - "accessibility": "public", - "parameters": [ - { - "$id": "2318", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "The content type for the operation. Always multipart/form-data for this operation.", - "type": { - "$ref": "151" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.contentType" - }, - { - "$id": "2319", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "153" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.accept" - }, - { - "$id": "2320", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Multipart body", - "type": { - "$ref": "477" - }, - "isApiVersion": false, - "contentTypes": [ - "multipart/form-data" - ], - "defaultContentType": "multipart/form-data", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "480" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/businessmetadata/import", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata", - "decorators": [], - "examples": [ - { - "$id": "2321", - "kind": "http", - "name": "Entity_ImportBusinessMetadata", - "description": "Entity_ImportBusinessMetadata", - "filePath": "2023-09-01/Entity_ImportBusinessMetadata.json", - "parameters": [], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "480" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2322", - "kind": "model", - "type": { - "$ref": "480" - }, - "value": { - "successImportInfoList": { - "$id": "2323", - "kind": "array", - "type": { - "$ref": "482" - }, - "value": [ - { - "$id": "2324", - "kind": "model", - "type": { - "$ref": "483" - }, - "value": { - "parentObjectName": { - "$id": "2325", - "kind": "string", - "type": { - "$ref": "488" - }, - "value": "24a77100-1b3a-4c37-884e-7d4f591f5a64" - }, - "childObjectName": { - "$id": "2326", - "kind": "string", - "type": { - "$ref": "485" - }, - "value": "{myBizType1={bizAttr1=Awesome Attribute 1}}" - }, - "importStatus": { - "$id": "2327", - "kind": "string", - "type": { - "$ref": "19" - }, - "value": "SUCCESS" - }, - "remarks": { - "$id": "2328", - "kind": "string", - "type": { - "$ref": "490" - }, - "value": "" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2329", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Multipart body", - "type": { - "$ref": "477" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2330", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "The content type for the operation. Always multipart/form-data for this operation.", - "type": { - "$ref": "155" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2331", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "153" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "480" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.importBusinessMetadata" - }, - { - "$id": "2332", - "kind": "basic", - "name": "removeLabels", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete given labels to a given entity.", - "operation": { - "$id": "2333", - "name": "removeLabels", - "resourceName": "Entity", - "doc": "Delete given labels to a given entity.", - "accessibility": "public", - "parameters": [ - { - "$id": "2334", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.guid" - }, - { - "$id": "2336", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "157" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.contentType" - }, - { - "$id": "2337", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be deleted", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/labels", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels", - "decorators": [], - "examples": [ - { - "$id": "2338", - "kind": "http", - "name": "Entity_RemoveLabels", - "description": "Entity_RemoveLabels", - "filePath": "2023-09-01/Entity_RemoveLabels.json", - "parameters": [ - { - "parameter": { - "$ref": "2334" - }, - "value": { - "$id": "2339", - "kind": "string", - "type": { - "$ref": "2335" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2337" - }, - "value": { - "$id": "2340", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2341", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label1" - }, - { - "$id": "2342", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label2" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2343", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2345", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be deleted", - "type": { - "$ref": "374" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2346", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "157" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabels" - }, - { - "$id": "2347", - "kind": "basic", - "name": "setLabels", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Set labels to a given entity.", - "operation": { - "$id": "2348", - "name": "setLabels", - "resourceName": "Entity", - "doc": "Set labels to a given entity.", - "accessibility": "public", - "parameters": [ - { - "$id": "2349", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.setLabels.guid" - }, - { - "$id": "2351", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "159" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.setLabels.contentType" - }, - { - "$id": "2352", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be set to the entity", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.setLabels.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/labels", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.setLabels", - "decorators": [], - "examples": [ - { - "$id": "2353", - "kind": "http", - "name": "Entity_SetLabels", - "description": "Entity_SetLabels", - "filePath": "2023-09-01/Entity_SetLabels.json", - "parameters": [ - { - "parameter": { - "$ref": "2349" - }, - "value": { - "$id": "2354", - "kind": "string", - "type": { - "$ref": "2350" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2352" - }, - "value": { - "$id": "2355", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2356", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label1" - }, - { - "$id": "2357", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label2" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2358", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2359", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.setLabels.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2360", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be set to the entity", - "type": { - "$ref": "374" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.setLabels.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2361", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "159" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.setLabels.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.setLabels" - }, - { - "$id": "2362", - "kind": "basic", - "name": "addLabel", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Add given labels to a given entity.", - "operation": { - "$id": "2363", - "name": "addLabel", - "resourceName": "Entity", - "doc": "Add given labels to a given entity.", - "accessibility": "public", - "parameters": [ - { - "$id": "2364", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2365", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addLabel.guid" - }, - { - "$id": "2366", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "161" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addLabel.contentType" - }, - { - "$id": "2367", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be added", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addLabel.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/guid/{guid}/labels", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addLabel", - "decorators": [], - "examples": [ - { - "$id": "2368", - "kind": "http", - "name": "Entity_AddLabel", - "description": "Entity_AddLabel", - "filePath": "2023-09-01/Entity_AddLabel.json", - "parameters": [ - { - "parameter": { - "$ref": "2364" - }, - "value": { - "$id": "2369", - "kind": "string", - "type": { - "$ref": "2365" - }, - "value": "02c373fe-2823-4be3-97fa-55180a9faa06" - } - }, - { - "parameter": { - "$ref": "2367" - }, - "value": { - "$id": "2370", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2371", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label1" - }, - { - "$id": "2372", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label2" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2373", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "2374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addLabel.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2375", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be added", - "type": { - "$ref": "374" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addLabel.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2376", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "161" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addLabel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addLabel" - }, - { - "$id": "2377", - "kind": "basic", - "name": "removeLabelsByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete given labels to a given entity identified by its type and unique\nattribute.\n\nIf labels is null/empty, no labels will be removed.\n\nIf any labels\nin labels set are non-existing labels, they will be ignored, only existing\nlabels will be removed. In addition to the typeName path parameter, attribute\nkey-value pair(s) can be provided in the following format:\nattr:=. NOTE: The attrName and attrValue should be unique\nacross entities, eg. qualifiedName. The REST request would look something like\nthis: DELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "2378", - "name": "removeLabelsByUniqueAttribute", - "resourceName": "Entity", - "doc": "Delete given labels to a given entity identified by its type and unique\nattribute.\n\nIf labels is null/empty, no labels will be removed.\n\nIf any labels\nin labels set are non-existing labels, they will be ignored, only existing\nlabels will be removed. In addition to the typeName path parameter, attribute\nkey-value pair(s) can be provided in the following format:\nattr:=. NOTE: The attrName and attrValue should be unique\nacross entities, eg. qualifiedName. The REST request would look something like\nthis: DELETE\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "2379", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2380", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.typeName" - }, - { - "$id": "2381", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2382", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "2383", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "163" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.contentType" - }, - { - "$id": "2384", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be deleted", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "2385", - "kind": "http", - "name": "Entity_RemoveLabelsByUniqueAttribute", - "description": "Entity_RemoveLabelsByUniqueAttribute", - "filePath": "2023-09-01/Entity_RemoveLabelsByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2379" - }, - "value": { - "$id": "2386", - "kind": "string", - "type": { - "$ref": "2380" - }, - "value": "Asset" - } - }, - { - "parameter": { - "$ref": "2381" - }, - "value": { - "$id": "2387", - "kind": "string", - "type": { - "$ref": "2382" - }, - "value": "https://asset1" - } - }, - { - "parameter": { - "$ref": "2384" - }, - "value": { - "$id": "2388", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2389", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label1" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2390", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2391", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2392", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2394", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be deleted", - "type": { - "$ref": "374" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2395", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "163" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.removeLabelsByUniqueAttribute" - }, - { - "$id": "2396", - "kind": "basic", - "name": "setLabelsByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Set labels to a given entity identified by its type and unique attributes.\n\nIf\nlabels is null/empty, existing labels will all be removed.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: POST\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "2397", - "name": "setLabelsByUniqueAttribute", - "resourceName": "Entity", - "doc": "Set labels to a given entity identified by its type and unique attributes.\n\nIf\nlabels is null/empty, existing labels will all be removed.\n\nIn addition to the\ntypeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: POST\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "2398", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.typeName" - }, - { - "$id": "2400", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2401", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "2402", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "165" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.contentType" - }, - { - "$id": "2403", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be set", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "2404", - "kind": "http", - "name": "Entity_SetLabelsByUniqueAttribute", - "description": "Entity_SetLabelsByUniqueAttribute", - "filePath": "2023-09-01/Entity_SetLabelsByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2398" - }, - "value": { - "$id": "2405", - "kind": "string", - "type": { - "$ref": "2399" - }, - "value": "Asset" - } - }, - { - "parameter": { - "$ref": "2400" - }, - "value": { - "$id": "2406", - "kind": "string", - "type": { - "$ref": "2401" - }, - "value": "https://asset1" - } - }, - { - "parameter": { - "$ref": "2403" - }, - "value": { - "$id": "2407", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2408", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label1" - }, - { - "$id": "2409", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label2" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2410", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2411", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2412", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2413", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2414", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be set", - "type": { - "$ref": "374" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2415", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "165" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.setLabelsByUniqueAttribute" - }, - { - "$id": "2416", - "kind": "basic", - "name": "addLabelsByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Add given labels to a given entity identified by its type and unique\nattributes.\n\nIf labels is null/empty, no labels will be added.\n\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: PUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "2417", - "name": "addLabelsByUniqueAttribute", - "resourceName": "Entity", - "doc": "Add given labels to a given entity identified by its type and unique\nattributes.\n\nIf labels is null/empty, no labels will be added.\n\nIn addition to\nthe typeName path parameter, attribute key-value pair(s) can be provided in the\nfollowing format: attr:=.\n\nNOTE: The attrName and\nattrValue should be unique across entities, eg. qualifiedName.\n\nThe REST\nrequest would look something like this: PUT\n/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "2418", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2419", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.typeName" - }, - { - "$id": "2420", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2421", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "2422", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "167" - }, - "isApiVersion": false, - "optional": true, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.contentType" - }, - { - "$id": "2423", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be added", - "type": { - "$ref": "374" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": true, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "2424", - "kind": "http", - "name": "Entity_AddLabelsByUniqueAttribute", - "description": "Entity_AddLabelsByUniqueAttribute", - "filePath": "2023-09-01/Entity_AddLabelsByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "2418" - }, - "value": { - "$id": "2425", - "kind": "string", - "type": { - "$ref": "2419" - }, - "value": "Asset" - } - }, - { - "parameter": { - "$ref": "2420" - }, - "value": { - "$id": "2426", - "kind": "string", - "type": { - "$ref": "2421" - }, - "value": "https://asset1" - } - }, - { - "parameter": { - "$ref": "2423" - }, - "value": { - "$id": "2427", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2428", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "label3" - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2429", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "2430", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2431", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "2432", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2433", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "set of labels to be added", - "type": { - "$ref": "374" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2434", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "167" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.addLabelsByUniqueAttribute" - }, - { - "$id": "2435", - "kind": "basic", - "name": "moveEntitiesToCollection", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Move existing entities to the target collection.", - "operation": { - "$id": "2436", - "name": "moveEntitiesToCollection", - "resourceName": "Entity", - "doc": "Move existing entities to the target collection.", - "accessibility": "public", - "parameters": [ - { - "$id": "2437", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "2438", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "2439", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.apiVersion", - "readOnly": false - }, - { - "$id": "2440", - "kind": "query", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection where entities will be moved to.", - "type": { - "$id": "2441", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.collectionId", - "readOnly": false - }, - { - "$id": "2442", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "169" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.contentType" - }, - { - "$id": "2443", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "171" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.accept" - }, - { - "$id": "2444", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "492" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/entity/moveTo", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection", - "decorators": [], - "examples": [ - { - "$id": "2445", - "kind": "http", - "name": "Entity_MoveEntitiesToCollection", - "description": "Entity_MoveEntitiesToCollection", - "filePath": "2023-09-01/Entity_MoveEntitiesToCollection.json", - "parameters": [ - { - "parameter": { - "$ref": "2440" - }, - "value": { - "$id": "2446", - "kind": "string", - "type": { - "$ref": "2441" - }, - "value": "ExampleNewCollection" - } - }, - { - "parameter": { - "$ref": "2437" - }, - "value": { - "$id": "2447", - "kind": "string", - "type": { - "$ref": "2438" - }, - "value": "2023-09-01" - } - }, - { - "parameter": { - "$ref": "2444" - }, - "value": { - "$id": "2448", - "kind": "model", - "type": { - "$ref": "492" - }, - "value": { - "entityGuids": { - "$id": "2449", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "2450", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" - }, - { - "$id": "2451", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "420" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2452", - "kind": "model", - "type": { - "$ref": "420" - }, - "value": { - "mutatedEntities": { - "$id": "2453", - "kind": "dict", - "type": { - "$ref": "423" - }, - "value": { - "UPDATE": { - "$id": "2454", - "kind": "array", - "type": { - "$ref": "425" - }, - "value": [ - { - "$id": "2455", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "2456", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "2457", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "2458", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount" - } - } - }, - "lastModifiedTS": { - "$id": "2459", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "3" - }, - "guid": { - "$id": "2460", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - }, - "status": { - "$id": "2461", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - }, - { - "$id": "2462", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "2463", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_storage_account" - }, - "attributes": { - "$id": "2464", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "qualifiedName": { - "$id": "2465", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "exampleaccount2" - } - } - }, - "lastModifiedTS": { - "$id": "2466", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "2" - }, - "guid": { - "$id": "2467", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" - }, - "status": { - "$id": "2468", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - } - } - } - ] - } - } - }, - "guidAssignments": { - "$id": "2469", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "-9514774903018192": { - "$id": "2470", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "321493e3-3fb7-4b3e-9df7-3b69154174c2" - }, - "-9514774903018193": { - "$id": "2471", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "b2f9c306-cf65-4bb0-878e-cfaafde156b1" - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2472", - "kind": "method", - "name": "collectionId", - "serializedName": "collectionId", - "doc": "The collection where entities will be moved to.", - "type": { - "$id": "2473", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.collectionId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2474", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "492" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2475", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "169" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2476", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "171" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "420" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Entity.moveEntitiesToCollection" - } - ], - "parameters": [ - { - "$id": "2477", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "2478", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - }, - { - "$ref": "1356" - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Entity", - "apiVersions": [ - "2023-09-01" - ], - "parent": { - "$ref": "1353" - } - }, - { - "$id": "2479", - "kind": "client", - "name": "Glossary", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [ - { - "$id": "2480", - "kind": "basic", - "name": "batchGet", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get all glossaries. Recommend using limit/offset to get pagination result.\nRecommend using 'ignoreTermsAndCategories=true' and fetch terms/categories\nseparately using 'GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms'\nand 'GET '/datamap/api/atlas/v2/glossary/{glossaryId}/categories'.", - "operation": { - "$id": "2481", - "name": "batchGet", - "resourceName": "Glossary", - "doc": "Get all glossaries. Recommend using limit/offset to get pagination result.\nRecommend using 'ignoreTermsAndCategories=true' and fetch terms/categories\nseparately using 'GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms'\nand 'GET '/datamap/api/atlas/v2/glossary/{glossaryId}/categories'.", - "accessibility": "public", - "parameters": [ - { - "$id": "2482", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "2483", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "2484", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.apiVersion", - "readOnly": false - }, - { - "$id": "2485", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "2486", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.limit", - "readOnly": false - }, - { - "$id": "2487", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "2488", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.offset", - "readOnly": false - }, - { - "$id": "2489", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "2490", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.sort", - "readOnly": false - }, - { - "$id": "2491", - "kind": "query", - "name": "ignoreTermsAndCategories", - "serializedName": "ignoreTermsAndCategories", - "doc": "Whether ignore terms and categories", - "type": { - "$id": "2492", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.ignoreTermsAndCategories", - "readOnly": false - }, - { - "$id": "2493", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "173" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "2494", - "kind": "array", - "name": "ArrayAtlasGlossary", - "valueType": { - "$ref": "494" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet", - "decorators": [], - "examples": [ - { - "$id": "2495", - "kind": "http", - "name": "Glossary_List", - "description": "Glossary_List", - "filePath": "2023-09-01/Glossary_List.json", - "parameters": [ - { - "parameter": { - "$ref": "2485" - }, - "value": { - "$id": "2496", - "kind": "number", - "type": { - "$ref": "2486" - }, - "value": 1 - } - }, - { - "parameter": { - "$ref": "2487" - }, - "value": { - "$id": "2497", - "kind": "number", - "type": { - "$ref": "2488" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "2489" - }, - "value": { - "$id": "2498", - "kind": "string", - "type": { - "$ref": "2490" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2499", - "kind": "array", - "type": { - "$ref": "2494" - }, - "value": [ - { - "$id": "2500", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "guid": { - "$id": "2501", - "kind": "string", - "type": { - "$ref": "496" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "qualifiedName": { - "$id": "2502", - "kind": "string", - "type": { - "$ref": "503" - }, - "value": "Glossary" - }, - "name": { - "$id": "2503", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "2504", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "2505", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "2506", - "kind": "string", - "type": { - "$ref": "507" - }, - "value": "1" - }, - "language": { - "$id": "2507", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "2508", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - }, - "createdBy": { - "$id": "2509", - "kind": "string", - "type": { - "$ref": "511" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "2510", - "kind": "string", - "type": { - "$ref": "515" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "2511", - "kind": "number", - "type": { - "$ref": "509" - }, - "value": 1672892675688 - }, - "updateTime": { - "$id": "2512", - "kind": "number", - "type": { - "$ref": "513" - }, - "value": 1672892675688 - }, - "terms": { - "$id": "2513", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2514", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2515", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2516", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - }, - "displayText": { - "$id": "2517", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "2518", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2519", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "2520", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - }, - "displayText": { - "$id": "2521", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "categories": { - "$id": "2522", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2523", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2524", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "2525", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "2526", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - }, - "displayText": { - "$id": "2527", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - }, - { - "$id": "2528", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2529", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "parentCategoryGuid": { - "$id": "2530", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "2531", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - }, - "displayText": { - "$id": "2532", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory1" - } - } - }, - { - "$id": "2533", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2534", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "2535", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - }, - "displayText": { - "$id": "2536", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory2" - } - } - } - ] - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2537", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "2538", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2539", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "2540", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2541", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "2542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2543", - "kind": "method", - "name": "ignoreTermsAndCategories", - "serializedName": "ignoreTermsAndCategories", - "doc": "Whether ignore terms and categories", - "type": { - "$id": "2544", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.ignoreTermsAndCategories", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2545", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "173" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "2494" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet" - }, - { - "$id": "2546", - "kind": "basic", - "name": "create", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create a glossary.", - "operation": { - "$id": "2547", - "name": "create", - "resourceName": "Glossary", - "doc": "Create a glossary.", - "accessibility": "public", - "parameters": [ - { - "$id": "2548", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "175" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.create.contentType" - }, - { - "$id": "2549", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "177" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.create.accept" - }, - { - "$id": "2550", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "494" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.create.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.create", - "decorators": [], - "examples": [ - { - "$id": "2551", - "kind": "http", - "name": "Glossary_Create", - "description": "Glossary_Create", - "filePath": "2023-09-01/Glossary_Create.json", - "parameters": [ - { - "parameter": { - "$ref": "2550" - }, - "value": { - "$id": "2552", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "name": { - "$id": "2553", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "2554", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "2555", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "language": { - "$id": "2556", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "2557", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2558", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "guid": { - "$id": "2559", - "kind": "string", - "type": { - "$ref": "496" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "qualifiedName": { - "$id": "2560", - "kind": "string", - "type": { - "$ref": "503" - }, - "value": "Glossary" - }, - "name": { - "$id": "2561", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "2562", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "2563", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "2564", - "kind": "string", - "type": { - "$ref": "507" - }, - "value": "1" - }, - "language": { - "$id": "2565", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "2566", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - }, - "createdBy": { - "$id": "2567", - "kind": "string", - "type": { - "$ref": "511" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "2568", - "kind": "string", - "type": { - "$ref": "515" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "2569", - "kind": "number", - "type": { - "$ref": "509" - }, - "value": 1672892675688 - }, - "updateTime": { - "$id": "2570", - "kind": "number", - "type": { - "$ref": "513" - }, - "value": 1672892675688 - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2571", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "494" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.create.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2572", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "175" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.create.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2573", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "177" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.create.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "494" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.create" - }, - { - "$id": "2574", - "kind": "basic", - "name": "createCategories", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create glossary category in bulk.", - "operation": { - "$id": "2575", - "name": "createCategories", - "resourceName": "Glossary", - "doc": "Create glossary category in bulk.", - "accessibility": "public", - "parameters": [ - { - "$id": "2576", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "179" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.contentType" - }, - { - "$id": "2577", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "181" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.accept" - }, - { - "$id": "2578", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of glossary category definitions to be created.", - "type": { - "$id": "2579", - "kind": "array", - "name": "ArrayAtlasGlossaryCategory", - "valueType": { - "$ref": "549" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2579" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/categories", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories", - "decorators": [], - "examples": [ - { - "$id": "2580", - "kind": "http", - "name": "Glossary_CreateCategories", - "description": "Glossary_CreateCategories", - "filePath": "2023-09-01/Glossary_CreateCategories.json", - "parameters": [ - { - "parameter": { - "$ref": "2578" - }, - "value": { - "$id": "2581", - "kind": "array", - "type": { - "$ref": "2579" - }, - "value": [ - { - "$id": "2582", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "name": { - "$id": "2583", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory2" - }, - "anchor": { - "$id": "2584", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2585", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - } - } - }, - { - "$id": "2586", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "name": { - "$id": "2587", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory3" - }, - "anchor": { - "$id": "2588", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2589", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2579" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2590", - "kind": "array", - "type": { - "$ref": "2579" - }, - "value": [ - { - "$id": "2591", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2592", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "qualifiedName": { - "$id": "2593", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory2@Glossary" - }, - "name": { - "$id": "2594", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory2" - }, - "lastModifiedTS": { - "$id": "2595", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "1" - }, - "anchor": { - "$id": "2596", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2597", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2598", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - } - } - } - } - }, - { - "$id": "2599", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2600", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "qualifiedName": { - "$id": "2601", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory3@Glossary" - }, - "name": { - "$id": "2602", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory3" - }, - "lastModifiedTS": { - "$id": "2603", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "1" - }, - "anchor": { - "$id": "2604", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2605", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2606", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - } - } - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2607", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of glossary category definitions to be created.", - "type": { - "$ref": "2579" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2608", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "179" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2609", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "181" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "2579" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createCategories" - }, - { - "$id": "2610", - "kind": "basic", - "name": "createCategory", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create a glossary category.", - "operation": { - "$id": "2611", - "name": "createCategory", - "resourceName": "Glossary", - "doc": "Create a glossary category.", - "accessibility": "public", - "parameters": [ - { - "$id": "2612", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "183" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.contentType" - }, - { - "$id": "2613", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "185" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.accept" - }, - { - "$id": "2614", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "549" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory", - "decorators": [], - "examples": [ - { - "$id": "2615", - "kind": "http", - "name": "Glossary_CreateCategory", - "description": "Glossary_CreateCategory", - "filePath": "2023-09-01/Glossary_CreateCategory.json", - "parameters": [ - { - "parameter": { - "$ref": "2614" - }, - "value": { - "$id": "2616", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "anchor": { - "$id": "2617", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2618", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - }, - "name": { - "$id": "2619", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "terms": { - "$id": "2620", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2621", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2622", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2623", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2624", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "2625", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1@Glossary" - }, - "name": { - "$id": "2626", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "lastModifiedTS": { - "$id": "2627", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "1" - }, - "anchor": { - "$id": "2628", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2629", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2630", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "terms": { - "$id": "2631", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2632", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2633", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2634", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "2635", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2636", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "549" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2637", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "183" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2638", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "185" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "549" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createCategory" - }, - { - "$id": "2639", - "kind": "basic", - "name": "getCategory", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get specific glossary category by its GUID.", - "operation": { - "$id": "2640", - "name": "getCategory", - "resourceName": "Glossary", - "doc": "Get specific glossary category by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "2641", - "kind": "path", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2642", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.categoryId" - }, - { - "$id": "2643", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "187" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category/{categoryId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategory", - "decorators": [], - "examples": [ - { - "$id": "2644", - "kind": "http", - "name": "Glossary_GetCategory", - "description": "Glossary_GetCategory", - "filePath": "2023-09-01/Glossary_GetCategory.json", - "parameters": [ - { - "parameter": { - "$ref": "2641" - }, - "value": { - "$id": "2645", - "kind": "string", - "type": { - "$ref": "2642" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2646", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2647", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "2648", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1.ExampleCategory2@Glossary" - }, - "name": { - "$id": "2649", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "lastModifiedTS": { - "$id": "2650", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "2" - }, - "anchor": { - "$id": "2651", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2652", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2653", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "parentCategory": { - "$id": "2654", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2655", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "2656", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - }, - "childrenCategories": { - "$id": "2657", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2658", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2659", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "2660", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "2661", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - }, - "displayText": { - "$id": "2662", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - } - ] - }, - "terms": { - "$id": "2663", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2664", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2665", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2666", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "2667", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2668", - "kind": "method", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2669", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.categoryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2670", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "187" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategory.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "549" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategory" - }, - { - "$id": "2671", - "kind": "basic", - "name": "updateCategory", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update the given glossary category by its GUID.", - "operation": { - "$id": "2672", - "name": "updateCategory", - "resourceName": "Glossary", - "doc": "Update the given glossary category by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "2673", - "kind": "path", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2674", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.categoryId" - }, - { - "$id": "2675", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "189" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.contentType" - }, - { - "$id": "2676", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "191" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.accept" - }, - { - "$id": "2677", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "549" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category/{categoryId}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory", - "decorators": [], - "examples": [ - { - "$id": "2678", - "kind": "http", - "name": "Glossary_UpdateCategory", - "description": "Glossary_UpdateCategory", - "filePath": "2023-09-01/Glossary_UpdateCategory.json", - "parameters": [ - { - "parameter": { - "$ref": "2673" - }, - "value": { - "$id": "2679", - "kind": "string", - "type": { - "$ref": "2674" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - } - }, - { - "parameter": { - "$ref": "2677" - }, - "value": { - "$id": "2680", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2681", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "2682", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1@Glossary" - }, - "name": { - "$id": "2683", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "lastModifiedTS": { - "$id": "2684", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "1" - }, - "anchor": { - "$id": "2685", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2686", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2687", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "terms": { - "$id": "2688", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2689", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2690", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2691", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - } - } - } - ] - }, - "childrenCategories": { - "$id": "2692", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2693", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2694", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - } - } - } - ] - }, - "parentCategory": { - "$id": "2695", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2696", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2697", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2698", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "2699", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1.Category2@Glossary" - }, - "name": { - "$id": "2700", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "lastModifiedTS": { - "$id": "2701", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "2" - }, - "anchor": { - "$id": "2702", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2703", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2704", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "parentCategory": { - "$id": "2705", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2706", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "2707", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - }, - "childrenCategories": { - "$id": "2708", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2709", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2710", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "2711", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "2712", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - }, - "displayText": { - "$id": "2713", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - } - ] - }, - "terms": { - "$id": "2714", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2715", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2716", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2717", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "2718", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2719", - "kind": "method", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2720", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.categoryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2721", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "549" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2722", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "189" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2723", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "191" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "549" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.updateCategory" - }, - { - "$id": "2724", - "kind": "basic", - "name": "deleteCategory", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a glossary category.", - "operation": { - "$id": "2725", - "name": "deleteCategory", - "resourceName": "Glossary", - "doc": "Delete a glossary category.", - "accessibility": "public", - "parameters": [ - { - "$id": "2726", - "kind": "path", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2727", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory.categoryId" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category/{categoryId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory", - "decorators": [], - "examples": [ - { - "$id": "2728", - "kind": "http", - "name": "Glossary_DeleteCategory", - "description": "Glossary_DeleteCategory", - "filePath": "2023-09-01/Glossary_DeleteCategory.json", - "parameters": [ - { - "parameter": { - "$ref": "2726" - }, - "value": { - "$id": "2729", - "kind": "string", - "type": { - "$ref": "2727" - }, - "value": "0e391355-252a-e5f3-ac18-5a3602df7616" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2730", - "kind": "method", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2731", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory.categoryId", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteCategory" - }, - { - "$id": "2732", - "kind": "basic", - "name": "partialUpdateCategory", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update the glossary category partially. So far we only supports partial\nupdating shortDescription and longDescription for category.", - "operation": { - "$id": "2733", - "name": "partialUpdateCategory", - "resourceName": "Glossary", - "doc": "Update the glossary category partially. So far we only supports partial\nupdating shortDescription and longDescription for category.", - "accessibility": "public", - "parameters": [ - { - "$id": "2734", - "kind": "path", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2735", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.categoryId" - }, - { - "$id": "2736", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "193" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.contentType" - }, - { - "$id": "2737", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "195" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.accept" - }, - { - "$id": "2738", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues for partial update.", - "type": { - "$ref": "362" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category/{categoryId}/partial", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory", - "decorators": [], - "examples": [ - { - "$id": "2739", - "kind": "http", - "name": "Glossary_PartialUpdateCategory", - "description": "Glossary_PartialUpdateCategory", - "filePath": "2023-09-01/Glossary_PartialUpdateCategory.json", - "parameters": [ - { - "parameter": { - "$ref": "2734" - }, - "value": { - "$id": "2740", - "kind": "string", - "type": { - "$ref": "2735" - }, - "value": "3243ea0a-9492-47e1-392e-a84e64980af9" - } - }, - { - "parameter": { - "$ref": "2738" - }, - "value": { - "$id": "2741", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "longDescription": { - "$id": "2742", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "Example Long Description" - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "549" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2743", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "2744", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "2745", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1.ExampleCategory2@Glossary" - }, - "name": { - "$id": "2746", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "longDescription": { - "$id": "2747", - "kind": "string", - "type": { - "$ref": "554" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "2748", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "3" - }, - "anchor": { - "$id": "2749", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2750", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2751", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "parentCategory": { - "$id": "2752", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2753", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "2754", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - }, - "childrenCategories": { - "$id": "2755", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2756", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2757", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "2758", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "2759", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - }, - "displayText": { - "$id": "2760", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - } - ] - }, - "terms": { - "$id": "2761", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2762", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2763", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2764", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "2765", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2766", - "kind": "method", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2767", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.categoryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2768", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues for partial update.", - "type": { - "$ref": "362" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2769", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "193" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2770", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "195" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "549" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateCategory" - }, - { - "$id": "2771", - "kind": "basic", - "name": "getRelatedCategories", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get all related categories (parent and children). Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", - "operation": { - "$id": "2772", - "name": "getRelatedCategories", - "resourceName": "Glossary", - "doc": "Get all related categories (parent and children). Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", - "accessibility": "public", - "parameters": [ - { - "$id": "2773", - "kind": "path", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2774", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.categoryId" - }, - { - "$id": "2775", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "2776", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.limit", - "readOnly": false - }, - { - "$id": "2777", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "2778", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.offset", - "readOnly": false - }, - { - "$id": "2779", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "2780", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.sort", - "readOnly": false - }, - { - "$id": "2781", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "197" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "2782", - "kind": "dict", - "keyType": { - "$id": "2783", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "517" - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category/{categoryId}/related", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories", - "decorators": [], - "examples": [ - { - "$id": "2784", - "kind": "http", - "name": "Glossary_ListRelatedCategories", - "description": "Glossary_ListRelatedCategories", - "filePath": "2023-09-01/Glossary_ListRelatedCategories.json", - "parameters": [ - { - "parameter": { - "$ref": "2773" - }, - "value": { - "$id": "2785", - "kind": "string", - "type": { - "$ref": "2774" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - } - }, - { - "parameter": { - "$ref": "2775" - }, - "value": { - "$id": "2786", - "kind": "number", - "type": { - "$ref": "2776" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "2777" - }, - "value": { - "$id": "2787", - "kind": "number", - "type": { - "$ref": "2778" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "2779" - }, - "value": { - "$id": "2788", - "kind": "string", - "type": { - "$ref": "2780" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2782" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2789", - "kind": "dict", - "type": { - "$ref": "2782" - }, - "value": { - "parent": { - "$id": "2790", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2791", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2792", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "6c8233cd-f6dc-6ef7-5597-b18ab590f2fc" - }, - "relationGuid": { - "$id": "2793", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "25cf5e46-c551-4ed4-8919-505c29ae311d" - } - } - } - ] - }, - "children": { - "$id": "2794", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "2795", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "2796", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "abc6ac1b-5700-9c70-3f5a-60a519150035" - }, - "parentCategoryGuid": { - "$id": "2797", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "3243ea0a-9492-47e1-392e-a84e64980af9" - }, - "relationGuid": { - "$id": "2798", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "12d41563-2fd9-4be5-9eb9-9908f811a8f2" - }, - "displayText": { - "$id": "2799", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory4" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2800", - "kind": "method", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2801", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.categoryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2802", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "2803", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2804", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "2805", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2806", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "2807", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2808", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "197" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "2782" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedCategories" - }, - { - "$id": "2809", - "kind": "basic", - "name": "getCategoryTerms", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get all terms associated with the specific category.", - "operation": { - "$id": "2810", - "name": "getCategoryTerms", - "resourceName": "Glossary", - "doc": "Get all terms associated with the specific category.", - "accessibility": "public", - "parameters": [ - { - "$id": "2811", - "kind": "path", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2812", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.categoryId" - }, - { - "$id": "2813", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "2814", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.limit", - "readOnly": false - }, - { - "$id": "2815", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "2816", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.offset", - "readOnly": false - }, - { - "$id": "2817", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "2818", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.sort", - "readOnly": false - }, - { - "$id": "2819", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "199" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "532" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/category/{categoryId}/terms", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms", - "decorators": [], - "examples": [ - { - "$id": "2820", - "kind": "http", - "name": "Glossary_ListCategoryTerms", - "description": "Glossary_ListCategoryTerms", - "filePath": "2023-09-01/Glossary_ListCategoryTerms.json", - "parameters": [ - { - "parameter": { - "$ref": "2811" - }, - "value": { - "$id": "2821", - "kind": "string", - "type": { - "$ref": "2812" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - } - }, - { - "parameter": { - "$ref": "2813" - }, - "value": { - "$id": "2822", - "kind": "number", - "type": { - "$ref": "2814" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "2815" - }, - "value": { - "$id": "2823", - "kind": "number", - "type": { - "$ref": "2816" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "2817" - }, - "value": { - "$id": "2824", - "kind": "string", - "type": { - "$ref": "2818" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "532" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2825", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2826", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2827", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "2828", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "2829", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2830", - "kind": "method", - "name": "categoryId", - "serializedName": "categoryId", - "doc": "The globally unique identifier of the category.", - "type": { - "$id": "2831", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.categoryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2832", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "2833", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2834", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "2835", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2836", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "2837", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2838", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "199" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "532" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoryTerms" - }, - { - "$id": "2839", - "kind": "basic", - "name": "createTerm", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create a glossary term.", - "operation": { - "$id": "2840", - "name": "createTerm", - "resourceName": "Glossary", - "doc": "Create a glossary term.", - "accessibility": "public", - "parameters": [ - { - "$id": "2841", - "kind": "query", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "2842", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.includeTermHierarchy", - "readOnly": false - }, - { - "$id": "2843", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "201" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.contentType" - }, - { - "$id": "2844", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "203" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.accept" - }, - { - "$id": "2845", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "582" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/term", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm", - "decorators": [], - "examples": [ - { - "$id": "2846", - "kind": "http", - "name": "Glossary_CreateTerm", - "description": "Glossary_CreateTerm", - "filePath": "2023-09-01/Glossary_CreateTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "2845" - }, - "value": { - "$id": "2847", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "name": { - "$id": "2848", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "2849", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "2850", - "kind": "string", - "type": { - "$ref": "587" - }, - "value": "Example Long Description" - }, - "abbreviation": { - "$id": "2851", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "status": { - "$id": "2852", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "2853", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2854", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - }, - "resources": { - "$id": "2855", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "2856", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "2857", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "2858", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - }, - "contacts": { - "$id": "2859", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "2860", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "2861", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "2862", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "2863", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Steward": { - "$id": "2864", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "2865", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "2866", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "2867", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Steward info" - } - } - } - ] - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2868", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "2869", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "2870", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "2871", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "2872", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "2873", - "kind": "string", - "type": { - "$ref": "587" - }, - "value": "Example Long Description" - }, - "abbreviation": { - "$id": "2874", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "anchor": { - "$id": "2875", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2876", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2877", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "createdBy": { - "$id": "2878", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "2879", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "2880", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "2881", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287247276 - }, - "status": { - "$id": "2882", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "resources": { - "$id": "2883", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "2884", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "2885", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "2886", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - }, - "contacts": { - "$id": "2887", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "2888", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "2889", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "2890", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "2891", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Steward": { - "$id": "2892", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "2893", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "2894", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "2895", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Steward Info" - } - } - } - ] - } - } - } - } - } - } - ] - }, - { - "$id": "2896", - "kind": "http", - "name": "Glossary_CreateTermWithTemplate", - "description": "Glossary_CreateTermWithTemplate", - "filePath": "2023-09-01/Glossary_CreateTermWithTemplate.json", - "parameters": [ - { - "parameter": { - "$ref": "2845" - }, - "value": { - "$id": "2897", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "name": { - "$id": "2898", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm" - }, - "anchor": { - "$id": "2899", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2900", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - }, - "attributes": { - "$id": "2901", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": { - "ExampleTermTemplateAttribute": { - "$id": "2902", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "plain string": { - "$id": "2903", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example String" - }, - "date": { - "$id": "2904", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 1606233600000 - }, - "single choice": { - "$id": "2905", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Single Choice A" - }, - "multi choice": { - "$id": "2906", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [ - "Example Multi Choice A", - "Example Multi Choice B" - ] - } - } - } - } - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2907", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "2908", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "9390cc82-1077-403e-a4d2-b6a69834707b" - }, - "qualifiedName": { - "$id": "2909", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm@Glossary" - }, - "name": { - "$id": "2910", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm" - }, - "lastModifiedTS": { - "$id": "2911", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "createdBy": { - "$id": "2912", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "2913", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "2914", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "2915", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287247276 - }, - "anchor": { - "$id": "2916", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2917", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2918", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "attributes": { - "$id": "2919", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": { - "ExampleTermTemplateAttribute": { - "$id": "2920", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "plain string": { - "$id": "2921", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example String" - }, - "date": { - "$id": "2922", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 1606233600000 - }, - "single choice": { - "$id": "2923", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Single Choice A" - }, - "multi choice": { - "$id": "2924", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": [ - "Example Multi Choice A", - "Example Multi Choice B" - ] - } - } - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "2925", - "kind": "method", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "2926", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.includeTermHierarchy", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2927", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "582" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2928", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "201" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "2929", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "203" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "582" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createTerm" - }, - { - "$id": "2930", - "kind": "basic", - "name": "getTerm", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get a specific glossary term by its GUID. ", - "operation": { - "$id": "2931", - "name": "getTerm", - "resourceName": "Glossary", - "doc": "Get a specific glossary term by its GUID. ", - "accessibility": "public", - "parameters": [ - { - "$id": "2932", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "2933", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "2934", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.apiVersion", - "readOnly": false - }, - { - "$id": "2935", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "2936", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.termId" - }, - { - "$id": "2937", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "205" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/term/{termId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm", - "decorators": [], - "examples": [ - { - "$id": "2938", - "kind": "http", - "name": "Glossary_GetTerm", - "description": "Glossary_GetTerm", - "filePath": "2023-09-01/Glossary_GetTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "2935" - }, - "value": { - "$id": "2939", - "kind": "string", - "type": { - "$ref": "2936" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2940", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "2941", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "2942", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "2943", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "2944", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "2945", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "2946", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "createdBy": { - "$id": "2947", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "2948", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "2949", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "2950", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287247276 - }, - "status": { - "$id": "2951", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "2952", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "2953", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "2954", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "seeAlso": { - "$id": "2955", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2956", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2957", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "2958", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "2959", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "synonyms": { - "$id": "2960", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "2961", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "2962", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "2963", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "2964", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "contacts": { - "$id": "2965", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "2966", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "2967", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "2968", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "2969", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Steward": { - "$id": "2970", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "2971", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "2972", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "2973", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Steward Info" - } - } - } - ] - } - } - }, - "resources": { - "$id": "2974", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "2975", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "2976", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "2977", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - }, - "assignedEntities": { - "$id": "2978", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "2979", - "kind": "model", - "type": { - "$ref": "642" - }, - "value": { - "guid": { - "$id": "2980", - "kind": "string", - "type": { - "$ref": "644" - }, - "value": "7e255139-b654-4c8d-a4bd-fbb5a243e83f" - }, - "typeName": { - "$id": "2981", - "kind": "string", - "type": { - "$ref": "646" - }, - "value": "azure_datalake_gen2_path" - }, - "entityStatus": { - "$id": "2982", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "displayText": { - "$id": "2983", - "kind": "string", - "type": { - "$ref": "649" - }, - "value": "moviesDB.csv" - }, - "relationshipType": { - "$id": "2984", - "kind": "string", - "type": { - "$ref": "652" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "relationshipGuid": { - "$id": "2985", - "kind": "string", - "type": { - "$ref": "661" - }, - "value": "ace36560-6259-4e7f-9214-3850b2af0a86" - }, - "relationshipStatus": { - "$id": "2986", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "relationshipAttributes": { - "$id": "2987", - "kind": "model", - "type": { - "$ref": "654" - }, - "value": { - "typeName": { - "$id": "2988", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "attributes": { - "$id": "2989", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "2990", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "createdBy": { - "$id": "2991", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "steward": { - "$id": "2992", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "confidence": { - "$id": "2993", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "description": { - "$id": "2994", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "source": { - "$id": "2995", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "2996", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - } - } - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "2997", - "kind": "http", - "name": "Glossary_GetTermWithoutAssets", - "description": "Glossary_GetTermWithoutAssets", - "filePath": "2023-09-01/Glossary_GetTermWithoutAssets.json", - "parameters": [ - { - "parameter": { - "$ref": "2935" - }, - "value": { - "$id": "2998", - "kind": "string", - "type": { - "$ref": "2936" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "2999", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3000", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "3001", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "3002", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "3003", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3004", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3005", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "createdBy": { - "$id": "3006", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3007", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3008", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "3009", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287247276 - }, - "status": { - "$id": "3010", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3011", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3012", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3013", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "seeAlso": { - "$id": "3014", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3015", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3016", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3017", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3018", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "synonyms": { - "$id": "3019", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3020", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3021", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3022", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3023", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "contacts": { - "$id": "3024", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "3025", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "3026", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "3027", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "3028", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Steward": { - "$id": "3029", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "3030", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "3031", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "3032", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Steward Info" - } - } - } - ] - } - } - }, - "resources": { - "$id": "3033", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3034", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3035", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3036", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3037", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3038", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3039", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "205" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "582" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getTerm" - }, - { - "$id": "3040", - "kind": "basic", - "name": "updateTerm", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update the given glossary term by its GUID.", - "operation": { - "$id": "3041", - "name": "updateTerm", - "resourceName": "Glossary", - "doc": "Update the given glossary term by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "3042", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3043", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3044", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.apiVersion", - "readOnly": false - }, - { - "$id": "3045", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3046", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.termId" - }, - { - "$id": "3047", - "kind": "query", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "3048", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.includeTermHierarchy", - "readOnly": false - }, - { - "$id": "3049", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "207" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.contentType" - }, - { - "$id": "3050", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "209" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.accept" - }, - { - "$id": "3051", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "582" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/term/{termId}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm", - "decorators": [], - "examples": [ - { - "$id": "3052", - "kind": "http", - "name": "Glossary_UpdateTerm", - "description": "Glossary_UpdateTerm", - "filePath": "2023-09-01/Glossary_UpdateTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "3045" - }, - "value": { - "$id": "3053", - "kind": "string", - "type": { - "$ref": "3046" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - } - }, - { - "parameter": { - "$ref": "3051" - }, - "value": { - "$id": "3054", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3055", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "3056", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "3057", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "3058", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3059", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3060", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "status": { - "$id": "3061", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3062", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3063", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3064", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "resources": { - "$id": "3065", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3066", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3067", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3068", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - }, - "seeAlso": { - "$id": "3069", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3070", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3071", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - } - } - }, - { - "$id": "3072", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3073", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" - } - } - } - ] - }, - "synonyms": { - "$id": "3074", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3075", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3076", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - } - } - }, - { - "$id": "3077", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3078", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3079", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3080", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "3081", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "3082", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "3083", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3084", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3085", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "createdBy": { - "$id": "3086", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3087", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3088", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "3089", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287247276 - }, - "status": { - "$id": "3090", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3091", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3092", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3093", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "seeAlso": { - "$id": "3094", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3095", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3096", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3097", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3098", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - }, - { - "$id": "3099", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3100", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" - }, - "relationGuid": { - "$id": "3101", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "4d802ada-65f3-45a8-969f-aba47d9c6200" - }, - "displayText": { - "$id": "3102", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm3" - } - } - } - ] - }, - "synonyms": { - "$id": "3103", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3104", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3105", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3106", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3107", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - }, - { - "$id": "3108", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3109", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" - }, - "relationGuid": { - "$id": "3110", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "bb26fe7c-6e26-46ad-b936-50a5f7ffbbaf" - }, - "displayText": { - "$id": "3111", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm3" - } - } - } - ] - }, - "resources": { - "$id": "3112", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3113", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3114", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3115", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3116", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3118", - "kind": "method", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "3119", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.includeTermHierarchy", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3120", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "582" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3121", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "207" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3122", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "209" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "582" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.updateTerm" - }, - { - "$id": "3123", - "kind": "basic", - "name": "deleteTerm", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a glossary term.", - "operation": { - "$id": "3124", - "name": "deleteTerm", - "resourceName": "Glossary", - "doc": "Delete a glossary term.", - "accessibility": "public", - "parameters": [ - { - "$id": "3125", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm.termId" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/term/{termId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm", - "decorators": [], - "examples": [ - { - "$id": "3127", - "kind": "http", - "name": "Glossary_DeleteTerm", - "description": "Glossary_DeleteTerm", - "filePath": "2023-09-01/Glossary_DeleteTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "3125" - }, - "value": { - "$id": "3128", - "kind": "string", - "type": { - "$ref": "3126" - }, - "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3129", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm.termId", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTerm" - }, - { - "$id": "3131", - "kind": "basic", - "name": "partialUpdateTerm", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update the glossary term partially. So far we only supports partial updating\nshortDescription, longDescription, abbreviation, usage and status for term.", - "operation": { - "$id": "3132", - "name": "partialUpdateTerm", - "resourceName": "Glossary", - "doc": "Update the glossary term partially. So far we only supports partial updating\nshortDescription, longDescription, abbreviation, usage and status for term.", - "accessibility": "public", - "parameters": [ - { - "$id": "3133", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.apiVersion", - "readOnly": false - }, - { - "$id": "3136", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.termId" - }, - { - "$id": "3138", - "kind": "query", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "3139", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.includeTermHierarchy", - "readOnly": false - }, - { - "$id": "3140", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "211" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.contentType" - }, - { - "$id": "3141", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "213" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.accept" - }, - { - "$id": "3142", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues to be updated.", - "type": { - "$ref": "362" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/term/{termId}/partial", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm", - "decorators": [], - "examples": [ - { - "$id": "3143", - "kind": "http", - "name": "Glossary_PartialUpdateTerm", - "description": "Glossary_PartialUpdateTerm", - "filePath": "2023-09-01/Glossary_PartialUpdateTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "3136" - }, - "value": { - "$id": "3144", - "kind": "string", - "type": { - "$ref": "3137" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - } - }, - { - "parameter": { - "$ref": "3142" - }, - "value": { - "$id": "3145", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "longDescription": { - "$id": "3146", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "Example Long Description" - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "582" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3147", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3148", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "3149", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "3150", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "3151", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3152", - "kind": "string", - "type": { - "$ref": "587" - }, - "value": "Example Long Descrition" - }, - "lastModifiedTS": { - "$id": "3153", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "2" - }, - "abbreviation": { - "$id": "3154", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "createdBy": { - "$id": "3155", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3156", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3157", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "3158", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606290587593 - }, - "status": { - "$id": "3159", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3160", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3161", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3162", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "categories": { - "$id": "3163", - "kind": "array", - "type": { - "$ref": "665" - }, - "value": [ - { - "$id": "3164", - "kind": "model", - "type": { - "$ref": "666" - }, - "value": { - "categoryGuid": { - "$id": "3165", - "kind": "string", - "type": { - "$ref": "668" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3166", - "kind": "string", - "type": { - "$ref": "675" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "3167", - "kind": "string", - "type": { - "$ref": "673" - }, - "value": "ExampleCategory1" - } - } - } - ] - }, - "seeAlso": { - "$id": "3168", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3169", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3170", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3171", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3172", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "synonyms": { - "$id": "3173", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3174", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3175", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3176", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3177", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "resources": { - "$id": "3178", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3179", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3180", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3181", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3182", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3184", - "kind": "method", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "3185", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.includeTermHierarchy", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3186", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues to be updated.", - "type": { - "$ref": "362" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3187", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "211" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3188", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "213" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "582" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdateTerm" - }, - { - "$id": "3189", - "kind": "basic", - "name": "createTerms", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create glossary terms in bulk.", - "operation": { - "$id": "3190", - "name": "createTerms", - "resourceName": "Glossary", - "doc": "Create glossary terms in bulk.", - "accessibility": "public", - "parameters": [ - { - "$id": "3191", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.apiVersion", - "readOnly": false - }, - { - "$id": "3194", - "kind": "query", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "3195", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.includeTermHierarchy", - "readOnly": false - }, - { - "$id": "3196", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "215" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.contentType" - }, - { - "$id": "3197", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "217" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.accept" - }, - { - "$id": "3198", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of glossary term definitions to be created in bulk.", - "type": { - "$id": "3199", - "kind": "array", - "name": "ArrayAtlasGlossaryTerm", - "valueType": { - "$ref": "582" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "3199" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/terms", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms", - "decorators": [], - "examples": [ - { - "$id": "3200", - "kind": "http", - "name": "Glossary_CreateTerms", - "description": "Glossary_CreateTerms", - "filePath": "2023-09-01/Glossary_CreateTerms.json", - "parameters": [ - { - "parameter": { - "$ref": "3198" - }, - "value": { - "$id": "3201", - "kind": "array", - "type": { - "$ref": "3199" - }, - "value": [ - { - "$id": "3202", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "anchor": { - "$id": "3203", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3204", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - }, - "name": { - "$id": "3205", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm2" - }, - "status": { - "$id": "3206", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "shortDescription": { - "$id": "3207", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3208", - "kind": "string", - "type": { - "$ref": "587" - }, - "value": "Example Long Description" - }, - "abbreviation": { - "$id": "3209", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T2" - }, - "resources": { - "$id": "3210", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3211", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3212", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3213", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - }, - { - "$id": "3214", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "anchor": { - "$id": "3215", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3216", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - }, - "name": { - "$id": "3217", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm3" - }, - "status": { - "$id": "3218", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "shortDescription": { - "$id": "3219", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3220", - "kind": "string", - "type": { - "$ref": "587" - }, - "value": "Example Long Description" - }, - "abbreviation": { - "$id": "3221", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T3" - }, - "resources": { - "$id": "3222", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3223", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3224", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3225", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "3199" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3226", - "kind": "array", - "type": { - "$ref": "3199" - }, - "value": [ - { - "$id": "3227", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3228", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "qualifiedName": { - "$id": "3229", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm2@Glossary" - }, - "name": { - "$id": "3230", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm2" - }, - "shortDescription": { - "$id": "3231", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3232", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3233", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T2" - }, - "createdBy": { - "$id": "3234", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3235", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3236", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287312495 - }, - "updateTime": { - "$id": "3237", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287312495 - }, - "status": { - "$id": "3238", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3239", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3240", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3241", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - } - } - }, - "resources": { - "$id": "3242", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3243", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3244", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3245", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - }, - { - "$id": "3246", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3247", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "821beef0-ced9-47ba-8f7f-c4f3459f4d18" - }, - "qualifiedName": { - "$id": "3248", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm3@Glossary" - }, - "name": { - "$id": "3249", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm3" - }, - "shortDescription": { - "$id": "3250", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3251", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3252", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T3" - }, - "createdBy": { - "$id": "3253", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3254", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3255", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287312495 - }, - "updateTime": { - "$id": "3256", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287312495 - }, - "status": { - "$id": "3257", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3258", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3259", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3260", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "f4de4878-3e43-4f8b-b090-07a233bb0ce6" - } - } - }, - "resources": { - "$id": "3261", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3262", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3263", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3264", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3265", - "kind": "method", - "name": "includeTermHierarchy", - "serializedName": "includeTermHierarchy", - "doc": "Whether include term hierarchy", - "type": { - "$id": "3266", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.includeTermHierarchy", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3267", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of glossary term definitions to be created in bulk.", - "type": { - "$ref": "3199" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3268", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "215" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3269", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "217" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "3199" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.createTerms" - }, - { - "$id": "3270", - "kind": "basic", - "name": "getEntitiesAssignedWithTerm", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "List all related objects assigned with the specified term. Recommend using\nlimit/offset to get pagination result.", - "operation": { - "$id": "3271", - "name": "getEntitiesAssignedWithTerm", - "resourceName": "Glossary", - "doc": "List all related objects assigned with the specified term. Recommend using\nlimit/offset to get pagination result.", - "accessibility": "public", - "parameters": [ - { - "$id": "3272", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3273", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.termId" - }, - { - "$id": "3274", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3275", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.limit", - "readOnly": false - }, - { - "$id": "3276", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3277", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.offset", - "readOnly": false - }, - { - "$id": "3278", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3279", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.sort", - "readOnly": false - }, - { - "$id": "3280", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "219" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "641" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/terms/{termId}/assignedEntities", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm", - "decorators": [], - "examples": [ - { - "$id": "3281", - "kind": "http", - "name": "Glossary_ListEntitiesAssignedWithTerm", - "description": "Glossary_ListEntitiesAssignedWithTerm", - "filePath": "2023-09-01/Glossary_ListEntitiesAssignedWithTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "3272" - }, - "value": { - "$id": "3282", - "kind": "string", - "type": { - "$ref": "3273" - }, - "value": "daf0ba4d-bc9a-4536-8a88-4b58e39dd3d4" - } - }, - { - "parameter": { - "$ref": "3274" - }, - "value": { - "$id": "3283", - "kind": "number", - "type": { - "$ref": "3275" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "3276" - }, - "value": { - "$id": "3284", - "kind": "number", - "type": { - "$ref": "3277" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "3278" - }, - "value": { - "$id": "3285", - "kind": "string", - "type": { - "$ref": "3279" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "641" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3286", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "3287", - "kind": "model", - "type": { - "$ref": "642" - }, - "value": { - "guid": { - "$id": "3288", - "kind": "string", - "type": { - "$ref": "644" - }, - "value": "ea116881-222e-41c8-8acb-9af6f6f60009" - }, - "typeName": { - "$id": "3289", - "kind": "string", - "type": { - "$ref": "646" - }, - "value": "column" - }, - "entityStatus": { - "$id": "3290", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "displayText": { - "$id": "3291", - "kind": "string", - "type": { - "$ref": "649" - }, - "value": "ExampleColumnName" - }, - "relationshipType": { - "$id": "3292", - "kind": "string", - "type": { - "$ref": "652" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "relationshipGuid": { - "$id": "3293", - "kind": "string", - "type": { - "$ref": "661" - }, - "value": "ff9023a5-8495-49d6-bf04-a22c3634151e" - }, - "relationshipStatus": { - "$id": "3294", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "relationshipAttributes": { - "$id": "3295", - "kind": "model", - "type": { - "$ref": "654" - }, - "value": { - "typeName": { - "$id": "3296", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "attributes": { - "$id": "3297", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "3298", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "createdBy": { - "$id": "3299", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "steward": { - "$id": "3300", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "confidence": { - "$id": "3301", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "description": { - "$id": "3302", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "source": { - "$id": "3303", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "3304", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - } - } - } - } - }, - { - "$id": "3305", - "kind": "model", - "type": { - "$ref": "642" - }, - "value": { - "guid": { - "$id": "3306", - "kind": "string", - "type": { - "$ref": "644" - }, - "value": "fbf0a84d-7080-456b-b889-b5ba42186c2e" - }, - "typeName": { - "$id": "3307", - "kind": "string", - "type": { - "$ref": "646" - }, - "value": "azure_blob_path" - }, - "entityStatus": { - "$id": "3308", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "displayText": { - "$id": "3309", - "kind": "string", - "type": { - "$ref": "649" - }, - "value": "exampledata.csv" - }, - "relationshipType": { - "$id": "3310", - "kind": "string", - "type": { - "$ref": "652" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "relationshipGuid": { - "$id": "3311", - "kind": "string", - "type": { - "$ref": "661" - }, - "value": "dedc1294-a893-4e52-ba27-6be9b8694748" - }, - "relationshipStatus": { - "$id": "3312", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "relationshipAttributes": { - "$id": "3313", - "kind": "model", - "type": { - "$ref": "654" - }, - "value": { - "typeName": { - "$id": "3314", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "attributes": { - "$id": "3315", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "3316", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "createdBy": { - "$id": "3317", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "steward": { - "$id": "3318", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "confidence": { - "$id": "3319", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "description": { - "$id": "3320", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "source": { - "$id": "3321", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "3322", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - } - } - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3323", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3324", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3325", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3326", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3327", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3328", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3329", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3331", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "219" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "641" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getEntitiesAssignedWithTerm" - }, - { - "$id": "3332", - "kind": "basic", - "name": "assignTermToEntities", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Assign the given term to the provided list of related objects. Recommend using\nsmall batches with multiple API calls.\n\n[Entities Create Or Update\noperation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP)\nis an alternative to assign a term to multiple entities.", - "operation": { - "$id": "3333", - "name": "assignTermToEntities", - "resourceName": "Glossary", - "doc": "Assign the given term to the provided list of related objects. Recommend using\nsmall batches with multiple API calls.\n\n[Entities Create Or Update\noperation](https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/bulk-create-or-update?tabs=HTTP)\nis an alternative to assign a term to multiple entities.", - "accessibility": "public", - "parameters": [ - { - "$id": "3334", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.termId" - }, - { - "$id": "3336", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "221" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.contentType" - }, - { - "$id": "3337", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of related object IDs to which the term has to be associated.", - "type": { - "$ref": "641" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/terms/{termId}/assignedEntities", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities", - "decorators": [], - "examples": [ - { - "$id": "3338", - "kind": "http", - "name": "Glossary_AssignTermToEntities", - "description": "Glossary_AssignTermToEntities", - "filePath": "2023-09-01/Glossary_AssignTermToEntities.json", - "parameters": [ - { - "parameter": { - "$ref": "3334" - }, - "value": { - "$id": "3339", - "kind": "string", - "type": { - "$ref": "3335" - }, - "value": "8a7f65ec-6429-0b9b-3734-ec57bf1e34c2" - } - }, - { - "parameter": { - "$ref": "3337" - }, - "value": { - "$id": "3340", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "3341", - "kind": "model", - "type": { - "$ref": "642" - }, - "value": { - "guid": { - "$id": "3342", - "kind": "string", - "type": { - "$ref": "644" - }, - "value": "ab9f1920-0b94-436d-aeb4-11a32c270fc0" - }, - "relationshipAttributes": { - "$id": "3343", - "kind": "model", - "type": { - "$ref": "654" - }, - "value": { - "attributes": { - "$id": "3344", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "3345", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Expression" - }, - "confidence": { - "$id": "3346", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 100 - }, - "description": { - "$id": "3347", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "source": { - "$id": "3348", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleSource" - } - } - } - } - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3349", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3351", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of related object IDs to which the term has to be associated.", - "type": { - "$ref": "641" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3352", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "221" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.assignTermToEntities" - }, - { - "$id": "3353", - "kind": "basic", - "name": "deleteTermAssignmentFromEntities", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete the term assignment for the given list of related objects.", - "operation": { - "$id": "3354", - "name": "deleteTermAssignmentFromEntities", - "resourceName": "Glossary", - "doc": "Delete the term assignment for the given list of related objects.", - "accessibility": "public", - "parameters": [ - { - "$id": "3355", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.termId" - }, - { - "$id": "3357", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "223" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.contentType" - }, - { - "$id": "3358", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "An array of related object IDs from which the term has to be dissociated.", - "type": { - "$ref": "641" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/terms/{termId}/assignedEntities", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities", - "decorators": [], - "examples": [ - { - "$id": "3359", - "kind": "http", - "name": "Glossary_RemoveTermAssignmentFromEntities", - "description": "Glossary_RemoveTermAssignmentFromEntities", - "filePath": "2023-09-01/Glossary_RemoveTermAssignmentFromEntities.json", - "parameters": [ - { - "parameter": { - "$ref": "3355" - }, - "value": { - "$id": "3360", - "kind": "string", - "type": { - "$ref": "3356" - }, - "value": "8a7f65ec-6429-0b9b-3734-ec57bf1e34c2" - } - }, - { - "parameter": { - "$ref": "3358" - }, - "value": { - "$id": "3361", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "3362", - "kind": "model", - "type": { - "$ref": "642" - }, - "value": { - "guid": { - "$id": "3363", - "kind": "string", - "type": { - "$ref": "644" - }, - "value": "16feb2a1-2c79-ade1-338d-fb24fcb8b8bd" - }, - "relationshipGuid": { - "$id": "3364", - "kind": "string", - "type": { - "$ref": "661" - }, - "value": "624f08bb-3c93-4f03-9ce1-ed2ce2c7c8d5" - } - } - } - ] - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3365", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3367", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "An array of related object IDs from which the term has to be dissociated.", - "type": { - "$ref": "641" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3368", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "223" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.deleteTermAssignmentFromEntities" - }, - { - "$id": "3369", - "kind": "basic", - "name": "getRelatedTerms", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get all related terms for a specific term by its GUID. Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", - "operation": { - "$id": "3370", - "name": "getRelatedTerms", - "resourceName": "Glossary", - "doc": "Get all related terms for a specific term by its GUID. Limit, offset, and sort\nparameters are currently not being enabled and won't work even they are passed.", - "accessibility": "public", - "parameters": [ - { - "$id": "3371", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3372", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3373", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.apiVersion", - "readOnly": false - }, - { - "$id": "3374", - "kind": "path", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3375", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.termId" - }, - { - "$id": "3376", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3377", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.limit", - "readOnly": false - }, - { - "$id": "3378", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3379", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.offset", - "readOnly": false - }, - { - "$id": "3380", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.sort", - "readOnly": false - }, - { - "$id": "3382", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "225" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "3383", - "kind": "dict", - "keyType": { - "$id": "3384", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "532" - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/terms/{termId}/related", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms", - "decorators": [], - "examples": [ - { - "$id": "3385", - "kind": "http", - "name": "Glossary_ListRelatedTerms", - "description": "Glossary_ListRelatedTerms", - "filePath": "2023-09-01/Glossary_ListRelatedTerms.json", - "parameters": [ - { - "parameter": { - "$ref": "3374" - }, - "value": { - "$id": "3386", - "kind": "string", - "type": { - "$ref": "3375" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - } - }, - { - "parameter": { - "$ref": "3376" - }, - "value": { - "$id": "3387", - "kind": "number", - "type": { - "$ref": "3377" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "3378" - }, - "value": { - "$id": "3388", - "kind": "number", - "type": { - "$ref": "3379" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "3380" - }, - "value": { - "$id": "3389", - "kind": "string", - "type": { - "$ref": "3381" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "3383" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3390", - "kind": "dict", - "type": { - "$ref": "3383" - }, - "value": { - "seeAlso": { - "$id": "3391", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3392", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3393", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3394", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3395", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "synonyms": { - "$id": "3396", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3397", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3398", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3399", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3400", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3401", - "kind": "method", - "name": "termId", - "serializedName": "termId", - "doc": "The globally unique identifier for glossary term.", - "type": { - "$id": "3402", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.termId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3403", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3404", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3405", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3406", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3407", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3408", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3409", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "225" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "3383" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getRelatedTerms" - }, - { - "$id": "3410", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get a specific Glossary by its GUID.", - "operation": { - "$id": "3411", - "name": "get", - "resourceName": "Glossary", - "doc": "Get a specific Glossary by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "3412", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3413", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.get.glossaryId" - }, - { - "$id": "3414", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "227" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.get.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.get", - "decorators": [], - "examples": [ - { - "$id": "3415", - "kind": "http", - "name": "Glossary_Get", - "description": "Glossary_Get", - "filePath": "2023-09-01/Glossary_Get.json", - "parameters": [ - { - "parameter": { - "$ref": "3412" - }, - "value": { - "$id": "3416", - "kind": "string", - "type": { - "$ref": "3413" - }, - "value": "47029611-67a1-42d5-8766-90eb904f7f22" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3417", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "guid": { - "$id": "3418", - "kind": "string", - "type": { - "$ref": "496" - }, - "value": "47029611-67a1-42d5-8766-90eb904f7f22" - }, - "qualifiedName": { - "$id": "3419", - "kind": "string", - "type": { - "$ref": "503" - }, - "value": "Glossary" - }, - "name": { - "$id": "3420", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "3421", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3422", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "3423", - "kind": "string", - "type": { - "$ref": "507" - }, - "value": "1" - }, - "language": { - "$id": "3424", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "3425", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - }, - "createdBy": { - "$id": "3426", - "kind": "string", - "type": { - "$ref": "511" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "3427", - "kind": "string", - "type": { - "$ref": "515" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "3428", - "kind": "number", - "type": { - "$ref": "509" - }, - "value": 1672892675688 - }, - "updateTime": { - "$id": "3429", - "kind": "number", - "type": { - "$ref": "513" - }, - "value": 1672892675688 - }, - "terms": { - "$id": "3430", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3431", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3432", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "29d88363-9677-4ce6-aeee-5fdf45f84e9b" - }, - "relationGuid": { - "$id": "3433", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "fb3d4ac4-27e0-45a2-bb13-105214e0ef7e" - }, - "displayText": { - "$id": "3434", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm3" - } - } - }, - { - "$id": "3435", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3436", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "e5136a91-bc02-49da-81f4-f075bd54b8f5" - }, - "relationGuid": { - "$id": "3437", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "741186cd-1d62-4798-8e58-6cbe35105baa" - }, - "displayText": { - "$id": "3438", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "3439", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3440", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "68347d87-ae38-43b4-a62c-0fdc25b54cb1" - }, - "relationGuid": { - "$id": "3441", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "2f2b1fe6-d2b6-4aef-81cd-bea7a510312e" - }, - "displayText": { - "$id": "3442", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3443", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3444", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.get.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3445", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "227" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "494" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.get" - }, - { - "$id": "3446", - "kind": "basic", - "name": "update", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update the given glossary.", - "operation": { - "$id": "3447", - "name": "update", - "resourceName": "Glossary", - "doc": "Update the given glossary.", - "accessibility": "public", - "parameters": [ - { - "$id": "3448", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3449", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3450", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.update.apiVersion", - "readOnly": false - }, - { - "$id": "3451", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.update.glossaryId" - }, - { - "$id": "3453", - "kind": "query", - "name": "ignoreTermsAndCategories", - "serializedName": "ignoreTermsAndCategories", - "doc": "Whether ignore terms and categories", - "type": { - "$id": "3454", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.update.ignoreTermsAndCategories", - "readOnly": false - }, - { - "$id": "3455", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "229" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.update.contentType" - }, - { - "$id": "3456", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "231" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.update.accept" - }, - { - "$id": "3457", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "494" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.update.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.update", - "decorators": [], - "examples": [ - { - "$id": "3458", - "kind": "http", - "name": "Glossary_Update", - "description": "Glossary_Update", - "filePath": "2023-09-01/Glossary_Update.json", - "parameters": [ - { - "parameter": { - "$ref": "3451" - }, - "value": { - "$id": "3459", - "kind": "string", - "type": { - "$ref": "3452" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - }, - { - "parameter": { - "$ref": "3457" - }, - "value": { - "$id": "3460", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "guid": { - "$id": "3461", - "kind": "string", - "type": { - "$ref": "496" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "qualifiedName": { - "$id": "3462", - "kind": "string", - "type": { - "$ref": "503" - }, - "value": "Glossary" - }, - "name": { - "$id": "3463", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "3464", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3465", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "3466", - "kind": "string", - "type": { - "$ref": "507" - }, - "value": "1" - }, - "language": { - "$id": "3467", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "3468", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - }, - "terms": { - "$id": "3469", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3470", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3471", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3472", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - }, - "displayText": { - "$id": "3473", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "3474", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3475", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3476", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - }, - "displayText": { - "$id": "3477", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "categories": { - "$id": "3478", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3479", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3480", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "3481", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3482", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - }, - "displayText": { - "$id": "3483", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - }, - { - "$id": "3484", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3485", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "parentCategoryGuid": { - "$id": "3486", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3487", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - }, - "displayText": { - "$id": "3488", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory1" - } - } - }, - { - "$id": "3489", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3490", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3491", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - }, - "displayText": { - "$id": "3492", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory2" - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3493", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "guid": { - "$id": "3494", - "kind": "string", - "type": { - "$ref": "496" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "qualifiedName": { - "$id": "3495", - "kind": "string", - "type": { - "$ref": "503" - }, - "value": "Glossary" - }, - "name": { - "$id": "3496", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "3497", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3498", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "3499", - "kind": "string", - "type": { - "$ref": "507" - }, - "value": "2" - }, - "language": { - "$id": "3500", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "3501", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - }, - "createdBy": { - "$id": "3502", - "kind": "string", - "type": { - "$ref": "511" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "3503", - "kind": "string", - "type": { - "$ref": "515" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "3504", - "kind": "number", - "type": { - "$ref": "509" - }, - "value": 1672892675600 - }, - "updateTime": { - "$id": "3505", - "kind": "number", - "type": { - "$ref": "513" - }, - "value": 1672892675688 - }, - "terms": { - "$id": "3506", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3507", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3508", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3509", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - }, - "displayText": { - "$id": "3510", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "3511", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3512", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3513", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - }, - "displayText": { - "$id": "3514", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "categories": { - "$id": "3515", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3516", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3517", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "3518", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3519", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - }, - "displayText": { - "$id": "3520", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - }, - { - "$id": "3521", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3522", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "parentCategoryGuid": { - "$id": "3523", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3524", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - }, - "displayText": { - "$id": "3525", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory1" - } - } - }, - { - "$id": "3526", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3527", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3528", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - }, - "displayText": { - "$id": "3529", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory2" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3530", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3531", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.update.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3532", - "kind": "method", - "name": "ignoreTermsAndCategories", - "serializedName": "ignoreTermsAndCategories", - "doc": "Whether ignore terms and categories", - "type": { - "$id": "3533", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.update.ignoreTermsAndCategories", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3534", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "494" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.update.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3535", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "229" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.update.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3536", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "231" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.update.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "494" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.update" - }, - { - "$id": "3537", - "kind": "basic", - "name": "delete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a glossary. Will delete underlying terms/categories together. Recommend\nseparate delete terms and categories.", - "operation": { - "$id": "3538", - "name": "delete", - "resourceName": "Glossary", - "doc": "Delete a glossary. Will delete underlying terms/categories together. Recommend\nseparate delete terms and categories.", - "accessibility": "public", - "parameters": [ - { - "$id": "3539", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3540", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.delete.glossaryId" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.delete", - "decorators": [], - "examples": [ - { - "$id": "3541", - "kind": "http", - "name": "Glossary_Delete", - "description": "Glossary_Delete", - "filePath": "2023-09-01/Glossary_Delete.json", - "parameters": [ - { - "parameter": { - "$ref": "3539" - }, - "value": { - "$id": "3542", - "kind": "string", - "type": { - "$ref": "3540" - }, - "value": "c0c54153-13d1-1608-13af-43457cdffe75" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3543", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3544", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.delete.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.delete" - }, - { - "$id": "3545", - "kind": "basic", - "name": "getCategories", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the categories belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", - "operation": { - "$id": "3546", - "name": "getCategories", - "resourceName": "Glossary", - "doc": "Get the categories belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", - "accessibility": "public", - "parameters": [ - { - "$id": "3547", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.glossaryId" - }, - { - "$id": "3549", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3550", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.limit", - "readOnly": false - }, - { - "$id": "3551", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3552", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.offset", - "readOnly": false - }, - { - "$id": "3553", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.sort", - "readOnly": false - }, - { - "$id": "3555", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "233" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2579" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}/categories", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories", - "decorators": [], - "examples": [ - { - "$id": "3556", - "kind": "http", - "name": "Glossary_ListCategories", - "description": "Glossary_ListCategories", - "filePath": "2023-09-01/Glossary_ListCategories.json", - "parameters": [ - { - "parameter": { - "$ref": "3547" - }, - "value": { - "$id": "3557", - "kind": "string", - "type": { - "$ref": "3548" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - }, - { - "parameter": { - "$ref": "3549" - }, - "value": { - "$id": "3558", - "kind": "number", - "type": { - "$ref": "3550" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "3551" - }, - "value": { - "$id": "3559", - "kind": "number", - "type": { - "$ref": "3552" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "3553" - }, - "value": { - "$id": "3560", - "kind": "string", - "type": { - "$ref": "3554" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2579" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3561", - "kind": "array", - "type": { - "$ref": "2579" - }, - "value": [ - { - "$id": "3562", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "3563", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "3564", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1.ExampleCategory2@Glossary" - }, - "name": { - "$id": "3565", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "lastModifiedTS": { - "$id": "3566", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "2" - }, - "anchor": { - "$id": "3567", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3568", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3569", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "parentCategory": { - "$id": "3570", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3571", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3572", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - }, - "childrenCategories": { - "$id": "3573", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3574", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3575", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "relationGuid": { - "$id": "3576", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - } - } - } - ] - }, - "terms": { - "$id": "3577", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3578", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3579", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3580", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "3581", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - }, - { - "$id": "3582", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "3583", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "qualifiedName": { - "$id": "3584", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory2@Glossary" - }, - "name": { - "$id": "3585", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory2" - }, - "lastModifiedTS": { - "$id": "3586", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "1" - }, - "anchor": { - "$id": "3587", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3588", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3589", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - } - } - }, - "childrenCategories": { - "$id": "3590", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3591", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3592", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3593", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - } - ] - } - } - }, - { - "$id": "3594", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "3595", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "qualifiedName": { - "$id": "3596", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory3.ExampleCategory1.ExampleCategory2@Glossary" - }, - "name": { - "$id": "3597", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory3" - }, - "lastModifiedTS": { - "$id": "3598", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "2" - }, - "anchor": { - "$id": "3599", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3600", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3601", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - } - } - }, - "parentCategory": { - "$id": "3602", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3603", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3604", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - } - } - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3605", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3606", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3607", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3608", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3609", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3610", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3611", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3612", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3613", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "233" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "2579" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategories" - }, - { - "$id": "3614", - "kind": "basic", - "name": "getCategoriesHeaders", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the category headers belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", - "operation": { - "$id": "3615", - "name": "getCategoriesHeaders", - "resourceName": "Glossary", - "doc": "Get the category headers belonging to a specific glossary. Recommend using\nlimit/offset to get pagination result.", - "accessibility": "public", - "parameters": [ - { - "$id": "3616", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3617", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.glossaryId" - }, - { - "$id": "3618", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3619", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.limit", - "readOnly": false - }, - { - "$id": "3620", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3621", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.offset", - "readOnly": false - }, - { - "$id": "3622", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3623", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.sort", - "readOnly": false - }, - { - "$id": "3624", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "235" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "517" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}/categories/headers", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders", - "decorators": [], - "examples": [ - { - "$id": "3625", - "kind": "http", - "name": "Glossary_ListCategoriesHeaders", - "description": "Glossary_ListCategoriesHeaders", - "filePath": "2023-09-01/Glossary_ListCategoriesHeaders.json", - "parameters": [ - { - "parameter": { - "$ref": "3616" - }, - "value": { - "$id": "3626", - "kind": "string", - "type": { - "$ref": "3617" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - }, - { - "parameter": { - "$ref": "3618" - }, - "value": { - "$id": "3627", - "kind": "number", - "type": { - "$ref": "3619" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "3620" - }, - "value": { - "$id": "3628", - "kind": "number", - "type": { - "$ref": "3621" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "3622" - }, - "value": { - "$id": "3629", - "kind": "string", - "type": { - "$ref": "3623" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "517" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3630", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3631", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3632", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "parentCategoryGuid": { - "$id": "3633", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3634", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - }, - "displayText": { - "$id": "3635", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory1" - } - } - }, - { - "$id": "3636", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3637", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3638", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - }, - "displayText": { - "$id": "3639", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory2" - } - } - }, - { - "$id": "3640", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3641", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "3642", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3643", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - }, - "displayText": { - "$id": "3644", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3645", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3646", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3647", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3648", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3649", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3650", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3651", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3652", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3653", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "235" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "517" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getCategoriesHeaders" - }, - { - "$id": "3654", - "kind": "basic", - "name": "getDetailed", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get a specific glossary with detailed information. This API is not\nrecommend.\n\nRecommend to fetch terms/categories details separately using \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/categories.", - "operation": { - "$id": "3655", - "name": "getDetailed", - "resourceName": "Glossary", - "doc": "Get a specific glossary with detailed information. This API is not\nrecommend.\n\nRecommend to fetch terms/categories details separately using \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/terms and \n\nGET /datamap/api/atlas/v2/glossary/{glossaryId}/categories.", - "accessibility": "public", - "parameters": [ - { - "$id": "3656", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3657", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3658", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.apiVersion", - "readOnly": false - }, - { - "$id": "3659", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3660", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.glossaryId" - }, - { - "$id": "3661", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "237" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "693" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}/detailed", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed", - "decorators": [], - "examples": [ - { - "$id": "3662", - "kind": "http", - "name": "Glossary_GetDetailed", - "description": "Glossary_GetDetailed", - "filePath": "2023-09-01/Glossary_GetDetailed.json", - "parameters": [ - { - "parameter": { - "$ref": "3659" - }, - "value": { - "$id": "3663", - "kind": "string", - "type": { - "$ref": "3660" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "693" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3664", - "kind": "model", - "type": { - "$ref": "693" - }, - "value": { - "guid": { - "$id": "3665", - "kind": "string", - "type": { - "$ref": "695" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "qualifiedName": { - "$id": "3666", - "kind": "string", - "type": { - "$ref": "702" - }, - "value": "Glossary" - }, - "name": { - "$id": "3667", - "kind": "string", - "type": { - "$ref": "700" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "3668", - "kind": "string", - "type": { - "$ref": "704" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3669", - "kind": "string", - "type": { - "$ref": "698" - }, - "value": "Example Long Description" - }, - "language": { - "$id": "3670", - "kind": "string", - "type": { - "$ref": "717" - }, - "value": "en" - }, - "usage": { - "$id": "3671", - "kind": "string", - "type": { - "$ref": "720" - }, - "value": "Example Glossary" - }, - "createdBy": { - "$id": "3672", - "kind": "string", - "type": { - "$ref": "710" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "3673", - "kind": "string", - "type": { - "$ref": "714" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "3674", - "kind": "number", - "type": { - "$ref": "708" - }, - "value": 1672892675688 - }, - "updateTime": { - "$id": "3675", - "kind": "number", - "type": { - "$ref": "712" - }, - "value": 1672892675688 - }, - "terms": { - "$id": "3676", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3677", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3678", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3679", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - }, - "displayText": { - "$id": "3680", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "3681", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3682", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3683", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - }, - "displayText": { - "$id": "3684", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "categories": { - "$id": "3685", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3686", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3687", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "relationGuid": { - "$id": "3688", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - } - } - }, - { - "$id": "3689", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3690", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3691", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - { - "$id": "3692", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3693", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3694", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - } - } - } - ] - }, - "termInfo": { - "$id": "3695", - "kind": "dict", - "type": { - "$ref": "725" - }, - "value": { - "54688d39-b298-4104-9e80-f2a16f44aaea": { - "$id": "3696", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3697", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "3698", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "3699", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "3700", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3701", - "kind": "string", - "type": { - "$ref": "587" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "3702", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "2" - }, - "abbreviation": { - "$id": "3703", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "createdBy": { - "$id": "3704", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3705", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3706", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "3707", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606290587593 - }, - "status": { - "$id": "3708", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3709", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3710", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3711", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "assignedEntities": { - "$id": "3712", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "3713", - "kind": "model", - "type": { - "$ref": "642" - }, - "value": { - "guid": { - "$id": "3714", - "kind": "string", - "type": { - "$ref": "644" - }, - "value": "ab9f1920-0b94-436d-aeb4-11a32c270fc0" - }, - "typeName": { - "$id": "3715", - "kind": "string", - "type": { - "$ref": "646" - }, - "value": "hdfs_path" - }, - "entityStatus": { - "$id": "3716", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "displayText": { - "$id": "3717", - "kind": "string", - "type": { - "$ref": "649" - }, - "value": "1" - }, - "relationshipType": { - "$id": "3718", - "kind": "string", - "type": { - "$ref": "652" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "relationshipGuid": { - "$id": "3719", - "kind": "string", - "type": { - "$ref": "661" - }, - "value": "cf2e959c-05e6-4a9f-b106-b6475741c2ba" - }, - "relationshipStatus": { - "$id": "3720", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "relationshipAttributes": { - "$id": "3721", - "kind": "model", - "type": { - "$ref": "654" - }, - "value": { - "typeName": { - "$id": "3722", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "attributes": { - "$id": "3723", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "3724", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Expression" - }, - "createdBy": { - "$id": "3725", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleCreator" - }, - "steward": { - "$id": "3726", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "ExampleSteward" - }, - "confidence": { - "$id": "3727", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 100 - }, - "description": { - "$id": "3728", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "source": { - "$id": "3729", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Azure" - }, - "status": { - "$id": "3730", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - } - } - } - } - } - ] - }, - "categories": { - "$id": "3731", - "kind": "array", - "type": { - "$ref": "665" - }, - "value": [ - { - "$id": "3732", - "kind": "model", - "type": { - "$ref": "666" - }, - "value": { - "categoryGuid": { - "$id": "3733", - "kind": "string", - "type": { - "$ref": "668" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3734", - "kind": "string", - "type": { - "$ref": "675" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - } - } - } - ] - }, - "seeAlso": { - "$id": "3735", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3736", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3737", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3738", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3739", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "synonyms": { - "$id": "3740", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3741", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3742", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3743", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3744", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "contacts": { - "$id": "3745", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "3746", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "3747", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "3748", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "3749", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Steward": { - "$id": "3750", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "3751", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "3752", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "3753", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Steward Info" - } - } - } - ] - } - } - }, - "resources": { - "$id": "3754", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3755", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3756", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3757", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - }, - "952c7ba4-4c89-42d8-a05a-7d2161be7008": { - "$id": "3758", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3759", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "qualifiedName": { - "$id": "3760", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm2@Glossary" - }, - "name": { - "$id": "3761", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm2" - }, - "shortDescription": { - "$id": "3762", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3763", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3764", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T2" - }, - "createdBy": { - "$id": "3765", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3766", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3767", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287312495 - }, - "updateTime": { - "$id": "3768", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287312495 - }, - "status": { - "$id": "3769", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3770", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3771", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3772", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - } - } - }, - "seeAlso": { - "$id": "3773", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3774", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3775", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3776", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3777", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - }, - "synonyms": { - "$id": "3778", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3779", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3780", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3781", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3782", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - }, - "resources": { - "$id": "3783", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3784", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3785", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3786", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - } - }, - "categoryInfo": { - "$id": "3787", - "kind": "dict", - "type": { - "$ref": "722" - }, - "value": { - "ed7458f0-9463-48a5-b5c6-4f785fb34e12": { - "$id": "3788", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "3789", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "qualifiedName": { - "$id": "3790", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory1.ExampleCategory2@Glossary" - }, - "name": { - "$id": "3791", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory1" - }, - "longDescription": { - "$id": "3792", - "kind": "string", - "type": { - "$ref": "554" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "3793", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "3" - }, - "anchor": { - "$id": "3794", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3795", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3796", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - } - } - }, - "parentCategory": { - "$id": "3797", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3798", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3799", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - }, - "childrenCategories": { - "$id": "3800", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3801", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3802", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "relationGuid": { - "$id": "3803", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - } - } - } - ] - }, - "terms": { - "$id": "3804", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3805", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3806", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3807", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "6aebf5ac-0c83-40c0-98bf-958fe9c99007" - }, - "displayText": { - "$id": "3808", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - } - } - }, - "e47c4584-daca-4f9e-9092-194e04692c9a": { - "$id": "3809", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "3810", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "qualifiedName": { - "$id": "3811", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory2@Glossary" - }, - "name": { - "$id": "3812", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory2" - }, - "lastModifiedTS": { - "$id": "3813", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "1" - }, - "anchor": { - "$id": "3814", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3815", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3816", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - } - } - }, - "childrenCategories": { - "$id": "3817", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3818", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3819", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3820", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "82d569cd-2273-4ef9-9f67-c6f2ed637c20" - } - } - } - ] - } - } - }, - "0d6766f6-f4b6-435b-bda2-d3edc358998e": { - "$id": "3821", - "kind": "model", - "type": { - "$ref": "549" - }, - "value": { - "guid": { - "$id": "3822", - "kind": "string", - "type": { - "$ref": "551" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "qualifiedName": { - "$id": "3823", - "kind": "string", - "type": { - "$ref": "558" - }, - "value": "ExampleCategory3.ExampleCategory1.ExampleCategory2@Glossary" - }, - "name": { - "$id": "3824", - "kind": "string", - "type": { - "$ref": "556" - }, - "value": "ExampleCategory3" - }, - "lastModifiedTS": { - "$id": "3825", - "kind": "string", - "type": { - "$ref": "562" - }, - "value": "2" - }, - "anchor": { - "$id": "3826", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3827", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3828", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - } - } - }, - "parentCategory": { - "$id": "3829", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3830", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3831", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "e50be8c5-7905-4c92-b676-4278866c2c2f" - } - } - } - } - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3832", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3833", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3834", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "237" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "693" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getDetailed" - }, - { - "$id": "3835", - "kind": "basic", - "name": "partialUpdate", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update the glossary partially. Some properties such as qualifiedName are not\nallowed to be updated.\n\nSo far we only supports partial updating\nshortDescription, longDescription, language and usage for glossary. \n\nRecommend\nusing 'ignoreTermsAndCategories=true' to reduce response body size.", - "operation": { - "$id": "3836", - "name": "partialUpdate", - "resourceName": "Glossary", - "doc": "Update the glossary partially. Some properties such as qualifiedName are not\nallowed to be updated.\n\nSo far we only supports partial updating\nshortDescription, longDescription, language and usage for glossary. \n\nRecommend\nusing 'ignoreTermsAndCategories=true' to reduce response body size.", - "accessibility": "public", - "parameters": [ - { - "$id": "3837", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3838", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3839", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.apiVersion", - "readOnly": false - }, - { - "$id": "3840", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3841", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.glossaryId" - }, - { - "$id": "3842", - "kind": "query", - "name": "ignoreTermsAndCategories", - "serializedName": "ignoreTermsAndCategories", - "doc": "Whether ignore terms and categories", - "type": { - "$id": "3843", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.ignoreTermsAndCategories", - "readOnly": false - }, - { - "$id": "3844", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "239" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.contentType" - }, - { - "$id": "3845", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "241" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.accept" - }, - { - "$id": "3846", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues.", - "type": { - "$ref": "362" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}/partial", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate", - "decorators": [], - "examples": [ - { - "$id": "3847", - "kind": "http", - "name": "Glossary_PartialUpdate", - "description": "Glossary_PartialUpdate", - "filePath": "2023-09-01/Glossary_PartialUpdate.json", - "parameters": [ - { - "parameter": { - "$ref": "3840" - }, - "value": { - "$id": "3848", - "kind": "string", - "type": { - "$ref": "3841" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - }, - { - "parameter": { - "$ref": "3846" - }, - "value": { - "$id": "3849", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "longDescription": { - "$id": "3850", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "Example Long Description" - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "494" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3851", - "kind": "model", - "type": { - "$ref": "494" - }, - "value": { - "guid": { - "$id": "3852", - "kind": "string", - "type": { - "$ref": "496" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "qualifiedName": { - "$id": "3853", - "kind": "string", - "type": { - "$ref": "503" - }, - "value": "Glossary" - }, - "name": { - "$id": "3854", - "kind": "string", - "type": { - "$ref": "501" - }, - "value": "Glossary" - }, - "shortDescription": { - "$id": "3855", - "kind": "string", - "type": { - "$ref": "505" - }, - "value": "Example Short Description" - }, - "longDescription": { - "$id": "3856", - "kind": "string", - "type": { - "$ref": "499" - }, - "value": "Example Long Description" - }, - "lastModifiedTS": { - "$id": "3857", - "kind": "string", - "type": { - "$ref": "507" - }, - "value": "3" - }, - "language": { - "$id": "3858", - "kind": "string", - "type": { - "$ref": "530" - }, - "value": "en" - }, - "usage": { - "$id": "3859", - "kind": "string", - "type": { - "$ref": "548" - }, - "value": "Example Glossary" - }, - "createdBy": { - "$id": "3860", - "kind": "string", - "type": { - "$ref": "511" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "3861", - "kind": "string", - "type": { - "$ref": "515" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "3862", - "kind": "number", - "type": { - "$ref": "509" - }, - "value": 1672892675600 - }, - "updateTime": { - "$id": "3863", - "kind": "number", - "type": { - "$ref": "513" - }, - "value": 1672892675688 - }, - "terms": { - "$id": "3864", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3865", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3866", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3867", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - }, - "displayText": { - "$id": "3868", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "3869", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3870", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3871", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - }, - "displayText": { - "$id": "3872", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "categories": { - "$id": "3873", - "kind": "array", - "type": { - "$ref": "517" - }, - "value": [ - { - "$id": "3874", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3875", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "0d6766f6-f4b6-435b-bda2-d3edc358998e" - }, - "parentCategoryGuid": { - "$id": "3876", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "relationGuid": { - "$id": "3877", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "26a486a4-a8e2-483c-8a84-3b88e909f8d2" - }, - "displayText": { - "$id": "3878", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory3" - } - } - }, - { - "$id": "3879", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3880", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "ed7458f0-9463-48a5-b5c6-4f785fb34e12" - }, - "parentCategoryGuid": { - "$id": "3881", - "kind": "string", - "type": { - "$ref": "526" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3882", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "7bdcef93-a57a-4d1d-95ab-9d3036f394a0" - }, - "displayText": { - "$id": "3883", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory1" - } - } - }, - { - "$id": "3884", - "kind": "model", - "type": { - "$ref": "518" - }, - "value": { - "categoryGuid": { - "$id": "3885", - "kind": "string", - "type": { - "$ref": "520" - }, - "value": "e47c4584-daca-4f9e-9092-194e04692c9a" - }, - "relationGuid": { - "$id": "3886", - "kind": "string", - "type": { - "$ref": "528" - }, - "value": "94071e56-fd3e-4441-93ff-1834f818482d" - }, - "displayText": { - "$id": "3887", - "kind": "string", - "type": { - "$ref": "524" - }, - "value": "ExampleCategory2" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3888", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3889", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3890", - "kind": "method", - "name": "ignoreTermsAndCategories", - "serializedName": "ignoreTermsAndCategories", - "doc": "Whether ignore terms and categories", - "type": { - "$id": "3891", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.ignoreTermsAndCategories", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3892", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "A map containing keys as attribute names and values as corresponding attribute\nvalues.", - "type": { - "$ref": "362" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3893", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "239" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3894", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "241" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "494" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.partialUpdate" - }, - { - "$id": "3895", - "kind": "basic", - "name": "getTerms", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get terms belonging to a specific glossary. Recommend using limit/offset to get\npagination result.", - "operation": { - "$id": "3896", - "name": "getTerms", - "resourceName": "Glossary", - "doc": "Get terms belonging to a specific glossary. Recommend using limit/offset to get\npagination result.", - "accessibility": "public", - "parameters": [ - { - "$id": "3897", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "3898", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "3899", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.apiVersion", - "readOnly": false - }, - { - "$id": "3900", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3901", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.glossaryId" - }, - { - "$id": "3902", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3903", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.limit", - "readOnly": false - }, - { - "$id": "3904", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3905", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.offset", - "readOnly": false - }, - { - "$id": "3906", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3907", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.sort", - "readOnly": false - }, - { - "$id": "3908", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "243" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "3199" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}/terms", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms", - "decorators": [], - "examples": [ - { - "$id": "3909", - "kind": "http", - "name": "Glossary_ListTerms", - "description": "Glossary_ListTerms", - "filePath": "2023-09-01/Glossary_ListTerms.json", - "parameters": [ - { - "parameter": { - "$ref": "3900" - }, - "value": { - "$id": "3910", - "kind": "string", - "type": { - "$ref": "3901" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - }, - { - "parameter": { - "$ref": "3902" - }, - "value": { - "$id": "3911", - "kind": "number", - "type": { - "$ref": "3903" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "3904" - }, - "value": { - "$id": "3912", - "kind": "number", - "type": { - "$ref": "3905" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "3906" - }, - "value": { - "$id": "3913", - "kind": "string", - "type": { - "$ref": "3907" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "3199" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "3914", - "kind": "array", - "type": { - "$ref": "3199" - }, - "value": [ - { - "$id": "3915", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3916", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "qualifiedName": { - "$id": "3917", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm1@Glossary" - }, - "name": { - "$id": "3918", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm1" - }, - "shortDescription": { - "$id": "3919", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3920", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3921", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T1" - }, - "createdBy": { - "$id": "3922", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3923", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3924", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287247276 - }, - "updateTime": { - "$id": "3925", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287247276 - }, - "status": { - "$id": "3926", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3927", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3928", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3929", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - } - } - }, - "seeAlso": { - "$id": "3930", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3931", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3932", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3933", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3934", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "synonyms": { - "$id": "3935", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3936", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3937", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "3938", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3939", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - }, - "contacts": { - "$id": "3940", - "kind": "dict", - "type": { - "$ref": "411" - }, - "value": { - "Expert": { - "$id": "3941", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "3942", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "3943", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "3944", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Expert Info" - } - } - } - ] - }, - "Steward": { - "$id": "3945", - "kind": "array", - "type": { - "$ref": "413" - }, - "value": [ - { - "$id": "3946", - "kind": "model", - "type": { - "$ref": "414" - }, - "value": { - "id": { - "$id": "3947", - "kind": "string", - "type": { - "$ref": "416" - }, - "value": "30435ff9-9b96-44af-a5a9-e05c8b1ae2df" - }, - "info": { - "$id": "3948", - "kind": "string", - "type": { - "$ref": "418" - }, - "value": "Example Steward Info" - } - } - } - ] - } - } - }, - "resources": { - "$id": "3949", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3950", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3951", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3952", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - }, - { - "$id": "3953", - "kind": "model", - "type": { - "$ref": "582" - }, - "value": { - "guid": { - "$id": "3954", - "kind": "string", - "type": { - "$ref": "584" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "qualifiedName": { - "$id": "3955", - "kind": "string", - "type": { - "$ref": "591" - }, - "value": "ExampleTerm2@Glossary" - }, - "name": { - "$id": "3956", - "kind": "string", - "type": { - "$ref": "589" - }, - "value": "ExampleTerm2" - }, - "shortDescription": { - "$id": "3957", - "kind": "string", - "type": { - "$ref": "593" - }, - "value": "Example Short Description" - }, - "lastModifiedTS": { - "$id": "3958", - "kind": "string", - "type": { - "$ref": "595" - }, - "value": "1" - }, - "abbreviation": { - "$id": "3959", - "kind": "string", - "type": { - "$ref": "605" - }, - "value": "T2" - }, - "createdBy": { - "$id": "3960", - "kind": "string", - "type": { - "$ref": "599" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "updatedBy": { - "$id": "3961", - "kind": "string", - "type": { - "$ref": "603" - }, - "value": "23863cef-a2e9-40a3-a427-44dc0d201f61" - }, - "createTime": { - "$id": "3962", - "kind": "number", - "type": { - "$ref": "597" - }, - "value": 1606287312495 - }, - "updateTime": { - "$id": "3963", - "kind": "number", - "type": { - "$ref": "601" - }, - "value": 1606287312495 - }, - "status": { - "$id": "3964", - "kind": "string", - "type": { - "$ref": "30" - }, - "value": "Approved" - }, - "anchor": { - "$id": "3965", - "kind": "model", - "type": { - "$ref": "572" - }, - "value": { - "glossaryGuid": { - "$id": "3966", - "kind": "string", - "type": { - "$ref": "576" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - }, - "relationGuid": { - "$id": "3967", - "kind": "string", - "type": { - "$ref": "578" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - } - } - }, - "seeAlso": { - "$id": "3968", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3969", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3970", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3971", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "dfa44030-bd14-4111-a0f1-3d01c964eb01" - }, - "displayText": { - "$id": "3972", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - }, - "synonyms": { - "$id": "3973", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "3974", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "3975", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "3976", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "15bcbd12-eb48-4b63-8ff5-74f7ec3a562c" - }, - "displayText": { - "$id": "3977", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - } - ] - }, - "resources": { - "$id": "3978", - "kind": "array", - "type": { - "$ref": "630" - }, - "value": [ - { - "$id": "3979", - "kind": "model", - "type": { - "$ref": "631" - }, - "value": { - "displayName": { - "$id": "3980", - "kind": "string", - "type": { - "$ref": "633" - }, - "value": "Example Display Name" - }, - "url": { - "$id": "3981", - "kind": "string", - "type": { - "$ref": "635" - }, - "value": "Example Url" - } - } - } - ] - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "3982", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3983", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3984", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3985", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3986", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3987", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3988", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "3989", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "3990", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "243" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "3199" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getTerms" - }, - { - "$id": "3991", - "kind": "basic", - "name": "getTermHeaders", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get term headers belonging to a specific glossary. Recommend using limit/offset\nto get pagination result.", - "operation": { - "$id": "3992", - "name": "getTermHeaders", - "resourceName": "Glossary", - "doc": "Get term headers belonging to a specific glossary. Recommend using limit/offset\nto get pagination result.", - "accessibility": "public", - "parameters": [ - { - "$id": "3993", - "kind": "path", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "3994", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.glossaryId" - }, - { - "$id": "3995", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "3996", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.limit", - "readOnly": false - }, - { - "$id": "3997", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "3998", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.offset", - "readOnly": false - }, - { - "$id": "3999", - "kind": "query", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "4000", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.sort", - "readOnly": false - }, - { - "$id": "4001", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "245" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "532" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/glossary/{glossaryId}/terms/headers", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders", - "decorators": [], - "examples": [ - { - "$id": "4002", - "kind": "http", - "name": "Glossary_ListTermHeaders", - "description": "Glossary_ListTermHeaders", - "filePath": "2023-09-01/Glossary_ListTermHeaders.json", - "parameters": [ - { - "parameter": { - "$ref": "3993" - }, - "value": { - "$id": "4003", - "kind": "string", - "type": { - "$ref": "3994" - }, - "value": "c018ddaf-7c21-4b37-a838-dae5f110c3d8" - } - }, - { - "parameter": { - "$ref": "3995" - }, - "value": { - "$id": "4004", - "kind": "number", - "type": { - "$ref": "3996" - }, - "value": -1 - } - }, - { - "parameter": { - "$ref": "3997" - }, - "value": { - "$id": "4005", - "kind": "number", - "type": { - "$ref": "3998" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "3999" - }, - "value": { - "$id": "4006", - "kind": "string", - "type": { - "$ref": "4000" - }, - "value": "ASC" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "532" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4007", - "kind": "array", - "type": { - "$ref": "532" - }, - "value": [ - { - "$id": "4008", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "4009", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "54688d39-b298-4104-9e80-f2a16f44aaea" - }, - "relationGuid": { - "$id": "4010", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "7b6a8149-a928-476a-a068-dce58653cfa0" - }, - "displayText": { - "$id": "4011", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm1" - } - } - }, - { - "$id": "4012", - "kind": "model", - "type": { - "$ref": "533" - }, - "value": { - "termGuid": { - "$id": "4013", - "kind": "string", - "type": { - "$ref": "546" - }, - "value": "952c7ba4-4c89-42d8-a05a-7d2161be7008" - }, - "relationGuid": { - "$id": "4014", - "kind": "string", - "type": { - "$ref": "541" - }, - "value": "9385640b-e6be-437d-a6b9-62d11c14a189" - }, - "displayText": { - "$id": "4015", - "kind": "string", - "type": { - "$ref": "537" - }, - "value": "ExampleTerm2" - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "4016", - "kind": "method", - "name": "glossaryId", - "serializedName": "glossaryId", - "doc": "The globally unique identifier for glossary.", - "type": { - "$id": "4017", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.glossaryId", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "4018", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "4019", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "4020", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "4021", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "4022", - "kind": "method", - "name": "sort", - "serializedName": "sort", - "doc": "The sort order, ASC (default) or DESC.", - "type": { - "$id": "4023", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.sort", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "4024", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "245" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "532" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Glossary.getTermHeaders" - } - ], - "parameters": [ - { - "$id": "4025", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "4026", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - }, - { - "$id": "4027", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "doc": "The API version to use for this operation.", - "type": { - "$id": "4028", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "4029", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Glossary.batchGet.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Glossary", - "apiVersions": [ - "2023-09-01" - ], - "parent": { - "$ref": "1353" - } - }, - { - "$id": "4030", - "kind": "client", - "name": "Discovery", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [ - { - "$id": "4031", - "kind": "basic", - "name": "query", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get data using search.", - "operation": { - "$id": "4032", - "name": "query", - "resourceName": "Discovery", - "doc": "Get data using search.", - "accessibility": "public", - "parameters": [ - { - "$id": "4033", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "4034", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "4035", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.query.apiVersion", - "readOnly": false - }, - { - "$id": "4036", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "247" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.query.contentType" - }, - { - "$id": "4037", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "249" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.query.accept" - }, - { - "$id": "4038", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "727" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Discovery.query.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/search/query", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Discovery.query", - "decorators": [], - "examples": [ - { - "$id": "4039", - "kind": "http", - "name": "Discovery_Query", - "description": "Discovery_Query", - "filePath": "2023-09-01/Discovery_Query.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4040", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4041", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "exampledata" - }, - "filter": { - "$id": "4042", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "objectType": "Files" - }, - { - "entityType": "azure_blob_path" - } - ] - } - }, - "limit": { - "$id": "4043", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "orderby": { - "$id": "4044", - "kind": "array", - "type": { - "$ref": "462" - }, - "value": [ - { - "$id": "4045", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "name": "ASC" - } - }, - { - "$id": "4046", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "updateTime": "DESC" - } - } - ] - }, - "facets": { - "$id": "4047", - "kind": "array", - "type": { - "$ref": "738" - }, - "value": [ - { - "$id": "4048", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4049", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "assetType" - }, - "count": { - "$id": "4050", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 0 - }, - "sort": { - "$id": "4051", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4052", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4053", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4054", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "classification" - }, - "count": { - "$id": "4055", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4056", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4057", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4058", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4059", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "contactId" - }, - "count": { - "$id": "4060", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4061", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4062", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4063", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4064", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "label" - }, - "count": { - "$id": "4065", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4066", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4067", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4068", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4069", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "term" - }, - "count": { - "$id": "4070", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4071", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4072", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - } - ] - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4073", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4074", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4075", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 2 - }, - "@search.count.approximate": { - "$id": "4076", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4077", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4078", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4079", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4080", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4081", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" - }, - "name": { - "$id": "4082", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1.txt" - }, - "entityType": { - "$id": "4083", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4084", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4085", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4086", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4087", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4088", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4089", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4090", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4091", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4092", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" - }, - "qualifiedName": { - "$id": "4093", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" - }, - "name": { - "$id": "4094", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2.txt" - }, - "entityType": { - "$id": "4095", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4096", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4097", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4098", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4099", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4100", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4101", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4102", - "kind": "http", - "name": "Discovery_Query_And", - "description": "Discovery_Query_And", - "filePath": "2023-09-01/Discovery_Query_And.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4103", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4104", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4105", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "entityType": "azure_blob_path" - }, - { - "attributeName": "qualifiedName", - "operator": "contains", - "attributeValue": ".csv" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4106", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4107", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4108", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 5 - }, - "@search.count.approximate": { - "$id": "4109", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4110", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4111", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4112", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "@search.highlights": { - "$id": "4113", - "kind": "model", - "type": { - "$ref": "783" - }, - "value": { - "qualifiedName": { - "$id": "4114", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4115", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" - } - ] - } - } - }, - "id": { - "$id": "4116", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" - }, - "qualifiedName": { - "$id": "4117", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" - }, - "name": { - "$id": "4118", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.csv" - }, - "entityType": { - "$id": "4119", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4120", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4121", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4122", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4123", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4124", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4125", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4126", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4127", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4128", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "@search.highlights": { - "$id": "4129", - "kind": "model", - "type": { - "$ref": "783" - }, - "value": { - "qualifiedName": { - "$id": "4130", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4131", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" - } - ] - } - } - }, - "id": { - "$id": "4132", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "2605db54-086d-4d6c-adb6-f0bbed6c6eab" - }, - "qualifiedName": { - "$id": "4133", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" - }, - "name": { - "$id": "4134", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "AllTypes.csv" - }, - "entityType": { - "$id": "4135", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4136", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4137", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4138", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4139", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4140", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4141", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4142", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4143", - "kind": "http", - "name": "Discovery_Query_AndOrNested", - "description": "Discovery_Query_AndOrNested", - "filePath": "2023-09-01/Discovery_Query_AndOrNested.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4144", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4145", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4146", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "entityType": "azure_blob_path" - }, - { - "attributeName": "qualifiedName", - "operator": "contains", - "attributeValue": ".csv" - }, - { - "or": [ - { - "attributeName": "name", - "operator": "eq", - "attributeValue": "exampledata.csv" - }, - { - "attributeName": "qualifiedName", - "operator": "prefix", - "attributeValue": "https://" - } - ] - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4147", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4148", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4149", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 2 - }, - "@search.count.approximate": { - "$id": "4150", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4151", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4152", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4153", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "@search.highlights": { - "$id": "4154", - "kind": "model", - "type": { - "$ref": "783" - }, - "value": { - "qualifiedName": { - "$id": "4155", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4156", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" - } - ] - } - } - }, - "id": { - "$id": "4157", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" - }, - "qualifiedName": { - "$id": "4158", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" - }, - "name": { - "$id": "4159", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.csv" - }, - "entityType": { - "$id": "4160", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4161", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4162", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4163", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4164", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4165", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4166", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4167", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4168", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4169", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "@search.highlights": { - "$id": "4170", - "kind": "model", - "type": { - "$ref": "783" - }, - "value": { - "qualifiedName": { - "$id": "4171", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4172", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" - } - ] - }, - "name": { - "$id": "4173", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4174", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "AllTypes.csv" - } - ] - } - } - }, - "id": { - "$id": "4175", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "2605db54-086d-4d6c-adb6-f0bbed6c6eab" - }, - "qualifiedName": { - "$id": "4176", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/AllTypes.csv" - }, - "name": { - "$id": "4177", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "AllTypes.csv" - }, - "entityType": { - "$id": "4178", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4179", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4180", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4181", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4182", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4183", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4184", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4185", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4186", - "kind": "http", - "name": "Discovery_Query_AssetType", - "description": "Discovery_Query_AssetType", - "filePath": "2023-09-01/Discovery_Query_AssetType.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4187", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4188", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4189", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "or": [ - { - "assetType": "SQL Server" - }, - { - "assetType": "Azure SQL Server" - }, - { - "assetType": "Azure SQL Database" - }, - { - "assetType": "Azure SQL Data Warehouse" - }, - { - "assetType": "Azure SQL Managed Instance" - }, - { - "assetType": "Azure Storage Account" - }, - { - "assetType": "Azure Blob Storage" - }, - { - "assetType": "Azure Files" - }, - { - "assetType": "Azure Table Storage" - }, - { - "assetType": "Azure Data Lake Storage Gen1" - }, - { - "assetType": "Azure Data Lake Storage Gen2" - }, - { - "assetType": "Azure Cosmos DB" - }, - { - "assetType": "Azure Data Factory" - }, - { - "assetType": "Azure Cognitive Search" - }, - { - "assetType": "Power BI" - }, - { - "assetType": "Azure Data Explorer" - }, - { - "assetType": "Amazon S3" - }, - { - "assetType": "Azure Data Share" - }, - { - "assetType": "Teradata" - }, - { - "assetType": "SAP S4HANA" - }, - { - "assetType": "SAP ECC" - }, - { - "assetType": "SQL Server Integration Services" - }, - { - "assetType": "hive" - }, - { - "assetType": "Azure Database for MySQL" - }, - { - "assetType": "Azure Database for MariaDB" - }, - { - "assetType": "Azure Database for PostgreSQL" - }, - { - "assetType": "Azure Synapse Analytics" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4190", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4191", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "continuationToken": { - "$id": "4192", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "@search.count": { - "$id": "4193", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 5155 - }, - "@search.count.approximate": { - "$id": "4194", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": true - }, - "value": { - "$id": "4195", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4196", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4197", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4198", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "24c16e53-1bfd-4d6c-b4ce-b1f6f6f60000" - }, - "qualifiedName": { - "$id": "4199", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata1" - }, - "name": { - "$id": "4200", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1" - }, - "entityType": { - "$id": "4201", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "classification": { - "$id": "4202", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4203", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4204", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4205", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - }, - "term": { - "$id": "4206", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4207", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4208", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4209", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4210", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "d7b516fc-5d38-40f8-baeb-72f6f6f60000" - }, - "qualifiedName": { - "$id": "4211", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata2" - }, - "name": { - "$id": "4212", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2" - }, - "entityType": { - "$id": "4213", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "classification": { - "$id": "4214", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4215", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4216", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4217", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - }, - "term": { - "$id": "4218", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4219", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4220", - "kind": "http", - "name": "Discovery_Query_Attribute", - "description": "Discovery_Query_Attribute", - "filePath": "2023-09-01/Discovery_Query_Attribute.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4221", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4222", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4223", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "or": [ - { - "attributeName": "name", - "operator": "eq", - "attributeValue": "exampledata.csv" - }, - { - "attributeName": "createTime", - "operator": "ge", - "attributeValue": 1545580800000 - }, - { - "attributeName": "modifiedTime", - "operator": "timerange", - "attributeValue": "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4224", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4225", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4226", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 4 - }, - "@search.count.approximate": { - "$id": "4227", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4228", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4229", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4230", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4231", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" - }, - "qualifiedName": { - "$id": "4232", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" - }, - "name": { - "$id": "4233", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.csv" - }, - "entityType": { - "$id": "4234", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4235", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4236", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4237", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4238", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4239", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4240", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4241", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4242", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4243", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4244", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "55b2290d-e11d-4ed2-8c7a-0d8d35eb6254" - }, - "qualifiedName": { - "$id": "4245", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://examplegen2account.dfs.core.windows.net/examplepath/csv/exampledata.csv" - }, - "name": { - "$id": "4246", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.csv" - }, - "owner": { - "$id": "4247", - "kind": "string", - "type": { - "$ref": "807" - }, - "value": "$superuser" - }, - "entityType": { - "$id": "4248", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_datalake_gen2_path" - }, - "classification": { - "$id": "4249", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4250", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4251", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4252", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4253", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Data Lake Storage Gen2" - } - ] - }, - "term": { - "$id": "4254", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4255", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4256", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4257", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4258", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "55ceaddf-30ac-40f3-b656-71f6f6f60000" - }, - "entityType": { - "$id": "4259", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "name": { - "$id": "4260", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampleData_v1" - }, - "qualifiedName": { - "$id": "4261", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v1" - }, - "assetType": { - "$id": "4262", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4263", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - } - } - }, - { - "$id": "4264", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4265", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4266", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "89416661-5269-4f3d-ba35-e0f6f6f60000" - }, - "entityType": { - "$id": "4267", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "name": { - "$id": "4268", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampleData_v2" - }, - "qualifiedName": { - "$id": "4269", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v2" - }, - "assetType": { - "$id": "4270", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4271", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4272", - "kind": "http", - "name": "Discovery_Query_BusinessMetadataAttribute", - "description": "Discovery_Query_BusinessMetadataAttribute", - "filePath": "2023-09-01/Discovery_Query_BusinessMetadataAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4273", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4274", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4275", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "or": [ - { - "attributeName": ".", - "operator": "eq|ne|contains|prefix", - "attributeValue": "string value" - }, - { - "attributeName": ".", - "operator": "eq|ne|gt|ge|lt|le", - "attributeValue": 123 - }, - { - "attributeName": ".", - "operator": "eq|ne", - "attributeValue": true - }, - { - "attributeName": ".", - "operator": "timerange", - "attributeValue": "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4276", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4277", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4278", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 1 - }, - "@search.count.approximate": { - "$id": "4279", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4280", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4281", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4282", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4283", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "63b92968-c9ac-4af8-8cff-f61d147bbf88" - }, - "qualifiedName": { - "$id": "4284", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/csv/exampledata.csv" - }, - "name": { - "$id": "4285", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.csv" - }, - "entityType": { - "$id": "4286", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "objectType": { - "$id": "4287", - "kind": "string", - "type": { - "$ref": "790" - }, - "value": "Files" - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4288", - "kind": "http", - "name": "Discovery_Query_Classification", - "description": "Discovery_Query_Classification", - "filePath": "2023-09-01/Discovery_Query_Classification.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4289", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4290", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4291", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "classification": "MICROSOFT.PERSONAL.EMAIL", - "includeSubClassifications": true - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4292", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4293", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4294", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 5 - }, - "@search.count.approximate": { - "$id": "4295", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4296", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4297", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4298", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4299", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "b9638b91-884f-4e5e-98b5-29f6f6f60000" - }, - "qualifiedName": { - "$id": "4300", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleserver.database.windows.net/examplesqldb/examplepath/exampledata1" - }, - "name": { - "$id": "4301", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1" - }, - "entityType": { - "$id": "4302", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_table" - }, - "classification": { - "$id": "4303", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4304", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.NAME" - }, - { - "$id": "4305", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" - }, - { - "$id": "4306", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.US.PHONE_NUMBER" - }, - { - "$id": "4307", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - ] - }, - "label": { - "$id": "4308", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4309", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4310", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Database" - } - ] - }, - "term": { - "$id": "4311", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4312", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4313", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4314", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4315", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "01aefb9a-61cd-4a02-a572-70f6f6f60000" - }, - "qualifiedName": { - "$id": "4316", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleserver.database.windows.net/exampledw/examplepath/exampledata2" - }, - "name": { - "$id": "4317", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2" - }, - "entityType": { - "$id": "4318", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_dw_table" - }, - "classification": { - "$id": "4319", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4320", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.GOVERNMENT.CITY_NAME" - }, - { - "$id": "4321", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.GOVERNMENT.US.STATE" - }, - { - "$id": "4322", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.NAME" - }, - { - "$id": "4323", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" - }, - { - "$id": "4324", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - ] - }, - "label": { - "$id": "4325", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4326", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4327", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Data Warehouse" - } - ] - }, - "term": { - "$id": "4328", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4329", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4330", - "kind": "http", - "name": "Discovery_Query_Collection", - "description": "Discovery_Query_Collection", - "filePath": "2023-09-01/Discovery_Query_Collection.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4331", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4332", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4333", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "collectionId": "collectionName" - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4334", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4335", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4336", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 5 - }, - "@search.count.approximate": { - "$id": "4337", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4338", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4339", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4340", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4341", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "b9638b91-884f-4e5e-98b5-29f6f6f60000" - }, - "qualifiedName": { - "$id": "4342", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleserver.database.windows.net/examplesqldb/examplepath/exampledata1" - }, - "name": { - "$id": "4343", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1" - }, - "entityType": { - "$id": "4344", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_table" - }, - "classification": { - "$id": "4345", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4346", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.NAME" - }, - { - "$id": "4347", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" - }, - { - "$id": "4348", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.US.PHONE_NUMBER" - }, - { - "$id": "4349", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - ] - }, - "label": { - "$id": "4350", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4351", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4352", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Database" - } - ] - }, - "term": { - "$id": "4353", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4354", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4355", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4356", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4357", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "01aefb9a-61cd-4a02-a572-70f6f6f60000" - }, - "qualifiedName": { - "$id": "4358", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleserver.database.windows.net/exampledw/examplepath/exampledata2" - }, - "name": { - "$id": "4359", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2" - }, - "entityType": { - "$id": "4360", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_dw_table" - }, - "classification": { - "$id": "4361", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4362", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.GOVERNMENT.CITY_NAME" - }, - { - "$id": "4363", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.GOVERNMENT.US.STATE" - }, - { - "$id": "4364", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.NAME" - }, - { - "$id": "4365", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" - }, - { - "$id": "4366", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - ] - }, - "label": { - "$id": "4367", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4368", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4369", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Data Warehouse" - } - ] - }, - "term": { - "$id": "4370", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4371", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4372", - "kind": "http", - "name": "Discovery_Query_Facet", - "description": "Discovery_Query_Facet", - "filePath": "2023-09-01/Discovery_Query_Facet.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4373", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "filter": { - "$id": "4374", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "objectType": "Tables" - } - }, - "limit": { - "$id": "4375", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "facets": { - "$id": "4376", - "kind": "array", - "type": { - "$ref": "738" - }, - "value": [ - { - "$id": "4377", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4378", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "assetType" - }, - "count": { - "$id": "4379", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - } - } - }, - { - "$id": "4380", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4381", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "classification" - }, - "count": { - "$id": "4382", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - } - } - }, - { - "$id": "4383", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4384", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "term" - }, - "count": { - "$id": "4385", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - } - } - }, - { - "$id": "4386", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4387", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "label" - }, - "count": { - "$id": "4388", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - } - } - } - ] - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4389", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4390", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "continuationToken": { - "$id": "4391", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "@search.count": { - "$id": "4392", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 5156 - }, - "@search.count.approximate": { - "$id": "4393", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "@search.facets": { - "$id": "4394", - "kind": "model", - "type": { - "$ref": "760" - }, - "value": { - "classification": { - "$id": "4395", - "kind": "array", - "type": { - "$ref": "762" - }, - "value": [ - { - "$id": "4396", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4397", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 8 - }, - "value": { - "$id": "4398", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "MICROSOFT.PERSONAL.NAME" - } - } - }, - { - "$id": "4399", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4400", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 6 - }, - "value": { - "$id": "4401", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "MICROSOFT.PERSONAL.EU.PHONE_NUMBER" - } - } - }, - { - "$id": "4402", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4403", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 5 - }, - "value": { - "$id": "4404", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - } - } - }, - { - "$id": "4405", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4406", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 5 - }, - "value": { - "$id": "4407", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "MICROSOFT.PERSONAL.US.PHONE_NUMBER" - } - } - }, - { - "$id": "4408", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4409", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 4 - }, - "value": { - "$id": "4410", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "MICROSOFT.GOVERNMENT.CITY_NAME" - } - } - }, - { - "$id": "4411", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4412", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 2 - }, - "value": { - "$id": "4413", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "MICROSOFT.GOVERNMENT.US.STATE" - } - } - } - ] - }, - "assetType": { - "$id": "4414", - "kind": "array", - "type": { - "$ref": "762" - }, - "value": [ - { - "$id": "4415", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4416", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 1476 - }, - "value": { - "$id": "4417", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure SQL Database" - } - } - }, - { - "$id": "4418", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4419", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 1358 - }, - "value": { - "$id": "4420", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure SQL Data Warehouse" - } - } - }, - { - "$id": "4421", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4422", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 1331 - }, - "value": { - "$id": "4423", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure SQL Managed Instance" - } - } - }, - { - "$id": "4424", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4425", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 293 - }, - "value": { - "$id": "4426", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure Data Lake Storage Gen1" - } - } - }, - { - "$id": "4427", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4428", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 261 - }, - "value": { - "$id": "4429", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure Blob Storage" - } - } - }, - { - "$id": "4430", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4431", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 231 - }, - "value": { - "$id": "4432", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure Data Lake Storage Gen2" - } - } - }, - { - "$id": "4433", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4434", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 194 - }, - "value": { - "$id": "4435", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure Files" - } - } - }, - { - "$id": "4436", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4437", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 18 - }, - "value": { - "$id": "4438", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Azure Cosmos DB" - } - } - } - ] - }, - "label": { - "$id": "4439", - "kind": "array", - "type": { - "$ref": "762" - }, - "value": [ - { - "$id": "4440", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4441", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 835 - }, - "value": { - "$id": "4442", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Example.Label" - } - } - } - ] - }, - "term": { - "$id": "4443", - "kind": "array", - "type": { - "$ref": "762" - }, - "value": [ - { - "$id": "4444", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4445", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 1 - }, - "value": { - "$id": "4446", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "terma" - } - } - } - ] - } - } - }, - "value": { - "$id": "4447", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4448", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4449", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4450", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "24c16e53-1bfd-4d6c-b4ce-b1f6f6f60000" - }, - "qualifiedName": { - "$id": "4451", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata" - }, - "name": { - "$id": "4452", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata" - }, - "entityType": { - "$id": "4453", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "classification": { - "$id": "4454", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4455", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4456", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4457", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - }, - "term": { - "$id": "4458", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4459", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4460", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4461", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4462", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "d7b516fc-5d38-40f8-baeb-72f6f6f60000" - }, - "qualifiedName": { - "$id": "4463", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata2" - }, - "name": { - "$id": "4464", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2" - }, - "entityType": { - "$id": "4465", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "classification": { - "$id": "4466", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4467", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4468", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4469", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - }, - "term": { - "$id": "4470", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4471", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4472", - "kind": "http", - "name": "Discovery_Query_FileExtension", - "description": "Discovery_Query_FileExtension", - "filePath": "2023-09-01/Discovery_Query_FileExtension.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4473", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4474", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4475", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "fileExtension": "txt" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4476", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4477", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "continuationToken": { - "$id": "4478", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "@search.count": { - "$id": "4479", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 49 - }, - "@search.count.approximate": { - "$id": "4480", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4481", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4482", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4483", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4484", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4485", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.txt" - }, - "name": { - "$id": "4486", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.txt" - }, - "entityType": { - "$id": "4487", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4488", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4489", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4490", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4491", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4492", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4493", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4494", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4495", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4496", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" - }, - "qualifiedName": { - "$id": "4497", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.txt" - }, - "name": { - "$id": "4498", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.txt" - }, - "entityType": { - "$id": "4499", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4500", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4501", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4502", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4503", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4504", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4505", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4506", - "kind": "http", - "name": "Discovery_Query_GlossaryTerm", - "description": "Discovery_Query_GlossaryTerm", - "filePath": "2023-09-01/Discovery_Query_GlossaryTerm.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4507", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4508", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "" - }, - "limit": { - "$id": "4509", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4510", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "objectType": "Glossary terms" - }, - { - "or": [ - { - "glossaryType": "AtlasGlossary" - }, - { - "glossaryType": "AtlasGlossaryTerm" - } - ] - } - ] - } - }, - "facets": { - "$id": "4511", - "kind": "array", - "type": { - "$ref": "738" - }, - "value": [ - { - "$id": "4512", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4513", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "termStatus" - }, - "count": { - "$id": "4514", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4515", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4516", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4517", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4518", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "termTemplate" - }, - "count": { - "$id": "4519", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4520", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4521", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - } - ] - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4522", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4523", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4524", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 2 - }, - "@search.count.approximate": { - "$id": "4525", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4526", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4527", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4528", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "objectType": { - "$id": "4529", - "kind": "string", - "type": { - "$ref": "790" - }, - "value": "Glossary terms" - }, - "glossaryType": { - "$id": "4530", - "kind": "string", - "type": { - "$ref": "830" - }, - "value": "AtlasGlossaryTerm" - }, - "id": { - "$id": "4531", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "b1e51cc4-9249-4c81-bbc7-e2f3117706f3" - }, - "name": { - "$id": "4532", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "termSample1" - }, - "glossary": { - "$id": "4533", - "kind": "string", - "type": { - "$ref": "832" - }, - "value": "DefaultGlossary" - }, - "longDescription": { - "$id": "4534", - "kind": "string", - "type": { - "$ref": "837" - }, - "value": "it is the definition of the term" - }, - "termStatus": { - "$id": "4535", - "kind": "string", - "type": { - "$ref": "834" - }, - "value": "Approved" - }, - "termTemplate": { - "$id": "4536", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4537", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "termTemplateSample" - } - ] - }, - "createTime": { - "$id": "4538", - "kind": "number", - "type": { - "$ref": "792" - }, - "value": 1625819659805 - }, - "updateTime": { - "$id": "4539", - "kind": "number", - "type": { - "$ref": "794" - }, - "value": 1625819659805 - }, - "qualifiedName": { - "$id": "4540", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "termSample1@DefaultGlossary" - } - } - }, - { - "$id": "4541", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4542", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "objectType": { - "$id": "4543", - "kind": "string", - "type": { - "$ref": "790" - }, - "value": "Glossary terms" - }, - "glossaryType": { - "$id": "4544", - "kind": "string", - "type": { - "$ref": "830" - }, - "value": "AtlasGlossary" - }, - "id": { - "$id": "4545", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "b28f35e4-fcd4-43ca-91a3-daf432c87156" - }, - "name": { - "$id": "4546", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "DefaultGlossary" - }, - "longDescription": { - "$id": "4547", - "kind": "string", - "type": { - "$ref": "837" - }, - "value": "it is the definition of the glossary" - }, - "createTime": { - "$id": "4548", - "kind": "number", - "type": { - "$ref": "792" - }, - "value": 1625819658745 - }, - "updateTime": { - "$id": "4549", - "kind": "number", - "type": { - "$ref": "794" - }, - "value": 1640656877302 - }, - "qualifiedName": { - "$id": "4550", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "DefaultGlossary" - } - } - } - ] - }, - "@search.facets": { - "$id": "4551", - "kind": "model", - "type": { - "$ref": "760" - }, - "value": { - "termTemplate": { - "$id": "4552", - "kind": "array", - "type": { - "$ref": "762" - }, - "value": [ - { - "$id": "4553", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4554", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 1 - }, - "value": { - "$id": "4555", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "termTemplateSample" - } - } - } - ] - }, - "termStatus": { - "$id": "4556", - "kind": "array", - "type": { - "$ref": "762" - }, - "value": [ - { - "$id": "4557", - "kind": "model", - "type": { - "$ref": "763" - }, - "value": { - "count": { - "$id": "4558", - "kind": "number", - "type": { - "$ref": "765" - }, - "value": 1 - }, - "value": { - "$id": "4559", - "kind": "string", - "type": { - "$ref": "767" - }, - "value": "Approved" - } - } - } - ] - } - } - } - } - } - } - ] - }, - { - "$id": "4560", - "kind": "http", - "name": "Discovery_Query_Id", - "description": "Discovery_Query_Id", - "filePath": "2023-09-01/Discovery_Query_Id.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4561", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4562", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4563", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "id": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4564", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4565", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4566", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 1 - }, - "@search.count.approximate": { - "$id": "4567", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4568", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4569", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4570", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4571", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4572", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.txt" - }, - "name": { - "$id": "4573", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.txt" - }, - "entityType": { - "$id": "4574", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4575", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4576", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4577", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4578", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4579", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4580", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4581", - "kind": "http", - "name": "Discovery_Query_Not", - "description": "Discovery_Query_Not", - "filePath": "2023-09-01/Discovery_Query_Not.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4582", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4583", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4584", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "not": { - "classification": "MICROSOFT.SYSTEM.TEMP_FILE" - } - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4585", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4586", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "continuationToken": { - "$id": "4587", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "@search.count": { - "$id": "4588", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 5158 - }, - "@search.count.approximate": { - "$id": "4589", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4590", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4591", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4592", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4593", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "11fd6e94-2dc6-4ebd-822c-caf6f6f60000" - }, - "qualifiedName": { - "$id": "4594", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/exampledb/dbo/exampledata" - }, - "name": { - "$id": "4595", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata" - }, - "entityType": { - "$id": "4596", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "classification": { - "$id": "4597", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4598", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4599", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4600", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - }, - "term": { - "$id": "4601", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4602", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4603", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4604", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4605", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "1af82c87-798c-41a2-abab-93f6f6f60000" - }, - "qualifiedName": { - "$id": "4606", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/exampledb/dbo/exampledata2" - }, - "name": { - "$id": "4607", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2" - }, - "entityType": { - "$id": "4608", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "classification": { - "$id": "4609", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4610", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4611", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4612", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - }, - "term": { - "$id": "4613", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4614", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4615", - "kind": "http", - "name": "Discovery_Query_ObjectType", - "description": "Discovery_Query_ObjectType", - "filePath": "2023-09-01/Discovery_Query_ObjectType.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4616", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4617", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4618", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "or": [ - { - "objectType": "Dashboards" - }, - { - "objectType": "Data pipelines" - }, - { - "objectType": "Files" - }, - { - "objectType": "Folders" - }, - { - "objectType": "Glossary terms" - }, - { - "objectType": "Reports" - }, - { - "objectType": "Stored procedures" - }, - { - "objectType": "Tables" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4619", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4620", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4621", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 2 - }, - "@search.count.approximate": { - "$id": "4622", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4623", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4624", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4625", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "objectType": { - "$id": "4626", - "kind": "string", - "type": { - "$ref": "790" - }, - "value": "Tables" - }, - "id": { - "$id": "4627", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "24c16e53-1bfd-4d6c-b4ce-b1f6f6f60000" - }, - "entityType": { - "$id": "4628", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "name": { - "$id": "4629", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1" - }, - "qualifiedName": { - "$id": "4630", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampledata1" - }, - "assetType": { - "$id": "4631", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4632", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - } - } - }, - { - "$id": "4633", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4634", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "objectType": { - "$id": "4635", - "kind": "string", - "type": { - "$ref": "790" - }, - "value": "Glossary terms" - }, - "id": { - "$id": "4636", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "b1e51cc4-9249-4c81-bbc7-e2f3117706f3" - }, - "glossaryType": { - "$id": "4637", - "kind": "string", - "type": { - "$ref": "830" - }, - "value": "AtlasGlossaryTerm" - }, - "name": { - "$id": "4638", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "termSample1" - }, - "glossary": { - "$id": "4639", - "kind": "string", - "type": { - "$ref": "832" - }, - "value": "DefaultGlossary" - }, - "longDescription": { - "$id": "4640", - "kind": "string", - "type": { - "$ref": "837" - }, - "value": "it is the definition of the term" - }, - "termStatus": { - "$id": "4641", - "kind": "string", - "type": { - "$ref": "834" - }, - "value": "Approved" - }, - "termTemplate": { - "$id": "4642", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4643", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "termTemplateSample" - } - ] - }, - "qualifiedName": { - "$id": "4644", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "termSample1@DefaultGlossary" - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4645", - "kind": "http", - "name": "Discovery_Query_PaginationContinuationPage", - "description": "Discovery_Query_PaginationContinuationPage", - "filePath": "2023-09-01/Discovery_Query_PaginationContinuationPage.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4646", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4647", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "exampledata" - }, - "filter": { - "$id": "4648", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "objectType": "Files" - }, - { - "entityType": "azure_blob_path" - } - ] - } - }, - "limit": { - "$id": "4649", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 2 - }, - "continuationToken": { - "$id": "4650", - "kind": "string", - "type": { - "$ref": "733" - }, - "value": "" - }, - "orderby": { - "$id": "4651", - "kind": "array", - "type": { - "$ref": "462" - }, - "value": [ - { - "$id": "4652", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "name": "ASC" - } - }, - { - "$id": "4653", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "updateTime": "DESC" - } - } - ] - }, - "facets": { - "$id": "4654", - "kind": "array", - "type": { - "$ref": "738" - }, - "value": [ - { - "$id": "4655", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4656", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "assetType" - }, - "count": { - "$id": "4657", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 0 - }, - "sort": { - "$id": "4658", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4659", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4660", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4661", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "classification" - }, - "count": { - "$id": "4662", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4663", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4664", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4665", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4666", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "contactId" - }, - "count": { - "$id": "4667", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4668", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4669", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4670", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4671", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "label" - }, - "count": { - "$id": "4672", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4673", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4674", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4675", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4676", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "term" - }, - "count": { - "$id": "4677", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4678", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4679", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - } - ] - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4680", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4681", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4682", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 6 - }, - "@search.count.approximate": { - "$id": "4683", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "continuationToken": { - "$id": "4684", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "value": { - "$id": "4685", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4686", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4687", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4688", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4689", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" - }, - "name": { - "$id": "4690", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1.txt" - }, - "entityType": { - "$id": "4691", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4692", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4693", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4694", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4695", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4696", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4697", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4698", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4699", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4700", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" - }, - "qualifiedName": { - "$id": "4701", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" - }, - "name": { - "$id": "4702", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2.txt" - }, - "entityType": { - "$id": "4703", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4704", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4705", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4706", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4707", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4708", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4709", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4710", - "kind": "http", - "name": "Discovery_Query_PaginationFirstPage", - "description": "Discovery_Query_PaginationFirstPage", - "filePath": "2023-09-01/Discovery_Query_PaginationFirstPage.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4711", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4712", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "exampledata" - }, - "filter": { - "$id": "4713", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "objectType": "Files" - }, - { - "entityType": "azure_blob_path" - } - ] - } - }, - "limit": { - "$id": "4714", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 2 - }, - "orderby": { - "$id": "4715", - "kind": "array", - "type": { - "$ref": "462" - }, - "value": [ - { - "$id": "4716", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "name": "ASC" - } - }, - { - "$id": "4717", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "updateTime": "DESC" - } - } - ] - }, - "facets": { - "$id": "4718", - "kind": "array", - "type": { - "$ref": "738" - }, - "value": [ - { - "$id": "4719", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4720", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "assetType" - }, - "count": { - "$id": "4721", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 0 - }, - "sort": { - "$id": "4722", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4723", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4724", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4725", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "classification" - }, - "count": { - "$id": "4726", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4727", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4728", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4729", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4730", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "contactId" - }, - "count": { - "$id": "4731", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4732", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4733", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4734", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4735", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "label" - }, - "count": { - "$id": "4736", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4737", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4738", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4739", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4740", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "term" - }, - "count": { - "$id": "4741", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4742", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4743", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - } - ] - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4744", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4745", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4746", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 6 - }, - "@search.count.approximate": { - "$id": "4747", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "continuationToken": { - "$id": "4748", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "value": { - "$id": "4749", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4750", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4751", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4752", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4753", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" - }, - "name": { - "$id": "4754", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1.txt" - }, - "entityType": { - "$id": "4755", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4756", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4757", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4758", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4759", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4760", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4761", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4762", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4763", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4764", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" - }, - "qualifiedName": { - "$id": "4765", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" - }, - "name": { - "$id": "4766", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2.txt" - }, - "entityType": { - "$id": "4767", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4768", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4769", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4770", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4771", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4772", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4773", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4774", - "kind": "http", - "name": "Discovery_Query_PaginationLastPage", - "description": "Discovery_Query_PaginationLastPage", - "filePath": "2023-09-01/Discovery_Query_PaginationLastPage.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4775", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4776", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "exampledata" - }, - "filter": { - "$id": "4777", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "objectType": "Files" - }, - { - "entityType": "azure_blob_path" - } - ] - } - }, - "limit": { - "$id": "4778", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 2 - }, - "continuationToken": { - "$id": "4779", - "kind": "string", - "type": { - "$ref": "733" - }, - "value": "" - }, - "orderby": { - "$id": "4780", - "kind": "array", - "type": { - "$ref": "462" - }, - "value": [ - { - "$id": "4781", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "name": "ASC" - } - }, - { - "$id": "4782", - "kind": "unknown", - "type": { - "$ref": "463" - }, - "value": { - "updateTime": "DESC" - } - } - ] - }, - "facets": { - "$id": "4783", - "kind": "array", - "type": { - "$ref": "738" - }, - "value": [ - { - "$id": "4784", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4785", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "assetType" - }, - "count": { - "$id": "4786", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 0 - }, - "sort": { - "$id": "4787", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4788", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4789", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4790", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "classification" - }, - "count": { - "$id": "4791", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4792", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4793", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4794", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4795", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "contactId" - }, - "count": { - "$id": "4796", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4797", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4798", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4799", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4800", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "label" - }, - "count": { - "$id": "4801", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4802", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4803", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - }, - { - "$id": "4804", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "facet": { - "$id": "4805", - "kind": "string", - "type": { - "$ref": "743" - }, - "value": "term" - }, - "count": { - "$id": "4806", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4807", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4808", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - } - ] - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4809", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4810", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4811", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 6 - }, - "@search.count.approximate": { - "$id": "4812", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4813", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4814", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4815", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4816", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4817", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" - }, - "name": { - "$id": "4818", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1.txt" - }, - "entityType": { - "$id": "4819", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4820", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4821", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4822", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4823", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4824", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4825", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4826", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4827", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4828", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" - }, - "qualifiedName": { - "$id": "4829", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" - }, - "name": { - "$id": "4830", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2.txt" - }, - "entityType": { - "$id": "4831", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4832", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4833", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4834", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4835", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4836", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4837", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4838", - "kind": "http", - "name": "Discovery_Query_SystemTime", - "description": "Discovery_Query_SystemTime", - "filePath": "2023-09-01/Discovery_Query_SystemTime.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4839", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4840", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4841", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "or": [ - { - "createTime": { - "operator": "lt", - "timeThreshold": 1545580800000 - } - }, - { - "updateTime": "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4842", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4843", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4844", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 2 - }, - "@search.count.approximate": { - "$id": "4845", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4846", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4847", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4848", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4849", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "55ceaddf-30ac-40f3-b656-71f6f6f60000" - }, - "entityType": { - "$id": "4850", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "name": { - "$id": "4851", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampleData_v1" - }, - "qualifiedName": { - "$id": "4852", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v1" - }, - "assetType": { - "$id": "4853", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4854", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - } - } - }, - { - "$id": "4855", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4856", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4857", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "89416661-5269-4f3d-ba35-e0f6f6f60000" - }, - "entityType": { - "$id": "4858", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_sql_mi_table" - }, - "name": { - "$id": "4859", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampleData_v2" - }, - "qualifiedName": { - "$id": "4860", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "mssql://exampleaccount.database.windows.net:3342/examplesqlmidb/dbo/exampleData_v2" - }, - "assetType": { - "$id": "4861", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4862", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure SQL Managed Instance" - } - ] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4863", - "kind": "http", - "name": "Discovery_Query_Taxonomy", - "description": "Discovery_Query_Taxonomy", - "filePath": "2023-09-01/Discovery_Query_Taxonomy.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4864", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4865", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "exampledata" - }, - "filter": { - "$id": "4866", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "objectType": "Files" - }, - { - "not": { - "or": [ - { - "attributeName": "size", - "operator": "eq", - "attributeValue": 0 - }, - { - "attributeName": "fileSize", - "operator": "eq", - "attributeValue": 0 - } - ] - } - }, - { - "not": { - "classification": "MICROSOFT.SYSTEM.TEMP_FILE" - } - } - ] - } - }, - "limit": { - "$id": "4867", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "taxonomySetting": { - "$id": "4868", - "kind": "model", - "type": { - "$ref": "749" - }, - "value": { - "assetTypes": { - "$id": "4869", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4870", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "facet": { - "$id": "4871", - "kind": "model", - "type": { - "$ref": "739" - }, - "value": { - "count": { - "$id": "4872", - "kind": "number", - "type": { - "$ref": "741" - }, - "value": 10 - }, - "sort": { - "$id": "4873", - "kind": "model", - "type": { - "$ref": "745" - }, - "value": { - "count": { - "$id": "4874", - "kind": "string", - "type": { - "$ref": "40" - }, - "value": "desc" - } - } - } - } - } - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4875", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4876", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "continuationToken": { - "$id": "4877", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "@search.count": { - "$id": "4878", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 339 - }, - "@search.count.approximate": { - "$id": "4879", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4880", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4881", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4882", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4883", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "bfecbcc3-1838-45fe-96d6-112de8a170f9" - }, - "qualifiedName": { - "$id": "4884", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt" - }, - "name": { - "$id": "4885", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata1.txt" - }, - "entityType": { - "$id": "4886", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4887", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4888", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4889", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4890", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4891", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4892", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4893", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4894", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4895", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f" - }, - "qualifiedName": { - "$id": "4896", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt" - }, - "name": { - "$id": "4897", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2.txt" - }, - "entityType": { - "$id": "4898", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4899", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4900", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4901", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4902", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4903", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4904", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4905", - "kind": "http", - "name": "Discovery_Query_TermAssignment", - "description": "Discovery_Query_TermAssignment", - "filePath": "2023-09-01/Discovery_Query_TermAssignment.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4906", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "keywords": { - "$id": "4907", - "kind": "string", - "type": { - "$ref": "729" - }, - "value": "" - }, - "limit": { - "$id": "4908", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 3 - }, - "filter": { - "$id": "4909", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "or": [ - { - "term": "ExampleTerm" - }, - { - "term": "ExampleTerm", - "glossary": "GlossaryName" - }, - { - "termGuid": "" - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4910", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4911", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "@search.count": { - "$id": "4912", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 1 - }, - "@search.count.approximate": { - "$id": "4913", - "kind": "boolean", - "type": { - "$ref": "756" - }, - "value": false - }, - "value": { - "$id": "4914", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4915", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4916", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4917", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "b20ac13a-7883-4376-b076-bac9f8f214a8" - }, - "qualifiedName": { - "$id": "4918", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplecontainer" - }, - "name": { - "$id": "4919", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "examplecontainer" - }, - "entityType": { - "$id": "4920", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_container" - }, - "classification": { - "$id": "4921", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "assetType": { - "$id": "4922", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4923", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4924", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [ - { - "$id": "4925", - "kind": "model", - "type": { - "$ref": "812" - }, - "value": { - "name": { - "$id": "4926", - "kind": "string", - "type": { - "$ref": "814" - }, - "value": "ExampleTerm" - }, - "glossaryName": { - "$id": "4927", - "kind": "string", - "type": { - "$ref": "816" - }, - "value": "Glossary" - } - } - } - ] - }, - "contact": { - "$id": "4928", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - }, - "label": { - "$id": "4929", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4930", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "4931", - "kind": "http", - "name": "Discovery_Query_Type", - "description": "Discovery_Query_Type", - "filePath": "2023-09-01/Discovery_Query_Type.json", - "parameters": [ - { - "parameter": { - "$ref": "4038" - }, - "value": { - "$id": "4932", - "kind": "model", - "type": { - "$ref": "727" - }, - "value": { - "limit": { - "$id": "4933", - "kind": "number", - "type": { - "$ref": "731" - }, - "value": 10 - }, - "filter": { - "$id": "4934", - "kind": "unknown", - "type": { - "$ref": "736" - }, - "value": { - "and": [ - { - "entityType": "azure_blob_path", - "includeSubTypes": false - } - ] - } - } - } - } - }, - { - "parameter": { - "$ref": "4033" - }, - "value": { - "$id": "4935", - "kind": "string", - "type": { - "$ref": "4034" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "752" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4936", - "kind": "model", - "type": { - "$ref": "752" - }, - "value": { - "continuationToken": { - "$id": "4937", - "kind": "string", - "type": { - "$ref": "758" - }, - "value": "" - }, - "@search.count": { - "$id": "4938", - "kind": "number", - "type": { - "$ref": "754" - }, - "value": 221 - }, - "value": { - "$id": "4939", - "kind": "array", - "type": { - "$ref": "778" - }, - "value": [ - { - "$id": "4940", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4941", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4942", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "1d797ddf-47bf-4151-8fe8-918590d62e70" - }, - "qualifiedName": { - "$id": "4943", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.csv" - }, - "name": { - "$id": "4944", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata.csv" - }, - "entityType": { - "$id": "4945", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4946", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4947", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4948", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4949", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4950", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4951", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4952", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - }, - { - "$id": "4953", - "kind": "model", - "type": { - "$ref": "779" - }, - "value": { - "@search.score": { - "$id": "4954", - "kind": "number", - "type": { - "$ref": "781" - }, - "value": 1 - }, - "id": { - "$id": "4955", - "kind": "string", - "type": { - "$ref": "796" - }, - "value": "d3e83b17-c730-4898-94c8-58579cda04f6" - }, - "qualifiedName": { - "$id": "4956", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.csv" - }, - "name": { - "$id": "4957", - "kind": "string", - "type": { - "$ref": "798" - }, - "value": "exampledata2.csv" - }, - "entityType": { - "$id": "4958", - "kind": "string", - "type": { - "$ref": "802" - }, - "value": "azure_blob_path" - }, - "classification": { - "$id": "4959", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "label": { - "$id": "4960", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4961", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "assetType": { - "$id": "4962", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4963", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "term": { - "$id": "4964", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [] - }, - "contact": { - "$id": "4965", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [] - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "4966", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "727" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Discovery.query.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "4967", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "247" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Discovery.query.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "4968", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "249" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Discovery.query.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "752" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Discovery.query" - }, - { - "$id": "4969", - "kind": "basic", - "name": "suggest", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get search suggestions by query criteria.", - "operation": { - "$id": "4970", - "name": "suggest", - "resourceName": "Discovery", - "doc": "Get search suggestions by query criteria.", - "accessibility": "public", - "parameters": [ - { - "$id": "4971", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "4972", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "4973", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.apiVersion", - "readOnly": false - }, - { - "$id": "4974", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "251" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.contentType" - }, - { - "$id": "4975", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "253" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.accept" - }, - { - "$id": "4976", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "838" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "845" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/search/suggest", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Discovery.suggest", - "decorators": [], - "examples": [ - { - "$id": "4977", - "kind": "http", - "name": "Discovery_Suggest", - "description": "Discovery_Suggest", - "filePath": "2023-09-01/Discovery_Suggest.json", - "parameters": [ - { - "parameter": { - "$ref": "4976" - }, - "value": { - "$id": "4978", - "kind": "model", - "type": { - "$ref": "838" - }, - "value": { - "keywords": { - "$id": "4979", - "kind": "string", - "type": { - "$ref": "840" - }, - "value": "exampledata" - }, - "filter": { - "$id": "4980", - "kind": "unknown", - "type": { - "$ref": "844" - }, - "value": { - "and": [ - { - "entityType": "azure_blob_path", - "includeSubTypes": false - } - ] - } - }, - "limit": { - "$id": "4981", - "kind": "number", - "type": { - "$ref": "842" - }, - "value": 10 - } - } - } - }, - { - "parameter": { - "$ref": "4971" - }, - "value": { - "$id": "4982", - "kind": "string", - "type": { - "$ref": "4972" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "845" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "4983", - "kind": "model", - "type": { - "$ref": "845" - }, - "value": { - "value": { - "$id": "4984", - "kind": "array", - "type": { - "$ref": "847" - }, - "value": [ - { - "$id": "4985", - "kind": "model", - "type": { - "$ref": "848" - }, - "value": { - "@search.text": { - "$id": "4986", - "kind": "string", - "type": { - "$ref": "852" - }, - "value": "exampledata.csv" - }, - "@search.score": { - "$id": "4987", - "kind": "number", - "type": { - "$ref": "850" - }, - "value": 9.81402 - }, - "description": { - "$id": "4988", - "kind": "string", - "type": { - "$ref": "868" - }, - "value": "Example Description" - }, - "id": { - "$id": "4989", - "kind": "string", - "type": { - "$ref": "860" - }, - "value": "af7a01b0-1b14-4ab6-83a5-12cb11a717ed" - }, - "name": { - "$id": "4990", - "kind": "string", - "type": { - "$ref": "862" - }, - "value": "exampledata.csv" - }, - "owner": { - "$id": "4991", - "kind": "string", - "type": { - "$ref": "871" - }, - "value": "$superuser" - }, - "qualifiedName": { - "$id": "4992", - "kind": "string", - "type": { - "$ref": "864" - }, - "value": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata.csv" - }, - "entityType": { - "$id": "4993", - "kind": "string", - "type": { - "$ref": "866" - }, - "value": "azure_blob_path" - }, - "assetType": { - "$id": "4994", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4995", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Azure Blob Storage" - } - ] - }, - "classification": { - "$id": "4996", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "4997", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.GOVERNMENT.US.PASSPORT_NUMBER" - } - ] - }, - "contact": { - "$id": "4998", - "kind": "array", - "type": { - "$ref": "820" - }, - "value": [ - { - "$id": "4999", - "kind": "model", - "type": { - "$ref": "821" - }, - "value": { - "id": { - "$id": "5000", - "kind": "string", - "type": { - "$ref": "823" - }, - "value": "8a597ffc-6993-4772-ac25-86b7251e1234" - }, - "info": { - "$id": "5001", - "kind": "string", - "type": { - "$ref": "825" - }, - "value": "Example Info" - }, - "contactType": { - "$id": "5002", - "kind": "string", - "type": { - "$ref": "827" - }, - "value": "Expert" - } - } - } - ] - }, - "label": { - "$id": "5003", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "5004", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Example.Label" - } - ] - }, - "term": { - "$id": "5005", - "kind": "array", - "type": { - "$ref": "811" - }, - "value": [ - { - "$id": "5006", - "kind": "model", - "type": { - "$ref": "812" - }, - "value": { - "name": { - "$id": "5007", - "kind": "string", - "type": { - "$ref": "814" - }, - "value": "Example Term" - }, - "glossaryName": { - "$id": "5008", - "kind": "string", - "type": { - "$ref": "816" - }, - "value": "Glossary" - } - } - } - ] - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5009", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "838" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5010", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "251" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5011", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "253" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Discovery.suggest.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "845" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Discovery.suggest" - }, - { - "$id": "5012", - "kind": "basic", - "name": "autoComplete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get auto complete options.", - "operation": { - "$id": "5013", - "name": "autoComplete", - "resourceName": "Discovery", - "doc": "Get auto complete options.", - "accessibility": "public", - "parameters": [ - { - "$id": "5014", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "5015", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "5016", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.apiVersion", - "readOnly": false - }, - { - "$id": "5017", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "255" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.contentType" - }, - { - "$id": "5018", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "257" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.accept" - }, - { - "$id": "5019", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "886" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "893" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/search/autocomplete", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete", - "decorators": [], - "examples": [ - { - "$id": "5020", - "kind": "http", - "name": "Discovery_AutoComplete", - "description": "Discovery_AutoComplete", - "filePath": "2023-09-01/Discovery_AutoComplete.json", - "parameters": [ - { - "parameter": { - "$ref": "5019" - }, - "value": { - "$id": "5021", - "kind": "model", - "type": { - "$ref": "886" - }, - "value": { - "keywords": { - "$id": "5022", - "kind": "string", - "type": { - "$ref": "888" - }, - "value": "exa" - }, - "filter": { - "$id": "5023", - "kind": "unknown", - "type": { - "$ref": "892" - }, - "value": { - "and": [ - { - "entityType": "azure_blob_path", - "includeSubTypes": false - } - ] - } - }, - "limit": { - "$id": "5024", - "kind": "number", - "type": { - "$ref": "890" - }, - "value": 10 - } - } - } - }, - { - "parameter": { - "$ref": "5014" - }, - "value": { - "$id": "5025", - "kind": "string", - "type": { - "$ref": "5015" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "893" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5026", - "kind": "model", - "type": { - "$ref": "893" - }, - "value": { - "value": { - "$id": "5027", - "kind": "array", - "type": { - "$ref": "895" - }, - "value": [ - { - "$id": "5028", - "kind": "model", - "type": { - "$ref": "896" - }, - "value": { - "text": { - "$id": "5029", - "kind": "string", - "type": { - "$ref": "898" - }, - "value": "example" - }, - "queryPlusText": { - "$id": "5030", - "kind": "string", - "type": { - "$ref": "900" - }, - "value": "example" - } - } - }, - { - "$id": "5031", - "kind": "model", - "type": { - "$ref": "896" - }, - "value": { - "text": { - "$id": "5032", - "kind": "string", - "type": { - "$ref": "898" - }, - "value": "exampleconfiguration" - }, - "queryPlusText": { - "$id": "5033", - "kind": "string", - "type": { - "$ref": "900" - }, - "value": "exampleconfiguration" - } - } - }, - { - "$id": "5034", - "kind": "model", - "type": { - "$ref": "896" - }, - "value": { - "text": { - "$id": "5035", - "kind": "string", - "type": { - "$ref": "898" - }, - "value": "exampleresources" - }, - "queryPlusText": { - "$id": "5036", - "kind": "string", - "type": { - "$ref": "900" - }, - "value": "exampleresources" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5037", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "886" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5038", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "255" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5039", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "257" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "893" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Discovery.autoComplete" - } - ], - "parameters": [ - { - "$id": "5040", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "5041", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - }, - { - "$id": "5042", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "doc": "The API version to use for this operation.", - "type": { - "$id": "5043", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "5044", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Discovery.query.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Discovery", - "apiVersions": [ - "2023-09-01" - ], - "parent": { - "$ref": "1353" - } - }, - { - "$id": "5045", - "kind": "client", - "name": "Lineage", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [ - { - "$id": "5046", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get lineage info of the entity specified by GUID.", - "operation": { - "$id": "5047", - "name": "get", - "resourceName": "Lineage", - "doc": "Get lineage info of the entity specified by GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5048", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "5049", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Lineage.get.guid" - }, - { - "$id": "5050", - "kind": "query", - "name": "depth", - "serializedName": "depth", - "doc": "The number of hops for lineage.", - "type": { - "$id": "5051", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.get.depth", - "readOnly": false - }, - { - "$id": "5052", - "kind": "query", - "name": "direction", - "serializedName": "direction", - "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", - "type": { - "$ref": "44" - }, - "isApiVersion": false, - "explode": false, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.get.direction", - "readOnly": false - }, - { - "$id": "5053", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "259" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.get.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "901" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/lineage/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Lineage.get", - "decorators": [], - "examples": [ - { - "$id": "5054", - "kind": "http", - "name": "Lineage_Get", - "description": "Lineage_Get", - "filePath": "2023-09-01/Lineage_Get.json", - "parameters": [ - { - "parameter": { - "$ref": "5048" - }, - "value": { - "$id": "5055", - "kind": "string", - "type": { - "$ref": "5049" - }, - "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" - } - }, - { - "parameter": { - "$ref": "5050" - }, - "value": { - "$id": "5056", - "kind": "number", - "type": { - "$ref": "5051" - }, - "value": 1 - } - }, - { - "parameter": { - "$ref": "5052" - }, - "value": { - "$id": "5057", - "kind": "string", - "type": { - "$ref": "44" - }, - "value": "INPUT" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "901" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5058", - "kind": "model", - "type": { - "$ref": "901" - }, - "value": { - "baseEntityGuid": { - "$id": "5059", - "kind": "string", - "type": { - "$ref": "903" - }, - "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" - }, - "lineageDirection": { - "$id": "5060", - "kind": "string", - "type": { - "$ref": "44" - }, - "value": "INPUT" - }, - "lineageDepth": { - "$id": "5061", - "kind": "number", - "type": { - "$ref": "907" - }, - "value": 1 - }, - "lineageWidth": { - "$id": "5062", - "kind": "number", - "type": { - "$ref": "909" - }, - "value": 1 - }, - "childrenCount": { - "$id": "5063", - "kind": "number", - "type": { - "$ref": "911" - }, - "value": 1 - }, - "guidEntityMap": { - "$id": "5064", - "kind": "dict", - "type": { - "$ref": "475" - }, - "value": {} - }, - "widthCounts": { - "$id": "5065", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": {} - }, - "relations": { - "$id": "5066", - "kind": "array", - "type": { - "$ref": "923" - }, - "value": [] - }, - "parentRelations": { - "$id": "5067", - "kind": "array", - "type": { - "$ref": "914" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5068", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "5069", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.get.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5070", - "kind": "method", - "name": "depth", - "serializedName": "depth", - "doc": "The number of hops for lineage.", - "type": { - "$id": "5071", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.get.depth", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5072", - "kind": "method", - "name": "direction", - "serializedName": "direction", - "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", - "type": { - "$ref": "44" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.get.direction", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5073", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "259" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Lineage.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "901" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Lineage.get" - }, - { - "$id": "5074", - "kind": "basic", - "name": "getNextPage", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Return immediate next page lineage info about entity with pagination", - "operation": { - "$id": "5075", - "name": "getNextPage", - "resourceName": "Lineage", - "doc": "Return immediate next page lineage info about entity with pagination", - "accessibility": "public", - "parameters": [ - { - "$id": "5076", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "5077", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "5078", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.apiVersion", - "readOnly": false - }, - { - "$id": "5079", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "5080", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.guid" - }, - { - "$id": "5081", - "kind": "query", - "name": "direction", - "serializedName": "direction", - "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", - "type": { - "$ref": "44" - }, - "isApiVersion": false, - "explode": false, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.direction", - "readOnly": false - }, - { - "$id": "5082", - "kind": "query", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "5083", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.offset", - "readOnly": false - }, - { - "$id": "5084", - "kind": "query", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "5085", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.limit", - "readOnly": false - }, - { - "$id": "5086", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "261" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "901" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/lineage/{guid}/next", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage", - "decorators": [], - "examples": [ - { - "$id": "5087", - "kind": "http", - "name": "Lineage_GetNextPage", - "description": "Lineage_GetNextPage", - "filePath": "2023-09-01/Lineage_GetNextPage.json", - "parameters": [ - { - "parameter": { - "$ref": "5079" - }, - "value": { - "$id": "5088", - "kind": "string", - "type": { - "$ref": "5080" - }, - "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" - } - }, - { - "parameter": { - "$ref": "5082" - }, - "value": { - "$id": "5089", - "kind": "number", - "type": { - "$ref": "5083" - }, - "value": 0 - } - }, - { - "parameter": { - "$ref": "5084" - }, - "value": { - "$id": "5090", - "kind": "number", - "type": { - "$ref": "5085" - }, - "value": 5 - } - }, - { - "parameter": { - "$ref": "5081" - }, - "value": { - "$id": "5091", - "kind": "string", - "type": { - "$ref": "44" - }, - "value": "INPUT" - } - }, - { - "parameter": { - "$ref": "5076" - }, - "value": { - "$id": "5092", - "kind": "string", - "type": { - "$ref": "5077" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "901" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5093", - "kind": "model", - "type": { - "$ref": "901" - }, - "value": { - "baseEntityGuid": { - "$id": "5094", - "kind": "string", - "type": { - "$ref": "903" - }, - "value": "a6894eb3-81f3-829b-2adc-52f3e603411a" - }, - "lineageDirection": { - "$id": "5095", - "kind": "string", - "type": { - "$ref": "44" - }, - "value": "INPUT" - }, - "lineageDepth": { - "$id": "5096", - "kind": "number", - "type": { - "$ref": "907" - }, - "value": 1 - }, - "lineageWidth": { - "$id": "5097", - "kind": "number", - "type": { - "$ref": "909" - }, - "value": 1 - }, - "childrenCount": { - "$id": "5098", - "kind": "number", - "type": { - "$ref": "911" - }, - "value": 1 - }, - "guidEntityMap": { - "$id": "5099", - "kind": "dict", - "type": { - "$ref": "475" - }, - "value": {} - }, - "widthCounts": { - "$id": "5100", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": {} - }, - "relations": { - "$id": "5101", - "kind": "array", - "type": { - "$ref": "923" - }, - "value": [] - }, - "parentRelations": { - "$id": "5102", - "kind": "array", - "type": { - "$ref": "914" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5103", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "5104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5105", - "kind": "method", - "name": "direction", - "serializedName": "direction", - "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", - "type": { - "$ref": "44" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.direction", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5106", - "kind": "method", - "name": "offset", - "serializedName": "offset", - "doc": "The offset for pagination purpose.", - "type": { - "$id": "5107", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.offset", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5108", - "kind": "method", - "name": "limit", - "serializedName": "limit", - "doc": "The page size - by default there is no paging.", - "type": { - "$id": "5109", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.limit", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5110", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "261" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "901" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage" - }, - { - "$id": "5111", - "kind": "basic", - "name": "getByUniqueAttribute", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Return lineage info about entity.\n\nIn addition to the typeName path parameter,\nattribute key-value pair(s) can be provided in the following\nformat\n\nattr:[attrName]=[attrValue]\n\nNOTE: The attrName and attrValue should be\nunique across entities, eg. qualifiedName.\n\nThe REST request would look\nsomething like this:\n\nGET\n/v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "operation": { - "$id": "5112", - "name": "getByUniqueAttribute", - "resourceName": "Lineage", - "doc": "Return lineage info about entity.\n\nIn addition to the typeName path parameter,\nattribute key-value pair(s) can be provided in the following\nformat\n\nattr:[attrName]=[attrValue]\n\nNOTE: The attrName and attrValue should be\nunique across entities, eg. qualifiedName.\n\nThe REST request would look\nsomething like this:\n\nGET\n/v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.", - "accessibility": "public", - "parameters": [ - { - "$id": "5113", - "kind": "path", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "5114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.typeName" - }, - { - "$id": "5115", - "kind": "query", - "name": "depth", - "serializedName": "depth", - "doc": "The number of hops for lineage.", - "type": { - "$id": "5116", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.depth", - "readOnly": false - }, - { - "$id": "5117", - "kind": "query", - "name": "direction", - "serializedName": "direction", - "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", - "type": { - "$ref": "44" - }, - "isApiVersion": false, - "explode": false, - "optional": false, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.direction", - "readOnly": false - }, - { - "$id": "5118", - "kind": "query", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "5119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.attribute", - "readOnly": false - }, - { - "$id": "5120", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "263" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "901" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute", - "decorators": [], - "examples": [ - { - "$id": "5121", - "kind": "http", - "name": "Lineage_GetByUniqueAttribute", - "description": "Lineage_GetByUniqueAttribute", - "filePath": "2023-09-01/Lineage_GetByUniqueAttribute.json", - "parameters": [ - { - "parameter": { - "$ref": "5113" - }, - "value": { - "$id": "5122", - "kind": "string", - "type": { - "$ref": "5114" - }, - "value": "azure_blob_path" - } - }, - { - "parameter": { - "$ref": "5115" - }, - "value": { - "$id": "5123", - "kind": "number", - "type": { - "$ref": "5116" - }, - "value": 2 - } - }, - { - "parameter": { - "$ref": "5117" - }, - "value": { - "$id": "5124", - "kind": "string", - "type": { - "$ref": "44" - }, - "value": "BOTH" - } - }, - { - "parameter": { - "$ref": "5118" - }, - "value": { - "$id": "5125", - "kind": "string", - "type": { - "$ref": "5119" - }, - "value": "https://02cab97b-ba87-4675-972d-150b6cb522d3/entity.json/" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "901" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5126", - "kind": "model", - "type": { - "$ref": "901" - }, - "value": { - "baseEntityGuid": { - "$id": "5127", - "kind": "string", - "type": { - "$ref": "903" - }, - "value": "9b2751f1-2633-4f06-a578-e14fab4c52fd" - }, - "lineageDirection": { - "$id": "5128", - "kind": "string", - "type": { - "$ref": "44" - }, - "value": "BOTH" - }, - "lineageDepth": { - "$id": "5129", - "kind": "number", - "type": { - "$ref": "907" - }, - "value": 2 - }, - "lineageWidth": { - "$id": "5130", - "kind": "number", - "type": { - "$ref": "909" - }, - "value": 2 - }, - "childrenCount": { - "$id": "5131", - "kind": "number", - "type": { - "$ref": "911" - }, - "value": -1 - }, - "guidEntityMap": { - "$id": "5132", - "kind": "dict", - "type": { - "$ref": "475" - }, - "value": { - "9b2751f1-2633-4f06-a578-e14fab4c52fd": { - "$id": "5133", - "kind": "model", - "type": { - "$ref": "426" - }, - "value": { - "typeName": { - "$id": "5134", - "kind": "string", - "type": { - "$ref": "429" - }, - "value": "azure_blob_path" - }, - "attributes": { - "$id": "5135", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "owner": { - "$id": "5136", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "testOwner" - }, - "modifiedTime": { - "$id": "5137", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "qualifiedName": { - "$id": "5138", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "https://02cab97b-ba87-4675-972d-150b6cb522d3/entity.json/" - }, - "isBlob": { - "$id": "5139", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": false - }, - "accessTierInferred": { - "$id": "5140", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": false - }, - "description": { - "$id": "5141", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "testDesc" - }, - "committedBlockCount": { - "$id": "5142", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "path": { - "$id": "5143", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "/test/AzureBlobPath.json" - }, - "size": { - "$id": "5144", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 731 - }, - "createTime": { - "$id": "5145", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - }, - "name": { - "$id": "5146", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "populate_azure_blob_path_02cab97b-ba87-4675-972d-150b6cb522d3" - }, - "blobType": { - "$id": "5147", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "BlockBlob" - }, - "serverEncrypted": { - "$id": "5148", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": true - } - } - }, - "lastModifiedTS": { - "$id": "5149", - "kind": "string", - "type": { - "$ref": "431" - }, - "value": "1" - }, - "guid": { - "$id": "5150", - "kind": "string", - "type": { - "$ref": "437" - }, - "value": "9b2751f1-2633-4f06-a578-e14fab4c52fd" - }, - "status": { - "$id": "5151", - "kind": "string", - "type": { - "$ref": "1" - }, - "value": "ACTIVE" - }, - "displayText": { - "$id": "5152", - "kind": "string", - "type": { - "$ref": "435" - }, - "value": "populate_azure_blob_path_02cab97b-ba87-4675-972d-150b6cb522d3" - }, - "classificationNames": { - "$id": "5153", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "5154", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.EMAIL" - }, - { - "$id": "5155", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "MICROSOFT.PERSONAL.NAME" - } - ] - }, - "meaningNames": { - "$id": "5156", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "meanings": { - "$id": "5157", - "kind": "array", - "type": { - "$ref": "377" - }, - "value": [] - }, - "isIncomplete": { - "$id": "5158", - "kind": "boolean", - "type": { - "$ref": "439" - }, - "value": false - }, - "labels": { - "$id": "5159", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - } - }, - "relations": { - "$id": "5160", - "kind": "array", - "type": { - "$ref": "923" - }, - "value": [] - }, - "parentRelations": { - "$id": "5161", - "kind": "array", - "type": { - "$ref": "914" - }, - "value": [] - }, - "widthCounts": { - "$id": "5162", - "kind": "dict", - "type": { - "$ref": "638" - }, - "value": { - "INPUT": { - "$id": "5163", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "9b2751f1-2633-4f06-a578-e14fab4c52fd": { - "$id": "5164", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - } - } - }, - "OUTPUT": { - "$id": "5165", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "9b2751f1-2633-4f06-a578-e14fab4c52fd": { - "$id": "5166", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": 0 - } - } - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5167", - "kind": "method", - "name": "typeName", - "serializedName": "typeName", - "doc": "The name of the type.", - "type": { - "$id": "5168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.typeName", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5169", - "kind": "method", - "name": "depth", - "serializedName": "depth", - "doc": "The number of hops for lineage.", - "type": { - "$id": "5170", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.depth", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5171", - "kind": "method", - "name": "direction", - "serializedName": "direction", - "doc": "The direction of the lineage, which could be INPUT, OUTPUT or BOTH.", - "type": { - "$ref": "44" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.direction", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5172", - "kind": "method", - "name": "attribute", - "serializedName": "attr:qualifiedName", - "doc": "The qualified name of the entity. (This is only an example. qualifiedName can\nbe changed to other unique attributes)", - "type": { - "$id": "5173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.attribute", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5174", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "263" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "901" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Lineage.getByUniqueAttribute" - } - ], - "parameters": [ - { - "$id": "5175", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "5176", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - }, - { - "$id": "5177", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "doc": "The API version to use for this operation.", - "type": { - "$id": "5178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "5179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Lineage.getNextPage.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Lineage", - "apiVersions": [ - "2023-09-01" - ], - "parent": { - "$ref": "1353" - } - }, - { - "$id": "5180", - "kind": "client", - "name": "Relationship", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [ - { - "$id": "5181", - "kind": "basic", - "name": "create", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create a new relationship between entities.", - "operation": { - "$id": "5182", - "name": "create", - "resourceName": "Relationship", - "doc": "Create a new relationship between entities.", - "accessibility": "public", - "parameters": [ - { - "$id": "5183", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "265" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship.create.contentType" - }, - { - "$id": "5184", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "267" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship.create.accept" - }, - { - "$id": "5185", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "931" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Relationship.create.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "931" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/relationship", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Relationship.create", - "decorators": [], - "examples": [ - { - "$id": "5186", - "kind": "http", - "name": "Relationship_Create", - "description": "Relationship_Create", - "filePath": "2023-09-01/Relationship_Create.json", - "parameters": [ - { - "parameter": { - "$ref": "5185" - }, - "value": { - "$id": "5187", - "kind": "model", - "type": { - "$ref": "931" - }, - "value": { - "typeName": { - "$id": "5188", - "kind": "string", - "type": { - "$ref": "934" - }, - "value": "AtlasGlossarySynonym" - }, - "attributes": { - "$id": "5189", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "5190", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Expression" - }, - "steward": { - "$id": "5191", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Steward" - }, - "description": { - "$id": "5192", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "source": { - "$id": "5193", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "5194", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "end1": { - "$id": "5195", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5196", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "856d31e6-e342-a1ce-6273-22ddb77029c6" - }, - "typeName": { - "$id": "5197", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "end2": { - "$id": "5198", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5199", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" - }, - "typeName": { - "$id": "5200", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "label": { - "$id": "5201", - "kind": "string", - "type": { - "$ref": "954" - }, - "value": "r:AtlasGlossarySynonym" - }, - "status": { - "$id": "5202", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "5203", - "kind": "string", - "type": { - "$ref": "940" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5204", - "kind": "string", - "type": { - "$ref": "961" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "5205", - "kind": "number", - "type": { - "$ref": "963" - }, - "value": 0 - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "931" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5206", - "kind": "model", - "type": { - "$ref": "931" - }, - "value": { - "typeName": { - "$id": "5207", - "kind": "string", - "type": { - "$ref": "934" - }, - "value": "AtlasGlossarySynonym" - }, - "attributes": { - "$id": "5208", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "5209", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Expression" - }, - "steward": { - "$id": "5210", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Steward" - }, - "description": { - "$id": "5211", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "source": { - "$id": "5212", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "5213", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "guid": { - "$id": "5214", - "kind": "string", - "type": { - "$ref": "950" - }, - "value": "63023d5b-c499-4360-a513-16bcbf73b039" - }, - "end1": { - "$id": "5215", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5216", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "856d31e6-e342-a1ce-6273-22ddb77029c6" - }, - "typeName": { - "$id": "5217", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "end2": { - "$id": "5218", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5219", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" - }, - "typeName": { - "$id": "5220", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "label": { - "$id": "5221", - "kind": "string", - "type": { - "$ref": "954" - }, - "value": "r:AtlasGlossarySynonym" - }, - "status": { - "$id": "5222", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "5223", - "kind": "string", - "type": { - "$ref": "940" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5224", - "kind": "string", - "type": { - "$ref": "961" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5225", - "kind": "number", - "type": { - "$ref": "938" - }, - "value": 1553840134724 - }, - "updateTime": { - "$id": "5226", - "kind": "number", - "type": { - "$ref": "959" - }, - "value": 1553840134724 - }, - "version": { - "$id": "5227", - "kind": "number", - "type": { - "$ref": "963" - }, - "value": 0 - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5228", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "931" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Relationship.create.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5229", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "265" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Relationship.create.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5230", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "267" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Relationship.create.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "931" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Relationship.create" - }, - { - "$id": "5231", - "kind": "basic", - "name": "update", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update an existing relationship between entities.", - "operation": { - "$id": "5232", - "name": "update", - "resourceName": "Relationship", - "doc": "Update an existing relationship between entities.", - "accessibility": "public", - "parameters": [ - { - "$id": "5233", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "269" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship.update.contentType" - }, - { - "$id": "5234", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "271" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship.update.accept" - }, - { - "$id": "5235", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "931" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Relationship.update.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "931" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/relationship", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Relationship.update", - "decorators": [], - "examples": [ - { - "$id": "5236", - "kind": "http", - "name": "Relationship_Update", - "description": "Relationship_Update", - "filePath": "2023-09-01/Relationship_Update.json", - "parameters": [ - { - "parameter": { - "$ref": "5235" - }, - "value": { - "$id": "5237", - "kind": "model", - "type": { - "$ref": "931" - }, - "value": { - "typeName": { - "$id": "5238", - "kind": "string", - "type": { - "$ref": "934" - }, - "value": "AtlasGlossarySynonym" - }, - "attributes": { - "$id": "5239", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "5240", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Expression" - }, - "steward": { - "$id": "5241", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Steward" - }, - "description": { - "$id": "5242", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "source": { - "$id": "5243", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "5244", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "guid": { - "$id": "5245", - "kind": "string", - "type": { - "$ref": "950" - }, - "value": "b2810301-293f-493f-88f1-7ac8784fb1fd" - }, - "end1": { - "$id": "5246", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5247", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" - }, - "typeName": { - "$id": "5248", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "end2": { - "$id": "5249", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5250", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" - }, - "typeName": { - "$id": "5251", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "label": { - "$id": "5252", - "kind": "string", - "type": { - "$ref": "954" - }, - "value": "r:AtlasGlossarySynonym" - }, - "status": { - "$id": "5253", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "5254", - "kind": "string", - "type": { - "$ref": "940" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5255", - "kind": "string", - "type": { - "$ref": "961" - }, - "value": "ExampleUpdator" - }, - "version": { - "$id": "5256", - "kind": "number", - "type": { - "$ref": "963" - }, - "value": 0 - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "931" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5257", - "kind": "model", - "type": { - "$ref": "931" - }, - "value": { - "typeName": { - "$id": "5258", - "kind": "string", - "type": { - "$ref": "934" - }, - "value": "AtlasGlossarySynonym" - }, - "attributes": { - "$id": "5259", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "5260", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Expression" - }, - "steward": { - "$id": "5261", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Steward" - }, - "description": { - "$id": "5262", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "Example Description" - }, - "source": { - "$id": "5263", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "5264", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "guid": { - "$id": "5265", - "kind": "string", - "type": { - "$ref": "950" - }, - "value": "b2810301-293f-493f-88f1-7ac8784fb1fd" - }, - "end1": { - "$id": "5266", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5267", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "77481037-2874-9bdc-9b9e-76bb94ee71aa" - }, - "typeName": { - "$id": "5268", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "end2": { - "$id": "5269", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5270", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" - }, - "typeName": { - "$id": "5271", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "label": { - "$id": "5272", - "kind": "string", - "type": { - "$ref": "954" - }, - "value": "r:AtlasGlossarySynonym" - }, - "status": { - "$id": "5273", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "5274", - "kind": "string", - "type": { - "$ref": "940" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5275", - "kind": "string", - "type": { - "$ref": "961" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5276", - "kind": "number", - "type": { - "$ref": "938" - }, - "value": 1553839805039 - }, - "updateTime": { - "$id": "5277", - "kind": "number", - "type": { - "$ref": "959" - }, - "value": 1553839805039 - }, - "version": { - "$id": "5278", - "kind": "number", - "type": { - "$ref": "963" - }, - "value": 0 - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5279", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "931" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Relationship.update.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5280", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "269" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Relationship.update.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5281", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "271" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Relationship.update.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "931" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Relationship.update" - }, - { - "$id": "5282", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get relationship information between entities by its GUID.", - "operation": { - "$id": "5283", - "name": "get", - "resourceName": "Relationship", - "doc": "Get relationship information between entities by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5284", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the relationship.", - "type": { - "$id": "5285", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Relationship.get.guid" - }, - { - "$id": "5286", - "kind": "query", - "name": "extendedInfo", - "serializedName": "extendedInfo", - "doc": "Limits whether includes extended information.", - "type": { - "$id": "5287", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship.get.extendedInfo", - "readOnly": false - }, - { - "$id": "5288", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "273" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship.get.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "964" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/relationship/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Relationship.get", - "decorators": [], - "examples": [ - { - "$id": "5289", - "kind": "http", - "name": "Relationship_Get", - "description": "Relationship_Get", - "filePath": "2023-09-01/Relationship_Get.json", - "parameters": [ - { - "parameter": { - "$ref": "5284" - }, - "value": { - "$id": "5290", - "kind": "string", - "type": { - "$ref": "5285" - }, - "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" - } - }, - { - "parameter": { - "$ref": "5286" - }, - "value": { - "$id": "5291", - "kind": "boolean", - "type": { - "$ref": "5287" - }, - "value": false - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "964" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5292", - "kind": "model", - "type": { - "$ref": "964" - }, - "value": { - "relationship": { - "$id": "5293", - "kind": "model", - "type": { - "$ref": "931" - }, - "value": { - "typeName": { - "$id": "5294", - "kind": "string", - "type": { - "$ref": "934" - }, - "value": "AtlasGlossarySynonym" - }, - "attributes": { - "$id": "5295", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "expression": { - "$id": "5296", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "steward": { - "$id": "5297", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "description": { - "$id": "5298", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "source": { - "$id": "5299", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - }, - "status": { - "$id": "5300", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": null - } - } - }, - "guid": { - "$id": "5301", - "kind": "string", - "type": { - "$ref": "950" - }, - "value": "de23cd5a-021c-413d-98a5-98752a1f7a3b" - }, - "end1": { - "$id": "5302", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5303", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "856d31e6-e342-a1ce-6273-22ddb77029c6" - }, - "typeName": { - "$id": "5304", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "end2": { - "$id": "5305", - "kind": "model", - "type": { - "$ref": "942" - }, - "value": { - "guid": { - "$id": "5306", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef" - }, - "typeName": { - "$id": "5307", - "kind": "string", - "type": { - "$ref": "946" - }, - "value": "AtlasGlossaryTerm" - } - } - }, - "label": { - "$id": "5308", - "kind": "string", - "type": { - "$ref": "954" - }, - "value": "r:AtlasGlossarySynonym" - }, - "status": { - "$id": "5309", - "kind": "string", - "type": { - "$ref": "36" - }, - "value": "ACTIVE" - }, - "createdBy": { - "$id": "5310", - "kind": "string", - "type": { - "$ref": "940" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5311", - "kind": "string", - "type": { - "$ref": "961" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5312", - "kind": "number", - "type": { - "$ref": "938" - }, - "value": 1553838993803 - }, - "updateTime": { - "$id": "5313", - "kind": "number", - "type": { - "$ref": "959" - }, - "value": 1553838993803 - }, - "version": { - "$id": "5314", - "kind": "number", - "type": { - "$ref": "963" - }, - "value": 0 - } - } - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5315", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the relationship.", - "type": { - "$id": "5316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Relationship.get.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5317", - "kind": "method", - "name": "extendedInfo", - "serializedName": "extendedInfo", - "doc": "Limits whether includes extended information.", - "type": { - "$id": "5318", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Relationship.get.extendedInfo", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5319", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "273" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.Relationship.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "964" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Relationship.get" - }, - { - "$id": "5320", - "kind": "basic", - "name": "delete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete a relationship between entities by its GUID.", - "operation": { - "$id": "5321", - "name": "delete", - "resourceName": "Relationship", - "doc": "Delete a relationship between entities by its GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5322", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the relationship.", - "type": { - "$id": "5323", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.Relationship.delete.guid" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/relationship/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.Relationship.delete", - "decorators": [], - "examples": [ - { - "$id": "5324", - "kind": "http", - "name": "Relationship_Delete", - "description": "Relationship_Delete", - "filePath": "2023-09-01/Relationship_Delete.json", - "parameters": [ - { - "parameter": { - "$ref": "5322" - }, - "value": { - "$id": "5325", - "kind": "string", - "type": { - "$ref": "5323" - }, - "value": "5cf8a9e5-c9fd-abe0-2e8c-d40024263dcb" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5326", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the relationship.", - "type": { - "$id": "5327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.Relationship.delete.guid", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.Relationship.delete" - } - ], - "parameters": [ - { - "$id": "5328", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "5329", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.Relationship", - "apiVersions": [ - "2023-09-01" - ], - "parent": { - "$ref": "1353" - } - }, - { - "$id": "5330", - "kind": "client", - "name": "TypeDefinition", - "namespace": "Azure.Analytics.Purview.DataMap", - "methods": [ - { - "$id": "5331", - "kind": "basic", - "name": "getBusinessMetadataById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the businessMetadata definition for the given guid.", - "operation": { - "$id": "5332", - "name": "getBusinessMetadataById", - "resourceName": "TypeDefinition", - "doc": "Get the businessMetadata definition for the given guid.", - "accessibility": "public", - "parameters": [ - { - "$id": "5333", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "businessMetadata guid", - "type": { - "$id": "5334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.guid" - }, - { - "$id": "5335", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "275" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "967" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/businessmetadatadef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById", - "decorators": [], - "examples": [ - { - "$id": "5336", - "kind": "http", - "name": "Type_GetBusinessMetadataDefByGuid", - "description": "Type_GetBusinessMetadataDefByGuid", - "filePath": "2023-09-01/Type_GetBusinessMetadataDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5333" - }, - "value": { - "$id": "5337", - "kind": "string", - "type": { - "$ref": "5334" - }, - "value": "d8757510-c866-61ba-486f-1afca09f43b8" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "967" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5338", - "kind": "model", - "type": { - "$ref": "967" - }, - "value": { - "category": { - "$id": "5339", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "BUSINESS_METADATA" - }, - "guid": { - "$id": "5340", - "kind": "string", - "type": { - "$ref": "1022" - }, - "value": "d8757510-c866-61ba-486f-1afca09f43b8" - }, - "createdBy": { - "$id": "5341", - "kind": "string", - "type": { - "$ref": "972" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5342", - "kind": "string", - "type": { - "$ref": "1033" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5343", - "kind": "number", - "type": { - "$ref": "970" - }, - "value": 1671545620780 - }, - "updateTime": { - "$id": "5344", - "kind": "number", - "type": { - "$ref": "1031" - }, - "value": 1671545620780 - }, - "version": { - "$id": "5345", - "kind": "number", - "type": { - "$ref": "1035" - }, - "value": 1 - }, - "name": { - "$id": "5346", - "kind": "string", - "type": { - "$ref": "1024" - }, - "value": "Business_Metadata_Type_Name" - }, - "description": { - "$id": "5347", - "kind": "string", - "type": { - "$ref": "1020" - }, - "value": "Business_Metadata_Type_Name" - }, - "typeVersion": { - "$id": "5348", - "kind": "string", - "type": { - "$ref": "1029" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "5349", - "kind": "string", - "type": { - "$ref": "1037" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "5350", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "5351", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5352", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "customAttribute" - }, - "typeName": { - "$id": "5353", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "5354", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5355", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5356", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5357", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5358", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5359", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5360", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "5361", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "maxStrLength": { - "$id": "5362", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "5000" - }, - "isDisabled": { - "$id": "5363", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - }, - "applicableEntityTypes": { - "$id": "5364", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "[\"DataSet\"]" - } - } - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5365", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "businessMetadata guid", - "type": { - "$id": "5366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5367", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "275" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "967" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataById" - }, - { - "$id": "5368", - "kind": "basic", - "name": "getBusinessMetadataByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the businessMetadata definition by it's name (unique).", - "operation": { - "$id": "5369", - "name": "getBusinessMetadataByName", - "resourceName": "TypeDefinition", - "doc": "Get the businessMetadata definition by it's name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5370", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "businessMetadata name", - "type": { - "$id": "5371", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.name" - }, - { - "$id": "5372", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "277" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "967" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/businessmetadatadef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName", - "decorators": [], - "examples": [ - { - "$id": "5373", - "kind": "http", - "name": "Type_GetBusinessMetadataDefByName", - "description": "Type_GetBusinessMetadataDefByName", - "filePath": "2023-09-01/Type_GetBusinessMetadataDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5370" - }, - "value": { - "$id": "5374", - "kind": "string", - "type": { - "$ref": "5371" - }, - "value": "Business_Metadata_Type_Name" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "967" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5375", - "kind": "model", - "type": { - "$ref": "967" - }, - "value": { - "category": { - "$id": "5376", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "BUSINESS_METADATA" - }, - "guid": { - "$id": "5377", - "kind": "string", - "type": { - "$ref": "1022" - }, - "value": "d8757510-c866-61ba-486f-1afca09f43b8" - }, - "createdBy": { - "$id": "5378", - "kind": "string", - "type": { - "$ref": "972" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5379", - "kind": "string", - "type": { - "$ref": "1033" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5380", - "kind": "number", - "type": { - "$ref": "970" - }, - "value": 1671545620780 - }, - "updateTime": { - "$id": "5381", - "kind": "number", - "type": { - "$ref": "1031" - }, - "value": 1671545620780 - }, - "version": { - "$id": "5382", - "kind": "number", - "type": { - "$ref": "1035" - }, - "value": 1 - }, - "name": { - "$id": "5383", - "kind": "string", - "type": { - "$ref": "1024" - }, - "value": "Business_Metadata_Type_Name" - }, - "description": { - "$id": "5384", - "kind": "string", - "type": { - "$ref": "1020" - }, - "value": "Business_Metadata_Type_Name" - }, - "typeVersion": { - "$id": "5385", - "kind": "string", - "type": { - "$ref": "1029" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "5386", - "kind": "string", - "type": { - "$ref": "1037" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "5387", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "5388", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5389", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "customAttribute" - }, - "typeName": { - "$id": "5390", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "5391", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5392", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5393", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5394", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5395", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5396", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5397", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "5398", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "maxStrLength": { - "$id": "5399", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "5000" - }, - "isDisabled": { - "$id": "5400", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - }, - "applicableEntityTypes": { - "$id": "5401", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "[\"DataSet\"]" - } - } - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5402", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "businessMetadata name", - "type": { - "$id": "5403", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5404", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "277" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "967" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getBusinessMetadataByName" - }, - { - "$id": "5405", - "kind": "basic", - "name": "getClassificationById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the classification definition for the given GUID.", - "operation": { - "$id": "5406", - "name": "getClassificationById", - "resourceName": "TypeDefinition", - "doc": "Get the classification definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5407", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the classification.", - "type": { - "$id": "5408", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.guid" - }, - { - "$id": "5409", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "279" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1069" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/classificationdef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById", - "decorators": [], - "examples": [ - { - "$id": "5410", - "kind": "http", - "name": "Type_GetClassificationDefByGuid", - "description": "Type_GetClassificationDefByGuid", - "filePath": "2023-09-01/Type_GetClassificationDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5407" - }, - "value": { - "$id": "5411", - "kind": "string", - "type": { - "$ref": "5408" - }, - "value": "e79878fa-adba-4ee5-adc5-328d8841cd49" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1069" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5412", - "kind": "model", - "type": { - "$ref": "1069" - }, - "value": { - "category": { - "$id": "5413", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "CLASSIFICATION" - }, - "guid": { - "$id": "5414", - "kind": "string", - "type": { - "$ref": "1079" - }, - "value": "e79878fa-adba-4ee5-adc5-328d8841cd49" - }, - "createdBy": { - "$id": "5415", - "kind": "string", - "type": { - "$ref": "1074" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5416", - "kind": "string", - "type": { - "$ref": "1090" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5417", - "kind": "number", - "type": { - "$ref": "1072" - }, - "value": 1553065966043 - }, - "updateTime": { - "$id": "5418", - "kind": "number", - "type": { - "$ref": "1088" - }, - "value": 1553065966043 - }, - "version": { - "$id": "5419", - "kind": "number", - "type": { - "$ref": "1092" - }, - "value": 1 - }, - "name": { - "$id": "5420", - "kind": "string", - "type": { - "$ref": "1081" - }, - "value": "MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER" - }, - "description": { - "$id": "5421", - "kind": "string", - "type": { - "$ref": "1077" - }, - "value": "Canada Social Insurance Number" - }, - "typeVersion": { - "$id": "5422", - "kind": "string", - "type": { - "$ref": "1086" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "5423", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "superTypes": { - "$id": "5424", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "entityTypes": { - "$id": "5425", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "subTypes": { - "$id": "5426", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5427", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the classification.", - "type": { - "$id": "5428", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5429", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "279" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1069" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationById" - }, - { - "$id": "5430", - "kind": "basic", - "name": "getClassificationByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the classification definition by its name (unique).", - "operation": { - "$id": "5431", - "name": "getClassificationByName", - "resourceName": "TypeDefinition", - "doc": "Get the classification definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5432", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the classification.", - "type": { - "$id": "5433", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.name" - }, - { - "$id": "5434", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "281" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1069" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/classificationdef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName", - "decorators": [], - "examples": [ - { - "$id": "5435", - "kind": "http", - "name": "Type_GetClassificationDefByName", - "description": "Type_GetClassificationDefByName", - "filePath": "2023-09-01/Type_GetClassificationDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5432" - }, - "value": { - "$id": "5436", - "kind": "string", - "type": { - "$ref": "5433" - }, - "value": "MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1069" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5437", - "kind": "model", - "type": { - "$ref": "1069" - }, - "value": { - "category": { - "$id": "5438", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "CLASSIFICATION" - }, - "guid": { - "$id": "5439", - "kind": "string", - "type": { - "$ref": "1079" - }, - "value": "e79878fa-adba-4ee5-adc5-328d8841cd49" - }, - "createdBy": { - "$id": "5440", - "kind": "string", - "type": { - "$ref": "1074" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5441", - "kind": "string", - "type": { - "$ref": "1090" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5442", - "kind": "number", - "type": { - "$ref": "1072" - }, - "value": 1553065966043 - }, - "updateTime": { - "$id": "5443", - "kind": "number", - "type": { - "$ref": "1088" - }, - "value": 1553065966043 - }, - "version": { - "$id": "5444", - "kind": "number", - "type": { - "$ref": "1092" - }, - "value": 1 - }, - "name": { - "$id": "5445", - "kind": "string", - "type": { - "$ref": "1081" - }, - "value": "MICROSOFT.GOVERNMENT.CANADA.SOCIAL_INSURANCE_NUMBER" - }, - "description": { - "$id": "5446", - "kind": "string", - "type": { - "$ref": "1077" - }, - "value": "Canada Social Insurance Number" - }, - "typeVersion": { - "$id": "5447", - "kind": "string", - "type": { - "$ref": "1086" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "5448", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "superTypes": { - "$id": "5449", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "entityTypes": { - "$id": "5450", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "subTypes": { - "$id": "5451", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5452", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the classification.", - "type": { - "$id": "5453", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5454", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "281" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1069" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getClassificationByName" - }, - { - "$id": "5455", - "kind": "basic", - "name": "getEntityById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the Entity definition for the given GUID.", - "operation": { - "$id": "5456", - "name": "getEntityById", - "resourceName": "TypeDefinition", - "doc": "Get the Entity definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5457", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "5458", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.guid" - }, - { - "$id": "5459", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "283" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1099" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/entitydef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById", - "decorators": [], - "examples": [ - { - "$id": "5460", - "kind": "http", - "name": "Type_GetEntityDefByGuid", - "description": "Type_GetEntityDefByGuid", - "filePath": "2023-09-01/Type_GetEntityDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5457" - }, - "value": { - "$id": "5461", - "kind": "string", - "type": { - "$ref": "5458" - }, - "value": "4bc54c37-98a8-4de8-9ee8-182610859d43" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1099" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5462", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "category": { - "$id": "5463", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENTITY" - }, - "guid": { - "$id": "5464", - "kind": "string", - "type": { - "$ref": "1109" - }, - "value": "4bc54c37-98a8-4de8-9ee8-182610859d43" - }, - "createdBy": { - "$id": "5465", - "kind": "string", - "type": { - "$ref": "1104" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5466", - "kind": "string", - "type": { - "$ref": "1120" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5467", - "kind": "number", - "type": { - "$ref": "1102" - }, - "value": 1553065960959 - }, - "updateTime": { - "$id": "5468", - "kind": "number", - "type": { - "$ref": "1118" - }, - "value": 1553065960959 - }, - "version": { - "$id": "5469", - "kind": "number", - "type": { - "$ref": "1122" - }, - "value": 1 - }, - "name": { - "$id": "5470", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "DataSet" - }, - "description": { - "$id": "5471", - "kind": "string", - "type": { - "$ref": "1107" - }, - "value": "DataSet" - }, - "typeVersion": { - "$id": "5472", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.1" - }, - "attributeDefs": { - "$id": "5473", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "superTypes": { - "$id": "5474", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "5475", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Asset" - } - ] - }, - "subTypes": { - "$id": "5476", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "5477", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_foreign_key" - }, - { - "$id": "5478", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_datalake_gen1_path" - }, - { - "$id": "5479", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hive_table" - }, - { - "$id": "5480", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "mssql_column" - }, - { - "$id": "5481", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "sqoop_dbdatastore" - }, - { - "$id": "5482", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hbase_column" - }, - { - "$id": "5483", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_sql_table" - }, - { - "$id": "5484", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_instance" - }, - { - "$id": "5485", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_datalake_gen2_path" - }, - { - "$id": "5486", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "jms_topic" - }, - { - "$id": "5487", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "falcon_feed" - }, - { - "$id": "5488", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hbase_table" - }, - { - "$id": "5489", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_table" - }, - { - "$id": "5490", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_column" - }, - { - "$id": "5491", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hbase_column_family" - }, - { - "$id": "5492", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hive_column" - }, - { - "$id": "5493", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_blob_container" - }, - { - "$id": "5494", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_db" - }, - { - "$id": "5495", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "column" - }, - { - "$id": "5496", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_blob_path" - }, - { - "$id": "5497", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "kafka_topic" - }, - { - "$id": "5498", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "tabular_schema" - }, - { - "$id": "5499", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_datalake_gen2_filesystem" - }, - { - "$id": "5500", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_index" - }, - { - "$id": "5501", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_sql_column" - }, - { - "$id": "5502", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "mssql_table" - }, - { - "$id": "5503", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "avro_type" - }, - { - "$id": "5504", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "fs_path" - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5505", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the entity.", - "type": { - "$id": "5506", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5507", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "283" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1099" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityById" - }, - { - "$id": "5508", - "kind": "basic", - "name": "getEntityByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the entity definition by its name (unique).", - "operation": { - "$id": "5509", - "name": "getEntityByName", - "resourceName": "TypeDefinition", - "doc": "Get the entity definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5510", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the entity.", - "type": { - "$id": "5511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.name" - }, - { - "$id": "5512", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "285" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1099" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/entitydef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName", - "decorators": [], - "examples": [ - { - "$id": "5513", - "kind": "http", - "name": "Type_GetEntityDefByName", - "description": "Type_GetEntityDefByName", - "filePath": "2023-09-01/Type_GetEntityDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5510" - }, - "value": { - "$id": "5514", - "kind": "string", - "type": { - "$ref": "5511" - }, - "value": "DataSet" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1099" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5515", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "category": { - "$id": "5516", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENTITY" - }, - "guid": { - "$id": "5517", - "kind": "string", - "type": { - "$ref": "1109" - }, - "value": "4bc54c37-98a8-4de8-9ee8-182610859d43" - }, - "createdBy": { - "$id": "5518", - "kind": "string", - "type": { - "$ref": "1104" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5519", - "kind": "string", - "type": { - "$ref": "1120" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5520", - "kind": "number", - "type": { - "$ref": "1102" - }, - "value": 1553065960959 - }, - "updateTime": { - "$id": "5521", - "kind": "number", - "type": { - "$ref": "1118" - }, - "value": 1553065960959 - }, - "version": { - "$id": "5522", - "kind": "number", - "type": { - "$ref": "1122" - }, - "value": 1 - }, - "name": { - "$id": "5523", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "DataSet" - }, - "description": { - "$id": "5524", - "kind": "string", - "type": { - "$ref": "1107" - }, - "value": "DataSet" - }, - "typeVersion": { - "$id": "5525", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.1" - }, - "attributeDefs": { - "$id": "5526", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "superTypes": { - "$id": "5527", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "5528", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Asset" - } - ] - }, - "subTypes": { - "$id": "5529", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "5530", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_foreign_key" - }, - { - "$id": "5531", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_datalake_gen1_path" - }, - { - "$id": "5532", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hive_table" - }, - { - "$id": "5533", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "mssql_column" - }, - { - "$id": "5534", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "sqoop_dbdatastore" - }, - { - "$id": "5535", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hbase_column" - }, - { - "$id": "5536", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_sql_table" - }, - { - "$id": "5537", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_instance" - }, - { - "$id": "5538", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_datalake_gen2_path" - }, - { - "$id": "5539", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "jms_topic" - }, - { - "$id": "5540", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "falcon_feed" - }, - { - "$id": "5541", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hbase_table" - }, - { - "$id": "5542", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_table" - }, - { - "$id": "5543", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_column" - }, - { - "$id": "5544", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hbase_column_family" - }, - { - "$id": "5545", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "hive_column" - }, - { - "$id": "5546", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_blob_container" - }, - { - "$id": "5547", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_db" - }, - { - "$id": "5548", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "column" - }, - { - "$id": "5549", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_blob_path" - }, - { - "$id": "5550", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "kafka_topic" - }, - { - "$id": "5551", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "tabular_schema" - }, - { - "$id": "5552", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_datalake_gen2_filesystem" - }, - { - "$id": "5553", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "rdbms_index" - }, - { - "$id": "5554", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_sql_column" - }, - { - "$id": "5555", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "mssql_table" - }, - { - "$id": "5556", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "avro_type" - }, - { - "$id": "5557", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "fs_path" - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5558", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the entity.", - "type": { - "$id": "5559", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5560", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "285" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1099" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEntityByName" - }, - { - "$id": "5561", - "kind": "basic", - "name": "getEnumById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the enum definition for the given GUID.", - "operation": { - "$id": "5562", - "name": "getEnumById", - "resourceName": "TypeDefinition", - "doc": "Get the enum definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5563", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the enum.", - "type": { - "$id": "5564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.guid" - }, - { - "$id": "5565", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "287" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1158" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/enumdef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById", - "decorators": [], - "examples": [ - { - "$id": "5566", - "kind": "http", - "name": "Type_GetEnumDefByGuid", - "description": "Type_GetEnumDefByGuid", - "filePath": "2023-09-01/Type_GetEnumDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5563" - }, - "value": { - "$id": "5567", - "kind": "string", - "type": { - "$ref": "5564" - }, - "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1158" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5568", - "kind": "model", - "type": { - "$ref": "1158" - }, - "value": { - "category": { - "$id": "5569", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "5570", - "kind": "string", - "type": { - "$ref": "1168" - }, - "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" - }, - "createdBy": { - "$id": "5571", - "kind": "string", - "type": { - "$ref": "1163" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5572", - "kind": "string", - "type": { - "$ref": "1179" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5573", - "kind": "number", - "type": { - "$ref": "1161" - }, - "value": 1553065968102 - }, - "updateTime": { - "$id": "5574", - "kind": "number", - "type": { - "$ref": "1177" - }, - "value": 1553065968102 - }, - "version": { - "$id": "5575", - "kind": "number", - "type": { - "$ref": "1181" - }, - "value": 1 - }, - "name": { - "$id": "5576", - "kind": "string", - "type": { - "$ref": "1170" - }, - "value": "hive_principal_type" - }, - "description": { - "$id": "5577", - "kind": "string", - "type": { - "$ref": "1166" - }, - "value": "hive_principal_type" - }, - "typeVersion": { - "$id": "5578", - "kind": "string", - "type": { - "$ref": "1175" - }, - "value": "1.0" - }, - "elementDefs": { - "$id": "5579", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "5580", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5581", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "USER" - }, - "ordinal": { - "$id": "5582", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "5583", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5584", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "ROLE" - }, - "ordinal": { - "$id": "5585", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "5586", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5587", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "GROUP" - }, - "ordinal": { - "$id": "5588", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5589", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the enum.", - "type": { - "$id": "5590", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5591", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "287" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1158" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumById" - }, - { - "$id": "5592", - "kind": "basic", - "name": "getEnumByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the enum definition by its name (unique).", - "operation": { - "$id": "5593", - "name": "getEnumByName", - "resourceName": "TypeDefinition", - "doc": "Get the enum definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5594", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the enum.", - "type": { - "$id": "5595", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.name" - }, - { - "$id": "5596", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "289" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1158" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/enumdef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName", - "decorators": [], - "examples": [ - { - "$id": "5597", - "kind": "http", - "name": "Type_GetEnumDefByName", - "description": "Type_GetEnumDefByName", - "filePath": "2023-09-01/Type_GetEnumDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5594" - }, - "value": { - "$id": "5598", - "kind": "string", - "type": { - "$ref": "5595" - }, - "value": "hive_principal_type" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1158" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5599", - "kind": "model", - "type": { - "$ref": "1158" - }, - "value": { - "category": { - "$id": "5600", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "5601", - "kind": "string", - "type": { - "$ref": "1168" - }, - "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" - }, - "createdBy": { - "$id": "5602", - "kind": "string", - "type": { - "$ref": "1163" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5603", - "kind": "string", - "type": { - "$ref": "1179" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5604", - "kind": "number", - "type": { - "$ref": "1161" - }, - "value": 1553065968102 - }, - "updateTime": { - "$id": "5605", - "kind": "number", - "type": { - "$ref": "1177" - }, - "value": 1553065968102 - }, - "version": { - "$id": "5606", - "kind": "number", - "type": { - "$ref": "1181" - }, - "value": 1 - }, - "name": { - "$id": "5607", - "kind": "string", - "type": { - "$ref": "1170" - }, - "value": "hive_principal_type" - }, - "description": { - "$id": "5608", - "kind": "string", - "type": { - "$ref": "1166" - }, - "value": "hive_principal_type" - }, - "typeVersion": { - "$id": "5609", - "kind": "string", - "type": { - "$ref": "1175" - }, - "value": "1.0" - }, - "elementDefs": { - "$id": "5610", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "5611", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5612", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "USER" - }, - "ordinal": { - "$id": "5613", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "5614", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5615", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "ROLE" - }, - "ordinal": { - "$id": "5616", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "5617", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5618", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "GROUP" - }, - "ordinal": { - "$id": "5619", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5620", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the enum.", - "type": { - "$id": "5621", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5622", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "289" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1158" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getEnumByName" - }, - { - "$id": "5623", - "kind": "basic", - "name": "getRelationshipById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the relationship definition for the given GUID.", - "operation": { - "$id": "5624", - "name": "getRelationshipById", - "resourceName": "TypeDefinition", - "doc": "Get the relationship definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5625", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the relationship.", - "type": { - "$id": "5626", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.guid" - }, - { - "$id": "5627", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "291" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/relationshipdef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById", - "decorators": [], - "examples": [ - { - "$id": "5628", - "kind": "http", - "name": "Type_GetRelationshipDefByGuid", - "description": "Type_GetRelationshipDefByGuid", - "filePath": "2023-09-01/Type_GetRelationshipDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5625" - }, - "value": { - "$id": "5629", - "kind": "string", - "type": { - "$ref": "5626" - }, - "value": "695edde1-2782-4a3c-841b-0b3aba25fe45" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5630", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "category": { - "$id": "5631", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "RELATIONSHIP" - }, - "guid": { - "$id": "5632", - "kind": "string", - "type": { - "$ref": "1205" - }, - "value": "695edde1-2782-4a3c-841b-0b3aba25fe45" - }, - "createdBy": { - "$id": "5633", - "kind": "string", - "type": { - "$ref": "1200" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5634", - "kind": "string", - "type": { - "$ref": "1216" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5635", - "kind": "number", - "type": { - "$ref": "1198" - }, - "value": 1553065976797 - }, - "updateTime": { - "$id": "5636", - "kind": "number", - "type": { - "$ref": "1214" - }, - "value": 1553065976797 - }, - "version": { - "$id": "5637", - "kind": "number", - "type": { - "$ref": "1218" - }, - "value": 1 - }, - "name": { - "$id": "5638", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "storm_topology_nodes" - }, - "description": { - "$id": "5639", - "kind": "string", - "type": { - "$ref": "1203" - }, - "value": "storm_topology_nodes" - }, - "typeVersion": { - "$id": "5640", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "5641", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "relationshipCategory": { - "$id": "5642", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "ASSOCIATION" - }, - "endDef1": { - "$id": "5643", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "5644", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "storm_topology" - }, - "name": { - "$id": "5645", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "nodes" - }, - "isContainer": { - "$id": "5646", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "5647", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "5648", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "5649", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "5650", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "storm_node" - }, - "name": { - "$id": "5651", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "topolgies" - }, - "isContainer": { - "$id": "5652", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "5653", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "5654", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": false - } - } - }, - "relationshipLabel": { - "$id": "5655", - "kind": "string", - "type": { - "$ref": "1238" - }, - "value": "r:storm_topology_nodes" - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5656", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the relationship.", - "type": { - "$id": "5657", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5658", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "291" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1195" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipById" - }, - { - "$id": "5659", - "kind": "basic", - "name": "getRelationshipByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the relationship definition by its name (unique).", - "operation": { - "$id": "5660", - "name": "getRelationshipByName", - "resourceName": "TypeDefinition", - "doc": "Get the relationship definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5661", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the relationship.", - "type": { - "$id": "5662", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.name" - }, - { - "$id": "5663", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "293" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/relationshipdef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName", - "decorators": [], - "examples": [ - { - "$id": "5664", - "kind": "http", - "name": "Type_GetRelationshipDefByName", - "description": "Type_GetRelationshipDefByName", - "filePath": "2023-09-01/Type_GetRelationshipDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5661" - }, - "value": { - "$id": "5665", - "kind": "string", - "type": { - "$ref": "5662" - }, - "value": "storm_topology_nodes" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5666", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "category": { - "$id": "5667", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "RELATIONSHIP" - }, - "guid": { - "$id": "5668", - "kind": "string", - "type": { - "$ref": "1205" - }, - "value": "695edde1-2782-4a3c-841b-0b3aba25fe45" - }, - "createdBy": { - "$id": "5669", - "kind": "string", - "type": { - "$ref": "1200" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5670", - "kind": "string", - "type": { - "$ref": "1216" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5671", - "kind": "number", - "type": { - "$ref": "1198" - }, - "value": 1553065976797 - }, - "updateTime": { - "$id": "5672", - "kind": "number", - "type": { - "$ref": "1214" - }, - "value": 1553065976797 - }, - "version": { - "$id": "5673", - "kind": "number", - "type": { - "$ref": "1218" - }, - "value": 1 - }, - "name": { - "$id": "5674", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "storm_topology_nodes" - }, - "description": { - "$id": "5675", - "kind": "string", - "type": { - "$ref": "1203" - }, - "value": "storm_topology_nodes" - }, - "typeVersion": { - "$id": "5676", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "5677", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "relationshipCategory": { - "$id": "5678", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "ASSOCIATION" - }, - "endDef1": { - "$id": "5679", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "5680", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "storm_topology" - }, - "name": { - "$id": "5681", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "nodes" - }, - "isContainer": { - "$id": "5682", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "5683", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "5684", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "5685", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "5686", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "storm_node" - }, - "name": { - "$id": "5687", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "topolgies" - }, - "isContainer": { - "$id": "5688", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "5689", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "5690", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": false - } - } - }, - "relationshipLabel": { - "$id": "5691", - "kind": "string", - "type": { - "$ref": "1238" - }, - "value": "r:storm_topology_nodes" - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5692", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the relationship.", - "type": { - "$id": "5693", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5694", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "293" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1195" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getRelationshipByName" - }, - { - "$id": "5695", - "kind": "basic", - "name": "getStructById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the struct definition for the given GUID.", - "operation": { - "$id": "5696", - "name": "getStructById", - "resourceName": "TypeDefinition", - "doc": "Get the struct definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5697", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the struct.", - "type": { - "$id": "5698", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.guid" - }, - { - "$id": "5699", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "295" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1239" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/structdef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById", - "decorators": [], - "examples": [ - { - "$id": "5700", - "kind": "http", - "name": "Type_GetStructDefByGuid", - "description": "Type_GetStructDefByGuid", - "filePath": "2023-09-01/Type_GetStructDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5697" - }, - "value": { - "$id": "5701", - "kind": "string", - "type": { - "$ref": "5698" - }, - "value": "f1571b6e-ad08-4040-a9a7-c30ed935d437" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1239" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5702", - "kind": "model", - "type": { - "$ref": "1239" - }, - "value": { - "category": { - "$id": "5703", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "STRUCT" - }, - "guid": { - "$id": "5704", - "kind": "string", - "type": { - "$ref": "1249" - }, - "value": "f1571b6e-ad08-4040-a9a7-c30ed935d437" - }, - "createdBy": { - "$id": "5705", - "kind": "string", - "type": { - "$ref": "1244" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5706", - "kind": "string", - "type": { - "$ref": "1260" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5707", - "kind": "number", - "type": { - "$ref": "1242" - }, - "value": 1553065968145 - }, - "updateTime": { - "$id": "5708", - "kind": "number", - "type": { - "$ref": "1258" - }, - "value": 1553065968145 - }, - "version": { - "$id": "5709", - "kind": "number", - "type": { - "$ref": "1262" - }, - "value": 1 - }, - "name": { - "$id": "5710", - "kind": "string", - "type": { - "$ref": "1251" - }, - "value": "hive_order" - }, - "description": { - "$id": "5711", - "kind": "string", - "type": { - "$ref": "1247" - }, - "value": "hive_order" - }, - "typeVersion": { - "$id": "5712", - "kind": "string", - "type": { - "$ref": "1256" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "5713", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "5714", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5715", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "order" - }, - "typeName": { - "$id": "5716", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "int" - }, - "isOptional": { - "$id": "5717", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": false - }, - "cardinality": { - "$id": "5718", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5719", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 1 - }, - "valuesMaxCount": { - "$id": "5720", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5721", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5722", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5723", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "5724", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5725", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "col" - }, - "typeName": { - "$id": "5726", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "5727", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": false - }, - "cardinality": { - "$id": "5728", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5729", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 1 - }, - "valuesMaxCount": { - "$id": "5730", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5731", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5732", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5733", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5734", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the struct.", - "type": { - "$id": "5735", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5736", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "295" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1239" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructById" - }, - { - "$id": "5737", - "kind": "basic", - "name": "getStructByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the struct definition by its name (unique).", - "operation": { - "$id": "5738", - "name": "getStructByName", - "resourceName": "TypeDefinition", - "doc": "Get the struct definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5739", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the struct.", - "type": { - "$id": "5740", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.name" - }, - { - "$id": "5741", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "297" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1239" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/structdef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName", - "decorators": [], - "examples": [ - { - "$id": "5742", - "kind": "http", - "name": "Type_GetStructDefByName", - "description": "Type_GetStructDefByName", - "filePath": "2023-09-01/Type_GetStructDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5739" - }, - "value": { - "$id": "5743", - "kind": "string", - "type": { - "$ref": "5740" - }, - "value": "hive_order" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1239" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5744", - "kind": "model", - "type": { - "$ref": "1239" - }, - "value": { - "category": { - "$id": "5745", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "STRUCT" - }, - "guid": { - "$id": "5746", - "kind": "string", - "type": { - "$ref": "1249" - }, - "value": "f1571b6e-ad08-4040-a9a7-c30ed935d437" - }, - "createdBy": { - "$id": "5747", - "kind": "string", - "type": { - "$ref": "1244" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5748", - "kind": "string", - "type": { - "$ref": "1260" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5749", - "kind": "number", - "type": { - "$ref": "1242" - }, - "value": 1553065968145 - }, - "updateTime": { - "$id": "5750", - "kind": "number", - "type": { - "$ref": "1258" - }, - "value": 1553065968145 - }, - "version": { - "$id": "5751", - "kind": "number", - "type": { - "$ref": "1262" - }, - "value": 1 - }, - "name": { - "$id": "5752", - "kind": "string", - "type": { - "$ref": "1251" - }, - "value": "hive_order" - }, - "description": { - "$id": "5753", - "kind": "string", - "type": { - "$ref": "1247" - }, - "value": "hive_order" - }, - "typeVersion": { - "$id": "5754", - "kind": "string", - "type": { - "$ref": "1256" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "5755", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "5756", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5757", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "order" - }, - "typeName": { - "$id": "5758", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "int" - }, - "isOptional": { - "$id": "5759", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": false - }, - "cardinality": { - "$id": "5760", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5761", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 1 - }, - "valuesMaxCount": { - "$id": "5762", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5763", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5764", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5765", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "5766", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5767", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "col" - }, - "typeName": { - "$id": "5768", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "5769", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": false - }, - "cardinality": { - "$id": "5770", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5771", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 1 - }, - "valuesMaxCount": { - "$id": "5772", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5773", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5774", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5775", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5776", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the struct.", - "type": { - "$id": "5777", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5778", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "297" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1239" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getStructByName" - }, - { - "$id": "5779", - "kind": "basic", - "name": "getById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the type definition for the given GUID.", - "operation": { - "$id": "5780", - "name": "getById", - "resourceName": "TypeDefinition", - "doc": "Get the type definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "5781", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the type.", - "type": { - "$id": "5782", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.guid" - }, - { - "$id": "5783", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "299" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1266" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById", - "decorators": [], - "examples": [ - { - "$id": "5784", - "kind": "http", - "name": "Type_GetByGuid", - "description": "Type_GetByGuid", - "filePath": "2023-09-01/Type_GetByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "5781" - }, - "value": { - "$id": "5785", - "kind": "string", - "type": { - "$ref": "5782" - }, - "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1266" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5786", - "kind": "model", - "type": { - "$ref": "1266" - }, - "value": { - "category": { - "$id": "5787", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "5788", - "kind": "string", - "type": { - "$ref": "1276" - }, - "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" - }, - "createdBy": { - "$id": "5789", - "kind": "string", - "type": { - "$ref": "1271" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5790", - "kind": "string", - "type": { - "$ref": "1287" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5791", - "kind": "number", - "type": { - "$ref": "1269" - }, - "value": 1604728877305 - }, - "updateTime": { - "$id": "5792", - "kind": "number", - "type": { - "$ref": "1285" - }, - "value": 1604728877305 - }, - "version": { - "$id": "5793", - "kind": "number", - "type": { - "$ref": "1289" - }, - "value": 1 - }, - "name": { - "$id": "5794", - "kind": "string", - "type": { - "$ref": "1278" - }, - "value": "glossary_term_status_value" - }, - "description": { - "$id": "5795", - "kind": "string", - "type": { - "$ref": "1274" - }, - "value": "glossary_term_status_value" - }, - "typeVersion": { - "$id": "5796", - "kind": "string", - "type": { - "$ref": "1283" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "5797", - "kind": "string", - "type": { - "$ref": "1291" - }, - "value": "1" - }, - "elementDefs": { - "$id": "5798", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "5799", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5800", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Approved" - }, - "ordinal": { - "$id": "5801", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 0 - } - } - }, - { - "$id": "5802", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5803", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Alert" - }, - "ordinal": { - "$id": "5804", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "5805", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5806", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Expired" - }, - "ordinal": { - "$id": "5807", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "5808", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5809", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Draft" - }, - "ordinal": { - "$id": "5810", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5811", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the type.", - "type": { - "$id": "5812", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5813", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "299" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1266" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getById" - }, - { - "$id": "5814", - "kind": "basic", - "name": "getByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the type definition by its name (unique).", - "operation": { - "$id": "5815", - "name": "getByName", - "resourceName": "TypeDefinition", - "doc": "Get the type definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "5816", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the type.", - "type": { - "$id": "5817", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.name" - }, - { - "$id": "5818", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "301" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1266" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName", - "decorators": [], - "examples": [ - { - "$id": "5819", - "kind": "http", - "name": "Type_GetByName", - "description": "Type_GetByName", - "filePath": "2023-09-01/Type_GetByName.json", - "parameters": [ - { - "parameter": { - "$ref": "5816" - }, - "value": { - "$id": "5820", - "kind": "string", - "type": { - "$ref": "5817" - }, - "value": "glossary_term_status_value" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1266" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5821", - "kind": "model", - "type": { - "$ref": "1266" - }, - "value": { - "category": { - "$id": "5822", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "5823", - "kind": "string", - "type": { - "$ref": "1276" - }, - "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" - }, - "createdBy": { - "$id": "5824", - "kind": "string", - "type": { - "$ref": "1271" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5825", - "kind": "string", - "type": { - "$ref": "1287" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5826", - "kind": "number", - "type": { - "$ref": "1269" - }, - "value": 1604728877305 - }, - "updateTime": { - "$id": "5827", - "kind": "number", - "type": { - "$ref": "1285" - }, - "value": 1604728877305 - }, - "version": { - "$id": "5828", - "kind": "number", - "type": { - "$ref": "1289" - }, - "value": 1 - }, - "name": { - "$id": "5829", - "kind": "string", - "type": { - "$ref": "1278" - }, - "value": "glossary_term_status_value" - }, - "description": { - "$id": "5830", - "kind": "string", - "type": { - "$ref": "1274" - }, - "value": "glossary_term_status_value" - }, - "typeVersion": { - "$id": "5831", - "kind": "string", - "type": { - "$ref": "1283" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "5832", - "kind": "string", - "type": { - "$ref": "1291" - }, - "value": "1" - }, - "elementDefs": { - "$id": "5833", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "5834", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5835", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Approved" - }, - "ordinal": { - "$id": "5836", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 0 - } - } - }, - { - "$id": "5837", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5838", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Alert" - }, - "ordinal": { - "$id": "5839", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "5840", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5841", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Expired" - }, - "ordinal": { - "$id": "5842", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "5843", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5844", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Draft" - }, - "ordinal": { - "$id": "5845", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5846", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the type.", - "type": { - "$id": "5847", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "5848", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "301" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1266" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getByName" - }, - { - "$id": "5849", - "kind": "basic", - "name": "delete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete API for type identified by its name.", - "operation": { - "$id": "5850", - "name": "delete", - "resourceName": "TypeDefinition", - "doc": "Delete API for type identified by its name.", - "accessibility": "public", - "parameters": [ - { - "$id": "5851", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The name of the type.", - "type": { - "$id": "5852", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete.name" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete", - "decorators": [], - "examples": [ - { - "$id": "5853", - "kind": "http", - "name": "Type_Delete", - "description": "Type_Delete", - "filePath": "2023-09-01/Type_Delete.json", - "parameters": [ - { - "parameter": { - "$ref": "5851" - }, - "value": { - "$id": "5854", - "kind": "string", - "type": { - "$ref": "5852" - }, - "value": "hive_order" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "5855", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The name of the type.", - "type": { - "$id": "5856", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete.name", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.delete" - }, - { - "$id": "5857", - "kind": "basic", - "name": "get", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "List all type definitions in bulk.", - "operation": { - "$id": "5858", - "name": "get", - "resourceName": "TypeDefinition", - "doc": "List all type definitions in bulk.", - "accessibility": "public", - "parameters": [ - { - "$id": "5859", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "5860", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "5861", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.apiVersion", - "readOnly": false - }, - { - "$id": "5862", - "kind": "query", - "name": "includeTermTemplate", - "serializedName": "includeTermTemplate", - "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", - "type": { - "$id": "5863", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.includeTermTemplate", - "readOnly": false - }, - { - "$id": "5864", - "kind": "query", - "name": "type", - "serializedName": "type", - "doc": "Typedef name as search filter when get typedefs.", - "type": { - "$ref": "49" - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.type", - "readOnly": false - }, - { - "$id": "5865", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "303" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedefs", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get", - "decorators": [], - "examples": [ - { - "$id": "5866", - "kind": "http", - "name": "Type_List", - "description": "Type_List", - "filePath": "2023-09-01/Type_List.json", - "parameters": [ - { - "parameter": { - "$ref": "5862" - }, - "value": { - "$id": "5867", - "kind": "boolean", - "type": { - "$ref": "5863" - }, - "value": true - } - }, - { - "parameter": { - "$ref": "5859" - }, - "value": { - "$id": "5868", - "kind": "string", - "type": { - "$ref": "5860" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "5869", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "5870", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [ - { - "$id": "5871", - "kind": "model", - "type": { - "$ref": "1158" - }, - "value": { - "category": { - "$id": "5872", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "5873", - "kind": "string", - "type": { - "$ref": "1168" - }, - "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" - }, - "createdBy": { - "$id": "5874", - "kind": "string", - "type": { - "$ref": "1163" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5875", - "kind": "string", - "type": { - "$ref": "1179" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5876", - "kind": "number", - "type": { - "$ref": "1161" - }, - "value": 1604728877305 - }, - "updateTime": { - "$id": "5877", - "kind": "number", - "type": { - "$ref": "1177" - }, - "value": 1604728877305 - }, - "version": { - "$id": "5878", - "kind": "number", - "type": { - "$ref": "1181" - }, - "value": 1 - }, - "name": { - "$id": "5879", - "kind": "string", - "type": { - "$ref": "1170" - }, - "value": "glossary_term_status_value" - }, - "description": { - "$id": "5880", - "kind": "string", - "type": { - "$ref": "1166" - }, - "value": "glossary_term_status_value" - }, - "typeVersion": { - "$id": "5881", - "kind": "string", - "type": { - "$ref": "1175" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "5882", - "kind": "string", - "type": { - "$ref": "1183" - }, - "value": "1" - }, - "elementDefs": { - "$id": "5883", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "5884", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5885", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Approved" - }, - "ordinal": { - "$id": "5886", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 0 - } - } - }, - { - "$id": "5887", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5888", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Alert" - }, - "ordinal": { - "$id": "5889", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "5890", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5891", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Expired" - }, - "ordinal": { - "$id": "5892", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "5893", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "5894", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Draft" - }, - "ordinal": { - "$id": "5895", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - } - ] - } - } - } - ] - }, - "structDefs": { - "$id": "5896", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [ - { - "$id": "5897", - "kind": "model", - "type": { - "$ref": "1239" - }, - "value": { - "category": { - "$id": "5898", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "STRUCT" - }, - "guid": { - "$id": "5899", - "kind": "string", - "type": { - "$ref": "1249" - }, - "value": "a8892bd7-59d6-47d8-b80d-ba4c7631098f" - }, - "createdBy": { - "$id": "5900", - "kind": "string", - "type": { - "$ref": "1244" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5901", - "kind": "string", - "type": { - "$ref": "1260" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5902", - "kind": "number", - "type": { - "$ref": "1242" - }, - "value": 1604729507664 - }, - "updateTime": { - "$id": "5903", - "kind": "number", - "type": { - "$ref": "1258" - }, - "value": 1604729507664 - }, - "version": { - "$id": "5904", - "kind": "number", - "type": { - "$ref": "1262" - }, - "value": 1 - }, - "name": { - "$id": "5905", - "kind": "string", - "type": { - "$ref": "1251" - }, - "value": "blob_soft_deleted_state" - }, - "description": { - "$id": "5906", - "kind": "string", - "type": { - "$ref": "1247" - }, - "value": "blob_soft_deleted_state" - }, - "typeVersion": { - "$id": "5907", - "kind": "string", - "type": { - "$ref": "1256" - }, - "value": "1.0" - }, - "serviceType": { - "$id": "5908", - "kind": "string", - "type": { - "$ref": "1254" - }, - "value": "Azure Blob Storage" - }, - "lastModifiedTS": { - "$id": "5909", - "kind": "string", - "type": { - "$ref": "1264" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "5910", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "5911", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5912", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "deleted" - }, - "typeName": { - "$id": "5913", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "boolean" - }, - "isOptional": { - "$id": "5914", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5915", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5916", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5917", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5918", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5919", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5920", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "5921", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5922", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "deletedTime" - }, - "typeName": { - "$id": "5923", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "date" - }, - "isOptional": { - "$id": "5924", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5925", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5926", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5927", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5928", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5929", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5930", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "5931", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5932", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "remainingRetentionDays" - }, - "typeName": { - "$id": "5933", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "long" - }, - "isOptional": { - "$id": "5934", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5935", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5936", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5937", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5938", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5939", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5940", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - } - } - } - ] - }, - "classificationDefs": { - "$id": "5941", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [ - { - "$id": "5942", - "kind": "model", - "type": { - "$ref": "1069" - }, - "value": { - "category": { - "$id": "5943", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "CLASSIFICATION" - }, - "guid": { - "$id": "5944", - "kind": "string", - "type": { - "$ref": "1079" - }, - "value": "bd97460e-e5db-4701-8158-5b4062cf8a10" - }, - "createdBy": { - "$id": "5945", - "kind": "string", - "type": { - "$ref": "1074" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5946", - "kind": "string", - "type": { - "$ref": "1090" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5947", - "kind": "number", - "type": { - "$ref": "1072" - }, - "value": 1604730971448 - }, - "updateTime": { - "$id": "5948", - "kind": "number", - "type": { - "$ref": "1088" - }, - "value": 1604730971448 - }, - "version": { - "$id": "5949", - "kind": "number", - "type": { - "$ref": "1092" - }, - "value": 1 - }, - "name": { - "$id": "5950", - "kind": "string", - "type": { - "$ref": "1081" - }, - "value": "MICROSOFT.GOVERNMENT.CHILE.CDI_NUMBER" - }, - "description": { - "$id": "5951", - "kind": "string", - "type": { - "$ref": "1077" - }, - "value": "Chile Identity Card Number" - }, - "typeVersion": { - "$id": "5952", - "kind": "string", - "type": { - "$ref": "1086" - }, - "value": "1.0" - }, - "options": { - "$id": "5953", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "displayName": { - "$id": "5954", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "Chile Identity Card Number" - } - } - }, - "attributeDefs": { - "$id": "5955", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "superTypes": { - "$id": "5956", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "entityTypes": { - "$id": "5957", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "subTypes": { - "$id": "5958", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - ] - }, - "entityDefs": { - "$id": "5959", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [ - { - "$id": "5960", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "category": { - "$id": "5961", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENTITY" - }, - "guid": { - "$id": "5962", - "kind": "string", - "type": { - "$ref": "1109" - }, - "value": "7c53da5d-2797-4e8a-9b89-dd9b3b26ffa8" - }, - "createdBy": { - "$id": "5963", - "kind": "string", - "type": { - "$ref": "1104" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "5964", - "kind": "string", - "type": { - "$ref": "1120" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "5965", - "kind": "number", - "type": { - "$ref": "1102" - }, - "value": 1604730605047 - }, - "updateTime": { - "$id": "5966", - "kind": "number", - "type": { - "$ref": "1118" - }, - "value": 1604730605047 - }, - "version": { - "$id": "5967", - "kind": "number", - "type": { - "$ref": "1122" - }, - "value": 1 - }, - "name": { - "$id": "5968", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "sap_ecc_data_element" - }, - "description": { - "$id": "5969", - "kind": "string", - "type": { - "$ref": "1107" - }, - "value": "sap_ecc_data_element" - }, - "typeVersion": { - "$id": "5970", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "serviceType": { - "$id": "5971", - "kind": "string", - "type": { - "$ref": "1114" - }, - "value": "SAP ECC" - }, - "lastModifiedTS": { - "$id": "5972", - "kind": "string", - "type": { - "$ref": "1124" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "5973", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "5974", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5975", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "dataType" - }, - "typeName": { - "$id": "5976", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "5977", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5978", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5979", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5980", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5981", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5982", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5983", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "5984", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5985", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "length" - }, - "typeName": { - "$id": "5986", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "int" - }, - "isOptional": { - "$id": "5987", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5988", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5989", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "5990", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "5991", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "5992", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "5993", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "5994", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "5995", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "decimalPlaces" - }, - "typeName": { - "$id": "5996", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "int" - }, - "isOptional": { - "$id": "5997", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "5998", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "5999", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6000", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6001", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6002", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6003", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "6004", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6005", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "documentation" - }, - "typeName": { - "$id": "6006", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6007", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6008", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6009", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6010", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6011", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6012", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6013", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - }, - "superTypes": { - "$id": "6014", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6015", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "Asset" - } - ] - }, - "subTypes": { - "$id": "6016", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - }, - "relationshipAttributeDefs": { - "$id": "6017", - "kind": "array", - "type": { - "$ref": "1129" - }, - "value": [ - { - "$id": "6018", - "kind": "model", - "type": { - "$ref": "1130" - }, - "value": { - "name": { - "$id": "6019", - "kind": "string", - "type": { - "$ref": "1146" - }, - "value": "package" - }, - "typeName": { - "$id": "6020", - "kind": "string", - "type": { - "$ref": "1149" - }, - "value": "sap_ecc_package" - }, - "isOptional": { - "$id": "6021", - "kind": "boolean", - "type": { - "$ref": "1142" - }, - "value": false - }, - "cardinality": { - "$id": "6022", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6023", - "kind": "number", - "type": { - "$ref": "1153" - }, - "value": -1 - }, - "valuesMaxCount": { - "$id": "6024", - "kind": "number", - "type": { - "$ref": "1151" - }, - "value": -1 - }, - "isUnique": { - "$id": "6025", - "kind": "boolean", - "type": { - "$ref": "1144" - }, - "value": false - }, - "isIndexable": { - "$id": "6026", - "kind": "boolean", - "type": { - "$ref": "1140" - }, - "value": false - }, - "includeInNotification": { - "$id": "6027", - "kind": "boolean", - "type": { - "$ref": "1138" - }, - "value": false - }, - "relationshipTypeName": { - "$id": "6028", - "kind": "string", - "type": { - "$ref": "1157" - }, - "value": "sap_ecc_package_data_elements" - }, - "isLegacyAttribute": { - "$id": "6029", - "kind": "boolean", - "type": { - "$ref": "1155" - }, - "value": false - } - } - }, - { - "$id": "6030", - "kind": "model", - "type": { - "$ref": "1130" - }, - "value": { - "name": { - "$id": "6031", - "kind": "string", - "type": { - "$ref": "1146" - }, - "value": "table_fields" - }, - "typeName": { - "$id": "6032", - "kind": "string", - "type": { - "$ref": "1149" - }, - "value": "array" - }, - "isOptional": { - "$id": "6033", - "kind": "boolean", - "type": { - "$ref": "1142" - }, - "value": true - }, - "cardinality": { - "$id": "6034", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6035", - "kind": "number", - "type": { - "$ref": "1153" - }, - "value": -1 - }, - "valuesMaxCount": { - "$id": "6036", - "kind": "number", - "type": { - "$ref": "1151" - }, - "value": -1 - }, - "isUnique": { - "$id": "6037", - "kind": "boolean", - "type": { - "$ref": "1144" - }, - "value": false - }, - "isIndexable": { - "$id": "6038", - "kind": "boolean", - "type": { - "$ref": "1140" - }, - "value": false - }, - "includeInNotification": { - "$id": "6039", - "kind": "boolean", - "type": { - "$ref": "1138" - }, - "value": false - }, - "relationshipTypeName": { - "$id": "6040", - "kind": "string", - "type": { - "$ref": "1157" - }, - "value": "sap_ecc_table_field_data_element" - }, - "isLegacyAttribute": { - "$id": "6041", - "kind": "boolean", - "type": { - "$ref": "1155" - }, - "value": false - } - } - }, - { - "$id": "6042", - "kind": "model", - "type": { - "$ref": "1130" - }, - "value": { - "name": { - "$id": "6043", - "kind": "string", - "type": { - "$ref": "1146" - }, - "value": "domain" - }, - "typeName": { - "$id": "6044", - "kind": "string", - "type": { - "$ref": "1149" - }, - "value": "sap_ecc_domain" - }, - "isOptional": { - "$id": "6045", - "kind": "boolean", - "type": { - "$ref": "1142" - }, - "value": true - }, - "cardinality": { - "$id": "6046", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6047", - "kind": "number", - "type": { - "$ref": "1153" - }, - "value": -1 - }, - "valuesMaxCount": { - "$id": "6048", - "kind": "number", - "type": { - "$ref": "1151" - }, - "value": -1 - }, - "isUnique": { - "$id": "6049", - "kind": "boolean", - "type": { - "$ref": "1144" - }, - "value": false - }, - "isIndexable": { - "$id": "6050", - "kind": "boolean", - "type": { - "$ref": "1140" - }, - "value": false - }, - "includeInNotification": { - "$id": "6051", - "kind": "boolean", - "type": { - "$ref": "1138" - }, - "value": false - }, - "relationshipTypeName": { - "$id": "6052", - "kind": "string", - "type": { - "$ref": "1157" - }, - "value": "sap_ecc_data_element_domain" - }, - "isLegacyAttribute": { - "$id": "6053", - "kind": "boolean", - "type": { - "$ref": "1155" - }, - "value": false - } - } - }, - { - "$id": "6054", - "kind": "model", - "type": { - "$ref": "1130" - }, - "value": { - "name": { - "$id": "6055", - "kind": "string", - "type": { - "$ref": "1146" - }, - "value": "meanings" - }, - "typeName": { - "$id": "6056", - "kind": "string", - "type": { - "$ref": "1149" - }, - "value": "array" - }, - "isOptional": { - "$id": "6057", - "kind": "boolean", - "type": { - "$ref": "1142" - }, - "value": true - }, - "cardinality": { - "$id": "6058", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6059", - "kind": "number", - "type": { - "$ref": "1153" - }, - "value": -1 - }, - "valuesMaxCount": { - "$id": "6060", - "kind": "number", - "type": { - "$ref": "1151" - }, - "value": -1 - }, - "isUnique": { - "$id": "6061", - "kind": "boolean", - "type": { - "$ref": "1144" - }, - "value": false - }, - "isIndexable": { - "$id": "6062", - "kind": "boolean", - "type": { - "$ref": "1140" - }, - "value": false - }, - "includeInNotification": { - "$id": "6063", - "kind": "boolean", - "type": { - "$ref": "1138" - }, - "value": false - }, - "relationshipTypeName": { - "$id": "6064", - "kind": "string", - "type": { - "$ref": "1157" - }, - "value": "AtlasGlossarySemanticAssignment" - }, - "isLegacyAttribute": { - "$id": "6065", - "kind": "boolean", - "type": { - "$ref": "1155" - }, - "value": false - } - } - } - ] - } - } - } - ] - }, - "relationshipDefs": { - "$id": "6066", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [ - { - "$id": "6067", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "category": { - "$id": "6068", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "RELATIONSHIP" - }, - "guid": { - "$id": "6069", - "kind": "string", - "type": { - "$ref": "1205" - }, - "value": "6284b865-cbb3-4236-83ed-059a407f06fb" - }, - "createdBy": { - "$id": "6070", - "kind": "string", - "type": { - "$ref": "1200" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6071", - "kind": "string", - "type": { - "$ref": "1216" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6072", - "kind": "number", - "type": { - "$ref": "1198" - }, - "value": 1604729078159 - }, - "updateTime": { - "$id": "6073", - "kind": "number", - "type": { - "$ref": "1214" - }, - "value": 1604729323080 - }, - "version": { - "$id": "6074", - "kind": "number", - "type": { - "$ref": "1218" - }, - "value": 2 - }, - "name": { - "$id": "6075", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "storm_topology_nodes" - }, - "description": { - "$id": "6076", - "kind": "string", - "type": { - "$ref": "1203" - }, - "value": "storm_topology_nodes" - }, - "typeVersion": { - "$id": "6077", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.1" - }, - "serviceType": { - "$id": "6078", - "kind": "string", - "type": { - "$ref": "1210" - }, - "value": "storm" - }, - "lastModifiedTS": { - "$id": "6079", - "kind": "string", - "type": { - "$ref": "1220" - }, - "value": "2" - }, - "attributeDefs": { - "$id": "6080", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "relationshipCategory": { - "$id": "6081", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "ASSOCIATION" - }, - "endDef1": { - "$id": "6082", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6083", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "storm_topology" - }, - "name": { - "$id": "6084", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "nodes" - }, - "isContainer": { - "$id": "6085", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "6086", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "6087", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "6088", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6089", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "storm_node" - }, - "name": { - "$id": "6090", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "topolgies" - }, - "isContainer": { - "$id": "6091", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "6092", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "6093", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": false - } - } - } - } - } - ] - } - } - } - } - ] - }, - { - "$id": "6094", - "kind": "http", - "name": "Type_ListEnumDefs", - "description": "Type_ListEnumDefs", - "filePath": "2023-09-01/Type_ListEnumDefs.json", - "parameters": [ - { - "parameter": { - "$ref": "5864" - }, - "value": { - "$id": "6095", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - } - }, - { - "parameter": { - "$ref": "5859" - }, - "value": { - "$id": "6096", - "kind": "string", - "type": { - "$ref": "5860" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6097", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6098", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [ - { - "$id": "6099", - "kind": "model", - "type": { - "$ref": "1158" - }, - "value": { - "category": { - "$id": "6100", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "6101", - "kind": "string", - "type": { - "$ref": "1168" - }, - "value": "0ddc2fcf-ad17-4d06-984a-ffb2ffb2a941" - }, - "createdBy": { - "$id": "6102", - "kind": "string", - "type": { - "$ref": "1163" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6103", - "kind": "string", - "type": { - "$ref": "1179" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6104", - "kind": "number", - "type": { - "$ref": "1161" - }, - "value": 1604728877305 - }, - "updateTime": { - "$id": "6105", - "kind": "number", - "type": { - "$ref": "1177" - }, - "value": 1604728877305 - }, - "version": { - "$id": "6106", - "kind": "number", - "type": { - "$ref": "1181" - }, - "value": 1 - }, - "name": { - "$id": "6107", - "kind": "string", - "type": { - "$ref": "1170" - }, - "value": "glossary_term_status_value" - }, - "description": { - "$id": "6108", - "kind": "string", - "type": { - "$ref": "1166" - }, - "value": "glossary_term_status_value" - }, - "typeVersion": { - "$id": "6109", - "kind": "string", - "type": { - "$ref": "1175" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "6110", - "kind": "string", - "type": { - "$ref": "1183" - }, - "value": "1" - }, - "elementDefs": { - "$id": "6111", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "6112", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6113", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Approved" - }, - "ordinal": { - "$id": "6114", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 0 - } - } - }, - { - "$id": "6115", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6116", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Alert" - }, - "ordinal": { - "$id": "6117", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "6118", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6119", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Expired" - }, - "ordinal": { - "$id": "6120", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "6121", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6122", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "Draft" - }, - "ordinal": { - "$id": "6123", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - } - ] - } - } - }, - { - "$id": "6124", - "kind": "model", - "type": { - "$ref": "1158" - }, - "value": { - "category": { - "$id": "6125", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - }, - "guid": { - "$id": "6126", - "kind": "string", - "type": { - "$ref": "1168" - }, - "value": "c694edf1-6f9e-4b60-b832-23e8d6187675" - }, - "createdBy": { - "$id": "6127", - "kind": "string", - "type": { - "$ref": "1163" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6128", - "kind": "string", - "type": { - "$ref": "1179" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6129", - "kind": "number", - "type": { - "$ref": "1161" - }, - "value": 1604728832692 - }, - "updateTime": { - "$id": "6130", - "kind": "number", - "type": { - "$ref": "1177" - }, - "value": 1604728905525 - }, - "version": { - "$id": "6131", - "kind": "number", - "type": { - "$ref": "1181" - }, - "value": 2 - }, - "name": { - "$id": "6132", - "kind": "string", - "type": { - "$ref": "1170" - }, - "value": "AtlasGlossaryTermRelationshipStatus" - }, - "description": { - "$id": "6133", - "kind": "string", - "type": { - "$ref": "1166" - }, - "value": "TermRelationshipStatus defines how reliable the relationship is between two glossary terms" - }, - "typeVersion": { - "$id": "6134", - "kind": "string", - "type": { - "$ref": "1175" - }, - "value": "1.1" - }, - "serviceType": { - "$id": "6135", - "kind": "string", - "type": { - "$ref": "1173" - }, - "value": "atlas_core" - }, - "lastModifiedTS": { - "$id": "6136", - "kind": "string", - "type": { - "$ref": "1183" - }, - "value": "2" - }, - "elementDefs": { - "$id": "6137", - "kind": "array", - "type": { - "$ref": "1187" - }, - "value": [ - { - "$id": "6138", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6139", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "DRAFT" - }, - "description": { - "$id": "6140", - "kind": "string", - "type": { - "$ref": "1190" - }, - "value": "DRAFT means the relationship is under development." - }, - "ordinal": { - "$id": "6141", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 0 - } - } - }, - { - "$id": "6142", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6143", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "ACTIVE" - }, - "description": { - "$id": "6144", - "kind": "string", - "type": { - "$ref": "1190" - }, - "value": "ACTIVE means the relationship is validated and in use." - }, - "ordinal": { - "$id": "6145", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 1 - } - } - }, - { - "$id": "6146", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6147", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "DEPRECATED" - }, - "description": { - "$id": "6148", - "kind": "string", - "type": { - "$ref": "1190" - }, - "value": "DEPRECATED means the the relationship is being phased out." - }, - "ordinal": { - "$id": "6149", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 2 - } - } - }, - { - "$id": "6150", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6151", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "OBSOLETE" - }, - "description": { - "$id": "6152", - "kind": "string", - "type": { - "$ref": "1190" - }, - "value": "OBSOLETE means that the relationship should not be used anymore." - }, - "ordinal": { - "$id": "6153", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 3 - } - } - }, - { - "$id": "6154", - "kind": "model", - "type": { - "$ref": "1188" - }, - "value": { - "value": { - "$id": "6155", - "kind": "string", - "type": { - "$ref": "1194" - }, - "value": "OTHER" - }, - "description": { - "$id": "6156", - "kind": "string", - "type": { - "$ref": "1190" - }, - "value": "OTHER means that there is another status." - }, - "ordinal": { - "$id": "6157", - "kind": "number", - "type": { - "$ref": "1192" - }, - "value": 99 - } - } - } - ] - } - } - } - ] - }, - "structDefs": { - "$id": "6158", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6159", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6160", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [] - }, - "relationshipDefs": { - "$id": "6161", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - } - } - } - } - ] - }, - { - "$id": "6162", - "kind": "http", - "name": "Type_ListTermTemplateDefs", - "description": "Type_ListTermTemplateDefs", - "filePath": "2023-09-01/Type_ListTermTemplateDefs.json", - "parameters": [ - { - "parameter": { - "$ref": "5864" - }, - "value": { - "$id": "6163", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "TERM_TEMPLATE" - } - }, - { - "parameter": { - "$ref": "5859" - }, - "value": { - "$id": "6164", - "kind": "string", - "type": { - "$ref": "5860" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6165", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6166", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6167", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6168", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6169", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [] - }, - "relationshipDefs": { - "$id": "6170", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - }, - "termTemplateDefs": { - "$id": "6171", - "kind": "array", - "type": { - "$ref": "1319" - }, - "value": [ - { - "$id": "6172", - "kind": "model", - "type": { - "$ref": "1320" - }, - "value": { - "category": { - "$id": "6173", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "TERM_TEMPLATE" - }, - "guid": { - "$id": "6174", - "kind": "string", - "type": { - "$ref": "1330" - }, - "value": "d776af9c-985c-4168-abb2-477523dbfc70" - }, - "createdBy": { - "$id": "6175", - "kind": "string", - "type": { - "$ref": "1325" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6176", - "kind": "string", - "type": { - "$ref": "1341" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6177", - "kind": "number", - "type": { - "$ref": "1323" - }, - "value": 1606300465443 - }, - "updateTime": { - "$id": "6178", - "kind": "number", - "type": { - "$ref": "1339" - }, - "value": 1606300465443 - }, - "version": { - "$id": "6179", - "kind": "number", - "type": { - "$ref": "1343" - }, - "value": 1 - }, - "name": { - "$id": "6180", - "kind": "string", - "type": { - "$ref": "1332" - }, - "value": "MS KPI" - }, - "description": { - "$id": "6181", - "kind": "string", - "type": { - "$ref": "1328" - }, - "value": "This is the description" - }, - "typeVersion": { - "$id": "6182", - "kind": "string", - "type": { - "$ref": "1337" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "6183", - "kind": "string", - "type": { - "$ref": "1345" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "6184", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6185", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6186", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "date" - }, - "typeName": { - "$id": "6187", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "date" - }, - "isOptional": { - "$id": "6188", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6189", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6190", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6191", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6192", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6193", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6194", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6195", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6196", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6197", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6198", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "single choice" - }, - "typeName": { - "$id": "6199", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "TERM_TEMPLATE_ENUM_EXAMPLE_1" - }, - "isOptional": { - "$id": "6200", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6201", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6202", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6203", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6204", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6205", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6206", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6207", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6208", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6209", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6210", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "multi choice" - }, - "typeName": { - "$id": "6211", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "isOptional": { - "$id": "6212", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6213", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6214", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6215", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 2147483647 - }, - "isUnique": { - "$id": "6216", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6217", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6218", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6219", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6220", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6221", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6222", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "plain string" - }, - "typeName": { - "$id": "6223", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6224", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6225", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6226", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6227", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6228", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6229", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6230", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "defaultValue": { - "$id": "6231", - "kind": "string", - "type": { - "$ref": "1049" - }, - "value": "this is a default value" - }, - "options": { - "$id": "6232", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6233", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - } - ] - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6234", - "kind": "method", - "name": "includeTermTemplate", - "serializedName": "includeTermTemplate", - "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", - "type": { - "$id": "6235", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.includeTermTemplate", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6236", - "kind": "method", - "name": "type", - "serializedName": "type", - "doc": "Typedef name as search filter when get typedefs.", - "type": { - "$ref": "49" - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.type", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6237", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "303" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1305" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get" - }, - { - "$id": "6238", - "kind": "basic", - "name": "batchCreate", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Create all atlas type definitions in bulk. Please avoid recreating existing types.", - "operation": { - "$id": "6239", - "name": "batchCreate", - "resourceName": "TypeDefinition", - "doc": "Create all atlas type definitions in bulk. Please avoid recreating existing types.", - "accessibility": "public", - "parameters": [ - { - "$id": "6240", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "305" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.contentType" - }, - { - "$id": "6241", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "307" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.accept" - }, - { - "$id": "6242", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "1305" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedefs", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate", - "decorators": [], - "examples": [ - { - "$id": "6243", - "kind": "http", - "name": "Type_BulkCreate", - "description": "Type_BulkCreate", - "filePath": "2023-09-01/Type_BulkCreate.json", - "parameters": [ - { - "parameter": { - "$ref": "6242" - }, - "value": { - "$id": "6244", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6245", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6246", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6247", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6248", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [ - { - "$id": "6249", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "name": { - "$id": "6250", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_server_example" - }, - "superTypes": { - "$id": "6251", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6252", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "typeVersion": { - "$id": "6253", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6254", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6255", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6256", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "databases" - }, - "typeName": { - "$id": "6257", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "cardinality": { - "$id": "6258", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isIndexable": { - "$id": "6259", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6260", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "isUnique": { - "$id": "6261", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - } - ] - } - } - } - ] - }, - "relationshipDefs": { - "$id": "6262", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6263", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6264", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6265", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6266", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6267", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [ - { - "$id": "6268", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "category": { - "$id": "6269", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENTITY" - }, - "guid": { - "$id": "6270", - "kind": "string", - "type": { - "$ref": "1109" - }, - "value": "a47fd902-a564-45f1-aa51-ce9224955881" - }, - "createdBy": { - "$id": "6271", - "kind": "string", - "type": { - "$ref": "1104" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6272", - "kind": "string", - "type": { - "$ref": "1120" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6273", - "kind": "number", - "type": { - "$ref": "1102" - }, - "value": 1553672211954 - }, - "updateTime": { - "$id": "6274", - "kind": "number", - "type": { - "$ref": "1118" - }, - "value": 1553672211954 - }, - "version": { - "$id": "6275", - "kind": "number", - "type": { - "$ref": "1122" - }, - "value": 1 - }, - "name": { - "$id": "6276", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_server_example" - }, - "description": { - "$id": "6277", - "kind": "string", - "type": { - "$ref": "1107" - }, - "value": "azure_sql_server_example" - }, - "typeVersion": { - "$id": "6278", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6279", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6280", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6281", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "databases" - }, - "typeName": { - "$id": "6282", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "isOptional": { - "$id": "6283", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6284", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6285", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6286", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 2147483647 - }, - "isUnique": { - "$id": "6287", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6288", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6289", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - }, - "superTypes": { - "$id": "6290", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6291", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "subTypes": { - "$id": "6292", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - ] - }, - "relationshipDefs": { - "$id": "6293", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - } - } - } - } - ] - }, - { - "$id": "6294", - "kind": "http", - "name": "Type_BulkCreateBusinessMetadataDefs", - "description": "Type_BulkCreateBusinessMetadataDefs", - "filePath": "2023-09-01/Type_BulkCreateBusinessMetadataDefs.json", - "parameters": [ - { - "parameter": { - "$ref": "6242" - }, - "value": { - "$id": "6295", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6296", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6297", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6298", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6299", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [] - }, - "relationshipDefs": { - "$id": "6300", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - }, - "businessMetadataDefs": { - "$id": "6301", - "kind": "array", - "type": { - "$ref": "1307" - }, - "value": [ - { - "$id": "6302", - "kind": "model", - "type": { - "$ref": "967" - }, - "value": { - "name": { - "$id": "6303", - "kind": "string", - "type": { - "$ref": "1024" - }, - "value": "myBizMetadata1" - }, - "description": { - "$id": "6304", - "kind": "string", - "type": { - "$ref": "1020" - }, - "value": "" - }, - "attributeDefs": { - "$id": "6305", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6306", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6307", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "bizAttr1" - }, - "typeName": { - "$id": "6308", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6309", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6310", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isUnique": { - "$id": "6311", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6312", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": true - }, - "options": { - "$id": "6313", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "maxStrLength": { - "$id": "6314", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "50" - }, - "applicableEntityTypes": { - "$id": "6315", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "[\"Path\"]" - } - } - } - } - } - ] - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6316", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6317", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6318", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6319", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6320", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [] - }, - "relationshipDefs": { - "$id": "6321", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - }, - "businessMetadataDefs": { - "$id": "6322", - "kind": "array", - "type": { - "$ref": "1307" - }, - "value": [ - { - "$id": "6323", - "kind": "model", - "type": { - "$ref": "967" - }, - "value": { - "category": { - "$id": "6324", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "BUSINESS_METADATA" - }, - "guid": { - "$id": "6325", - "kind": "string", - "type": { - "$ref": "1022" - }, - "value": "f26dc6d1-be9c-a0ce-a274-b6388ff6e2eb" - }, - "createdBy": { - "$id": "6326", - "kind": "string", - "type": { - "$ref": "972" - }, - "value": "ServiceAdmin" - }, - "updatedBy": { - "$id": "6327", - "kind": "string", - "type": { - "$ref": "1033" - }, - "value": "ServiceAdmin" - }, - "createTime": { - "$id": "6328", - "kind": "number", - "type": { - "$ref": "970" - }, - "value": 1646994112241 - }, - "updateTime": { - "$id": "6329", - "kind": "number", - "type": { - "$ref": "1031" - }, - "value": 1646994112241 - }, - "version": { - "$id": "6330", - "kind": "number", - "type": { - "$ref": "1035" - }, - "value": 1 - }, - "name": { - "$id": "6331", - "kind": "string", - "type": { - "$ref": "1024" - }, - "value": "myBizMetadata1" - }, - "description": { - "$id": "6332", - "kind": "string", - "type": { - "$ref": "1020" - }, - "value": "This is my businessMetadata1" - }, - "typeVersion": { - "$id": "6333", - "kind": "string", - "type": { - "$ref": "1029" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "6334", - "kind": "string", - "type": { - "$ref": "1037" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "6335", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6336", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6337", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "bizAttr1" - }, - "typeName": { - "$id": "6338", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6339", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6340", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6341", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6342", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6343", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6344", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": true - }, - "includeInNotification": { - "$id": "6345", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6346", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "applicableEntityTypes": { - "$id": "6347", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "[\"Path\"]" - }, - "maxStrLength": { - "$id": "6348", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "50" - } - } - } - } - } - ] - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6349", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "1305" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6350", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "305" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6351", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "307" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1305" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchCreate" - }, - { - "$id": "6352", - "kind": "basic", - "name": "batchUpdate", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Update all types in bulk, changes detected in the type definitions would be\npersisted.", - "operation": { - "$id": "6353", - "name": "batchUpdate", - "resourceName": "TypeDefinition", - "doc": "Update all types in bulk, changes detected in the type definitions would be\npersisted.", - "accessibility": "public", - "parameters": [ - { - "$id": "6354", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "309" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.contentType" - }, - { - "$id": "6355", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "311" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.accept" - }, - { - "$id": "6356", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "1305" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.body" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedefs", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate", - "decorators": [], - "examples": [ - { - "$id": "6357", - "kind": "http", - "name": "Type_BulkUpdate", - "description": "Type_BulkUpdate", - "filePath": "2023-09-01/Type_BulkUpdate.json", - "parameters": [ - { - "parameter": { - "$ref": "6356" - }, - "value": { - "$id": "6358", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6359", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6360", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6361", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6362", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [ - { - "$id": "6363", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "name": { - "$id": "6364", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_server" - }, - "superTypes": { - "$id": "6365", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6366", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "typeVersion": { - "$id": "6367", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6368", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6369", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6370", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "databases" - }, - "typeName": { - "$id": "6371", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "cardinality": { - "$id": "6372", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isIndexable": { - "$id": "6373", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6374", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "isUnique": { - "$id": "6375", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - } - ] - } - } - }, - { - "$id": "6376", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "name": { - "$id": "6377", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_db" - }, - "superTypes": { - "$id": "6378", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6379", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "typeVersion": { - "$id": "6380", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6381", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6382", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6383", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "server" - }, - "typeName": { - "$id": "6384", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "azure_sql_server" - }, - "cardinality": { - "$id": "6385", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "constraints": { - "$id": "6386", - "kind": "array", - "type": { - "$ref": "1043" - }, - "value": [ - { - "$id": "6387", - "kind": "model", - "type": { - "$ref": "1044" - }, - "value": { - "type": { - "$id": "6388", - "kind": "string", - "type": { - "$ref": "1047" - }, - "value": "inverseRef" - }, - "params": { - "$id": "6389", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "attribute": { - "$id": "6390", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "databases" - } - } - } - } - } - ] - }, - "isIndexable": { - "$id": "6391", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6392", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": false - }, - "isUnique": { - "$id": "6393", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - }, - { - "$id": "6394", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6395", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "schemas" - }, - "typeName": { - "$id": "6396", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "cardinality": { - "$id": "6397", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isIndexable": { - "$id": "6398", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6399", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "isUnique": { - "$id": "6400", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - }, - { - "$id": "6401", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6402", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "collation" - }, - "typeName": { - "$id": "6403", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "cardinality": { - "$id": "6404", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isIndexable": { - "$id": "6405", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6406", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "isUnique": { - "$id": "6407", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - }, - { - "$id": "6408", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6409", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "compatibilityLevel" - }, - "typeName": { - "$id": "6410", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "int" - }, - "cardinality": { - "$id": "6411", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isIndexable": { - "$id": "6412", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6413", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "isUnique": { - "$id": "6414", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - } - ] - } - } - } - ] - }, - "relationshipDefs": { - "$id": "6415", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [ - { - "$id": "6416", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "name": { - "$id": "6417", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "azure_sql_server_databases" - }, - "typeVersion": { - "$id": "6418", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.0" - }, - "relationshipCategory": { - "$id": "6419", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "COMPOSITION" - }, - "endDef1": { - "$id": "6420", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6421", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_server" - }, - "name": { - "$id": "6422", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "databases" - }, - "isContainer": { - "$id": "6423", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": true - }, - "cardinality": { - "$id": "6424", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "6425", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "6426", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6427", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_db" - }, - "name": { - "$id": "6428", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "server" - }, - "isContainer": { - "$id": "6429", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "6430", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isLegacyAttribute": { - "$id": "6431", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - } - } - }, - { - "$id": "6432", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "name": { - "$id": "6433", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "azure_sql_db_schemas" - }, - "typeVersion": { - "$id": "6434", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.0" - }, - "relationshipCategory": { - "$id": "6435", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "COMPOSITION" - }, - "endDef1": { - "$id": "6436", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6437", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_db" - }, - "name": { - "$id": "6438", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "schemas" - }, - "isContainer": { - "$id": "6439", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": true - }, - "cardinality": { - "$id": "6440", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "6441", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "6442", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6443", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_schema" - }, - "name": { - "$id": "6444", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "db" - }, - "isContainer": { - "$id": "6445", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "6446", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isLegacyAttribute": { - "$id": "6447", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1305" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6448", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6449", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6450", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6451", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6452", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [ - { - "$id": "6453", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "category": { - "$id": "6454", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENTITY" - }, - "guid": { - "$id": "6455", - "kind": "string", - "type": { - "$ref": "1109" - }, - "value": "a59fe369-2b1d-4bba-bb74-c273f3d74eb1" - }, - "createdBy": { - "$id": "6456", - "kind": "string", - "type": { - "$ref": "1104" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6457", - "kind": "string", - "type": { - "$ref": "1120" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6458", - "kind": "number", - "type": { - "$ref": "1102" - }, - "value": 1548841689501 - }, - "updateTime": { - "$id": "6459", - "kind": "number", - "type": { - "$ref": "1118" - }, - "value": 1553671448662 - }, - "version": { - "$id": "6460", - "kind": "number", - "type": { - "$ref": "1122" - }, - "value": 3 - }, - "name": { - "$id": "6461", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_server" - }, - "description": { - "$id": "6462", - "kind": "string", - "type": { - "$ref": "1107" - }, - "value": "azure_sql_server" - }, - "typeVersion": { - "$id": "6463", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6464", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6465", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6466", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "databases" - }, - "typeName": { - "$id": "6467", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "isOptional": { - "$id": "6468", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6469", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6470", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6471", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 2147483647 - }, - "isUnique": { - "$id": "6472", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6473", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6474", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - }, - "superTypes": { - "$id": "6475", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6476", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "subTypes": { - "$id": "6477", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - }, - { - "$id": "6478", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "category": { - "$id": "6479", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENTITY" - }, - "guid": { - "$id": "6480", - "kind": "string", - "type": { - "$ref": "1109" - }, - "value": "cc33ec5a-205a-4853-91dd-c0ebd0049ffb" - }, - "createdBy": { - "$id": "6481", - "kind": "string", - "type": { - "$ref": "1104" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6482", - "kind": "string", - "type": { - "$ref": "1120" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6483", - "kind": "number", - "type": { - "$ref": "1102" - }, - "value": 1548841689575 - }, - "updateTime": { - "$id": "6484", - "kind": "number", - "type": { - "$ref": "1118" - }, - "value": 1553671448783 - }, - "version": { - "$id": "6485", - "kind": "number", - "type": { - "$ref": "1122" - }, - "value": 3 - }, - "name": { - "$id": "6486", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_db" - }, - "description": { - "$id": "6487", - "kind": "string", - "type": { - "$ref": "1107" - }, - "value": "azure_sql_db" - }, - "typeVersion": { - "$id": "6488", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6489", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6490", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6491", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "server" - }, - "typeName": { - "$id": "6492", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "azure_sql_server" - }, - "isOptional": { - "$id": "6493", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": false - }, - "cardinality": { - "$id": "6494", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6495", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 1 - }, - "valuesMaxCount": { - "$id": "6496", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6497", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6498", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6499", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "constraints": { - "$id": "6500", - "kind": "array", - "type": { - "$ref": "1043" - }, - "value": [ - { - "$id": "6501", - "kind": "model", - "type": { - "$ref": "1044" - }, - "value": { - "type": { - "$id": "6502", - "kind": "string", - "type": { - "$ref": "1047" - }, - "value": "inverseRef" - }, - "params": { - "$id": "6503", - "kind": "dict", - "type": { - "$ref": "327" - }, - "value": { - "attribute": { - "$id": "6504", - "kind": "unknown", - "type": { - "$ref": "329" - }, - "value": "databases" - } - } - } - } - } - ] - } - } - }, - { - "$id": "6505", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6506", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "schemas" - }, - "typeName": { - "$id": "6507", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "isOptional": { - "$id": "6508", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6509", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6510", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6511", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 2147483647 - }, - "isUnique": { - "$id": "6512", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6513", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6514", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "6515", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6516", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "collation" - }, - "typeName": { - "$id": "6517", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6518", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6519", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6520", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6521", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6522", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6523", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6524", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - }, - { - "$id": "6525", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6526", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "compatibilityLevel" - }, - "typeName": { - "$id": "6527", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "int" - }, - "isOptional": { - "$id": "6528", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6529", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6530", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6531", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6532", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6533", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6534", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - } - } - } - ] - }, - "superTypes": { - "$id": "6535", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6536", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "subTypes": { - "$id": "6537", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [] - } - } - } - ] - }, - "relationshipDefs": { - "$id": "6538", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [ - { - "$id": "6539", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "category": { - "$id": "6540", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "RELATIONSHIP" - }, - "guid": { - "$id": "6541", - "kind": "string", - "type": { - "$ref": "1205" - }, - "value": "1e0584a8-2587-4e1d-a772-db1e879469af" - }, - "createdBy": { - "$id": "6542", - "kind": "string", - "type": { - "$ref": "1200" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6543", - "kind": "string", - "type": { - "$ref": "1216" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6544", - "kind": "number", - "type": { - "$ref": "1198" - }, - "value": 1548841689879 - }, - "updateTime": { - "$id": "6545", - "kind": "number", - "type": { - "$ref": "1214" - }, - "value": 1553671449536 - }, - "version": { - "$id": "6546", - "kind": "number", - "type": { - "$ref": "1218" - }, - "value": 3 - }, - "name": { - "$id": "6547", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "azure_sql_server_databases" - }, - "description": { - "$id": "6548", - "kind": "string", - "type": { - "$ref": "1203" - }, - "value": "azure_sql_server_databases" - }, - "typeVersion": { - "$id": "6549", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6550", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "relationshipCategory": { - "$id": "6551", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "COMPOSITION" - }, - "endDef1": { - "$id": "6552", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6553", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_server" - }, - "name": { - "$id": "6554", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "databases" - }, - "isContainer": { - "$id": "6555", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": true - }, - "cardinality": { - "$id": "6556", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "6557", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "6558", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6559", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_db" - }, - "name": { - "$id": "6560", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "server" - }, - "isContainer": { - "$id": "6561", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "6562", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isLegacyAttribute": { - "$id": "6563", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "relationshipLabel": { - "$id": "6564", - "kind": "string", - "type": { - "$ref": "1238" - }, - "value": "r:azure_sql_server_databases" - } - } - }, - { - "$id": "6565", - "kind": "model", - "type": { - "$ref": "1195" - }, - "value": { - "category": { - "$id": "6566", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "RELATIONSHIP" - }, - "guid": { - "$id": "6567", - "kind": "string", - "type": { - "$ref": "1205" - }, - "value": "77ee34f6-ea48-4fe3-86bf-7e2e722f4596" - }, - "createdBy": { - "$id": "6568", - "kind": "string", - "type": { - "$ref": "1200" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6569", - "kind": "string", - "type": { - "$ref": "1216" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6570", - "kind": "number", - "type": { - "$ref": "1198" - }, - "value": 1548841690094 - }, - "updateTime": { - "$id": "6571", - "kind": "number", - "type": { - "$ref": "1214" - }, - "value": 1553671449545 - }, - "version": { - "$id": "6572", - "kind": "number", - "type": { - "$ref": "1218" - }, - "value": 3 - }, - "name": { - "$id": "6573", - "kind": "string", - "type": { - "$ref": "1207" - }, - "value": "azure_sql_db_schemas" - }, - "description": { - "$id": "6574", - "kind": "string", - "type": { - "$ref": "1203" - }, - "value": "azure_sql_db_schemas" - }, - "typeVersion": { - "$id": "6575", - "kind": "string", - "type": { - "$ref": "1212" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6576", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [] - }, - "relationshipCategory": { - "$id": "6577", - "kind": "string", - "type": { - "$ref": "76" - }, - "value": "COMPOSITION" - }, - "endDef1": { - "$id": "6578", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6579", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_db" - }, - "name": { - "$id": "6580", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "schemas" - }, - "isContainer": { - "$id": "6581", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": true - }, - "cardinality": { - "$id": "6582", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isLegacyAttribute": { - "$id": "6583", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "endDef2": { - "$id": "6584", - "kind": "model", - "type": { - "$ref": "1223" - }, - "value": { - "type": { - "$id": "6585", - "kind": "string", - "type": { - "$ref": "1234" - }, - "value": "azure_sql_schema" - }, - "name": { - "$id": "6586", - "kind": "string", - "type": { - "$ref": "1232" - }, - "value": "db" - }, - "isContainer": { - "$id": "6587", - "kind": "boolean", - "type": { - "$ref": "1228" - }, - "value": false - }, - "cardinality": { - "$id": "6588", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "isLegacyAttribute": { - "$id": "6589", - "kind": "boolean", - "type": { - "$ref": "1230" - }, - "value": true - } - } - }, - "relationshipLabel": { - "$id": "6590", - "kind": "string", - "type": { - "$ref": "1238" - }, - "value": "r:azure_sql_db_schemas" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6591", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "1305" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6592", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "309" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6593", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "311" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1305" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchUpdate" - }, - { - "$id": "6594", - "kind": "basic", - "name": "batchDelete", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Delete API for all types in bulk.", - "operation": { - "$id": "6595", - "name": "batchDelete", - "resourceName": "TypeDefinition", - "doc": "Delete API for all types in bulk.", - "accessibility": "public", - "parameters": [ - { - "$id": "6596", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "313" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.contentType" - }, - { - "$id": "6597", - "kind": "body", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "1305" - }, - "isApiVersion": false, - "contentTypes": [ - "application/json" - ], - "defaultContentType": "application/json", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.body" - } - ], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedefs", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete", - "decorators": [], - "examples": [ - { - "$id": "6598", - "kind": "http", - "name": "Type_BulkDelete", - "description": "Type_BulkDelete", - "filePath": "2023-09-01/Type_BulkDelete.json", - "parameters": [ - { - "parameter": { - "$ref": "6597" - }, - "value": { - "$id": "6599", - "kind": "model", - "type": { - "$ref": "1305" - }, - "value": { - "enumDefs": { - "$id": "6600", - "kind": "array", - "type": { - "$ref": "1313" - }, - "value": [] - }, - "structDefs": { - "$id": "6601", - "kind": "array", - "type": { - "$ref": "1317" - }, - "value": [] - }, - "classificationDefs": { - "$id": "6602", - "kind": "array", - "type": { - "$ref": "1309" - }, - "value": [] - }, - "entityDefs": { - "$id": "6603", - "kind": "array", - "type": { - "$ref": "1311" - }, - "value": [ - { - "$id": "6604", - "kind": "model", - "type": { - "$ref": "1099" - }, - "value": { - "name": { - "$id": "6605", - "kind": "string", - "type": { - "$ref": "1111" - }, - "value": "azure_sql_server_example" - }, - "superTypes": { - "$id": "6606", - "kind": "array", - "type": { - "$ref": "374" - }, - "value": [ - { - "$id": "6607", - "kind": "string", - "type": { - "$ref": "375" - }, - "value": "azure_resource" - } - ] - }, - "typeVersion": { - "$id": "6608", - "kind": "string", - "type": { - "$ref": "1116" - }, - "value": "1.0" - }, - "attributeDefs": { - "$id": "6609", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6610", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6611", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "databases" - }, - "typeName": { - "$id": "6612", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "cardinality": { - "$id": "6613", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "isIndexable": { - "$id": "6614", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "isOptional": { - "$id": "6615", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "isUnique": { - "$id": "6616", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - } - } - } - ] - } - } - } - ] - }, - "relationshipDefs": { - "$id": "6617", - "kind": "array", - "type": { - "$ref": "1315" - }, - "value": [] - } - } - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - }, - "statusCode": 204 - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6618", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "Body parameter.", - "type": { - "$ref": "1305" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.body", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6619", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "313" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.batchDelete" - }, - { - "$id": "6620", - "kind": "basic", - "name": "getHeaders", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "List all type definitions returned as a list of minimal information header.", - "operation": { - "$id": "6621", - "name": "getHeaders", - "resourceName": "TypeDefinition", - "doc": "List all type definitions returned as a list of minimal information header.", - "accessibility": "public", - "parameters": [ - { - "$id": "6622", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "6623", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "6624", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.apiVersion", - "readOnly": false - }, - { - "$id": "6625", - "kind": "query", - "name": "includeTermTemplate", - "serializedName": "includeTermTemplate", - "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", - "type": { - "$id": "6626", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.includeTermTemplate", - "readOnly": false - }, - { - "$id": "6627", - "kind": "query", - "name": "type", - "serializedName": "type", - "doc": "Typedef name as search filter when get typedefs.", - "type": { - "$ref": "49" - }, - "isApiVersion": false, - "explode": false, - "optional": true, - "scope": "Method", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.type", - "readOnly": false - }, - { - "$id": "6628", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "315" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "6629", - "kind": "array", - "name": "ArrayAtlasTypeDefHeader", - "valueType": { - "$ref": "1347" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/atlas/v2/types/typedefs/headers", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders", - "decorators": [], - "examples": [ - { - "$id": "6630", - "kind": "http", - "name": "Type_ListHeaders", - "description": "Type_ListHeaders", - "filePath": "2023-09-01/Type_ListHeaders.json", - "parameters": [ - { - "parameter": { - "$ref": "6625" - }, - "value": { - "$id": "6631", - "kind": "boolean", - "type": { - "$ref": "6626" - }, - "value": true - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "6629" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6632", - "kind": "array", - "type": { - "$ref": "6629" - }, - "value": [ - { - "$id": "6633", - "kind": "model", - "type": { - "$ref": "1347" - }, - "value": { - "guid": { - "$id": "6634", - "kind": "string", - "type": { - "$ref": "1350" - }, - "value": "644ab9c7-893a-4a4d-8e0a-591a6556d1a0" - }, - "name": { - "$id": "6635", - "kind": "string", - "type": { - "$ref": "1352" - }, - "value": "hive_principal_type" - }, - "category": { - "$id": "6636", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - } - } - }, - { - "$id": "6637", - "kind": "model", - "type": { - "$ref": "1347" - }, - "value": { - "guid": { - "$id": "6638", - "kind": "string", - "type": { - "$ref": "1350" - }, - "value": "e5030e81-da05-4571-84f1-265ce20fa6d9" - }, - "name": { - "$id": "6639", - "kind": "string", - "type": { - "$ref": "1352" - }, - "value": "AtlasGlossaryTermRelationshipStatus" - }, - "category": { - "$id": "6640", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "ENUM" - } - } - }, - { - "$id": "6641", - "kind": "model", - "type": { - "$ref": "1347" - }, - "value": { - "guid": { - "$id": "6642", - "kind": "string", - "type": { - "$ref": "1350" - }, - "value": "d776af9c-985c-4168-abb2-477523dbfc70" - }, - "name": { - "$id": "6643", - "kind": "string", - "type": { - "$ref": "1352" - }, - "value": "MS KPI" - }, - "category": { - "$id": "6644", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "TERM_TEMPLATE" - } - } - } - ] - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6645", - "kind": "method", - "name": "includeTermTemplate", - "serializedName": "includeTermTemplate", - "doc": "Whether include termtemplatedef when return all typedefs.\nThis is always true\nwhen search filter type=term_template", - "type": { - "$id": "6646", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.includeTermTemplate", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6647", - "kind": "method", - "name": "type", - "serializedName": "type", - "doc": "Typedef name as search filter when get typedefs.", - "type": { - "$ref": "49" - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.type", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6648", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "315" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "6629" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getHeaders" - }, - { - "$id": "6649", - "kind": "basic", - "name": "getTermTemplateById", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the term template definition for the given GUID.", - "operation": { - "$id": "6650", - "name": "getTermTemplateById", - "resourceName": "TypeDefinition", - "doc": "Get the term template definition for the given GUID.", - "accessibility": "public", - "parameters": [ - { - "$id": "6651", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "6652", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "6653", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.apiVersion", - "readOnly": false - }, - { - "$id": "6654", - "kind": "path", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the term template.", - "type": { - "$id": "6655", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.guid" - }, - { - "$id": "6656", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "317" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1320" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/types/termtemplatedef/guid/{guid}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById", - "decorators": [], - "examples": [ - { - "$id": "6657", - "kind": "http", - "name": "Type_GetTermTemplateDefByGuid", - "description": "Type_GetTermTemplateDefByGuid", - "filePath": "2023-09-01/Type_GetTermTemplateDefByGuid.json", - "parameters": [ - { - "parameter": { - "$ref": "6654" - }, - "value": { - "$id": "6658", - "kind": "string", - "type": { - "$ref": "6655" - }, - "value": "d776af9c-985c-4168-abb2-477523dbfc70" - } - }, - { - "parameter": { - "$ref": "6651" - }, - "value": { - "$id": "6659", - "kind": "string", - "type": { - "$ref": "6652" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1320" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6660", - "kind": "model", - "type": { - "$ref": "1320" - }, - "value": { - "category": { - "$id": "6661", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "TERM_TEMPLATE" - }, - "guid": { - "$id": "6662", - "kind": "string", - "type": { - "$ref": "1330" - }, - "value": "d776af9c-985c-4168-abb2-477523dbfc70" - }, - "createdBy": { - "$id": "6663", - "kind": "string", - "type": { - "$ref": "1325" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6664", - "kind": "string", - "type": { - "$ref": "1341" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6665", - "kind": "number", - "type": { - "$ref": "1323" - }, - "value": 1606300465443 - }, - "updateTime": { - "$id": "6666", - "kind": "number", - "type": { - "$ref": "1339" - }, - "value": 1606300465443 - }, - "version": { - "$id": "6667", - "kind": "number", - "type": { - "$ref": "1343" - }, - "value": 1 - }, - "name": { - "$id": "6668", - "kind": "string", - "type": { - "$ref": "1332" - }, - "value": "MS KPI" - }, - "description": { - "$id": "6669", - "kind": "string", - "type": { - "$ref": "1328" - }, - "value": "This is the description" - }, - "typeVersion": { - "$id": "6670", - "kind": "string", - "type": { - "$ref": "1337" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "6671", - "kind": "string", - "type": { - "$ref": "1345" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "6672", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6673", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6674", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "date" - }, - "typeName": { - "$id": "6675", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "date" - }, - "isOptional": { - "$id": "6676", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6677", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6678", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6679", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6680", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6681", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6682", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6683", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6684", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6685", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6686", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "single choice" - }, - "typeName": { - "$id": "6687", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "TERM_TEMPLATE_ENUM_EXAMPLE_1" - }, - "isOptional": { - "$id": "6688", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6689", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6690", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6691", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6692", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6693", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6694", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6695", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6696", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6697", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6698", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "multi choice" - }, - "typeName": { - "$id": "6699", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "isOptional": { - "$id": "6700", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6701", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6702", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6703", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 2147483647 - }, - "isUnique": { - "$id": "6704", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6705", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6706", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6707", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6708", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6709", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6710", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "plain string" - }, - "typeName": { - "$id": "6711", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6712", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6713", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6714", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6715", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6716", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6717", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6718", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "defaultValue": { - "$id": "6719", - "kind": "string", - "type": { - "$ref": "1049" - }, - "value": "this is a default value" - }, - "options": { - "$id": "6720", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6721", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6722", - "kind": "method", - "name": "guid", - "serializedName": "guid", - "doc": "The globally unique identifier of the term template.", - "type": { - "$id": "6723", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.guid", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6724", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "317" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1320" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateById" - }, - { - "$id": "6725", - "kind": "basic", - "name": "getTermTemplateByName", - "accessibility": "public", - "apiVersions": [ - "2023-09-01" - ], - "doc": "Get the term template definition by its name (unique).", - "operation": { - "$id": "6726", - "name": "getTermTemplateByName", - "resourceName": "TypeDefinition", - "doc": "Get the term template definition by its name (unique).", - "accessibility": "public", - "parameters": [ - { - "$id": "6727", - "kind": "query", - "name": "apiVersion", - "serializedName": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "6728", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": true, - "explode": false, - "defaultValue": { - "type": { - "$id": "6729", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": false, - "scope": "Client", - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.apiVersion", - "readOnly": false - }, - { - "$id": "6730", - "kind": "path", - "name": "name", - "serializedName": "name", - "doc": "The unique name of the term template.", - "type": { - "$id": "6731", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "explode": false, - "style": "simple", - "allowReserved": false, - "skipUrlEncoding": false, - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.name" - }, - { - "$id": "6732", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "319" - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.accept" - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1320" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}/datamap/api", - "path": "/types/termtemplatedef/name/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName", - "decorators": [], - "examples": [ - { - "$id": "6733", - "kind": "http", - "name": "Type_GetTermTemplateDefByName", - "description": "Type_GetTermTemplateDefByName", - "filePath": "2023-09-01/Type_GetTermTemplateDefByName.json", - "parameters": [ - { - "parameter": { - "$ref": "6730" - }, - "value": { - "$id": "6734", - "kind": "string", - "type": { - "$ref": "6731" - }, - "value": "MS KPI" - } - }, - { - "parameter": { - "$ref": "6727" - }, - "value": { - "$id": "6735", - "kind": "string", - "type": { - "$ref": "6728" - }, - "value": "2023-09-01" - } - } - ], - "responses": [ - { - "response": { - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "1320" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - }, - "statusCode": 200, - "bodyValue": { - "$id": "6736", - "kind": "model", - "type": { - "$ref": "1320" - }, - "value": { - "category": { - "$id": "6737", - "kind": "string", - "type": { - "$ref": "49" - }, - "value": "TERM_TEMPLATE" - }, - "guid": { - "$id": "6738", - "kind": "string", - "type": { - "$ref": "1330" - }, - "value": "d776af9c-985c-4168-abb2-477523dbfc70" - }, - "createdBy": { - "$id": "6739", - "kind": "string", - "type": { - "$ref": "1325" - }, - "value": "ExampleCreator" - }, - "updatedBy": { - "$id": "6740", - "kind": "string", - "type": { - "$ref": "1341" - }, - "value": "ExampleUpdator" - }, - "createTime": { - "$id": "6741", - "kind": "number", - "type": { - "$ref": "1323" - }, - "value": 1606300465443 - }, - "updateTime": { - "$id": "6742", - "kind": "number", - "type": { - "$ref": "1339" - }, - "value": 1606300465443 - }, - "version": { - "$id": "6743", - "kind": "number", - "type": { - "$ref": "1343" - }, - "value": 1 - }, - "name": { - "$id": "6744", - "kind": "string", - "type": { - "$ref": "1332" - }, - "value": "MS KPI" - }, - "description": { - "$id": "6745", - "kind": "string", - "type": { - "$ref": "1328" - }, - "value": "This is the description" - }, - "typeVersion": { - "$id": "6746", - "kind": "string", - "type": { - "$ref": "1337" - }, - "value": "1.0" - }, - "lastModifiedTS": { - "$id": "6747", - "kind": "string", - "type": { - "$ref": "1345" - }, - "value": "1" - }, - "attributeDefs": { - "$id": "6748", - "kind": "array", - "type": { - "$ref": "1039" - }, - "value": [ - { - "$id": "6749", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6750", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "date" - }, - "typeName": { - "$id": "6751", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "date" - }, - "isOptional": { - "$id": "6752", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6753", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6754", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6755", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6756", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6757", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6758", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6759", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6760", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6761", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6762", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "single choice" - }, - "typeName": { - "$id": "6763", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "TERM_TEMPLATE_ENUM_EXAMPLE_1" - }, - "isOptional": { - "$id": "6764", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6765", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6766", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6767", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6768", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6769", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6770", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6771", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6772", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6773", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6774", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "multi choice" - }, - "typeName": { - "$id": "6775", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "array" - }, - "isOptional": { - "$id": "6776", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6777", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SET" - }, - "valuesMinCount": { - "$id": "6778", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6779", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 2147483647 - }, - "isUnique": { - "$id": "6780", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6781", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6782", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "options": { - "$id": "6783", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6784", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - }, - { - "$id": "6785", - "kind": "model", - "type": { - "$ref": "1040" - }, - "value": { - "name": { - "$id": "6786", - "kind": "string", - "type": { - "$ref": "1061" - }, - "value": "plain string" - }, - "typeName": { - "$id": "6787", - "kind": "string", - "type": { - "$ref": "1064" - }, - "value": "string" - }, - "isOptional": { - "$id": "6788", - "kind": "boolean", - "type": { - "$ref": "1057" - }, - "value": true - }, - "cardinality": { - "$id": "6789", - "kind": "string", - "type": { - "$ref": "71" - }, - "value": "SINGLE" - }, - "valuesMinCount": { - "$id": "6790", - "kind": "number", - "type": { - "$ref": "1068" - }, - "value": 0 - }, - "valuesMaxCount": { - "$id": "6791", - "kind": "number", - "type": { - "$ref": "1066" - }, - "value": 1 - }, - "isUnique": { - "$id": "6792", - "kind": "boolean", - "type": { - "$ref": "1059" - }, - "value": false - }, - "isIndexable": { - "$id": "6793", - "kind": "boolean", - "type": { - "$ref": "1055" - }, - "value": false - }, - "includeInNotification": { - "$id": "6794", - "kind": "boolean", - "type": { - "$ref": "1053" - }, - "value": false - }, - "defaultValue": { - "$id": "6795", - "kind": "string", - "type": { - "$ref": "1049" - }, - "value": "this is a default value" - }, - "options": { - "$id": "6796", - "kind": "dict", - "type": { - "$ref": "362" - }, - "value": { - "isDisabled": { - "$id": "6797", - "kind": "string", - "type": { - "$ref": "364" - }, - "value": "false" - } - } - } - } - } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "6798", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "The unique name of the term template.", - "type": { - "$id": "6799", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.name", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "6800", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "319" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "response": { - "type": { - "$ref": "1320" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Customizations.TypeDefinition.getTermTemplateByName" - } - ], - "parameters": [ - { - "$id": "6801", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "type": { - "$id": "6802", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "serverUrlTemplate": "{endpoint}/datamap/api", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "PurviewDataMap.endpoint" - }, - { - "$id": "6803", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "doc": "The API version to use for this operation.", - "type": { - "$id": "6804", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "6805", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2023-09-01" - }, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Customizations.TypeDefinition.get.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "Customizations.TypeDefinition", - "apiVersions": [ - "2023-09-01" - ], - "parent": { - "$ref": "1353" - } - } - ] - } - ], - "auth": { - "oAuth2": { - "flows": [ - { - "scopes": [ - "https://purview.azure.net/.default" - ], - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize" - } - ] - } - } -} From d41d68904b4fd4a7aba787d098da0730f3a52e60 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 16:57:34 -0800 Subject: [PATCH 09/14] Update library inventory --- doc/GeneratorMigration/Library_Inventory.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/GeneratorMigration/Library_Inventory.md b/doc/GeneratorMigration/Library_Inventory.md index 5c5049ad4a10..e25fdea94e15 100644 --- a/doc/GeneratorMigration/Library_Inventory.md +++ b/doc/GeneratorMigration/Library_Inventory.md @@ -12,15 +12,15 @@ ## Summary -- Total libraries: 395 -- Management Plane (MPG): 226 - - Autorest/Swagger: 160 +- Total libraries: 394 +- Management Plane (MPG): 225 + - Autorest/Swagger: 159 - New Emitter (TypeSpec): 24 - Old TypeSpec: 42 - Data Plane (DPG): 169 - Autorest/Swagger: 87 - - New Emitter (TypeSpec): 16 - - Old TypeSpec: 17 + - New Emitter (TypeSpec): 17 + - Old TypeSpec: 16 - No generator: 49 @@ -28,7 +28,7 @@ Libraries that provide client APIs for Azure services and have been migrated to the new TypeSpec emitter. -**Migration Status**: 16 / 33 (48.5%) +**Migration Status**: 17 / 33 (51.5%) | Service | Library | New Emitter | | ------- | ------- | ----------- | @@ -60,7 +60,7 @@ Libraries that provide client APIs for Azure services and have been migrated to | monitor | Azure.Monitor.Query.Metrics | ✅ | | onlineexperimentation | Azure.Analytics.OnlineExperimentation | | | openai | Azure.AI.OpenAI | ✅ | -| purview | Azure.Analytics.Purview.DataMap | | +| purview | Azure.Analytics.Purview.DataMap | ✅ | | schemaregistry | Azure.Data.SchemaRegistry | ✅ | | translation | Azure.AI.Translation.Document | | | translation | Azure.AI.Translation.Text | ✅ | @@ -240,7 +240,7 @@ Libraries that provide resource management APIs for Azure services and have been ## Management Plane Libraries (MPG) - Still on Swagger -Libraries that have not yet been migrated to the new TypeSpec emitter. Total: 160 +Libraries that have not yet been migrated to the new TypeSpec emitter. Total: 159 | Service | Library | | ------- | ------- | @@ -313,7 +313,6 @@ Libraries that have not yet been migrated to the new TypeSpec emitter. Total: 16 | graphservices | Azure.ResourceManager.GraphServices | | guestconfiguration | Azure.ResourceManager.GuestConfiguration | | hdinsight | Azure.ResourceManager.HDInsight | -| hdinsightcontainers | Azure.ResourceManager.HDInsight.Containers | | healthbot | Azure.ResourceManager.HealthBot | | healthcareapis | Azure.ResourceManager.HealthcareApis | | hybridaks | Azure.ResourceManager.HybridContainerService | From 8014ab5a748a641d3ca8372dc698eddc443443c5 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 17:11:42 -0800 Subject: [PATCH 10/14] Update Library Inventory --- doc/GeneratorMigration/Library_Inventory.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/GeneratorMigration/Library_Inventory.md b/doc/GeneratorMigration/Library_Inventory.md index 9b28fb19ae7d..ec93067a76bb 100644 --- a/doc/GeneratorMigration/Library_Inventory.md +++ b/doc/GeneratorMigration/Library_Inventory.md @@ -19,8 +19,8 @@ - Old TypeSpec: 41 - Data Plane (DPG): 169 - Autorest/Swagger: 86 - - New Emitter (TypeSpec): 18 - - Old TypeSpec: 16 + - New Emitter (TypeSpec): 19 + - Old TypeSpec: 15 - No generator: 49 @@ -28,7 +28,7 @@ Libraries that provide client APIs for Azure services and have been migrated to the new TypeSpec emitter. -**Migration Status**: 18 / 34 (52.9%) +**Migration Status**: 19 / 34 (55.9%) | Service | Library | New Emitter | | ------- | ------- | ----------- | From 575d18235dffae69561a4cc6cb13f89c72d060bf Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 17:26:25 -0800 Subject: [PATCH 11/14] Fix build error --- .../tests/Samples/Samples_TypeDefinition.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs index bda347f77ff6..00ff50c234b5 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Samples/Samples_TypeDefinition.cs @@ -744,7 +744,7 @@ public async Task Example_TypeDefinition_Delete_TypeDelete_Async() // NOTE: The following samples are commented out because the new code generator // doesn't generate a GetTypeDefinition method with these signatures. // These will need to be regenerated when sample generation is added to the new generator. - + /* [Test] [Ignore("Only validating compilation of examples")] From 96d2b55544acf71859766aaef26933b2f7752940 Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Tue, 25 Nov 2025 17:52:43 -0800 Subject: [PATCH 12/14] Regenerate code --- .../src/Generated/{ => Models}/AtlasAttributeDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasAttributeDef.cs | 0 .../{ => Models}/AtlasBusinessMetadataDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasBusinessMetadataDef.cs | 0 .../Generated/{ => Models}/AtlasClassification.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasClassification.cs | 0 .../{ => Models}/AtlasClassificationDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasClassificationDef.cs | 0 .../Generated/{ => Models}/AtlasClassifications.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasClassifications.cs | 0 .../Generated/{ => Models}/AtlasConstraintDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasConstraintDef.cs | 0 .../src/Generated/{ => Models}/AtlasDateFormat.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasDateFormat.cs | 0 .../{ => Models}/AtlasEntitiesWithExtInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEntitiesWithExtInfo.cs | 0 .../src/Generated/{ => Models}/AtlasEntity.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEntity.cs | 0 .../src/Generated/{ => Models}/AtlasEntityDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEntityDef.cs | 0 .../src/Generated/{ => Models}/AtlasEntityHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEntityHeader.cs | 0 .../Generated/{ => Models}/AtlasEntityHeaders.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEntityHeaders.cs | 0 .../{ => Models}/AtlasEntityWithExtInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEntityWithExtInfo.cs | 0 .../src/Generated/{ => Models}/AtlasEnumDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEnumDef.cs | 0 .../Generated/{ => Models}/AtlasEnumElementDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasEnumElementDef.cs | 0 .../src/Generated/{ => Models}/AtlasGlossary.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasGlossary.cs | 0 .../Generated/{ => Models}/AtlasGlossaryCategory.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasGlossaryCategory.cs | 0 .../Generated/{ => Models}/AtlasGlossaryExtInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasGlossaryExtInfo.cs | 0 .../Generated/{ => Models}/AtlasGlossaryHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasGlossaryHeader.cs | 0 .../src/Generated/{ => Models}/AtlasGlossaryTerm.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasGlossaryTerm.cs | 0 .../src/Generated/{ => Models}/AtlasLineageInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasLineageInfo.cs | 0 .../src/Generated/{ => Models}/AtlasNumberFormat.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasNumberFormat.cs | 0 .../src/Generated/{ => Models}/AtlasObjectId.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasObjectId.cs | 0 .../{ => Models}/AtlasRelatedCategoryHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelatedCategoryHeader.cs | 0 .../Generated/{ => Models}/AtlasRelatedObjectId.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelatedObjectId.cs | 0 .../{ => Models}/AtlasRelatedTermHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelatedTermHeader.cs | 0 .../src/Generated/{ => Models}/AtlasRelationship.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelationship.cs | 0 .../{ => Models}/AtlasRelationshipAttributeDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelationshipAttributeDef.cs | 0 .../Generated/{ => Models}/AtlasRelationshipDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelationshipDef.cs | 0 .../{ => Models}/AtlasRelationshipEndDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelationshipEndDef.cs | 0 .../{ => Models}/AtlasRelationshipWithExtInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasRelationshipWithExtInfo.cs | 0 .../src/Generated/{ => Models}/AtlasSortType.cs | 0 .../src/Generated/{ => Models}/AtlasStruct.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasStruct.cs | 0 .../src/Generated/{ => Models}/AtlasStructDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasStructDef.cs | 0 .../{ => Models}/AtlasTermAssignmentHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasTermAssignmentHeader.cs | 0 .../src/Generated/{ => Models}/AtlasTermAssignmentStatus.cs | 0 .../{ => Models}/AtlasTermCategorizationHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasTermCategorizationHeader.cs | 0 .../src/Generated/{ => Models}/AtlasTermRelationshipStatus.cs | 0 .../src/Generated/{ => Models}/AtlasTimeZone.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasTimeZone.cs | 0 .../src/Generated/{ => Models}/AtlasTypeDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasTypeDef.cs | 0 .../Generated/{ => Models}/AtlasTypeDefHeader.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasTypeDefHeader.cs | 0 .../src/Generated/{ => Models}/AtlasTypesDef.Serialization.cs | 0 .../src/Generated/{ => Models}/AtlasTypesDef.cs | 0 .../Generated/{ => Models}/AutoCompleteConfig.Serialization.cs | 0 .../src/Generated/{ => Models}/AutoCompleteConfig.cs | 0 .../Generated/{ => Models}/AutoCompleteResult.Serialization.cs | 0 .../src/Generated/{ => Models}/AutoCompleteResult.cs | 0 .../{ => Models}/AutoCompleteResultValue.Serialization.cs | 0 .../src/Generated/{ => Models}/AutoCompleteResultValue.cs | 0 .../src/Generated/{ => Models}/BulkImportResult.Serialization.cs | 0 .../src/Generated/{ => Models}/BulkImportResult.cs | 0 .../src/Generated/{ => Models}/BusinessAttributeUpdateBehavior.cs | 0 .../{ => Models}/BusinessMetadataOptions.Serialization.cs | 0 .../src/Generated/{ => Models}/BusinessMetadataOptions.cs | 0 .../src/Generated/{ => Models}/CardinalityValue.cs | 0 .../{ => Models}/ClassificationAssociateConfig.Serialization.cs | 0 .../src/Generated/{ => Models}/ClassificationAssociateConfig.cs | 0 .../src/Generated/{ => Models}/ContactInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/ContactInfo.cs | 0 .../{ => Models}/ContactSearchResultValue.Serialization.cs | 0 .../src/Generated/{ => Models}/ContactSearchResultValue.cs | 0 .../Generated/{ => Models}/EntityMutationResult.Serialization.cs | 0 .../src/Generated/{ => Models}/EntityMutationResult.cs | 0 .../src/Generated/{ => Models}/EntityStatus.cs | 0 .../src/Generated/{ => Models}/ImportInfo.Serialization.cs | 0 .../src/Generated/{ => Models}/ImportInfo.cs | 0 .../src/Generated/{ => Models}/ImportStatus.cs | 0 .../src/Generated/{ => Models}/LineageDirection.cs | 0 .../src/Generated/{ => Models}/LineageRelation.Serialization.cs | 0 .../src/Generated/{ => Models}/LineageRelation.cs | 0 .../Generated/{ => Models}/MoveEntitiesConfig.Serialization.cs | 0 .../src/Generated/{ => Models}/MoveEntitiesConfig.cs | 0 .../src/Generated/{ => Models}/ParentRelation.Serialization.cs | 0 .../src/Generated/{ => Models}/ParentRelation.cs | 0 .../src/Generated/{ => Models}/PurviewObjectId.Serialization.cs | 0 .../src/Generated/{ => Models}/PurviewObjectId.cs | 0 .../src/Generated/{ => Models}/QueryConfig.Serialization.cs | 0 .../src/Generated/{ => Models}/QueryConfig.cs | 0 .../src/Generated/{ => Models}/QueryResult.Serialization.cs | 0 .../src/Generated/{ => Models}/QueryResult.cs | 0 .../src/Generated/{ => Models}/RelationshipCategory.cs | 0 .../src/Generated/{ => Models}/ResourceLink.Serialization.cs | 0 .../src/Generated/{ => Models}/ResourceLink.cs | 0 .../src/Generated/{ => Models}/RoundingMode.cs | 0 .../src/Generated/{ => Models}/SearchFacetItem.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchFacetItem.cs | 0 .../Generated/{ => Models}/SearchFacetItemValue.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchFacetItemValue.cs | 0 .../{ => Models}/SearchFacetResultValue.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchFacetResultValue.cs | 0 .../src/Generated/{ => Models}/SearchFacetSort.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchFacetSort.cs | 0 .../src/Generated/{ => Models}/SearchHighlights.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchHighlights.cs | 0 .../src/Generated/{ => Models}/SearchResultValue.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchResultValue.cs | 0 .../src/Generated/{ => Models}/SearchSortOrder.cs | 0 .../Generated/{ => Models}/SearchTaxonomySetting.Serialization.cs | 0 .../src/Generated/{ => Models}/SearchTaxonomySetting.cs | 0 .../src/Generated/{ => Models}/StatusAtlasRelationship.cs | 0 .../src/Generated/{ => Models}/SuggestConfig.Serialization.cs | 0 .../src/Generated/{ => Models}/SuggestConfig.cs | 0 .../src/Generated/{ => Models}/SuggestResult.Serialization.cs | 0 .../src/Generated/{ => Models}/SuggestResult.cs | 0 .../Generated/{ => Models}/SuggestResultValue.Serialization.cs | 0 .../src/Generated/{ => Models}/SuggestResultValue.cs | 0 .../Generated/{ => Models}/TermSearchResultValue.Serialization.cs | 0 .../src/Generated/{ => Models}/TermSearchResultValue.cs | 0 .../src/Generated/{ => Models}/TermStatus.cs | 0 .../src/Generated/{ => Models}/TermTemplateDef.Serialization.cs | 0 .../src/Generated/{ => Models}/TermTemplateDef.cs | 0 .../src/Generated/{ => Models}/TimeBoundary.Serialization.cs | 0 .../src/Generated/{ => Models}/TimeBoundary.cs | 0 .../src/Generated/{ => Models}/TypeCategory.cs | 0 152 files changed, 0 insertions(+), 0 deletions(-) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasAttributeDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasAttributeDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasBusinessMetadataDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasBusinessMetadataDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasClassification.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasClassification.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasClassificationDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasClassificationDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasClassifications.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasClassifications.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasConstraintDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasConstraintDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasDateFormat.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasDateFormat.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntitiesWithExtInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntitiesWithExtInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntity.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntity.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityHeaders.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityHeaders.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityWithExtInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEntityWithExtInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEnumDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEnumDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEnumElementDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasEnumElementDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossary.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossary.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryCategory.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryCategory.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryExtInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryExtInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryTerm.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasGlossaryTerm.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasLineageInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasLineageInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasNumberFormat.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasNumberFormat.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasObjectId.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasObjectId.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelatedCategoryHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelatedCategoryHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelatedObjectId.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelatedObjectId.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelatedTermHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelatedTermHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationship.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationship.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipAttributeDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipAttributeDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipEndDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipEndDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipWithExtInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasRelationshipWithExtInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasSortType.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasStruct.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasStruct.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasStructDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasStructDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTermAssignmentHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTermAssignmentHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTermAssignmentStatus.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTermCategorizationHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTermCategorizationHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTermRelationshipStatus.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTimeZone.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTimeZone.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTypeDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTypeDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTypeDefHeader.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTypeDefHeader.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTypesDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AtlasTypesDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AutoCompleteConfig.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AutoCompleteConfig.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AutoCompleteResult.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AutoCompleteResult.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AutoCompleteResultValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/AutoCompleteResultValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/BulkImportResult.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/BulkImportResult.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/BusinessAttributeUpdateBehavior.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/BusinessMetadataOptions.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/BusinessMetadataOptions.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/CardinalityValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ClassificationAssociateConfig.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ClassificationAssociateConfig.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ContactInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ContactInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ContactSearchResultValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ContactSearchResultValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/EntityMutationResult.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/EntityMutationResult.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/EntityStatus.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ImportInfo.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ImportInfo.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ImportStatus.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/LineageDirection.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/LineageRelation.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/LineageRelation.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/MoveEntitiesConfig.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/MoveEntitiesConfig.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ParentRelation.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ParentRelation.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/PurviewObjectId.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/PurviewObjectId.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/QueryConfig.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/QueryConfig.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/QueryResult.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/QueryResult.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/RelationshipCategory.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ResourceLink.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/ResourceLink.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/RoundingMode.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetItem.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetItem.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetItemValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetItemValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetResultValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetResultValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetSort.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchFacetSort.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchHighlights.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchHighlights.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchResultValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchResultValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchSortOrder.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchTaxonomySetting.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SearchTaxonomySetting.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/StatusAtlasRelationship.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SuggestConfig.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SuggestConfig.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SuggestResult.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SuggestResult.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SuggestResultValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/SuggestResultValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TermSearchResultValue.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TermSearchResultValue.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TermStatus.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TermTemplateDef.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TermTemplateDef.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TimeBoundary.Serialization.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TimeBoundary.cs (100%) rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{ => Models}/TypeCategory.cs (100%) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasAttributeDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasAttributeDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasAttributeDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasAttributeDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasAttributeDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasBusinessMetadataDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasBusinessMetadataDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasBusinessMetadataDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasBusinessMetadataDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasBusinessMetadataDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassification.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassification.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassification.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassification.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassification.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassificationDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassificationDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassificationDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassificationDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassificationDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassifications.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassifications.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassifications.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasClassifications.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasClassifications.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasConstraintDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasConstraintDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasConstraintDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasConstraintDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasConstraintDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasDateFormat.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasDateFormat.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasDateFormat.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasDateFormat.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasDateFormat.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntitiesWithExtInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntitiesWithExtInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntitiesWithExtInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntitiesWithExtInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntitiesWithExtInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntity.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntity.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntity.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntity.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntity.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeaders.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeaders.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeaders.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityHeaders.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityHeaders.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityWithExtInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityWithExtInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityWithExtInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEntityWithExtInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEntityWithExtInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumElementDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumElementDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumElementDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasEnumElementDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasEnumElementDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossary.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossary.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossary.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossary.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossary.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryCategory.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryCategory.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryCategory.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryCategory.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryCategory.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryExtInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryExtInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryExtInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryExtInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryExtInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryTerm.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryTerm.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryTerm.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasGlossaryTerm.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasLineageInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasLineageInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasLineageInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasLineageInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasNumberFormat.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasNumberFormat.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasNumberFormat.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasNumberFormat.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasNumberFormat.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasObjectId.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasObjectId.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasObjectId.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasObjectId.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasObjectId.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedCategoryHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedCategoryHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedCategoryHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedCategoryHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedCategoryHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedObjectId.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedObjectId.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedObjectId.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedObjectId.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedObjectId.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedTermHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedTermHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedTermHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelatedTermHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelatedTermHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationship.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationship.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationship.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationship.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationship.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipAttributeDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipAttributeDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipAttributeDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipAttributeDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipAttributeDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipEndDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipEndDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipEndDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipEndDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipEndDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipWithExtInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipWithExtInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipWithExtInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasRelationshipWithExtInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasRelationshipWithExtInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasSortType.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasSortType.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasSortType.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasSortType.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStruct.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStruct.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStruct.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStruct.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStruct.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStructDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStructDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStructDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasStructDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasStructDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermAssignmentHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermAssignmentHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermAssignmentHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermAssignmentHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermAssignmentStatus.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermAssignmentStatus.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermAssignmentStatus.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermCategorizationHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermCategorizationHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermCategorizationHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermCategorizationHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermCategorizationHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermRelationshipStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermRelationshipStatus.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTermRelationshipStatus.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTermRelationshipStatus.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTimeZone.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTimeZone.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTimeZone.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTimeZone.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTimeZone.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDefHeader.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDefHeader.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDefHeader.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypeDefHeader.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypeDefHeader.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypesDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypesDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypesDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasTypesDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AtlasTypesDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteConfig.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteConfig.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteConfig.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteConfig.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteConfig.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResult.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResult.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResult.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResult.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResult.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResultValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResultValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResultValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AutoCompleteResultValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/AutoCompleteResultValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BulkImportResult.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BulkImportResult.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BulkImportResult.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BulkImportResult.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BulkImportResult.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessAttributeUpdateBehavior.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BusinessAttributeUpdateBehavior.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessAttributeUpdateBehavior.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BusinessAttributeUpdateBehavior.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BusinessMetadataOptions.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BusinessMetadataOptions.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BusinessMetadataOptions.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/BusinessMetadataOptions.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/BusinessMetadataOptions.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/CardinalityValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/CardinalityValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/CardinalityValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/CardinalityValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ClassificationAssociateConfig.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ClassificationAssociateConfig.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ClassificationAssociateConfig.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ClassificationAssociateConfig.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ClassificationAssociateConfig.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactSearchResultValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactSearchResultValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactSearchResultValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ContactSearchResultValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ContactSearchResultValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/EntityMutationResult.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/EntityMutationResult.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/EntityMutationResult.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityMutationResult.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/EntityMutationResult.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/EntityStatus.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/EntityStatus.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/EntityStatus.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ImportInfo.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ImportInfo.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ImportInfo.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportInfo.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ImportInfo.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ImportStatus.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ImportStatus.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ImportStatus.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageDirection.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/LineageDirection.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageDirection.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/LineageDirection.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/LineageRelation.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/LineageRelation.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/LineageRelation.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/LineageRelation.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/LineageRelation.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/MoveEntitiesConfig.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/MoveEntitiesConfig.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/MoveEntitiesConfig.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/MoveEntitiesConfig.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/MoveEntitiesConfig.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ParentRelation.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ParentRelation.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ParentRelation.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ParentRelation.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ParentRelation.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/PurviewObjectId.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/PurviewObjectId.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/PurviewObjectId.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewObjectId.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/PurviewObjectId.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryConfig.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryConfig.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryConfig.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryConfig.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryConfig.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryResult.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryResult.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryResult.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/QueryResult.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/QueryResult.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RelationshipCategory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/RelationshipCategory.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RelationshipCategory.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/RelationshipCategory.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ResourceLink.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ResourceLink.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ResourceLink.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/ResourceLink.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/ResourceLink.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RoundingMode.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/RoundingMode.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/RoundingMode.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/RoundingMode.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItem.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItem.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItem.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItem.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItem.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItemValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItemValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItemValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetItemValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetItemValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetResultValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetResultValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetResultValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetResultValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetResultValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetSort.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetSort.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetSort.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchFacetSort.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchFacetSort.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchHighlights.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchHighlights.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchHighlights.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchHighlights.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchHighlights.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchResultValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchResultValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchResultValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchResultValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchResultValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchSortOrder.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchSortOrder.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchSortOrder.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchSortOrder.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchTaxonomySetting.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchTaxonomySetting.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchTaxonomySetting.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SearchTaxonomySetting.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SearchTaxonomySetting.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/StatusAtlasRelationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/StatusAtlasRelationship.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/StatusAtlasRelationship.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/StatusAtlasRelationship.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestConfig.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestConfig.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestConfig.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestConfig.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestConfig.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResult.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResult.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResult.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResult.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResult.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResultValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResultValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResultValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/SuggestResultValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/SuggestResultValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermSearchResultValue.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermSearchResultValue.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermSearchResultValue.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermSearchResultValue.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermSearchResultValue.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermStatus.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermStatus.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermStatus.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermStatus.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermTemplateDef.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermTemplateDef.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermTemplateDef.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TermTemplateDef.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TermTemplateDef.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.Serialization.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TimeBoundary.Serialization.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.Serialization.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TimeBoundary.Serialization.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TimeBoundary.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TimeBoundary.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TimeBoundary.cs diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeCategory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TypeCategory.cs similarity index 100% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/TypeCategory.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Models/TypeCategory.cs From 64d77ff46ba1d09706f63e4767ef2f554f40201b Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Mon, 1 Dec 2025 16:29:04 -0800 Subject: [PATCH 13/14] Remove `IncludeAutorestDependency` --- .../src/Azure.Analytics.Purview.DataMap.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj index 99f95862c69d..dc2ad6015522 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Azure.Analytics.Purview.DataMap.csproj @@ -7,7 +7,6 @@ $(RequiredTargetFrameworks) $(NoWarn);AZC0012;AZC0030;AZC0034 true - true From cab1548262c4b5b4178f675f48b41ae2cc874adc Mon Sep 17 00:00:00 2001 From: JonathanCrd Date: Mon, 1 Dec 2025 16:46:03 -0800 Subject: [PATCH 14/14] Rename Model Factory --- .../Azure.Analytics.Purview.DataMap.net8.0.cs | 144 +++++++++--------- ...nalytics.Purview.DataMap.netstandard2.0.cs | 144 +++++++++--------- .../AnalyticsPurviewDataMapModelFactory.cs | 13 ++ ...=> AnalyticsPurviewDataMapModelFactory.cs} | 2 +- 4 files changed, 158 insertions(+), 145 deletions(-) create mode 100644 sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/AnalyticsPurviewDataMapModelFactory.cs rename sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/{PurviewDataMapModelFactory.cs => AnalyticsPurviewDataMapModelFactory.cs} (99%) diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs index 6eff3ce0e551..d5c0b60a2cfd 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.net8.0.cs @@ -1,5 +1,77 @@ namespace Azure.Analytics.Purview.DataMap { + public static partial class AnalyticsPurviewDataMapModelFactory + { + public static Azure.Analytics.Purview.DataMap.AtlasAttributeDef AtlasAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef AtlasBusinessMetadataDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassification AtlasClassification(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, string entityGuid = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), bool? removePropagationsOnEntityDelete = default(bool?), System.Collections.Generic.IEnumerable validityPeriods = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassificationDef AtlasClassificationDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasConstraintDef AtlasConstraintDef(System.Collections.Generic.IDictionary @params = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasDateFormat AtlasDateFormat(System.Collections.Generic.IEnumerable availableLocales = null, float? calendar = default(float?), Azure.Analytics.Purview.DataMap.AtlasDateFormat dateInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateTimeInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat instance = null, bool? lenient = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberFormat = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat timeInstance = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone timeZone = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, System.Collections.Generic.IEnumerable entities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityDef AtlasEntityDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeader AtlasEntityHeader(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IEnumerable classificationNames = null, System.Collections.Generic.IEnumerable classifications = null, string displayText = null, string guid = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meaningNames = null, System.Collections.Generic.IEnumerable meanings = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeaders AtlasEntityHeaders(System.Collections.Generic.IDictionary guidHeaderMap = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo AtlasEntityWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasEntity entity = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumDef AtlasEnumDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumElementDef AtlasEnumElementDef(string description = null, int? ordinal = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossary AtlasGlossary(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory AtlasGlossaryCategory(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable childrenCategories = null, Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader parentCategory = null, System.Collections.Generic.IEnumerable terms = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IDictionary categoryInfo = null, System.Collections.Generic.IDictionary termInfo = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = null, string glossaryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm AtlasGlossaryTerm(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, string abbreviation = null, System.Collections.Generic.IEnumerable templateName = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable antonyms = null, Azure.Analytics.Purview.DataMap.TermStatus? status = default(Azure.Analytics.Purview.DataMap.TermStatus?), string nickName = null, System.Collections.Generic.IEnumerable hierarchyInfo = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IDictionary> contacts = null, System.Collections.Generic.IDictionary> attributes = null, System.Collections.Generic.IEnumerable assignedEntities = null, System.Collections.Generic.IEnumerable categories = null, System.Collections.Generic.IEnumerable classifies = null, System.Collections.Generic.IEnumerable examples = null, System.Collections.Generic.IEnumerable isA = null, System.Collections.Generic.IEnumerable preferredTerms = null, System.Collections.Generic.IEnumerable preferredToTerms = null, System.Collections.Generic.IEnumerable replacedBy = null, System.Collections.Generic.IEnumerable replacementTerms = null, System.Collections.Generic.IEnumerable seeAlso = null, System.Collections.Generic.IEnumerable synonyms = null, System.Collections.Generic.IEnumerable translatedTerms = null, System.Collections.Generic.IEnumerable translationTerms = null, string usage = null, System.Collections.Generic.IEnumerable validValues = null, System.Collections.Generic.IEnumerable validValuesFor = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IDictionary guidEntityMap = null, System.Collections.Generic.IDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasNumberFormat AtlasNumberFormat(System.Collections.Generic.IEnumerable availableLocales = null, string currency = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat currencyInstance = null, bool? groupingUsed = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat instance = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat integerInstance = null, int? maximumFractionDigits = default(int?), int? maximumIntegerDigits = default(int?), int? minimumFractionDigits = default(int?), int? minimumIntegerDigits = default(int?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberInstance = null, bool? parseIntegerOnly = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat percentInstance = null, Azure.Analytics.Purview.DataMap.RoundingMode? roundingMode = default(Azure.Analytics.Purview.DataMap.RoundingMode?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasObjectId AtlasObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = null, string description = null, string displayText = null, string parentCategoryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId AtlasRelatedObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string displayText = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), string relationshipType = null, Azure.Analytics.Purview.DataMap.AtlasStruct relationshipAttributes = null, System.Guid? relationshipGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? relationshipStatus = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = null, string displayText = null, string expression = null, string relationGuid = null, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?), string steward = null, string termGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationship AtlasRelationship(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end1 = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end2 = null, string guid = null, string homeId = null, string label = null, int? provenanceType = default(int?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? status = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?), bool? isLegacyAttribute = default(bool?), string relationshipTypeName = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipDef AtlasRelationshipDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef AtlasRelationshipEndDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), string description = null, bool? isContainer = default(bool?), bool? isLegacyAttribute = default(bool?), string name = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStruct AtlasStruct(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStructDef AtlasStructDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default(int?), string createdBy = null, string description = null, string displayText = null, string expression = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus?), string steward = null, System.Guid? termGuid = default(System.Guid?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader AtlasTermCategorizationHeader(System.Guid? categoryGuid = default(System.Guid?), string description = null, string displayText = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTimeZone AtlasTimeZone(int? dstSavings = default(int?), string id = null, System.Collections.Generic.IEnumerable availableIds = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone @default = null, string displayName = null, int? rawOffset = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypesDef AtlasTypesDef(System.Collections.Generic.IEnumerable businessMetadataDefs = null, System.Collections.Generic.IEnumerable classificationDefs = null, System.Collections.Generic.IEnumerable entityDefs = null, System.Collections.Generic.IEnumerable enumDefs = null, System.Collections.Generic.IEnumerable relationshipDefs = null, System.Collections.Generic.IEnumerable structDefs = null, System.Collections.Generic.IEnumerable termTemplateDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteConfig AutoCompleteConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BusinessMetadataOptions BusinessMetadataOptions(System.BinaryData file = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig ClassificationAssociateConfig(Azure.Analytics.Purview.DataMap.AtlasClassification classification = null, System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactInfo ContactInfo(string id = null, string info = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IDictionary guidAssignments = null, System.Collections.Generic.IDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.MoveEntitiesConfig MoveEntitiesConfig(System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.PurviewObjectId PurviewObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string name = null, string displayText = null, string itemPath = null, string resourceId = null, System.Collections.Generic.IDictionary properties = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryConfig QueryConfig(string keywords = null, int? limit = default(int?), string continuationToken = null, System.Collections.Generic.IEnumerable orderby = null, System.BinaryData filter = null, System.Collections.Generic.IEnumerable facets = null, Azure.Analytics.Purview.DataMap.SearchTaxonomySetting taxonomySetting = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ResourceLink ResourceLink(string displayName = null, string url = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItem SearchFacetItem(int? count = default(int?), string facet = null, Azure.Analytics.Purview.DataMap.SearchFacetSort sort = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetSort SearchFacetSort(Azure.Analytics.Purview.DataMap.SearchSortOrder? count = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?), Azure.Analytics.Purview.DataMap.SearchSortOrder? value = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchTaxonomySetting SearchTaxonomySetting(System.Collections.Generic.IEnumerable assetTypes = null, Azure.Analytics.Purview.DataMap.SearchFacetItem facet = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestConfig SuggestConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermTemplateDef TermTemplateDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TimeBoundary TimeBoundary(string endTime = null, string startTime = null, string timeZone = null) { throw null; } + } public partial class AtlasAttributeDef : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AtlasAttributeDef() { } @@ -1641,78 +1713,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public static partial class PurviewDataMapModelFactory - { - public static Azure.Analytics.Purview.DataMap.AtlasAttributeDef AtlasAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef AtlasBusinessMetadataDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasClassification AtlasClassification(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, string entityGuid = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), bool? removePropagationsOnEntityDelete = default(bool?), System.Collections.Generic.IEnumerable validityPeriods = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasClassificationDef AtlasClassificationDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasConstraintDef AtlasConstraintDef(System.Collections.Generic.IDictionary @params = null, string type = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasDateFormat AtlasDateFormat(System.Collections.Generic.IEnumerable availableLocales = null, float? calendar = default(float?), Azure.Analytics.Purview.DataMap.AtlasDateFormat dateInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateTimeInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat instance = null, bool? lenient = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberFormat = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat timeInstance = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone timeZone = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, System.Collections.Generic.IEnumerable entities = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityDef AtlasEntityDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityHeader AtlasEntityHeader(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IEnumerable classificationNames = null, System.Collections.Generic.IEnumerable classifications = null, string displayText = null, string guid = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meaningNames = null, System.Collections.Generic.IEnumerable meanings = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityHeaders AtlasEntityHeaders(System.Collections.Generic.IDictionary guidHeaderMap = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo AtlasEntityWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasEntity entity = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEnumDef AtlasEnumDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEnumElementDef AtlasEnumElementDef(string description = null, int? ordinal = default(int?), string value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossary AtlasGlossary(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory AtlasGlossaryCategory(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable childrenCategories = null, Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader parentCategory = null, System.Collections.Generic.IEnumerable terms = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IDictionary categoryInfo = null, System.Collections.Generic.IDictionary termInfo = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = null, string glossaryGuid = null, string relationGuid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm AtlasGlossaryTerm(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, string abbreviation = null, System.Collections.Generic.IEnumerable templateName = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable antonyms = null, Azure.Analytics.Purview.DataMap.TermStatus? status = default(Azure.Analytics.Purview.DataMap.TermStatus?), string nickName = null, System.Collections.Generic.IEnumerable hierarchyInfo = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IDictionary> contacts = null, System.Collections.Generic.IDictionary> attributes = null, System.Collections.Generic.IEnumerable assignedEntities = null, System.Collections.Generic.IEnumerable categories = null, System.Collections.Generic.IEnumerable classifies = null, System.Collections.Generic.IEnumerable examples = null, System.Collections.Generic.IEnumerable isA = null, System.Collections.Generic.IEnumerable preferredTerms = null, System.Collections.Generic.IEnumerable preferredToTerms = null, System.Collections.Generic.IEnumerable replacedBy = null, System.Collections.Generic.IEnumerable replacementTerms = null, System.Collections.Generic.IEnumerable seeAlso = null, System.Collections.Generic.IEnumerable synonyms = null, System.Collections.Generic.IEnumerable translatedTerms = null, System.Collections.Generic.IEnumerable translationTerms = null, string usage = null, System.Collections.Generic.IEnumerable validValues = null, System.Collections.Generic.IEnumerable validValuesFor = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IDictionary guidEntityMap = null, System.Collections.Generic.IDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasNumberFormat AtlasNumberFormat(System.Collections.Generic.IEnumerable availableLocales = null, string currency = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat currencyInstance = null, bool? groupingUsed = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat instance = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat integerInstance = null, int? maximumFractionDigits = default(int?), int? maximumIntegerDigits = default(int?), int? minimumFractionDigits = default(int?), int? minimumIntegerDigits = default(int?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberInstance = null, bool? parseIntegerOnly = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat percentInstance = null, Azure.Analytics.Purview.DataMap.RoundingMode? roundingMode = default(Azure.Analytics.Purview.DataMap.RoundingMode?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasObjectId AtlasObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = null, string description = null, string displayText = null, string parentCategoryGuid = null, string relationGuid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId AtlasRelatedObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string displayText = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), string relationshipType = null, Azure.Analytics.Purview.DataMap.AtlasStruct relationshipAttributes = null, System.Guid? relationshipGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? relationshipStatus = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = null, string displayText = null, string expression = null, string relationGuid = null, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?), string steward = null, string termGuid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationship AtlasRelationship(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end1 = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end2 = null, string guid = null, string homeId = null, string label = null, int? provenanceType = default(int?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? status = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?), bool? isLegacyAttribute = default(bool?), string relationshipTypeName = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipDef AtlasRelationshipDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef AtlasRelationshipEndDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), string description = null, bool? isContainer = default(bool?), bool? isLegacyAttribute = default(bool?), string name = null, string type = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasStruct AtlasStruct(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasStructDef AtlasStructDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default(int?), string createdBy = null, string description = null, string displayText = null, string expression = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus?), string steward = null, System.Guid? termGuid = default(System.Guid?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader AtlasTermCategorizationHeader(System.Guid? categoryGuid = default(System.Guid?), string description = null, string displayText = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTimeZone AtlasTimeZone(int? dstSavings = default(int?), string id = null, System.Collections.Generic.IEnumerable availableIds = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone @default = null, string displayName = null, int? rawOffset = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypesDef AtlasTypesDef(System.Collections.Generic.IEnumerable businessMetadataDefs = null, System.Collections.Generic.IEnumerable classificationDefs = null, System.Collections.Generic.IEnumerable entityDefs = null, System.Collections.Generic.IEnumerable enumDefs = null, System.Collections.Generic.IEnumerable relationshipDefs = null, System.Collections.Generic.IEnumerable structDefs = null, System.Collections.Generic.IEnumerable termTemplateDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteConfig AutoCompleteConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.BusinessMetadataOptions BusinessMetadataOptions(System.BinaryData file = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig ClassificationAssociateConfig(Azure.Analytics.Purview.DataMap.AtlasClassification classification = null, System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ContactInfo ContactInfo(string id = null, string info = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IDictionary guidAssignments = null, System.Collections.Generic.IDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.MoveEntitiesConfig MoveEntitiesConfig(System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.PurviewObjectId PurviewObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string name = null, string displayText = null, string itemPath = null, string resourceId = null, System.Collections.Generic.IDictionary properties = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.QueryConfig QueryConfig(string keywords = null, int? limit = default(int?), string continuationToken = null, System.Collections.Generic.IEnumerable orderby = null, System.BinaryData filter = null, System.Collections.Generic.IEnumerable facets = null, Azure.Analytics.Purview.DataMap.SearchTaxonomySetting taxonomySetting = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ResourceLink ResourceLink(string displayName = null, string url = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetItem SearchFacetItem(int? count = default(int?), string facet = null, Azure.Analytics.Purview.DataMap.SearchFacetSort sort = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetSort SearchFacetSort(Azure.Analytics.Purview.DataMap.SearchSortOrder? count = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?), Azure.Analytics.Purview.DataMap.SearchSortOrder? value = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchTaxonomySetting SearchTaxonomySetting(System.Collections.Generic.IEnumerable assetTypes = null, Azure.Analytics.Purview.DataMap.SearchFacetItem facet = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestConfig SuggestConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TermTemplateDef TermTemplateDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TimeBoundary TimeBoundary(string endTime = null, string startTime = null, string timeZone = null) { throw null; } - } public partial class PurviewObjectId : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PurviewObjectId() { } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs index 0b459d48d352..59130d68c70b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/api/Azure.Analytics.Purview.DataMap.netstandard2.0.cs @@ -1,5 +1,77 @@ namespace Azure.Analytics.Purview.DataMap { + public static partial class AnalyticsPurviewDataMapModelFactory + { + public static Azure.Analytics.Purview.DataMap.AtlasAttributeDef AtlasAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef AtlasBusinessMetadataDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassification AtlasClassification(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, string entityGuid = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), bool? removePropagationsOnEntityDelete = default(bool?), System.Collections.Generic.IEnumerable validityPeriods = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassificationDef AtlasClassificationDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasConstraintDef AtlasConstraintDef(System.Collections.Generic.IDictionary @params = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasDateFormat AtlasDateFormat(System.Collections.Generic.IEnumerable availableLocales = null, float? calendar = default(float?), Azure.Analytics.Purview.DataMap.AtlasDateFormat dateInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateTimeInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat instance = null, bool? lenient = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberFormat = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat timeInstance = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone timeZone = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, System.Collections.Generic.IEnumerable entities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityDef AtlasEntityDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeader AtlasEntityHeader(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IEnumerable classificationNames = null, System.Collections.Generic.IEnumerable classifications = null, string displayText = null, string guid = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meaningNames = null, System.Collections.Generic.IEnumerable meanings = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityHeaders AtlasEntityHeaders(System.Collections.Generic.IDictionary guidHeaderMap = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo AtlasEntityWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasEntity entity = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumDef AtlasEnumDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasEnumElementDef AtlasEnumElementDef(string description = null, int? ordinal = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossary AtlasGlossary(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory AtlasGlossaryCategory(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable childrenCategories = null, Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader parentCategory = null, System.Collections.Generic.IEnumerable terms = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IDictionary categoryInfo = null, System.Collections.Generic.IDictionary termInfo = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = null, string glossaryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm AtlasGlossaryTerm(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, string abbreviation = null, System.Collections.Generic.IEnumerable templateName = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable antonyms = null, Azure.Analytics.Purview.DataMap.TermStatus? status = default(Azure.Analytics.Purview.DataMap.TermStatus?), string nickName = null, System.Collections.Generic.IEnumerable hierarchyInfo = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IDictionary> contacts = null, System.Collections.Generic.IDictionary> attributes = null, System.Collections.Generic.IEnumerable assignedEntities = null, System.Collections.Generic.IEnumerable categories = null, System.Collections.Generic.IEnumerable classifies = null, System.Collections.Generic.IEnumerable examples = null, System.Collections.Generic.IEnumerable isA = null, System.Collections.Generic.IEnumerable preferredTerms = null, System.Collections.Generic.IEnumerable preferredToTerms = null, System.Collections.Generic.IEnumerable replacedBy = null, System.Collections.Generic.IEnumerable replacementTerms = null, System.Collections.Generic.IEnumerable seeAlso = null, System.Collections.Generic.IEnumerable synonyms = null, System.Collections.Generic.IEnumerable translatedTerms = null, System.Collections.Generic.IEnumerable translationTerms = null, string usage = null, System.Collections.Generic.IEnumerable validValues = null, System.Collections.Generic.IEnumerable validValuesFor = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IDictionary guidEntityMap = null, System.Collections.Generic.IDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasNumberFormat AtlasNumberFormat(System.Collections.Generic.IEnumerable availableLocales = null, string currency = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat currencyInstance = null, bool? groupingUsed = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat instance = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat integerInstance = null, int? maximumFractionDigits = default(int?), int? maximumIntegerDigits = default(int?), int? minimumFractionDigits = default(int?), int? minimumIntegerDigits = default(int?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberInstance = null, bool? parseIntegerOnly = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat percentInstance = null, Azure.Analytics.Purview.DataMap.RoundingMode? roundingMode = default(Azure.Analytics.Purview.DataMap.RoundingMode?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasObjectId AtlasObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = null, string description = null, string displayText = null, string parentCategoryGuid = null, string relationGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId AtlasRelatedObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string displayText = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), string relationshipType = null, Azure.Analytics.Purview.DataMap.AtlasStruct relationshipAttributes = null, System.Guid? relationshipGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? relationshipStatus = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = null, string displayText = null, string expression = null, string relationGuid = null, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?), string steward = null, string termGuid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationship AtlasRelationship(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end1 = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end2 = null, string guid = null, string homeId = null, string label = null, int? provenanceType = default(int?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? status = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?), bool? isLegacyAttribute = default(bool?), string relationshipTypeName = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipDef AtlasRelationshipDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef AtlasRelationshipEndDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), string description = null, bool? isContainer = default(bool?), bool? isLegacyAttribute = default(bool?), string name = null, string type = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStruct AtlasStruct(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasStructDef AtlasStructDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default(int?), string createdBy = null, string description = null, string displayText = null, string expression = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus?), string steward = null, System.Guid? termGuid = default(System.Guid?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader AtlasTermCategorizationHeader(System.Guid? categoryGuid = default(System.Guid?), string description = null, string displayText = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTimeZone AtlasTimeZone(int? dstSavings = default(int?), string id = null, System.Collections.Generic.IEnumerable availableIds = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone @default = null, string displayName = null, int? rawOffset = default(int?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AtlasTypesDef AtlasTypesDef(System.Collections.Generic.IEnumerable businessMetadataDefs = null, System.Collections.Generic.IEnumerable classificationDefs = null, System.Collections.Generic.IEnumerable entityDefs = null, System.Collections.Generic.IEnumerable enumDefs = null, System.Collections.Generic.IEnumerable relationshipDefs = null, System.Collections.Generic.IEnumerable structDefs = null, System.Collections.Generic.IEnumerable termTemplateDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteConfig AutoCompleteConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.BusinessMetadataOptions BusinessMetadataOptions(System.BinaryData file = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig ClassificationAssociateConfig(Azure.Analytics.Purview.DataMap.AtlasClassification classification = null, System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactInfo ContactInfo(string id = null, string info = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IDictionary guidAssignments = null, System.Collections.Generic.IDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.MoveEntitiesConfig MoveEntitiesConfig(System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.PurviewObjectId PurviewObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string name = null, string displayText = null, string itemPath = null, string resourceId = null, System.Collections.Generic.IDictionary properties = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryConfig QueryConfig(string keywords = null, int? limit = default(int?), string continuationToken = null, System.Collections.Generic.IEnumerable orderby = null, System.BinaryData filter = null, System.Collections.Generic.IEnumerable facets = null, Azure.Analytics.Purview.DataMap.SearchTaxonomySetting taxonomySetting = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.ResourceLink ResourceLink(string displayName = null, string url = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItem SearchFacetItem(int? count = default(int?), string facet = null, Azure.Analytics.Purview.DataMap.SearchFacetSort sort = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchFacetSort SearchFacetSort(Azure.Analytics.Purview.DataMap.SearchSortOrder? count = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?), Azure.Analytics.Purview.DataMap.SearchSortOrder? value = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?)) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SearchTaxonomySetting SearchTaxonomySetting(System.Collections.Generic.IEnumerable assetTypes = null, Azure.Analytics.Purview.DataMap.SearchFacetItem facet = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestConfig SuggestConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TermTemplateDef TermTemplateDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } + public static Azure.Analytics.Purview.DataMap.TimeBoundary TimeBoundary(string endTime = null, string startTime = null, string timeZone = null) { throw null; } + } public partial class AtlasAttributeDef : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AtlasAttributeDef() { } @@ -1641,78 +1713,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public static partial class PurviewDataMapModelFactory - { - public static Azure.Analytics.Purview.DataMap.AtlasAttributeDef AtlasAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasBusinessMetadataDef AtlasBusinessMetadataDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasClassification AtlasClassification(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, string entityGuid = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), bool? removePropagationsOnEntityDelete = default(bool?), System.Collections.Generic.IEnumerable validityPeriods = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasClassificationDef AtlasClassificationDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasClassifications AtlasClassifications(System.Collections.Generic.IEnumerable list = null, int? pageSize = default(int?), string sortBy = null, Azure.Analytics.Purview.DataMap.AtlasSortType? sortType = default(Azure.Analytics.Purview.DataMap.AtlasSortType?), int? startIndex = default(int?), int? totalCount = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasConstraintDef AtlasConstraintDef(System.Collections.Generic.IDictionary @params = null, string type = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasDateFormat AtlasDateFormat(System.Collections.Generic.IEnumerable availableLocales = null, float? calendar = default(float?), Azure.Analytics.Purview.DataMap.AtlasDateFormat dateInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateTimeInstance = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat instance = null, bool? lenient = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberFormat = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat timeInstance = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone timeZone = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntitiesWithExtInfo AtlasEntitiesWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, System.Collections.Generic.IEnumerable entities = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntity AtlasEntity(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IDictionary businessAttributes = null, System.Collections.Generic.IEnumerable classifications = null, long? createTime = default(long?), string createdBy = null, System.Collections.Generic.IDictionary customAttributes = null, string guid = null, string homeId = null, string collectionId = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meanings = null, int? provenanceType = default(int?), bool? proxy = default(bool?), System.Collections.Generic.IDictionary relationshipAttributes = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), System.Collections.Generic.IDictionary> contacts = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityDef AtlasEntityDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityHeader AtlasEntityHeader(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, System.Collections.Generic.IEnumerable classificationNames = null, System.Collections.Generic.IEnumerable classifications = null, string displayText = null, string guid = null, bool? isIncomplete = default(bool?), System.Collections.Generic.IEnumerable labels = null, System.Collections.Generic.IEnumerable meaningNames = null, System.Collections.Generic.IEnumerable meanings = null, Azure.Analytics.Purview.DataMap.EntityStatus? status = default(Azure.Analytics.Purview.DataMap.EntityStatus?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityHeaders AtlasEntityHeaders(System.Collections.Generic.IDictionary guidHeaderMap = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEntityWithExtInfo AtlasEntityWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasEntity entity = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEnumDef AtlasEnumDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasEnumElementDef AtlasEnumElementDef(string description = null, int? ordinal = default(int?), string value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossary AtlasGlossary(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryCategory AtlasGlossaryCategory(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable childrenCategories = null, Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader parentCategory = null, System.Collections.Generic.IEnumerable terms = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryExtInfo AtlasGlossaryExtInfo(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, System.Collections.Generic.IEnumerable categories = null, string language = null, System.Collections.Generic.IEnumerable terms = null, string usage = null, System.Collections.Generic.IDictionary categoryInfo = null, System.Collections.Generic.IDictionary termInfo = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader AtlasGlossaryHeader(string displayText = null, string glossaryGuid = null, string relationGuid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasGlossaryTerm AtlasGlossaryTerm(string guid = null, System.Collections.Generic.IEnumerable classifications = null, string longDescription = null, string name = null, string qualifiedName = null, string shortDescription = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, long? updateTime = default(long?), string updatedBy = null, string abbreviation = null, System.Collections.Generic.IEnumerable templateName = null, Azure.Analytics.Purview.DataMap.AtlasGlossaryHeader anchor = null, System.Collections.Generic.IEnumerable antonyms = null, Azure.Analytics.Purview.DataMap.TermStatus? status = default(Azure.Analytics.Purview.DataMap.TermStatus?), string nickName = null, System.Collections.Generic.IEnumerable hierarchyInfo = null, System.Collections.Generic.IEnumerable resources = null, System.Collections.Generic.IDictionary> contacts = null, System.Collections.Generic.IDictionary> attributes = null, System.Collections.Generic.IEnumerable assignedEntities = null, System.Collections.Generic.IEnumerable categories = null, System.Collections.Generic.IEnumerable classifies = null, System.Collections.Generic.IEnumerable examples = null, System.Collections.Generic.IEnumerable isA = null, System.Collections.Generic.IEnumerable preferredTerms = null, System.Collections.Generic.IEnumerable preferredToTerms = null, System.Collections.Generic.IEnumerable replacedBy = null, System.Collections.Generic.IEnumerable replacementTerms = null, System.Collections.Generic.IEnumerable seeAlso = null, System.Collections.Generic.IEnumerable synonyms = null, System.Collections.Generic.IEnumerable translatedTerms = null, System.Collections.Generic.IEnumerable translationTerms = null, string usage = null, System.Collections.Generic.IEnumerable validValues = null, System.Collections.Generic.IEnumerable validValuesFor = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasLineageInfo AtlasLineageInfo(string baseEntityGuid = null, System.Collections.Generic.IDictionary guidEntityMap = null, System.Collections.Generic.IDictionary> widthCounts = null, int? lineageDepth = default(int?), int? lineageWidth = default(int?), int? childrenCount = default(int?), Azure.Analytics.Purview.DataMap.LineageDirection? lineageDirection = default(Azure.Analytics.Purview.DataMap.LineageDirection?), System.Collections.Generic.IEnumerable parentRelations = null, System.Collections.Generic.IEnumerable relations = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasNumberFormat AtlasNumberFormat(System.Collections.Generic.IEnumerable availableLocales = null, string currency = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat currencyInstance = null, bool? groupingUsed = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat instance = null, Azure.Analytics.Purview.DataMap.AtlasNumberFormat integerInstance = null, int? maximumFractionDigits = default(int?), int? maximumIntegerDigits = default(int?), int? minimumFractionDigits = default(int?), int? minimumIntegerDigits = default(int?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat numberInstance = null, bool? parseIntegerOnly = default(bool?), Azure.Analytics.Purview.DataMap.AtlasNumberFormat percentInstance = null, Azure.Analytics.Purview.DataMap.RoundingMode? roundingMode = default(Azure.Analytics.Purview.DataMap.RoundingMode?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasObjectId AtlasObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelatedCategoryHeader AtlasRelatedCategoryHeader(string categoryGuid = null, string description = null, string displayText = null, string parentCategoryGuid = null, string relationGuid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelatedObjectId AtlasRelatedObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string displayText = null, Azure.Analytics.Purview.DataMap.EntityStatus? entityStatus = default(Azure.Analytics.Purview.DataMap.EntityStatus?), string relationshipType = null, Azure.Analytics.Purview.DataMap.AtlasStruct relationshipAttributes = null, System.Guid? relationshipGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? relationshipStatus = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelatedTermHeader AtlasRelatedTermHeader(string description = null, string displayText = null, string expression = null, string relationGuid = null, Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?), string steward = null, string termGuid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationship AtlasRelationship(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null, long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end1 = null, Azure.Analytics.Purview.DataMap.AtlasObjectId end2 = null, string guid = null, string homeId = null, string label = null, int? provenanceType = default(int?), Azure.Analytics.Purview.DataMap.StatusAtlasRelationship? status = default(Azure.Analytics.Purview.DataMap.StatusAtlasRelationship?), long? updateTime = default(long?), string updatedBy = null, long? version = default(long?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipAttributeDef AtlasRelationshipAttributeDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), System.Collections.Generic.IEnumerable constraints = null, string defaultValue = null, string description = null, bool? includeInNotification = default(bool?), bool? isIndexable = default(bool?), bool? isOptional = default(bool?), bool? isUnique = default(bool?), string name = null, System.Collections.Generic.IDictionary options = null, string typeName = null, int? valuesMaxCount = default(int?), int? valuesMinCount = default(int?), bool? isLegacyAttribute = default(bool?), string relationshipTypeName = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipDef AtlasRelationshipDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef AtlasRelationshipEndDef(Azure.Analytics.Purview.DataMap.CardinalityValue? cardinality = default(Azure.Analytics.Purview.DataMap.CardinalityValue?), string description = null, bool? isContainer = default(bool?), bool? isLegacyAttribute = default(bool?), string name = null, string type = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasRelationshipWithExtInfo AtlasRelationshipWithExtInfo(System.Collections.Generic.IDictionary referredEntities = null, Azure.Analytics.Purview.DataMap.AtlasRelationship relationship = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasStruct AtlasStruct(System.Collections.Generic.IDictionary attributes = null, string typeName = null, string lastModifiedTS = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasStructDef AtlasStructDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTermAssignmentHeader AtlasTermAssignmentHeader(int? confidence = default(int?), string createdBy = null, string description = null, string displayText = null, string expression = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermAssignmentStatus?), string steward = null, System.Guid? termGuid = default(System.Guid?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTermCategorizationHeader AtlasTermCategorizationHeader(System.Guid? categoryGuid = default(System.Guid?), string description = null, string displayText = null, System.Guid? relationGuid = default(System.Guid?), Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus? status = default(Azure.Analytics.Purview.DataMap.AtlasTermRelationshipStatus?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTimeZone AtlasTimeZone(int? dstSavings = default(int?), string id = null, System.Collections.Generic.IEnumerable availableIds = null, Azure.Analytics.Purview.DataMap.AtlasTimeZone @default = null, string displayName = null, int? rawOffset = default(int?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDef AtlasTypeDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable entityTypes = null, System.Collections.Generic.IEnumerable subTypes = null, System.Collections.Generic.IEnumerable superTypes = null, System.Collections.Generic.IEnumerable relationshipAttributeDefs = null, string defaultValue = null, System.Collections.Generic.IEnumerable elementDefs = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef1 = null, Azure.Analytics.Purview.DataMap.AtlasRelationshipEndDef endDef2 = null, Azure.Analytics.Purview.DataMap.RelationshipCategory? relationshipCategory = default(Azure.Analytics.Purview.DataMap.RelationshipCategory?), string relationshipLabel = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypeDefHeader AtlasTypeDefHeader(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), string guid = null, string name = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AtlasTypesDef AtlasTypesDef(System.Collections.Generic.IEnumerable businessMetadataDefs = null, System.Collections.Generic.IEnumerable classificationDefs = null, System.Collections.Generic.IEnumerable entityDefs = null, System.Collections.Generic.IEnumerable enumDefs = null, System.Collections.Generic.IEnumerable relationshipDefs = null, System.Collections.Generic.IEnumerable structDefs = null, System.Collections.Generic.IEnumerable termTemplateDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteConfig AutoCompleteConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResult AutoCompleteResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.AutoCompleteResultValue AutoCompleteResultValue(string text = null, string queryPlusText = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.BulkImportResult BulkImportResult(System.Collections.Generic.IEnumerable failedImportInfoList = null, System.Collections.Generic.IEnumerable successImportInfoList = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.BusinessMetadataOptions BusinessMetadataOptions(System.BinaryData file = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ClassificationAssociateConfig ClassificationAssociateConfig(Azure.Analytics.Purview.DataMap.AtlasClassification classification = null, System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ContactInfo ContactInfo(string id = null, string info = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ContactSearchResultValue ContactSearchResultValue(string id = null, string info = null, string contactType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.EntityMutationResult EntityMutationResult(System.Collections.Generic.IDictionary guidAssignments = null, System.Collections.Generic.IDictionary> mutatedEntities = null, System.Collections.Generic.IEnumerable partialUpdatedEntities = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ImportInfo ImportInfo(string childObjectName = null, Azure.Analytics.Purview.DataMap.ImportStatus? importStatus = default(Azure.Analytics.Purview.DataMap.ImportStatus?), string parentObjectName = null, string remarks = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.LineageRelation LineageRelation(string fromEntityId = null, string relationshipId = null, string toEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.MoveEntitiesConfig MoveEntitiesConfig(System.Collections.Generic.IEnumerable entityGuids = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ParentRelation ParentRelation(string childEntityId = null, string relationshipId = null, string parentEntityId = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.PurviewObjectId PurviewObjectId(string guid = null, string typeName = null, System.Collections.Generic.IDictionary uniqueAttributes = null, string name = null, string displayText = null, string itemPath = null, string resourceId = null, System.Collections.Generic.IDictionary properties = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.QueryConfig QueryConfig(string keywords = null, int? limit = default(int?), string continuationToken = null, System.Collections.Generic.IEnumerable orderby = null, System.BinaryData filter = null, System.Collections.Generic.IEnumerable facets = null, Azure.Analytics.Purview.DataMap.SearchTaxonomySetting taxonomySetting = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.QueryResult QueryResult(int? searchCount = default(int?), bool? searchCountApproximate = default(bool?), string continuationToken = null, Azure.Analytics.Purview.DataMap.SearchFacetResultValue searchFacets = null, System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.ResourceLink ResourceLink(string displayName = null, string url = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetItem SearchFacetItem(int? count = default(int?), string facet = null, Azure.Analytics.Purview.DataMap.SearchFacetSort sort = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetItemValue SearchFacetItemValue(int? count = default(int?), string value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetResultValue SearchFacetResultValue(System.Collections.Generic.IEnumerable entityType = null, System.Collections.Generic.IEnumerable assetType = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contactId = null, System.Collections.Generic.IEnumerable contactType = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable glossaryType = null, System.Collections.Generic.IEnumerable termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchFacetSort SearchFacetSort(Azure.Analytics.Purview.DataMap.SearchSortOrder? count = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?), Azure.Analytics.Purview.DataMap.SearchSortOrder? value = default(Azure.Analytics.Purview.DataMap.SearchSortOrder?)) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchHighlights SearchHighlights(System.Collections.Generic.IEnumerable id = null, System.Collections.Generic.IEnumerable qualifiedName = null, System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable description = null, System.Collections.Generic.IEnumerable entityType = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchResultValue SearchResultValue(float? searchScore = default(float?), Azure.Analytics.Purview.DataMap.SearchHighlights searchHighlights = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SearchTaxonomySetting SearchTaxonomySetting(System.Collections.Generic.IEnumerable assetTypes = null, Azure.Analytics.Purview.DataMap.SearchFacetItem facet = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestConfig SuggestConfig(string keywords = null, int? limit = default(int?), System.BinaryData filter = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResult SuggestResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.SuggestResultValue SuggestResultValue(float? searchScore = default(float?), string searchText = null, string objectType = null, long? createTime = default(long?), long? updateTime = default(long?), string id = null, string name = null, string qualifiedName = null, string entityType = null, string description = null, System.Collections.Generic.IEnumerable endorsement = null, string owner = null, System.Collections.Generic.IEnumerable classification = null, System.Collections.Generic.IEnumerable label = null, System.Collections.Generic.IEnumerable term = null, System.Collections.Generic.IEnumerable contact = null, System.Collections.Generic.IEnumerable assetType = null, string glossaryType = null, string glossary = null, string termStatus = null, System.Collections.Generic.IEnumerable termTemplate = null, string longDescription = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TermSearchResultValue TermSearchResultValue(string name = null, string glossaryName = null, string guid = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TermTemplateDef TermTemplateDef(Azure.Analytics.Purview.DataMap.TypeCategory? category = default(Azure.Analytics.Purview.DataMap.TypeCategory?), long? createTime = default(long?), string createdBy = null, Azure.Analytics.Purview.DataMap.AtlasDateFormat dateFormatter = null, string description = null, string guid = null, string name = null, System.Collections.Generic.IDictionary options = null, string serviceType = null, string typeVersion = null, long? updateTime = default(long?), string updatedBy = null, long? version = default(long?), string lastModifiedTS = null, System.Collections.Generic.IEnumerable attributeDefs = null) { throw null; } - public static Azure.Analytics.Purview.DataMap.TimeBoundary TimeBoundary(string endTime = null, string startTime = null, string timeZone = null) { throw null; } - } public partial class PurviewObjectId : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public PurviewObjectId() { } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/AnalyticsPurviewDataMapModelFactory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/AnalyticsPurviewDataMapModelFactory.cs new file mode 100644 index 000000000000..40f512a553cd --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Custom/AnalyticsPurviewDataMapModelFactory.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Analytics.Purview.DataMap; + +[CodeGenType("PurviewDataMapModelFactory")] +public partial class AnalyticsPurviewDataMapModelFactory +{ +} \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs rename to sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs index d35abf36b220..df64db0b0fce 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/PurviewDataMapModelFactory.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AnalyticsPurviewDataMapModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Analytics.Purview.DataMap { /// A factory class for creating instances of the models for mocking. - public static partial class PurviewDataMapModelFactory + public static partial class AnalyticsPurviewDataMapModelFactory { /// /// An instance of an entity along with extended info - like hive_table,