Skip to content

Commit 6b0e2af

Browse files
Generating code for updating the type of endorsements (Azure#33664)
### Packages impacted by this PR ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
1 parent 40432c8 commit 6b0e2af

File tree

8 files changed

+9
-48
lines changed

8 files changed

+9
-48
lines changed

sdk/purview/purview-datamap-rest/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
## Release History
22

3-
### 1.0.0-beta.3 (Unreleased)
4-
5-
#### Features Added
6-
7-
#### Breaking Changes
3+
### 1.0.0-beta.3 (2025-04-08)
84

95
#### Bugs Fixed
106

11-
#### Other Changes
7+
- Updated type of endorsements from str to list[str] in SuggestResultValue and SuggestResultValue models.
128

139
### 1.0.0-beta.2 (2025-02-10)
1410

sdk/purview/purview-datamap-rest/review/purview-datamap.api.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
import type { Client } from '@azure-rest/core-client';
88
import type { ClientOptions } from '@azure-rest/core-client';
9-
import { createFile } from '@azure/core-rest-pipeline';
10-
import { createFileFromStream } from '@azure/core-rest-pipeline';
11-
import { CreateFileFromStreamOptions } from '@azure/core-rest-pipeline';
12-
import { CreateFileOptions } from '@azure/core-rest-pipeline';
139
import type { HttpResponse } from '@azure-rest/core-client';
1410
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
1511
import type { RequestParameters } from '@azure-rest/core-client';
@@ -1011,9 +1007,6 @@ export interface AutoCompleteResultValueOutput {
10111007
text?: string;
10121008
}
10131009

1014-
// @public (undocumented)
1015-
export function buildMultiCollection(items: string[], parameterName: string): string;
1016-
10171010
// @public
10181011
export interface BulkImportResultOutput {
10191012
failedImportInfoList?: Array<ImportInfoOutput>;
@@ -1073,14 +1066,6 @@ export interface ContactSearchResultValueOutput {
10731066
function createClient(endpointParam: string, credentials: TokenCredential, options?: PurviewDataMapClientOptions): PurviewDataMapClient;
10741067
export default createClient;
10751068

1076-
export { createFile }
1077-
1078-
export { createFileFromStream }
1079-
1080-
export { CreateFileFromStreamOptions }
1081-
1082-
export { CreateFileOptions }
1083-
10841069
// @public
10851070
export interface DateFormat {
10861071
availableLocales?: string[];
@@ -4033,7 +4018,7 @@ export interface SearchResultValueOutput {
40334018
contact?: Array<ContactSearchResultValueOutput>;
40344019
createTime?: number;
40354020
description?: string;
4036-
endorsement?: string;
4021+
endorsement?: string[];
40374022
entityType?: string;
40384023
glossary?: string;
40394024
glossaryType?: string;
@@ -4089,7 +4074,7 @@ export interface SuggestResultValueOutput {
40894074
contact?: Array<ContactSearchResultValueOutput>;
40904075
createTime?: number;
40914076
description?: string;
4092-
endorsement?: string;
4077+
endorsement?: string[];
40934078
entityType?: string;
40944079
glossary?: string;
40954080
glossaryType?: string;

sdk/purview/purview-datamap-rest/src/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,5 @@ export * from "./clientDefinitions.js";
1010
export * from "./isUnexpected.js";
1111
export * from "./models.js";
1212
export * from "./outputModels.js";
13-
export * from "./serializeHelper.js";
14-
export {
15-
createFile,
16-
createFileFromStream,
17-
type CreateFileOptions,
18-
type CreateFileFromStreamOptions,
19-
} from "@azure/core-rest-pipeline";
2013

2114
export default PurviewDataMapClient;

sdk/purview/purview-datamap-rest/src/outputModels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ export interface SearchResultValueOutput {
668668
/** The description of the asset. */
669669
description?: string;
670670
/** The endorsement of the asset. */
671-
endorsement?: string;
671+
endorsement?: string[];
672672
/** The owner of the record. */
673673
owner?: string;
674674
/** The classifications of the record. */
@@ -776,7 +776,7 @@ export interface SuggestResultValueOutput {
776776
/** The description of the asset. */
777777
description?: string;
778778
/** The endorsement of the asset. */
779-
endorsement?: string;
779+
endorsement?: string[];
780780
/** The owner of the record. */
781781
owner?: string;
782782
/** The classifications of the record. */

sdk/purview/purview-datamap-rest/src/parameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export type EntityAddOrUpdateBusinessMetadataAttributesParameters =
384384
export type EntityGetSampleBusinessMetadataTemplateParameters = RequestParameters;
385385

386386
export interface EntityImportBusinessMetadataBodyParam {
387-
/** Body parameter. */
387+
/** Multipart body */
388388
body: BusinessMetadataOptions;
389389
}
390390

sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface PurviewDataMapClientOptions extends ClientOptions {}
1212

1313
/**
1414
* Initialize a new instance of `PurviewDataMapClient`
15-
* @param endpointParam - A sequence of textual characters.
15+
* @param endpointParam - Represent a URL string as described by https://url.spec.whatwg.org/
1616
* @param credentials - uniquely identify client credential
1717
* @param options - the parameter for all optional parameters
1818
*/

sdk/purview/purview-datamap-rest/src/serializeHelper.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/purview/Azure.Analytics.Purview.DataMap
2-
commit: b9d42131fa23babd959c491b44870a30ea9506cd
2+
commit: b0a48bcbffead733affe03944ef09f5e8d12f8c8
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

0 commit comments

Comments
 (0)