qanswer_sdk 3.1335.0__py3-none-any.whl → 3.1338.0__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.
- qanswer_sdk/__init__.py +1 -1
- qanswer_sdk/api/admin_api.py +498 -0
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- {qanswer_sdk-3.1335.0.dist-info → qanswer_sdk-3.1338.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1335.0.dist-info → qanswer_sdk-3.1338.0.dist-info}/RECORD +7 -7
- {qanswer_sdk-3.1335.0.dist-info → qanswer_sdk-3.1338.0.dist-info}/WHEEL +0 -0
qanswer_sdk/__init__.py
CHANGED
qanswer_sdk/api/admin_api.py
CHANGED
|
@@ -4447,6 +4447,250 @@ class AdminApi:
|
|
|
4447
4447
|
|
|
4448
4448
|
|
|
4449
4449
|
|
|
4450
|
+
@validate_call
|
|
4451
|
+
def is_rate_limiting(
|
|
4452
|
+
self,
|
|
4453
|
+
_request_timeout: Union[
|
|
4454
|
+
None,
|
|
4455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4456
|
+
Tuple[
|
|
4457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4458
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4459
|
+
]
|
|
4460
|
+
] = None,
|
|
4461
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4462
|
+
_content_type: Optional[StrictStr] = None,
|
|
4463
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4464
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4465
|
+
) -> bool:
|
|
4466
|
+
"""Checks if rate limiting is enabled.
|
|
4467
|
+
|
|
4468
|
+
|
|
4469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4470
|
+
number provided, it will be total request
|
|
4471
|
+
timeout. It can also be a pair (tuple) of
|
|
4472
|
+
(connection, read) timeouts.
|
|
4473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4475
|
+
request; this effectively ignores the
|
|
4476
|
+
authentication in the spec for a single request.
|
|
4477
|
+
:type _request_auth: dict, optional
|
|
4478
|
+
:param _content_type: force content-type for the request.
|
|
4479
|
+
:type _content_type: str, Optional
|
|
4480
|
+
:param _headers: set to override the headers for a single
|
|
4481
|
+
request; this effectively ignores the headers
|
|
4482
|
+
in the spec for a single request.
|
|
4483
|
+
:type _headers: dict, optional
|
|
4484
|
+
:param _host_index: set to override the host_index for a single
|
|
4485
|
+
request; this effectively ignores the host_index
|
|
4486
|
+
in the spec for a single request.
|
|
4487
|
+
:type _host_index: int, optional
|
|
4488
|
+
:return: Returns the result object.
|
|
4489
|
+
""" # noqa: E501
|
|
4490
|
+
|
|
4491
|
+
_param = self._is_rate_limiting_serialize(
|
|
4492
|
+
_request_auth=_request_auth,
|
|
4493
|
+
_content_type=_content_type,
|
|
4494
|
+
_headers=_headers,
|
|
4495
|
+
_host_index=_host_index
|
|
4496
|
+
)
|
|
4497
|
+
|
|
4498
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4499
|
+
'200': "bool",
|
|
4500
|
+
}
|
|
4501
|
+
response_data = self.api_client.call_api(
|
|
4502
|
+
*_param,
|
|
4503
|
+
_request_timeout=_request_timeout
|
|
4504
|
+
)
|
|
4505
|
+
response_data.read()
|
|
4506
|
+
return self.api_client.response_deserialize(
|
|
4507
|
+
response_data=response_data,
|
|
4508
|
+
response_types_map=_response_types_map,
|
|
4509
|
+
).data
|
|
4510
|
+
|
|
4511
|
+
|
|
4512
|
+
@validate_call
|
|
4513
|
+
def is_rate_limiting_with_http_info(
|
|
4514
|
+
self,
|
|
4515
|
+
_request_timeout: Union[
|
|
4516
|
+
None,
|
|
4517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4518
|
+
Tuple[
|
|
4519
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4520
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4521
|
+
]
|
|
4522
|
+
] = None,
|
|
4523
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4524
|
+
_content_type: Optional[StrictStr] = None,
|
|
4525
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4527
|
+
) -> ApiResponse[bool]:
|
|
4528
|
+
"""Checks if rate limiting is enabled.
|
|
4529
|
+
|
|
4530
|
+
|
|
4531
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4532
|
+
number provided, it will be total request
|
|
4533
|
+
timeout. It can also be a pair (tuple) of
|
|
4534
|
+
(connection, read) timeouts.
|
|
4535
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4536
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4537
|
+
request; this effectively ignores the
|
|
4538
|
+
authentication in the spec for a single request.
|
|
4539
|
+
:type _request_auth: dict, optional
|
|
4540
|
+
:param _content_type: force content-type for the request.
|
|
4541
|
+
:type _content_type: str, Optional
|
|
4542
|
+
:param _headers: set to override the headers for a single
|
|
4543
|
+
request; this effectively ignores the headers
|
|
4544
|
+
in the spec for a single request.
|
|
4545
|
+
:type _headers: dict, optional
|
|
4546
|
+
:param _host_index: set to override the host_index for a single
|
|
4547
|
+
request; this effectively ignores the host_index
|
|
4548
|
+
in the spec for a single request.
|
|
4549
|
+
:type _host_index: int, optional
|
|
4550
|
+
:return: Returns the result object.
|
|
4551
|
+
""" # noqa: E501
|
|
4552
|
+
|
|
4553
|
+
_param = self._is_rate_limiting_serialize(
|
|
4554
|
+
_request_auth=_request_auth,
|
|
4555
|
+
_content_type=_content_type,
|
|
4556
|
+
_headers=_headers,
|
|
4557
|
+
_host_index=_host_index
|
|
4558
|
+
)
|
|
4559
|
+
|
|
4560
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4561
|
+
'200': "bool",
|
|
4562
|
+
}
|
|
4563
|
+
response_data = self.api_client.call_api(
|
|
4564
|
+
*_param,
|
|
4565
|
+
_request_timeout=_request_timeout
|
|
4566
|
+
)
|
|
4567
|
+
response_data.read()
|
|
4568
|
+
return self.api_client.response_deserialize(
|
|
4569
|
+
response_data=response_data,
|
|
4570
|
+
response_types_map=_response_types_map,
|
|
4571
|
+
)
|
|
4572
|
+
|
|
4573
|
+
|
|
4574
|
+
@validate_call
|
|
4575
|
+
def is_rate_limiting_without_preload_content(
|
|
4576
|
+
self,
|
|
4577
|
+
_request_timeout: Union[
|
|
4578
|
+
None,
|
|
4579
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4580
|
+
Tuple[
|
|
4581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4582
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4583
|
+
]
|
|
4584
|
+
] = None,
|
|
4585
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4586
|
+
_content_type: Optional[StrictStr] = None,
|
|
4587
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4588
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4589
|
+
) -> RESTResponseType:
|
|
4590
|
+
"""Checks if rate limiting is enabled.
|
|
4591
|
+
|
|
4592
|
+
|
|
4593
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4594
|
+
number provided, it will be total request
|
|
4595
|
+
timeout. It can also be a pair (tuple) of
|
|
4596
|
+
(connection, read) timeouts.
|
|
4597
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4598
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4599
|
+
request; this effectively ignores the
|
|
4600
|
+
authentication in the spec for a single request.
|
|
4601
|
+
:type _request_auth: dict, optional
|
|
4602
|
+
:param _content_type: force content-type for the request.
|
|
4603
|
+
:type _content_type: str, Optional
|
|
4604
|
+
:param _headers: set to override the headers for a single
|
|
4605
|
+
request; this effectively ignores the headers
|
|
4606
|
+
in the spec for a single request.
|
|
4607
|
+
:type _headers: dict, optional
|
|
4608
|
+
:param _host_index: set to override the host_index for a single
|
|
4609
|
+
request; this effectively ignores the host_index
|
|
4610
|
+
in the spec for a single request.
|
|
4611
|
+
:type _host_index: int, optional
|
|
4612
|
+
:return: Returns the result object.
|
|
4613
|
+
""" # noqa: E501
|
|
4614
|
+
|
|
4615
|
+
_param = self._is_rate_limiting_serialize(
|
|
4616
|
+
_request_auth=_request_auth,
|
|
4617
|
+
_content_type=_content_type,
|
|
4618
|
+
_headers=_headers,
|
|
4619
|
+
_host_index=_host_index
|
|
4620
|
+
)
|
|
4621
|
+
|
|
4622
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4623
|
+
'200': "bool",
|
|
4624
|
+
}
|
|
4625
|
+
response_data = self.api_client.call_api(
|
|
4626
|
+
*_param,
|
|
4627
|
+
_request_timeout=_request_timeout
|
|
4628
|
+
)
|
|
4629
|
+
return response_data.response
|
|
4630
|
+
|
|
4631
|
+
|
|
4632
|
+
def _is_rate_limiting_serialize(
|
|
4633
|
+
self,
|
|
4634
|
+
_request_auth,
|
|
4635
|
+
_content_type,
|
|
4636
|
+
_headers,
|
|
4637
|
+
_host_index,
|
|
4638
|
+
) -> RequestSerialized:
|
|
4639
|
+
|
|
4640
|
+
_host = None
|
|
4641
|
+
|
|
4642
|
+
_collection_formats: Dict[str, str] = {
|
|
4643
|
+
}
|
|
4644
|
+
|
|
4645
|
+
_path_params: Dict[str, str] = {}
|
|
4646
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4647
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4648
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4649
|
+
_files: Dict[
|
|
4650
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4651
|
+
] = {}
|
|
4652
|
+
_body_params: Optional[bytes] = None
|
|
4653
|
+
|
|
4654
|
+
# process the path parameters
|
|
4655
|
+
# process the query parameters
|
|
4656
|
+
# process the header parameters
|
|
4657
|
+
# process the form parameters
|
|
4658
|
+
# process the body parameter
|
|
4659
|
+
|
|
4660
|
+
|
|
4661
|
+
# set the HTTP header `Accept`
|
|
4662
|
+
if 'Accept' not in _header_params:
|
|
4663
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4664
|
+
[
|
|
4665
|
+
'*/*'
|
|
4666
|
+
]
|
|
4667
|
+
)
|
|
4668
|
+
|
|
4669
|
+
|
|
4670
|
+
# authentication setting
|
|
4671
|
+
_auth_settings: List[str] = [
|
|
4672
|
+
'QAnswer-Api-Key',
|
|
4673
|
+
'Bearer'
|
|
4674
|
+
]
|
|
4675
|
+
|
|
4676
|
+
return self.api_client.param_serialize(
|
|
4677
|
+
method='GET',
|
|
4678
|
+
resource_path='/api/admin/rate-limiting',
|
|
4679
|
+
path_params=_path_params,
|
|
4680
|
+
query_params=_query_params,
|
|
4681
|
+
header_params=_header_params,
|
|
4682
|
+
body=_body_params,
|
|
4683
|
+
post_params=_form_params,
|
|
4684
|
+
files=_files,
|
|
4685
|
+
auth_settings=_auth_settings,
|
|
4686
|
+
collection_formats=_collection_formats,
|
|
4687
|
+
_host=_host,
|
|
4688
|
+
_request_auth=_request_auth
|
|
4689
|
+
)
|
|
4690
|
+
|
|
4691
|
+
|
|
4692
|
+
|
|
4693
|
+
|
|
4450
4694
|
@validate_call
|
|
4451
4695
|
def reset_token_quota(
|
|
4452
4696
|
self,
|
|
@@ -4706,3 +4950,257 @@ class AdminApi:
|
|
|
4706
4950
|
)
|
|
4707
4951
|
|
|
4708
4952
|
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
@validate_call
|
|
4956
|
+
def set_rate_limiting(
|
|
4957
|
+
self,
|
|
4958
|
+
rate_limiting: Optional[StrictBool] = None,
|
|
4959
|
+
_request_timeout: Union[
|
|
4960
|
+
None,
|
|
4961
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4962
|
+
Tuple[
|
|
4963
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4964
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4965
|
+
]
|
|
4966
|
+
] = None,
|
|
4967
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4968
|
+
_content_type: Optional[StrictStr] = None,
|
|
4969
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4970
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4971
|
+
) -> None:
|
|
4972
|
+
"""To set the rate limiting. Attention: Disabling the rate limiting should be used only for load testing purposes.
|
|
4973
|
+
|
|
4974
|
+
|
|
4975
|
+
:param rate_limiting:
|
|
4976
|
+
:type rate_limiting: bool
|
|
4977
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4978
|
+
number provided, it will be total request
|
|
4979
|
+
timeout. It can also be a pair (tuple) of
|
|
4980
|
+
(connection, read) timeouts.
|
|
4981
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4982
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4983
|
+
request; this effectively ignores the
|
|
4984
|
+
authentication in the spec for a single request.
|
|
4985
|
+
:type _request_auth: dict, optional
|
|
4986
|
+
:param _content_type: force content-type for the request.
|
|
4987
|
+
:type _content_type: str, Optional
|
|
4988
|
+
:param _headers: set to override the headers for a single
|
|
4989
|
+
request; this effectively ignores the headers
|
|
4990
|
+
in the spec for a single request.
|
|
4991
|
+
:type _headers: dict, optional
|
|
4992
|
+
:param _host_index: set to override the host_index for a single
|
|
4993
|
+
request; this effectively ignores the host_index
|
|
4994
|
+
in the spec for a single request.
|
|
4995
|
+
:type _host_index: int, optional
|
|
4996
|
+
:return: Returns the result object.
|
|
4997
|
+
""" # noqa: E501
|
|
4998
|
+
|
|
4999
|
+
_param = self._set_rate_limiting_serialize(
|
|
5000
|
+
rate_limiting=rate_limiting,
|
|
5001
|
+
_request_auth=_request_auth,
|
|
5002
|
+
_content_type=_content_type,
|
|
5003
|
+
_headers=_headers,
|
|
5004
|
+
_host_index=_host_index
|
|
5005
|
+
)
|
|
5006
|
+
|
|
5007
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5008
|
+
'200': None,
|
|
5009
|
+
}
|
|
5010
|
+
response_data = self.api_client.call_api(
|
|
5011
|
+
*_param,
|
|
5012
|
+
_request_timeout=_request_timeout
|
|
5013
|
+
)
|
|
5014
|
+
response_data.read()
|
|
5015
|
+
return self.api_client.response_deserialize(
|
|
5016
|
+
response_data=response_data,
|
|
5017
|
+
response_types_map=_response_types_map,
|
|
5018
|
+
).data
|
|
5019
|
+
|
|
5020
|
+
|
|
5021
|
+
@validate_call
|
|
5022
|
+
def set_rate_limiting_with_http_info(
|
|
5023
|
+
self,
|
|
5024
|
+
rate_limiting: Optional[StrictBool] = None,
|
|
5025
|
+
_request_timeout: Union[
|
|
5026
|
+
None,
|
|
5027
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5028
|
+
Tuple[
|
|
5029
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5030
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5031
|
+
]
|
|
5032
|
+
] = None,
|
|
5033
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5034
|
+
_content_type: Optional[StrictStr] = None,
|
|
5035
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5036
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5037
|
+
) -> ApiResponse[None]:
|
|
5038
|
+
"""To set the rate limiting. Attention: Disabling the rate limiting should be used only for load testing purposes.
|
|
5039
|
+
|
|
5040
|
+
|
|
5041
|
+
:param rate_limiting:
|
|
5042
|
+
:type rate_limiting: bool
|
|
5043
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5044
|
+
number provided, it will be total request
|
|
5045
|
+
timeout. It can also be a pair (tuple) of
|
|
5046
|
+
(connection, read) timeouts.
|
|
5047
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5048
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5049
|
+
request; this effectively ignores the
|
|
5050
|
+
authentication in the spec for a single request.
|
|
5051
|
+
:type _request_auth: dict, optional
|
|
5052
|
+
:param _content_type: force content-type for the request.
|
|
5053
|
+
:type _content_type: str, Optional
|
|
5054
|
+
:param _headers: set to override the headers for a single
|
|
5055
|
+
request; this effectively ignores the headers
|
|
5056
|
+
in the spec for a single request.
|
|
5057
|
+
:type _headers: dict, optional
|
|
5058
|
+
:param _host_index: set to override the host_index for a single
|
|
5059
|
+
request; this effectively ignores the host_index
|
|
5060
|
+
in the spec for a single request.
|
|
5061
|
+
:type _host_index: int, optional
|
|
5062
|
+
:return: Returns the result object.
|
|
5063
|
+
""" # noqa: E501
|
|
5064
|
+
|
|
5065
|
+
_param = self._set_rate_limiting_serialize(
|
|
5066
|
+
rate_limiting=rate_limiting,
|
|
5067
|
+
_request_auth=_request_auth,
|
|
5068
|
+
_content_type=_content_type,
|
|
5069
|
+
_headers=_headers,
|
|
5070
|
+
_host_index=_host_index
|
|
5071
|
+
)
|
|
5072
|
+
|
|
5073
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5074
|
+
'200': None,
|
|
5075
|
+
}
|
|
5076
|
+
response_data = self.api_client.call_api(
|
|
5077
|
+
*_param,
|
|
5078
|
+
_request_timeout=_request_timeout
|
|
5079
|
+
)
|
|
5080
|
+
response_data.read()
|
|
5081
|
+
return self.api_client.response_deserialize(
|
|
5082
|
+
response_data=response_data,
|
|
5083
|
+
response_types_map=_response_types_map,
|
|
5084
|
+
)
|
|
5085
|
+
|
|
5086
|
+
|
|
5087
|
+
@validate_call
|
|
5088
|
+
def set_rate_limiting_without_preload_content(
|
|
5089
|
+
self,
|
|
5090
|
+
rate_limiting: Optional[StrictBool] = None,
|
|
5091
|
+
_request_timeout: Union[
|
|
5092
|
+
None,
|
|
5093
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5094
|
+
Tuple[
|
|
5095
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
5096
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
5097
|
+
]
|
|
5098
|
+
] = None,
|
|
5099
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5100
|
+
_content_type: Optional[StrictStr] = None,
|
|
5101
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5102
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5103
|
+
) -> RESTResponseType:
|
|
5104
|
+
"""To set the rate limiting. Attention: Disabling the rate limiting should be used only for load testing purposes.
|
|
5105
|
+
|
|
5106
|
+
|
|
5107
|
+
:param rate_limiting:
|
|
5108
|
+
:type rate_limiting: bool
|
|
5109
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
5110
|
+
number provided, it will be total request
|
|
5111
|
+
timeout. It can also be a pair (tuple) of
|
|
5112
|
+
(connection, read) timeouts.
|
|
5113
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
5114
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
5115
|
+
request; this effectively ignores the
|
|
5116
|
+
authentication in the spec for a single request.
|
|
5117
|
+
:type _request_auth: dict, optional
|
|
5118
|
+
:param _content_type: force content-type for the request.
|
|
5119
|
+
:type _content_type: str, Optional
|
|
5120
|
+
:param _headers: set to override the headers for a single
|
|
5121
|
+
request; this effectively ignores the headers
|
|
5122
|
+
in the spec for a single request.
|
|
5123
|
+
:type _headers: dict, optional
|
|
5124
|
+
:param _host_index: set to override the host_index for a single
|
|
5125
|
+
request; this effectively ignores the host_index
|
|
5126
|
+
in the spec for a single request.
|
|
5127
|
+
:type _host_index: int, optional
|
|
5128
|
+
:return: Returns the result object.
|
|
5129
|
+
""" # noqa: E501
|
|
5130
|
+
|
|
5131
|
+
_param = self._set_rate_limiting_serialize(
|
|
5132
|
+
rate_limiting=rate_limiting,
|
|
5133
|
+
_request_auth=_request_auth,
|
|
5134
|
+
_content_type=_content_type,
|
|
5135
|
+
_headers=_headers,
|
|
5136
|
+
_host_index=_host_index
|
|
5137
|
+
)
|
|
5138
|
+
|
|
5139
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
5140
|
+
'200': None,
|
|
5141
|
+
}
|
|
5142
|
+
response_data = self.api_client.call_api(
|
|
5143
|
+
*_param,
|
|
5144
|
+
_request_timeout=_request_timeout
|
|
5145
|
+
)
|
|
5146
|
+
return response_data.response
|
|
5147
|
+
|
|
5148
|
+
|
|
5149
|
+
def _set_rate_limiting_serialize(
|
|
5150
|
+
self,
|
|
5151
|
+
rate_limiting,
|
|
5152
|
+
_request_auth,
|
|
5153
|
+
_content_type,
|
|
5154
|
+
_headers,
|
|
5155
|
+
_host_index,
|
|
5156
|
+
) -> RequestSerialized:
|
|
5157
|
+
|
|
5158
|
+
_host = None
|
|
5159
|
+
|
|
5160
|
+
_collection_formats: Dict[str, str] = {
|
|
5161
|
+
}
|
|
5162
|
+
|
|
5163
|
+
_path_params: Dict[str, str] = {}
|
|
5164
|
+
_query_params: List[Tuple[str, str]] = []
|
|
5165
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5166
|
+
_form_params: List[Tuple[str, str]] = []
|
|
5167
|
+
_files: Dict[
|
|
5168
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
5169
|
+
] = {}
|
|
5170
|
+
_body_params: Optional[bytes] = None
|
|
5171
|
+
|
|
5172
|
+
# process the path parameters
|
|
5173
|
+
# process the query parameters
|
|
5174
|
+
if rate_limiting is not None:
|
|
5175
|
+
|
|
5176
|
+
_query_params.append(('rateLimiting', rate_limiting))
|
|
5177
|
+
|
|
5178
|
+
# process the header parameters
|
|
5179
|
+
# process the form parameters
|
|
5180
|
+
# process the body parameter
|
|
5181
|
+
|
|
5182
|
+
|
|
5183
|
+
|
|
5184
|
+
|
|
5185
|
+
# authentication setting
|
|
5186
|
+
_auth_settings: List[str] = [
|
|
5187
|
+
'QAnswer-Api-Key',
|
|
5188
|
+
'Bearer'
|
|
5189
|
+
]
|
|
5190
|
+
|
|
5191
|
+
return self.api_client.param_serialize(
|
|
5192
|
+
method='POST',
|
|
5193
|
+
resource_path='/api/admin/rate-limiting',
|
|
5194
|
+
path_params=_path_params,
|
|
5195
|
+
query_params=_query_params,
|
|
5196
|
+
header_params=_header_params,
|
|
5197
|
+
body=_body_params,
|
|
5198
|
+
post_params=_form_params,
|
|
5199
|
+
files=_files,
|
|
5200
|
+
auth_settings=_auth_settings,
|
|
5201
|
+
collection_formats=_collection_formats,
|
|
5202
|
+
_host=_host,
|
|
5203
|
+
_request_auth=_request_auth
|
|
5204
|
+
)
|
|
5205
|
+
|
|
5206
|
+
|
qanswer_sdk/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/3.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/3.1338.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
qanswer_sdk/configuration.py
CHANGED
|
@@ -421,7 +421,7 @@ conf = qanswer_sdk.Configuration(
|
|
|
421
421
|
"OS: {env}\n"\
|
|
422
422
|
"Python Version: {pyversion}\n"\
|
|
423
423
|
"Version of the API: 1.0\n"\
|
|
424
|
-
"SDK Package Version: 3.
|
|
424
|
+
"SDK Package Version: 3.1338.0".\
|
|
425
425
|
format(env=sys.platform, pyversion=sys.version)
|
|
426
426
|
|
|
427
427
|
def get_host_settings(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qanswer_sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1338.0
|
|
4
4
|
Summary: QAnswer: Api Documentation
|
|
5
5
|
Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
6
6
|
License: NoLicense
|
|
@@ -228,7 +228,7 @@ print(response.answer)
|
|
|
228
228
|
## 📌 Versioning
|
|
229
229
|
|
|
230
230
|
This SDK follows the version of the QAnswer API.
|
|
231
|
-
The current version is: `3.
|
|
231
|
+
The current version is: `3.1338.0 (branch: main)`
|
|
232
232
|
|
|
233
233
|
---
|
|
234
234
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
qanswer_sdk/__init__.py,sha256
|
|
1
|
+
qanswer_sdk/__init__.py,sha256=-0Ezq6SQo7P3w9SN4WDGUNTMNZUnbd0wJTdWu4o7q2A,28110
|
|
2
2
|
qanswer_sdk/api/__init__.py,sha256=Lxp9OLgOUg7jmcAophNG7okim03ZaxIPxhXg-mo9y3A,3157
|
|
3
|
-
qanswer_sdk/api/admin_api.py,sha256=
|
|
3
|
+
qanswer_sdk/api/admin_api.py,sha256=AIT-rjbj91uc9C5uFSWSMCWK5SiGy8gzCSlQlnouvoc,196870
|
|
4
4
|
qanswer_sdk/api/ai_assistant_access_rights_api.py,sha256=g8vytIW8KUxZo2vcLFEdxOkvR3dTgjR5ow1mTA0erR0,197831
|
|
5
5
|
qanswer_sdk/api/ai_assistant_api.py,sha256=09A95dk0wIAh2lJOlOlmhMb4T-W4lAVphrWGX2ZTi0E,195576
|
|
6
6
|
qanswer_sdk/api/bot_slack_api.py,sha256=2Fo_5-0feBmU5yt46QOe6gUnn1vqGftNWtK5eOQoFW0,29557
|
|
@@ -46,9 +46,9 @@ qanswer_sdk/api/tool_llm_api.py,sha256=isQs7qoWheR2b9ds02BGBN_VfshETDkSCG-8N_zMK
|
|
|
46
46
|
qanswer_sdk/api/unit_organizations_api.py,sha256=1Z7zaqxSl6ZomXrZyLNaA-cW5RIehddTYjNG3qVAFuk,193541
|
|
47
47
|
qanswer_sdk/api/unit_teams_api.py,sha256=Soc3QkvulKcEUUkz_JIh08qGhO15pMFhTxy8Y0XKrVY,145189
|
|
48
48
|
qanswer_sdk/api/unit_user_api.py,sha256=vg0B7xjc94OahBN_kBxsw7IxWCOKML_J_umdFNPMd9g,318314
|
|
49
|
-
qanswer_sdk/api_client.py,sha256=
|
|
49
|
+
qanswer_sdk/api_client.py,sha256=Pek3chbeCZQRhKy4ySoimdjfsir0g0sRzI1tXINTfQY,27387
|
|
50
50
|
qanswer_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
51
|
-
qanswer_sdk/configuration.py,sha256=
|
|
51
|
+
qanswer_sdk/configuration.py,sha256=__XST9QYTXNbUneEHvIvRwIyMT0chYopAsm99DHBnAw,16184
|
|
52
52
|
qanswer_sdk/exceptions.py,sha256=BCaz7REoUyrBq8zuVBNTmEHGvJfM1YyLSyOnkB1XQLU,5907
|
|
53
53
|
qanswer_sdk/models/__init__.py,sha256=OtKJsNByhowINBAlckw-iGoGMpqSW115ULT3-po0MJk,24481
|
|
54
54
|
qanswer_sdk/models/access_pdf_payload_model.py,sha256=0oamrJeAIZdpjmcWby_PFmz-GrXD0ObDU3ecRpf7nRI,3626
|
|
@@ -380,6 +380,6 @@ qanswer_sdk/models/website_connector_settings.py,sha256=mlKuTG7Nsmv4XyEDUpVlg8ZO
|
|
|
380
380
|
qanswer_sdk/models/widget_configs.py,sha256=H38KJ4wCup7MXD-PeTHaF0xnR1VZmCTSIxNNmQzIPVc,3703
|
|
381
381
|
qanswer_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
382
382
|
qanswer_sdk/rest.py,sha256=9cpA9eEQsfuHcThVnF2c7CEK0HCJYGyGZnWqmfkQpT8,9344
|
|
383
|
-
qanswer_sdk-3.
|
|
384
|
-
qanswer_sdk-3.
|
|
385
|
-
qanswer_sdk-3.
|
|
383
|
+
qanswer_sdk-3.1338.0.dist-info/METADATA,sha256=BneTnwsmaIWC88DrT5ntxtxaoLfRDWYDqxP2TT0J_V8,6532
|
|
384
|
+
qanswer_sdk-3.1338.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
385
|
+
qanswer_sdk-3.1338.0.dist-info/RECORD,,
|
|
File without changes
|