hiddenlayer-sdk 1.1.0__py3-none-any.whl → 1.1.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,8 +16,8 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
20
- from typing import Any, Optional, Union
19
+ from pydantic import Field, StrictInt, StrictStr, field_validator
20
+ from typing import Any, Optional
21
21
  from typing_extensions import Annotated
22
22
  from hiddenlayer.sdk.rest.models.create_sensor_request import CreateSensorRequest
23
23
  from hiddenlayer.sdk.rest.models.get_multipart_upload_response import GetMultipartUploadResponse
@@ -48,7 +48,7 @@ class SensorApi:
48
48
  def begin_multipart_upload(
49
49
  self,
50
50
  sensor_id: StrictStr,
51
- x_content_length: Annotated[Union[StrictFloat, StrictInt], Field(description="The total size of multipart upload.")],
51
+ x_content_length: Annotated[StrictInt, Field(description="The total size of multipart upload.")],
52
52
  _request_timeout: Union[
53
53
  None,
54
54
  Annotated[StrictFloat, Field(gt=0)],
@@ -68,7 +68,7 @@ class SensorApi:
68
68
  :param sensor_id: (required)
69
69
  :type sensor_id: str
70
70
  :param x_content_length: The total size of multipart upload. (required)
71
- :type x_content_length: float
71
+ :type x_content_length: int
72
72
  :param _request_timeout: timeout setting for this request. If one
73
73
  number provided, it will be total request
74
74
  timeout. It can also be a pair (tuple) of
@@ -119,7 +119,7 @@ class SensorApi:
119
119
  def begin_multipart_upload_with_http_info(
120
120
  self,
121
121
  sensor_id: StrictStr,
122
- x_content_length: Annotated[Union[StrictFloat, StrictInt], Field(description="The total size of multipart upload.")],
122
+ x_content_length: Annotated[StrictInt, Field(description="The total size of multipart upload.")],
123
123
  _request_timeout: Union[
124
124
  None,
125
125
  Annotated[StrictFloat, Field(gt=0)],
@@ -139,7 +139,7 @@ class SensorApi:
139
139
  :param sensor_id: (required)
140
140
  :type sensor_id: str
141
141
  :param x_content_length: The total size of multipart upload. (required)
142
- :type x_content_length: float
142
+ :type x_content_length: int
143
143
  :param _request_timeout: timeout setting for this request. If one
144
144
  number provided, it will be total request
145
145
  timeout. It can also be a pair (tuple) of
@@ -190,7 +190,7 @@ class SensorApi:
190
190
  def begin_multipart_upload_without_preload_content(
191
191
  self,
192
192
  sensor_id: StrictStr,
193
- x_content_length: Annotated[Union[StrictFloat, StrictInt], Field(description="The total size of multipart upload.")],
193
+ x_content_length: Annotated[StrictInt, Field(description="The total size of multipart upload.")],
194
194
  _request_timeout: Union[
195
195
  None,
196
196
  Annotated[StrictFloat, Field(gt=0)],
@@ -210,7 +210,7 @@ class SensorApi:
210
210
  :param sensor_id: (required)
211
211
  :type sensor_id: str
212
212
  :param x_content_length: The total size of multipart upload. (required)
213
- :type x_content_length: float
213
+ :type x_content_length: int
214
214
  :param _request_timeout: timeout setting for this request. If one
215
215
  number provided, it will be total request
216
216
  timeout. It can also be a pair (tuple) of
@@ -1978,7 +1978,7 @@ class SensorApi:
1978
1978
  self,
1979
1979
  sensor_id: StrictStr,
1980
1980
  upload_id: StrictStr,
1981
- part: Union[StrictFloat, StrictInt],
1981
+ part: StrictInt,
1982
1982
  body: Optional[Any],
1983
1983
  _request_timeout: Union[
1984
1984
  None,
@@ -2001,7 +2001,7 @@ class SensorApi:
2001
2001
  :param upload_id: (required)
2002
2002
  :type upload_id: str
2003
2003
  :param part: (required)
2004
- :type part: float
2004
+ :type part: int
2005
2005
  :param body: (required)
2006
2006
  :type body: object
2007
2007
  :param _request_timeout: timeout setting for this request. If one
@@ -2057,7 +2057,7 @@ class SensorApi:
2057
2057
  self,
2058
2058
  sensor_id: StrictStr,
2059
2059
  upload_id: StrictStr,
2060
- part: Union[StrictFloat, StrictInt],
2060
+ part: StrictInt,
2061
2061
  body: Optional[Any],
2062
2062
  _request_timeout: Union[
2063
2063
  None,
@@ -2080,7 +2080,7 @@ class SensorApi:
2080
2080
  :param upload_id: (required)
2081
2081
  :type upload_id: str
2082
2082
  :param part: (required)
2083
- :type part: float
2083
+ :type part: int
2084
2084
  :param body: (required)
2085
2085
  :type body: object
2086
2086
  :param _request_timeout: timeout setting for this request. If one
@@ -2136,7 +2136,7 @@ class SensorApi:
2136
2136
  self,
2137
2137
  sensor_id: StrictStr,
2138
2138
  upload_id: StrictStr,
2139
- part: Union[StrictFloat, StrictInt],
2139
+ part: StrictInt,
2140
2140
  body: Optional[Any],
2141
2141
  _request_timeout: Union[
2142
2142
  None,
@@ -2159,7 +2159,7 @@ class SensorApi:
2159
2159
  :param upload_id: (required)
2160
2160
  :type upload_id: str
2161
2161
  :param part: (required)
2162
- :type part: float
2162
+ :type part: int
2163
2163
  :param body: (required)
2164
2164
  :type body: object
2165
2165
  :param _request_timeout: timeout setting for this request. If one
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field
21
- from typing import Any, ClassVar, Dict, List, Optional, Union
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from hiddenlayer.sdk.rest.models.scan_report_v3 import ScanReportV3
24
24
  from typing import Optional, Set
@@ -29,7 +29,7 @@ class ModelScanApiV3ScanQuery200Response(BaseModel):
29
29
  ModelScanApiV3ScanQuery200Response
30
30
  """ # noqa: E501
31
31
  items: Optional[List[ScanReportV3]] = None
32
- total: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="Total number of items available based on the query criteria.")
32
+ total: Annotated[int, Field(strict=True, ge=0)] = Field(description="Total number of items available based on the query criteria.")
33
33
  limit: Annotated[int, Field(le=100, strict=True, ge=1)] = Field(description="Maximum number of items to return")
34
34
  offset: Annotated[int, Field(strict=True, ge=0)] = Field(description="Begin returning the results from this offset")
35
35
  __properties: ClassVar[List[str]] = ["items", "total", "limit", "offset"]
@@ -17,8 +17,8 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
21
- from typing import Any, ClassVar, Dict, List, Optional, Union
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
@@ -26,9 +26,9 @@ class MultipartUploadPart(BaseModel):
26
26
  """
27
27
  MultipartUploadPart
28
28
  """ # noqa: E501
29
- part_number: Union[StrictFloat, StrictInt]
30
- start_offset: Union[StrictFloat, StrictInt]
31
- end_offset: Union[StrictFloat, StrictInt]
29
+ part_number: StrictInt
30
+ start_offset: StrictInt
31
+ end_offset: StrictInt
32
32
  upload_url: Optional[StrictStr] = Field(default=None, description="only provided when part is to be directly uploaded to a cloud provider (adhoc)")
33
33
  __properties: ClassVar[List[str]] = ["part_number", "start_offset", "end_offset", "upload_url"]
34
34
 
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
- from typing import Any, ClassVar, Dict, List, Optional, Union
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
@@ -28,7 +28,7 @@ class PagedResponseWithTotal(BaseModel):
28
28
  PagedResponseWithTotal
29
29
  """ # noqa: E501
30
30
  items: Optional[List[StrictStr]] = Field(default=None, description="List of items. If no matching items are found, then `[]` will be returned.")
31
- total: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="Total number of items available based on the query criteria.")
31
+ total: Annotated[int, Field(strict=True, ge=0)] = Field(description="Total number of items available based on the query criteria.")
32
32
  limit: Annotated[int, Field(le=100, strict=True, ge=1)] = Field(description="Maximum number of items to return")
33
33
  offset: Annotated[int, Field(strict=True, ge=0)] = Field(description="Begin returning the results from this offset")
34
34
  __properties: ClassVar[List[str]] = ["items", "total", "limit", "offset"]
@@ -66,8 +66,8 @@ class ScanDetectionV3(BaseModel):
66
66
  if value is None:
67
67
  return value
68
68
 
69
- if not re.match(r"^CWE-\d{1,4}.*$", value):
70
- raise ValueError(r"must validate the regular expression /^CWE-\d{1,4}.*$/")
69
+ if not re.match(r"^CWE-\d{1,4}.*$|^$", value):
70
+ raise ValueError(r"must validate the regular expression /^CWE-\d{1,4}.*$|^$/")
71
71
  return value
72
72
 
73
73
  model_config = ConfigDict(
@@ -1 +1 @@
1
- VERSION = "1.1.0"
1
+ VERSION = "1.1.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: hiddenlayer-sdk
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Official HiddenLayer Python SDK
5
5
  Author-email: HiddenLayer Integrations Team <integrations@hiddenlayer.com>
6
6
  Maintainer-email: HiddenLayer Integrations Team <integrations@hiddenlayer.com>
@@ -4,7 +4,7 @@ hiddenlayer/sdk/constants.py,sha256=QwBZAQdF7FW9q4C-O8LyxrpqfJFBBlqRUDMjnJ-ouZQ,
4
4
  hiddenlayer/sdk/exceptions.py,sha256=LNkD6AvSwNwQjnTDrvY152DmvPKzSejrBsIu-qI44Ec,225
5
5
  hiddenlayer/sdk/models.py,sha256=T6GJTFCfBQgBteR0pl0eyYzan-iIFOSpcnlmlCuuQwc,1836
6
6
  hiddenlayer/sdk/utils.py,sha256=Ntao8hfsYuB7obZOanayIlrgJ98IWcPhs3sRi39IDkg,2997
7
- hiddenlayer/sdk/version.py,sha256=DFGnvNkISEu0RDsAfc03O0dRz9PfmIb63Kyi-am-trE,18
7
+ hiddenlayer/sdk/version.py,sha256=mDldA753XXTzV03_TN3RwueHcj_1Dg00eIWo8LRZG5Y,18
8
8
  hiddenlayer/sdk/rest/__init__.py,sha256=Egcd1PM10KlYQww3y-HkVz0IqF3jnycvn5lYcE6uXVw,7809
9
9
  hiddenlayer/sdk/rest/api_client.py,sha256=Zd_yX0nQq06z0Ome2KcsNUcETnOxzhQK9js53qsN7aI,26333
10
10
  hiddenlayer/sdk/rest/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
@@ -17,7 +17,7 @@ hiddenlayer/sdk/rest/api/health_api.py,sha256=oKHVksIqs_Vt_aQK-n9ZcQfbwW06pVeiYJ
17
17
  hiddenlayer/sdk/rest/api/model_scan_api.py,sha256=G32t9LzeDTCUF4QOMYYs3Vjm8bo0a2kZa3FXBAqPo6s,22047
18
18
  hiddenlayer/sdk/rest/api/model_supply_chain_api.py,sha256=kyay-8hob2E5HoGJPFQXYuffsZOKrg4yJ_S3wMuW030,116057
19
19
  hiddenlayer/sdk/rest/api/readiness_api.py,sha256=5SddYxvRA3GuwZ43DoVTRfPBeTkLXyBGbQtIdUyc2FA,10102
20
- hiddenlayer/sdk/rest/api/sensor_api.py,sha256=yEvLUOVkpHAxsMZdoLQLWUW1TimlpKJ1bkRjJsGsAcU,87527
20
+ hiddenlayer/sdk/rest/api/sensor_api.py,sha256=7pHFdPkeWTVkDx_Cr6e30TMSxGtK8q7h5d8Wiz52_CM,87375
21
21
  hiddenlayer/sdk/rest/models/__init__.py,sha256=-SO-mMt_gSxn-3hRXPeekUXEMe9hweu-ihepPrMNjXU,6811
22
22
  hiddenlayer/sdk/rest/models/address.py,sha256=amsl9GIcBhHswzfA8eQ0jbRw9zVEd6DmtDFSKRyQB9s,5285
23
23
  hiddenlayer/sdk/rest/models/artifact.py,sha256=FSV-aFgOpyZU3khHkbWXajenYLi_Zfn153cZTlz6TAI,8138
@@ -54,12 +54,12 @@ hiddenlayer/sdk/rest/models/model.py,sha256=P9KhYtnXYB6I5HWbwn7N3JDRwN-2mOl9FS0y
54
54
  hiddenlayer/sdk/rest/models/model_inventory_info.py,sha256=mVqFy64_6E9RPZlKBbiWpcmW-VOpRgCGNg5roQIZYVY,3550
55
55
  hiddenlayer/sdk/rest/models/model_query_response.py,sha256=rnJIq1VULoan4ACIbDAFQKptfKvQch0lG1GubpHxSzM,3163
56
56
  hiddenlayer/sdk/rest/models/model_scan_api_v3_scan_model_version_id_patch200_response.py,sha256=Kte2VZW9Sxg6iuQcUejMKgwu2o93enamPkn8AkmocPc,2639
57
- hiddenlayer/sdk/rest/models/model_scan_api_v3_scan_query200_response.py,sha256=EWHIzVE9kL_BqhK1iHO6RR3CFcaPRofjCEz221Nfqv8,3690
57
+ hiddenlayer/sdk/rest/models/model_scan_api_v3_scan_query200_response.py,sha256=1ZwhiLPdUJ91wbXsZBReHStLPRy7MuypGA7TvuWUyCI,3632
58
58
  hiddenlayer/sdk/rest/models/multiformat_message_string.py,sha256=dCTBPDxsH82CsjG8Li1DQ3g7jVTElwK9Y40jsHfX6as,3188
59
- hiddenlayer/sdk/rest/models/multipart_upload_part.py,sha256=l-8F4iozfhxsRa3sZA2NnIXWV6eCRIDYQrDDjw6FGbU,2984
59
+ hiddenlayer/sdk/rest/models/multipart_upload_part.py,sha256=YlQzUpdFPdLOI1eUINf5awh_ZEbLPfJ14kMD2GVuTxE,2904
60
60
  hiddenlayer/sdk/rest/models/node.py,sha256=ncjJUVzG3lHmZy214R-Mq1hMeI-i1QyaZPUTlluopdM,4552
61
61
  hiddenlayer/sdk/rest/models/notification.py,sha256=pAuZat0q2eUI8psHfYzlymF-ESJRuX2SS1kFCGuT6M8,7077
62
- hiddenlayer/sdk/rest/models/paged_response_with_total.py,sha256=O8KD2Ipvi9Gwm6eUg21FeLgtlV8tdB7JhMMWl9ip3Fs,3307
62
+ hiddenlayer/sdk/rest/models/paged_response_with_total.py,sha256=6cg4f0n0sWm2KRuW_2N5jaRu60my84psVQwFD2PLCvA,3249
63
63
  hiddenlayer/sdk/rest/models/physical_location.py,sha256=5ZVAVRRcgPx0VtpPvAzE2zqivhOJeevxLbYiaDCx9Vs,3068
64
64
  hiddenlayer/sdk/rest/models/property_bag.py,sha256=AveUPrUpsS6ssiU3uq_gX0RBgte4bq7tyOhSV1XKRpo,3273
65
65
  hiddenlayer/sdk/rest/models/rectangle.py,sha256=EVfO4yTrzqLGg1w8NfTQ9MwS-hwUTntfCteQO7MK5wo,4295
@@ -76,7 +76,7 @@ hiddenlayer/sdk/rest/models/run.py,sha256=8BS3hXvOuIZybITl5epQUzlj4kOwoUjAQx0VCU
76
76
  hiddenlayer/sdk/rest/models/run_automation_details.py,sha256=r_v4HEGNv_WH7Rv2AW8jfh0nTAQd6lmnOvbL8To9WoY,5354
77
77
  hiddenlayer/sdk/rest/models/sarif210.py,sha256=c4yCBNKheoNkmLw7UOI5wMahO8fb9XDhq0KctcDnMGk,5019
78
78
  hiddenlayer/sdk/rest/models/scan_create_request.py,sha256=gxOl_N4_GjwwDT3VGg_d5uNKdxVxtQezcZcnkRg3N7o,2455
79
- hiddenlayer/sdk/rest/models/scan_detection_v3.py,sha256=_zLrBnMFMdh5So1V0cFqqL4t11ODsVbgNO8mxEhSlyQ,6386
79
+ hiddenlayer/sdk/rest/models/scan_detection_v3.py,sha256=UY7mLBUyopY1MF61PxjBDqs_p_wYzEyQV7nwlICbBBE,6392
80
80
  hiddenlayer/sdk/rest/models/scan_header_v3.py,sha256=3jaA-8UQMhpaoobk-TD2gdvQpU-XxJunvEKLd3pFiEs,5077
81
81
  hiddenlayer/sdk/rest/models/scan_job.py,sha256=ELKdaLTGRs9M5PuX4VD8DB_K1JgUg9NkzOKy90gW2wg,3610
82
82
  hiddenlayer/sdk/rest/models/scan_job_inventory.py,sha256=OV1KAy1czwndF7h-OZg4KYwVjHRh1ie4fGfgSOWQgO0,5370
@@ -111,8 +111,8 @@ hiddenlayer/sdk/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
111
111
  hiddenlayer/sdk/services/aidr_predictive.py,sha256=aD2anFzWQzfLsR13NwwdQjt_X_iAlOkmss_yHy-154U,2958
112
112
  hiddenlayer/sdk/services/model.py,sha256=qoVrwgL7E0raCUI0bNyim4SrmDEGBmcU1UaoJ-JNoCg,4871
113
113
  hiddenlayer/sdk/services/model_scan.py,sha256=xGHveChHA6pHArSNF8YKXFOi0FqaH9BnzfuKC_6VyBY,17123
114
- hiddenlayer_sdk-1.1.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
115
- hiddenlayer_sdk-1.1.0.dist-info/METADATA,sha256=8M5hvwdG5HDkwRvIAiKDQJf3vSGCoex7itoWrd8baUk,17342
116
- hiddenlayer_sdk-1.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
117
- hiddenlayer_sdk-1.1.0.dist-info/top_level.txt,sha256=8BxcmGvEN1RqsMvTWg9Q0vDmtBGcTmatnme6nzyPj2U,12
118
- hiddenlayer_sdk-1.1.0.dist-info/RECORD,,
114
+ hiddenlayer_sdk-1.1.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
115
+ hiddenlayer_sdk-1.1.1.dist-info/METADATA,sha256=quGYg7HvsPUKSD3yu9tTxfTzS692TkN0MP253DrighI,17342
116
+ hiddenlayer_sdk-1.1.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
117
+ hiddenlayer_sdk-1.1.1.dist-info/top_level.txt,sha256=8BxcmGvEN1RqsMvTWg9Q0vDmtBGcTmatnme6nzyPj2U,12
118
+ hiddenlayer_sdk-1.1.1.dist-info/RECORD,,