Skip to content

Commit ddd7941

Browse files
Updating the type of endorsements (#40354)
* Updating the type of endorsements
1 parent 6c7d6aa commit ddd7941

File tree

7 files changed

+1308
-639
lines changed

7 files changed

+1308
-639
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318

319319
# ServiceLabel: %Purview
320320
# PRLabel: %Purview
321-
/sdk/purview/ @saxenarahulMs
321+
/sdk/purview/ @saxenarahulMs @adyabansal-ms
322322

323323
# ServiceLabel: %Recovery Services
324324
# ServiceOwners: @Daya-Patil @Sharmistha-Rai

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

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Release History
22

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

95
### Bugs Fixed
10-
11-
### Other Changes
6+
- Updated type of endorsements from str to list[str] in SuggestResultValue and SuggestResultValue models.
127

138
## 1.0.0b1 (2024-03-05)
149

sdk/purview/azure-purview-datamap/azure/purview/datamap/_serialization.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=too-many-lines
1+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
22
# --------------------------------------------------------------------------
33
#
44
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -411,7 +411,7 @@ def from_dict(
411411
:param function key_extractors: A key extractor function.
412412
:param str content_type: JSON by default, set application/xml if XML.
413413
:returns: An instance of this model
414-
:raises: DeserializationError if something went wrong
414+
:raises DeserializationError: if something went wrong
415415
:rtype: Self
416416
"""
417417
deserializer = Deserializer(cls._infer_class_models())
@@ -1361,7 +1361,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
13611361
# Iter and wrapped, should have found one node only (the wrap one)
13621362
if len(children) != 1:
13631363
raise DeserializationError(
1364-
"Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( # pylint: disable=line-too-long
1364+
"Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format(
13651365
xml_name
13661366
)
13671367
)

sdk/purview/azure-purview-datamap/azure/purview/datamap/aio/operations/_operations.py

+25-30
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=too-many-lines
1+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
22
# coding=utf-8
33
# --------------------------------------------------------------------------
44
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -171,7 +171,7 @@ async def create_or_update(
171171
Existing entity is matched using its unique guid if
172172
supplied or by its unique attributes eg: qualifiedName.
173173
Map and array of
174-
collections are not well supported. E.g., array<array\\ :code:`<int>`>, array<map<string,
174+
collections are not well supported. E.g., array<array<int>>, array<map<string,
175175
int>>.
176176
For each contact type, the maximum number of contacts is 20.
177177
@@ -208,7 +208,7 @@ async def create_or_update(
208208
Existing entity is matched using its unique guid if
209209
supplied or by its unique attributes eg: qualifiedName.
210210
Map and array of
211-
collections are not well supported. E.g., array<array\\ :code:`<int>`>, array<map<string,
211+
collections are not well supported. E.g., array<array<int>>, array<map<string,
212212
int>>.
213213
For each contact type, the maximum number of contacts is 20.
214214
@@ -245,7 +245,7 @@ async def create_or_update(
245245
Existing entity is matched using its unique guid if
246246
supplied or by its unique attributes eg: qualifiedName.
247247
Map and array of
248-
collections are not well supported. E.g., array<array\\ :code:`<int>`>, array<map<string,
248+
collections are not well supported. E.g., array<array<int>>, array<map<string,
249249
int>>.
250250
For each contact type, the maximum number of contacts is 20.
251251
@@ -281,7 +281,7 @@ async def create_or_update(
281281
Existing entity is matched using its unique guid if
282282
supplied or by its unique attributes eg: qualifiedName.
283283
Map and array of
284-
collections are not well supported. E.g., array<array\\ :code:`<int>`>, array<map<string,
284+
collections are not well supported. E.g., array<array<int>>, array<map<string,
285285
int>>.
286286
For each contact type, the maximum number of contacts is 20.
287287
@@ -454,7 +454,7 @@ async def batch_create_or_update(
454454
Existing entity is matched using its unique
455455
guid if supplied or by its unique attributes eg: qualifiedName.
456456
Map and array
457-
of collections are not well supported. E.g., array<array\\ :code:`<int>`>,
457+
of collections are not well supported. E.g., array<array<int>>,
458458
array<map<string, int>>.
459459
For each contact type, the maximum number of contacts
460460
is 20.
@@ -492,7 +492,7 @@ async def batch_create_or_update(
492492
Existing entity is matched using its unique
493493
guid if supplied or by its unique attributes eg: qualifiedName.
494494
Map and array
495-
of collections are not well supported. E.g., array<array\\ :code:`<int>`>,
495+
of collections are not well supported. E.g., array<array<int>>,
496496
array<map<string, int>>.
497497
For each contact type, the maximum number of contacts
498498
is 20.
@@ -530,7 +530,7 @@ async def batch_create_or_update(
530530
Existing entity is matched using its unique
531531
guid if supplied or by its unique attributes eg: qualifiedName.
532532
Map and array
533-
of collections are not well supported. E.g., array<array\\ :code:`<int>`>,
533+
of collections are not well supported. E.g., array<array<int>>,
534534
array<map<string, int>>.
535535
For each contact type, the maximum number of contacts
536536
is 20.
@@ -567,7 +567,7 @@ async def batch_create_or_update(
567567
Existing entity is matched using its unique
568568
guid if supplied or by its unique attributes eg: qualifiedName.
569569
Map and array
570-
of collections are not well supported. E.g., array<array\\ :code:`<int>`>,
570+
of collections are not well supported. E.g., array<array<int>>,
571571
array<map<string, int>>.
572572
For each contact type, the maximum number of contacts
573573
is 20.
@@ -1427,7 +1427,7 @@ async def get_by_unique_attribute(
14271427
In
14281428
addition to the typeName path parameter, attribute key-value pair(s) can be
14291429
provided in the following format:
1430-
attr:\\\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
1430+
attr:\\<attrName>=<attrValue>.
14311431
14321432
NOTE: The
14331433
attrName and attrValue should be unique across entities, eg.
@@ -1524,7 +1524,7 @@ async def update_by_unique_attribute(
15241524
typeName path parameter, attribute key-value pair(s) can be provided in the
15251525
following format:
15261526
1527-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
1527+
attr:<attrName>=<attrValue>.
15281528
NOTE: The attrName and
15291529
attrValue should be unique across entities, eg. qualifiedName.
15301530
@@ -1567,7 +1567,7 @@ async def update_by_unique_attribute(
15671567
typeName path parameter, attribute key-value pair(s) can be provided in the
15681568
following format:
15691569
1570-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
1570+
attr:<attrName>=<attrValue>.
15711571
NOTE: The attrName and
15721572
attrValue should be unique across entities, eg. qualifiedName.
15731573
@@ -1610,7 +1610,7 @@ async def update_by_unique_attribute(
16101610
typeName path parameter, attribute key-value pair(s) can be provided in the
16111611
following format:
16121612
1613-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
1613+
attr:<attrName>=<attrValue>.
16141614
NOTE: The attrName and
16151615
attrValue should be unique across entities, eg. qualifiedName.
16161616
@@ -1652,7 +1652,7 @@ async def update_by_unique_attribute(
16521652
typeName path parameter, attribute key-value pair(s) can be provided in the
16531653
following format:
16541654
1655-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
1655+
attr:<attrName>=<attrValue>.
16561656
NOTE: The attrName and
16571657
attrValue should be unique across entities, eg. qualifiedName.
16581658
@@ -1743,7 +1743,7 @@ async def delete_by_unique_attribute(
17431743
In addition to
17441744
the typeName path parameter, attribute key-value pair(s) can be provided in the
17451745
following format:
1746-
attr:\\\\ :code:`<attrName>`=\\\\ :code:`<attrValue>`.
1746+
attr:\\<attrName>=\\<attrValue>.
17471747
NOTE: The attrName and
17481748
attrValue should be unique across entities, eg. qualifiedName.
17491749
@@ -2266,9 +2266,7 @@ async def batch_get_by_unique_attributes(
22662266
provided in the following
22672267
format
22682268
2269-
typeName=\\\\ :code:`<typeName>`&attr_1:\\\\ :code:`<attrName>`=\\\\
2270-
:code:`<attrValue>`&attr_2:\\\\ :code:`<attrName>`=\\\\ :code:`<attrValue>`&attr_3:\\\\
2271-
:code:`<attrName>`=\\\\ :code:`<attrValue>`
2269+
typeName=\\<typeName>&attr_1:\\<attrName>=\\<attrValue>&attr_2:\\<attrName>=\\<attrValue>&attr_3:\\<attrName>=\\<attrValue>
22722270
22732271
NOTE:
22742272
The attrName should be an unique attribute for the given entity-type.
@@ -3341,8 +3339,7 @@ async def remove_labels_by_unique_attribute(
33413339
in labels set are non-existing labels, they will be ignored, only existing
33423340
labels will be removed. In addition to the typeName path parameter, attribute
33433341
key-value pair(s) can be provided in the following format:
3344-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`. NOTE: The attrName and attrValue should be
3345-
unique
3342+
attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique
33463343
across entities, eg. qualifiedName. The REST request would look something like
33473344
this: DELETE
33483345
/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
@@ -3382,8 +3379,7 @@ async def remove_labels_by_unique_attribute(
33823379
in labels set are non-existing labels, they will be ignored, only existing
33833380
labels will be removed. In addition to the typeName path parameter, attribute
33843381
key-value pair(s) can be provided in the following format:
3385-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`. NOTE: The attrName and attrValue should be
3386-
unique
3382+
attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique
33873383
across entities, eg. qualifiedName. The REST request would look something like
33883384
this: DELETE
33893385
/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
@@ -3422,8 +3418,7 @@ async def remove_labels_by_unique_attribute(
34223418
in labels set are non-existing labels, they will be ignored, only existing
34233419
labels will be removed. In addition to the typeName path parameter, attribute
34243420
key-value pair(s) can be provided in the following format:
3425-
attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`. NOTE: The attrName and attrValue should be
3426-
unique
3421+
attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique
34273422
across entities, eg. qualifiedName. The REST request would look something like
34283423
this: DELETE
34293424
/v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
@@ -3510,7 +3505,7 @@ async def set_labels_by_unique_attribute(
35103505
35113506
In addition to the
35123507
typeName path parameter, attribute key-value pair(s) can be provided in the
3513-
following format: attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
3508+
following format: attr:<attrName>=<attrValue>.
35143509
35153510
NOTE: The attrName and
35163511
attrValue should be unique across entities, eg. qualifiedName.
@@ -3552,7 +3547,7 @@ async def set_labels_by_unique_attribute(
35523547
35533548
In addition to the
35543549
typeName path parameter, attribute key-value pair(s) can be provided in the
3555-
following format: attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
3550+
following format: attr:<attrName>=<attrValue>.
35563551
35573552
NOTE: The attrName and
35583553
attrValue should be unique across entities, eg. qualifiedName.
@@ -3593,7 +3588,7 @@ async def set_labels_by_unique_attribute(
35933588
35943589
In addition to the
35953590
typeName path parameter, attribute key-value pair(s) can be provided in the
3596-
following format: attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
3591+
following format: attr:<attrName>=<attrValue>.
35973592
35983593
NOTE: The attrName and
35993594
attrValue should be unique across entities, eg. qualifiedName.
@@ -3684,7 +3679,7 @@ async def add_labels_by_unique_attribute(
36843679
36853680
In addition to
36863681
the typeName path parameter, attribute key-value pair(s) can be provided in the
3687-
following format: attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
3682+
following format: attr:<attrName>=<attrValue>.
36883683
36893684
NOTE: The attrName and
36903685
attrValue should be unique across entities, eg. qualifiedName.
@@ -3726,7 +3721,7 @@ async def add_labels_by_unique_attribute(
37263721
37273722
In addition to
37283723
the typeName path parameter, attribute key-value pair(s) can be provided in the
3729-
following format: attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
3724+
following format: attr:<attrName>=<attrValue>.
37303725
37313726
NOTE: The attrName and
37323727
attrValue should be unique across entities, eg. qualifiedName.
@@ -3767,7 +3762,7 @@ async def add_labels_by_unique_attribute(
37673762
37683763
In addition to
37693764
the typeName path parameter, attribute key-value pair(s) can be provided in the
3770-
following format: attr:\\ :code:`<attrName>`=\\ :code:`<attrValue>`.
3765+
following format: attr:<attrName>=<attrValue>.
37713766
37723767
NOTE: The attrName and
37733768
attrValue should be unique across entities, eg. qualifiedName.

0 commit comments

Comments
 (0)