ignos-api-client 2023.12.22.7919__py3-none-any.whl → 2023.12.29.7928__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ignos/api/client/_version.py +1 -1
- ignos/api/client/aio/operations/_operations.py +58 -0
- ignos/api/client/operations/_operations.py +80 -0
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7928.dist-info}/METADATA +1 -1
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7928.dist-info}/RECORD +7 -7
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7928.dist-info}/WHEEL +0 -0
- {ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7928.dist-info}/top_level.txt +0 -0
ignos/api/client/_version.py
CHANGED
|
@@ -117,6 +117,7 @@ from ...operations._operations import (
|
|
|
117
117
|
build_document_types_list_document_types_request,
|
|
118
118
|
build_document_types_update_document_type_request,
|
|
119
119
|
build_document_types_update_document_type_rules_request,
|
|
120
|
+
build_documents_get_documents_with_tag_value_count_request,
|
|
120
121
|
build_documents_import_document_request,
|
|
121
122
|
build_electrical_create_electrical_iot_config_request,
|
|
122
123
|
build_electrical_delete_electrical_iot_config_request,
|
|
@@ -6460,6 +6461,63 @@ class DocumentsOperations:
|
|
|
6460
6461
|
|
|
6461
6462
|
return deserialized # type: ignore
|
|
6462
6463
|
|
|
6464
|
+
@distributed_trace_async
|
|
6465
|
+
async def get_documents_with_tag_value_count(
|
|
6466
|
+
self, *, tag_name: Optional[str] = None, tag_value: Optional[str] = None, **kwargs: Any
|
|
6467
|
+
) -> int:
|
|
6468
|
+
"""Returns the number of documents found with the given tag name and value.
|
|
6469
|
+
|
|
6470
|
+
Returns the number of documents found with the given tag name and value.
|
|
6471
|
+
|
|
6472
|
+
:keyword tag_name: Default value is None.
|
|
6473
|
+
:paramtype tag_name: str
|
|
6474
|
+
:keyword tag_value: Default value is None.
|
|
6475
|
+
:paramtype tag_value: str
|
|
6476
|
+
:return: int
|
|
6477
|
+
:rtype: int
|
|
6478
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6479
|
+
"""
|
|
6480
|
+
error_map = {
|
|
6481
|
+
401: ClientAuthenticationError,
|
|
6482
|
+
404: ResourceNotFoundError,
|
|
6483
|
+
409: ResourceExistsError,
|
|
6484
|
+
304: ResourceNotModifiedError,
|
|
6485
|
+
}
|
|
6486
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
6487
|
+
|
|
6488
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
6489
|
+
_params = kwargs.pop("params", {}) or {}
|
|
6490
|
+
|
|
6491
|
+
cls: ClsType[int] = kwargs.pop("cls", None)
|
|
6492
|
+
|
|
6493
|
+
_request = build_documents_get_documents_with_tag_value_count_request(
|
|
6494
|
+
tag_name=tag_name,
|
|
6495
|
+
tag_value=tag_value,
|
|
6496
|
+
headers=_headers,
|
|
6497
|
+
params=_params,
|
|
6498
|
+
)
|
|
6499
|
+
_request.url = self._client.format_url(_request.url)
|
|
6500
|
+
|
|
6501
|
+
_stream = False
|
|
6502
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
|
6503
|
+
_request, stream=_stream, **kwargs
|
|
6504
|
+
)
|
|
6505
|
+
|
|
6506
|
+
response = pipeline_response.http_response
|
|
6507
|
+
|
|
6508
|
+
if response.status_code not in [200]:
|
|
6509
|
+
if _stream:
|
|
6510
|
+
await response.read() # Load the body in memory and close the socket
|
|
6511
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
6512
|
+
raise HttpResponseError(response=response)
|
|
6513
|
+
|
|
6514
|
+
deserialized = self._deserialize("int", pipeline_response)
|
|
6515
|
+
|
|
6516
|
+
if cls:
|
|
6517
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
6518
|
+
|
|
6519
|
+
return deserialized # type: ignore
|
|
6520
|
+
|
|
6463
6521
|
|
|
6464
6522
|
class DocumentTypesOperations:
|
|
6465
6523
|
"""
|
|
@@ -1567,6 +1567,29 @@ def build_documents_import_document_request(**kwargs: Any) -> HttpRequest:
|
|
|
1567
1567
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
|
1568
1568
|
|
|
1569
1569
|
|
|
1570
|
+
def build_documents_get_documents_with_tag_value_count_request( # pylint: disable=name-too-long
|
|
1571
|
+
*, tag_name: Optional[str] = None, tag_value: Optional[str] = None, **kwargs: Any
|
|
1572
|
+
) -> HttpRequest:
|
|
1573
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
1574
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
1575
|
+
|
|
1576
|
+
accept = _headers.pop("Accept", "application/json")
|
|
1577
|
+
|
|
1578
|
+
# Construct URL
|
|
1579
|
+
_url = "/documents/count"
|
|
1580
|
+
|
|
1581
|
+
# Construct parameters
|
|
1582
|
+
if tag_name is not None:
|
|
1583
|
+
_params["tagName"] = _SERIALIZER.query("tag_name", tag_name, "str")
|
|
1584
|
+
if tag_value is not None:
|
|
1585
|
+
_params["tagValue"] = _SERIALIZER.query("tag_value", tag_value, "str")
|
|
1586
|
+
|
|
1587
|
+
# Construct headers
|
|
1588
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
1589
|
+
|
|
1590
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
|
1591
|
+
|
|
1592
|
+
|
|
1570
1593
|
def build_document_types_list_document_types_request( # pylint: disable=name-too-long
|
|
1571
1594
|
*, include_inactive: bool = False, **kwargs: Any
|
|
1572
1595
|
) -> HttpRequest:
|
|
@@ -13661,6 +13684,63 @@ class DocumentsOperations:
|
|
|
13661
13684
|
|
|
13662
13685
|
return deserialized # type: ignore
|
|
13663
13686
|
|
|
13687
|
+
@distributed_trace
|
|
13688
|
+
def get_documents_with_tag_value_count(
|
|
13689
|
+
self, *, tag_name: Optional[str] = None, tag_value: Optional[str] = None, **kwargs: Any
|
|
13690
|
+
) -> int:
|
|
13691
|
+
"""Returns the number of documents found with the given tag name and value.
|
|
13692
|
+
|
|
13693
|
+
Returns the number of documents found with the given tag name and value.
|
|
13694
|
+
|
|
13695
|
+
:keyword tag_name: Default value is None.
|
|
13696
|
+
:paramtype tag_name: str
|
|
13697
|
+
:keyword tag_value: Default value is None.
|
|
13698
|
+
:paramtype tag_value: str
|
|
13699
|
+
:return: int
|
|
13700
|
+
:rtype: int
|
|
13701
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
|
13702
|
+
"""
|
|
13703
|
+
error_map = {
|
|
13704
|
+
401: ClientAuthenticationError,
|
|
13705
|
+
404: ResourceNotFoundError,
|
|
13706
|
+
409: ResourceExistsError,
|
|
13707
|
+
304: ResourceNotModifiedError,
|
|
13708
|
+
}
|
|
13709
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
|
13710
|
+
|
|
13711
|
+
_headers = kwargs.pop("headers", {}) or {}
|
|
13712
|
+
_params = kwargs.pop("params", {}) or {}
|
|
13713
|
+
|
|
13714
|
+
cls: ClsType[int] = kwargs.pop("cls", None)
|
|
13715
|
+
|
|
13716
|
+
_request = build_documents_get_documents_with_tag_value_count_request(
|
|
13717
|
+
tag_name=tag_name,
|
|
13718
|
+
tag_value=tag_value,
|
|
13719
|
+
headers=_headers,
|
|
13720
|
+
params=_params,
|
|
13721
|
+
)
|
|
13722
|
+
_request.url = self._client.format_url(_request.url)
|
|
13723
|
+
|
|
13724
|
+
_stream = False
|
|
13725
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
|
13726
|
+
_request, stream=_stream, **kwargs
|
|
13727
|
+
)
|
|
13728
|
+
|
|
13729
|
+
response = pipeline_response.http_response
|
|
13730
|
+
|
|
13731
|
+
if response.status_code not in [200]:
|
|
13732
|
+
if _stream:
|
|
13733
|
+
response.read() # Load the body in memory and close the socket
|
|
13734
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
|
13735
|
+
raise HttpResponseError(response=response)
|
|
13736
|
+
|
|
13737
|
+
deserialized = self._deserialize("int", pipeline_response)
|
|
13738
|
+
|
|
13739
|
+
if cls:
|
|
13740
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
|
13741
|
+
|
|
13742
|
+
return deserialized # type: ignore
|
|
13743
|
+
|
|
13664
13744
|
|
|
13665
13745
|
class DocumentTypesOperations:
|
|
13666
13746
|
"""
|
{ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7928.dist-info}/RECORD
RENAMED
|
@@ -5,23 +5,23 @@ ignos/api/client/_client.py,sha256=0k9ogfYxK-X1AP9o5zugEUC24rDXGwfRJbhrbf8J6MQ,1
|
|
|
5
5
|
ignos/api/client/_configuration.py,sha256=VKsogK8ivXH4OjZox220-uNM5rkOjj7Xx3RuFmbt748,2878
|
|
6
6
|
ignos/api/client/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
7
7
|
ignos/api/client/_serialization.py,sha256=RQT_z-4Q6lxbVcwGxC4uQ1LDGCt7gNth5t_zBM8JQ18,79092
|
|
8
|
-
ignos/api/client/_version.py,sha256=
|
|
8
|
+
ignos/api/client/_version.py,sha256=AVfxIRChMEflUGC16ehYtCYFR3-vZVMUt9ylz0GQJ1s,496
|
|
9
9
|
ignos/api/client/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
|
|
10
10
|
ignos/api/client/aio/__init__.py,sha256=BxlHH19w-NSPLxsg-CboXjxuJBj9TuFeacpQwWmCjPw,813
|
|
11
11
|
ignos/api/client/aio/_client.py,sha256=FbJUlzlGQNkvpJxZmwnBvXq08lWAFFKoD9Qw3aAZYDA,17124
|
|
12
12
|
ignos/api/client/aio/_configuration.py,sha256=UE1aefj17JmL0zcVD-xLiE19S30Dgis5y_Lk45-VjN0,2921
|
|
13
13
|
ignos/api/client/aio/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
14
14
|
ignos/api/client/aio/operations/__init__.py,sha256=Z4Sr1QLFj4h6n6C6vbZRJrUqMXNRidrliqL4UpX39E8,4161
|
|
15
|
-
ignos/api/client/aio/operations/_operations.py,sha256=
|
|
15
|
+
ignos/api/client/aio/operations/_operations.py,sha256=Q_4z8K6uT-U7YVBTb_PDtKjYSCQ18GhN5k8dZP4t_Yc,1122589
|
|
16
16
|
ignos/api/client/aio/operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
17
17
|
ignos/api/client/models/__init__.py,sha256=Aylb9RSvx5oEvwajTldvrkWQqzTll7TLIbg7dXC6wrU,33747
|
|
18
18
|
ignos/api/client/models/_enums.py,sha256=X4LDl9A46pHnaDc6p_fHDCkf1n0KWnG50WbLcbik62M,10585
|
|
19
19
|
ignos/api/client/models/_models.py,sha256=RWGiyEn1I9FBOCW9kQnbOOWzEiL399E8TPw09BUZQUk,905784
|
|
20
20
|
ignos/api/client/models/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
21
21
|
ignos/api/client/operations/__init__.py,sha256=Z4Sr1QLFj4h6n6C6vbZRJrUqMXNRidrliqL4UpX39E8,4161
|
|
22
|
-
ignos/api/client/operations/_operations.py,sha256=
|
|
22
|
+
ignos/api/client/operations/_operations.py,sha256=u31TBW9x-KDh0muTv6eWarV3m6qIu0I4o-fCyyPJh2s,1364650
|
|
23
23
|
ignos/api/client/operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
24
|
-
ignos_api_client-2023.12.
|
|
25
|
-
ignos_api_client-2023.12.
|
|
26
|
-
ignos_api_client-2023.12.
|
|
27
|
-
ignos_api_client-2023.12.
|
|
24
|
+
ignos_api_client-2023.12.29.7928.dist-info/METADATA,sha256=LIzfNZKp0CvDX66znHMoM8vsgisDz8-r93qO2kPtSss,252
|
|
25
|
+
ignos_api_client-2023.12.29.7928.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
26
|
+
ignos_api_client-2023.12.29.7928.dist-info/top_level.txt,sha256=eGbj-YCTgfKuJX7-n95eMN-onlnccQiO8XnhWA0wgVA,6
|
|
27
|
+
ignos_api_client-2023.12.29.7928.dist-info/RECORD,,
|
{ignos_api_client-2023.12.22.7919.dist-info → ignos_api_client-2023.12.29.7928.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|