Skip to content

Commit ce22a3f

Browse files
regenerated with new autorest version (#13814)
1 parent 007586c commit ce22a3f

File tree

4 files changed

+88
-32
lines changed

4 files changed

+88
-32
lines changed

sdk/tables/azure-data-tables/azure/data/tables/_generated/aio/operations/_service_operations.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import Any, Callable, Dict, Generic, Optional, TypeVar
99
import warnings
1010

11-
from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
11+
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
1212
from azure.core.pipeline import PipelineResponse
1313
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1414

@@ -62,7 +62,9 @@ async def set_properties(
6262
:raises: ~azure.core.exceptions.HttpResponseError
6363
"""
6464
cls = kwargs.pop('cls', None) # type: ClsType[None]
65-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
65+
error_map = {
66+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
67+
}
6668
error_map.update(kwargs.pop('error_map', {}))
6769
restype = "service"
6870
comp = "properties"
@@ -133,7 +135,9 @@ async def get_properties(
133135
:raises: ~azure.core.exceptions.HttpResponseError
134136
"""
135137
cls = kwargs.pop('cls', None) # type: ClsType["models.TableServiceProperties"]
136-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
138+
error_map = {
139+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
140+
}
137141
error_map.update(kwargs.pop('error_map', {}))
138142
restype = "service"
139143
comp = "properties"
@@ -202,7 +206,9 @@ async def get_statistics(
202206
:raises: ~azure.core.exceptions.HttpResponseError
203207
"""
204208
cls = kwargs.pop('cls', None) # type: ClsType["models.TableServiceStats"]
205-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
209+
error_map = {
210+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
211+
}
206212
error_map.update(kwargs.pop('error_map', {}))
207213
restype = "service"
208214
comp = "stats"

sdk/tables/azure-data-tables/azure/data/tables/_generated/aio/operations/_table_operations.py

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union
99
import warnings
1010

11-
from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
11+
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
1212
from azure.core.pipeline import PipelineResponse
1313
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1414

@@ -61,7 +61,9 @@ async def query(
6161
:raises: ~azure.core.exceptions.HttpResponseError
6262
"""
6363
cls = kwargs.pop('cls', None) # type: ClsType["models.TableQueryResponse"]
64-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
64+
error_map = {
65+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
66+
}
6567
error_map.update(kwargs.pop('error_map', {}))
6668

6769
_format = None
@@ -153,7 +155,9 @@ async def create(
153155
:raises: ~azure.core.exceptions.HttpResponseError
154156
"""
155157
cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.TableResponse"]]
156-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
158+
error_map = {
159+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
160+
}
157161
error_map.update(kwargs.pop('error_map', {}))
158162

159163
_format = None
@@ -240,7 +244,9 @@ async def delete(
240244
:raises: ~azure.core.exceptions.HttpResponseError
241245
"""
242246
cls = kwargs.pop('cls', None) # type: ClsType[None]
243-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
247+
error_map = {
248+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
249+
}
244250
error_map.update(kwargs.pop('error_map', {}))
245251
accept = "application/json"
246252

@@ -313,7 +319,9 @@ async def query_entities(
313319
:raises: ~azure.core.exceptions.HttpResponseError
314320
"""
315321
cls = kwargs.pop('cls', None) # type: ClsType["models.TableEntityQueryResponse"]
316-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
322+
error_map = {
323+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
324+
}
317325
error_map.update(kwargs.pop('error_map', {}))
318326

319327
_format = None
@@ -416,7 +424,9 @@ async def query_entities_with_partition_and_row_key(
416424
:raises: ~azure.core.exceptions.HttpResponseError
417425
"""
418426
cls = kwargs.pop('cls', None) # type: ClsType[Dict[str, object]]
419-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
427+
error_map = {
428+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
429+
}
420430
error_map.update(kwargs.pop('error_map', {}))
421431

422432
_format = None
@@ -523,7 +533,9 @@ async def update_entity(
523533
:raises: ~azure.core.exceptions.HttpResponseError
524534
"""
525535
cls = kwargs.pop('cls', None) # type: ClsType[None]
526-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
536+
error_map = {
537+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
538+
}
527539
error_map.update(kwargs.pop('error_map', {}))
528540

529541
_format = None
@@ -628,7 +640,9 @@ async def merge_entity(
628640
:raises: ~azure.core.exceptions.HttpResponseError
629641
"""
630642
cls = kwargs.pop('cls', None) # type: ClsType[None]
631-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
643+
error_map = {
644+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
645+
}
632646
error_map.update(kwargs.pop('error_map', {}))
633647

634648
_format = None
@@ -729,7 +743,9 @@ async def delete_entity(
729743
:raises: ~azure.core.exceptions.HttpResponseError
730744
"""
731745
cls = kwargs.pop('cls', None) # type: ClsType[None]
732-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
746+
error_map = {
747+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
748+
}
733749
error_map.update(kwargs.pop('error_map', {}))
734750

735751
_format = None
@@ -816,7 +832,9 @@ async def insert_entity(
816832
:raises: ~azure.core.exceptions.HttpResponseError
817833
"""
818834
cls = kwargs.pop('cls', None) # type: ClsType[Optional[Dict[str, object]]]
819-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
835+
error_map = {
836+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
837+
}
820838
error_map.update(kwargs.pop('error_map', {}))
821839

822840
_format = None
@@ -917,7 +935,9 @@ async def get_access_policy(
917935
:raises: ~azure.core.exceptions.HttpResponseError
918936
"""
919937
cls = kwargs.pop('cls', None) # type: ClsType[List["models.SignedIdentifier"]]
920-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
938+
error_map = {
939+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
940+
}
921941
error_map.update(kwargs.pop('error_map', {}))
922942
comp = "acl"
923943
accept = "application/xml"
@@ -990,7 +1010,9 @@ async def set_access_policy(
9901010
:raises: ~azure.core.exceptions.HttpResponseError
9911011
"""
9921012
cls = kwargs.pop('cls', None) # type: ClsType[None]
993-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
1013+
error_map = {
1014+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
1015+
}
9941016
error_map.update(kwargs.pop('error_map', {}))
9951017
comp = "acl"
9961018
content_type = kwargs.pop("content_type", "application/xml")

sdk/tables/azure-data-tables/azure/data/tables/_generated/operations/_service_operations.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import TYPE_CHECKING
99
import warnings
1010

11-
from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
11+
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
1212
from azure.core.pipeline import PipelineResponse
1313
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1414

@@ -67,7 +67,9 @@ def set_properties(
6767
:raises: ~azure.core.exceptions.HttpResponseError
6868
"""
6969
cls = kwargs.pop('cls', None) # type: ClsType[None]
70-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
70+
error_map = {
71+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
72+
}
7173
error_map.update(kwargs.pop('error_map', {}))
7274
restype = "service"
7375
comp = "properties"
@@ -139,7 +141,9 @@ def get_properties(
139141
:raises: ~azure.core.exceptions.HttpResponseError
140142
"""
141143
cls = kwargs.pop('cls', None) # type: ClsType["models.TableServiceProperties"]
142-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
144+
error_map = {
145+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
146+
}
143147
error_map.update(kwargs.pop('error_map', {}))
144148
restype = "service"
145149
comp = "properties"
@@ -209,7 +213,9 @@ def get_statistics(
209213
:raises: ~azure.core.exceptions.HttpResponseError
210214
"""
211215
cls = kwargs.pop('cls', None) # type: ClsType["models.TableServiceStats"]
212-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
216+
error_map = {
217+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
218+
}
213219
error_map.update(kwargs.pop('error_map', {}))
214220
restype = "service"
215221
comp = "stats"

sdk/tables/azure-data-tables/azure/data/tables/_generated/operations/_table_operations.py

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import TYPE_CHECKING
99
import warnings
1010

11-
from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
11+
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
1212
from azure.core.pipeline import PipelineResponse
1313
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1414

@@ -66,7 +66,9 @@ def query(
6666
:raises: ~azure.core.exceptions.HttpResponseError
6767
"""
6868
cls = kwargs.pop('cls', None) # type: ClsType["models.TableQueryResponse"]
69-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
69+
error_map = {
70+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
71+
}
7072
error_map.update(kwargs.pop('error_map', {}))
7173

7274
_format = None
@@ -159,7 +161,9 @@ def create(
159161
:raises: ~azure.core.exceptions.HttpResponseError
160162
"""
161163
cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.TableResponse"]]
162-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
164+
error_map = {
165+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
166+
}
163167
error_map.update(kwargs.pop('error_map', {}))
164168

165169
_format = None
@@ -247,7 +251,9 @@ def delete(
247251
:raises: ~azure.core.exceptions.HttpResponseError
248252
"""
249253
cls = kwargs.pop('cls', None) # type: ClsType[None]
250-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
254+
error_map = {
255+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
256+
}
251257
error_map.update(kwargs.pop('error_map', {}))
252258
accept = "application/json"
253259

@@ -321,7 +327,9 @@ def query_entities(
321327
:raises: ~azure.core.exceptions.HttpResponseError
322328
"""
323329
cls = kwargs.pop('cls', None) # type: ClsType["models.TableEntityQueryResponse"]
324-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
330+
error_map = {
331+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
332+
}
325333
error_map.update(kwargs.pop('error_map', {}))
326334

327335
_format = None
@@ -425,7 +433,9 @@ def query_entities_with_partition_and_row_key(
425433
:raises: ~azure.core.exceptions.HttpResponseError
426434
"""
427435
cls = kwargs.pop('cls', None) # type: ClsType[Dict[str, object]]
428-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
436+
error_map = {
437+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
438+
}
429439
error_map.update(kwargs.pop('error_map', {}))
430440

431441
_format = None
@@ -533,7 +543,9 @@ def update_entity(
533543
:raises: ~azure.core.exceptions.HttpResponseError
534544
"""
535545
cls = kwargs.pop('cls', None) # type: ClsType[None]
536-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
546+
error_map = {
547+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
548+
}
537549
error_map.update(kwargs.pop('error_map', {}))
538550

539551
_format = None
@@ -639,7 +651,9 @@ def merge_entity(
639651
:raises: ~azure.core.exceptions.HttpResponseError
640652
"""
641653
cls = kwargs.pop('cls', None) # type: ClsType[None]
642-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
654+
error_map = {
655+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
656+
}
643657
error_map.update(kwargs.pop('error_map', {}))
644658

645659
_format = None
@@ -741,7 +755,9 @@ def delete_entity(
741755
:raises: ~azure.core.exceptions.HttpResponseError
742756
"""
743757
cls = kwargs.pop('cls', None) # type: ClsType[None]
744-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
758+
error_map = {
759+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
760+
}
745761
error_map.update(kwargs.pop('error_map', {}))
746762

747763
_format = None
@@ -829,7 +845,9 @@ def insert_entity(
829845
:raises: ~azure.core.exceptions.HttpResponseError
830846
"""
831847
cls = kwargs.pop('cls', None) # type: ClsType[Optional[Dict[str, object]]]
832-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
848+
error_map = {
849+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
850+
}
833851
error_map.update(kwargs.pop('error_map', {}))
834852

835853
_format = None
@@ -931,7 +949,9 @@ def get_access_policy(
931949
:raises: ~azure.core.exceptions.HttpResponseError
932950
"""
933951
cls = kwargs.pop('cls', None) # type: ClsType[List["models.SignedIdentifier"]]
934-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
952+
error_map = {
953+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
954+
}
935955
error_map.update(kwargs.pop('error_map', {}))
936956
comp = "acl"
937957
accept = "application/xml"
@@ -1005,7 +1025,9 @@ def set_access_policy(
10051025
:raises: ~azure.core.exceptions.HttpResponseError
10061026
"""
10071027
cls = kwargs.pop('cls', None) # type: ClsType[None]
1008-
error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
1028+
error_map = {
1029+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
1030+
}
10091031
error_map.update(kwargs.pop('error_map', {}))
10101032
comp = "acl"
10111033
content_type = kwargs.pop("content_type", "application/xml")

0 commit comments

Comments
 (0)