arthur-client 1.4.1475__py3-none-any.whl → 1.4.1476__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.
@@ -313,7 +313,6 @@ from arthur_client.api_bindings.models.role import Role
313
313
  from arthur_client.api_bindings.models.role_binding import RoleBinding
314
314
  from arthur_client.api_bindings.models.role_sort import RoleSort
315
315
  from arthur_client.api_bindings.models.rule_response import RuleResponse
316
- from arthur_client.api_bindings.models.rule_response_config import RuleResponseConfig
317
316
  from arthur_client.api_bindings.models.rule_scope import RuleScope
318
317
  from arthur_client.api_bindings.models.rule_type import RuleType
319
318
  from arthur_client.api_bindings.models.scalar_type import ScalarType
@@ -1,6 +1,6 @@
1
1
  # Config
2
2
 
3
- Config for the rule
3
+ Config of the rule
4
4
 
5
5
  ## Properties
6
6
 
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  **scope** | [**RuleScope**](RuleScope.md) | Scope of the rule. The rule can be set at default level or task level. |
15
15
  **created_at** | **int** | Time the rule was created in unix milliseconds |
16
16
  **updated_at** | **int** | Time the rule was updated in unix milliseconds |
17
- **config** | [**RuleResponseConfig**](RuleResponseConfig.md) | | [optional]
17
+ **config** | [**Config**](Config.md) | | [optional]
18
18
 
19
19
  ## Example
20
20
 
@@ -270,7 +270,6 @@ from arthur_client.api_bindings.models.role import Role
270
270
  from arthur_client.api_bindings.models.role_binding import RoleBinding
271
271
  from arthur_client.api_bindings.models.role_sort import RoleSort
272
272
  from arthur_client.api_bindings.models.rule_response import RuleResponse
273
- from arthur_client.api_bindings.models.rule_response_config import RuleResponseConfig
274
273
  from arthur_client.api_bindings.models.rule_scope import RuleScope
275
274
  from arthur_client.api_bindings.models.rule_type import RuleType
276
275
  from arthur_client.api_bindings.models.scalar_type import ScalarType
@@ -32,7 +32,7 @@ CONFIG_ANY_OF_SCHEMAS = ["ExamplesConfig", "KeywordsConfig", "PIIConfig", "Regex
32
32
 
33
33
  class Config(BaseModel):
34
34
  """
35
- Config for the rule
35
+ Config of the rule
36
36
  """
37
37
 
38
38
  # data type: KeywordsConfig
@@ -28,7 +28,7 @@ class ConnectorPaginationOptions(BaseModel):
28
28
  ConnectorPaginationOptions
29
29
  """ # noqa: E501
30
30
  page: Optional[Annotated[int, Field(strict=True, ge=1)]] = 1
31
- page_size: Optional[Annotated[int, Field(le=500, strict=True)]] = 25
31
+ page_size: Optional[Annotated[int, Field(le=500, strict=True, ge=1)]] = 25
32
32
  __properties: ClassVar[List[str]] = ["page", "page_size"]
33
33
 
34
34
  model_config = ConfigDict(
@@ -19,7 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from arthur_client.api_bindings.models.rule_response_config import RuleResponseConfig
22
+ from arthur_client.api_bindings.models.config import Config
23
23
  from arthur_client.api_bindings.models.rule_scope import RuleScope
24
24
  from arthur_client.api_bindings.models.rule_type import RuleType
25
25
  from typing import Optional, Set
@@ -38,7 +38,7 @@ class RuleResponse(BaseModel):
38
38
  scope: RuleScope = Field(description="Scope of the rule. The rule can be set at default level or task level.")
39
39
  created_at: StrictInt = Field(description="Time the rule was created in unix milliseconds")
40
40
  updated_at: StrictInt = Field(description="Time the rule was updated in unix milliseconds")
41
- config: Optional[RuleResponseConfig] = None
41
+ config: Optional[Config] = None
42
42
  __properties: ClassVar[List[str]] = ["id", "name", "type", "apply_to_prompt", "apply_to_response", "enabled", "scope", "created_at", "updated_at", "config"]
43
43
 
44
44
  model_config = ConfigDict(
@@ -114,7 +114,7 @@ class RuleResponse(BaseModel):
114
114
  "scope": obj.get("scope"),
115
115
  "created_at": obj.get("created_at"),
116
116
  "updated_at": obj.get("updated_at"),
117
- "config": RuleResponseConfig.from_dict(obj["config"]) if obj.get("config") is not None else None
117
+ "config": Config.from_dict(obj["config"]) if obj.get("config") is not None else None
118
118
  })
119
119
  return _obj
120
120
 
@@ -36,7 +36,7 @@ class TestConnectorPaginationOptions(unittest.TestCase):
36
36
  if include_optional:
37
37
  return ConnectorPaginationOptions(
38
38
  page = 1.0,
39
- page_size = 56
39
+ page_size = 1.0
40
40
  )
41
41
  else:
42
42
  return ConnectorPaginationOptions(
@@ -49,7 +49,7 @@ class TestFetchDataJobSpec(unittest.TestCase):
49
49
  ],
50
50
  pagination_options = arthur_client.api_bindings.models.connector_pagination_options.ConnectorPaginationOptions(
51
51
  page = 1.0,
52
- page_size = 56, )
52
+ page_size = 1.0, )
53
53
  )
54
54
  else:
55
55
  return FetchDataJobSpec(
@@ -64,7 +64,7 @@ class TestFetchDataJobSpec(unittest.TestCase):
64
64
  ],
65
65
  pagination_options = arthur_client.api_bindings.models.connector_pagination_options.ConnectorPaginationOptions(
66
66
  page = 1.0,
67
- page_size = 56, ),
67
+ page_size = 1.0, ),
68
68
  )
69
69
  """
70
70
 
@@ -49,7 +49,7 @@ class TestJobSpec(unittest.TestCase):
49
49
  ],
50
50
  pagination_options = arthur_client.api_bindings.models.connector_pagination_options.ConnectorPaginationOptions(
51
51
  page = 1.0,
52
- page_size = 56, ),
52
+ page_size = 1.0, ),
53
53
  scope_model_id = '',
54
54
  connector_id = '',
55
55
  check_range_start_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -107,7 +107,7 @@ class TestJobSpec(unittest.TestCase):
107
107
  ],
108
108
  pagination_options = arthur_client.api_bindings.models.connector_pagination_options.ConnectorPaginationOptions(
109
109
  page = 1.0,
110
- page_size = 56, ),
110
+ page_size = 1.0, ),
111
111
  scope_model_id = '',
112
112
  connector_id = '',
113
113
  check_range_start_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -45,7 +45,7 @@ class TestPostDataRetrievalOperation(unittest.TestCase):
45
45
  ],
46
46
  pagination_options = arthur_client.api_bindings.models.connector_pagination_options.ConnectorPaginationOptions(
47
47
  page = 1.0,
48
- page_size = 56, )
48
+ page_size = 1.0, )
49
49
  )
50
50
  else:
51
51
  return PostDataRetrievalOperation(
@@ -479,7 +479,6 @@ Class | Method | HTTP request | Description
479
479
  - [RoleBinding](arthur_client/api_bindings/docs/RoleBinding.md)
480
480
  - [RoleSort](arthur_client/api_bindings/docs/RoleSort.md)
481
481
  - [RuleResponse](arthur_client/api_bindings/docs/RuleResponse.md)
482
- - [RuleResponseConfig](arthur_client/api_bindings/docs/RuleResponseConfig.md)
483
482
  - [RuleScope](arthur_client/api_bindings/docs/RuleScope.md)
484
483
  - [RuleType](arthur_client/api_bindings/docs/RuleType.md)
485
484
  - [ScalarType](arthur_client/api_bindings/docs/ScalarType.md)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-client
3
- Version: 1.4.1475
3
+ Version: 1.4.1476
4
4
  Summary: Arthur Python API Client Library
5
5
  License: MIT
6
6
  Keywords: api arthur client ArthurAI sdk ml model monitoring
@@ -1,6 +1,6 @@
1
1
  arthur_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  arthur_client/__version__.py,sha256=s-q1tbKb80MgXByJ0ZY3IK-bWeC7AxqtoU_ZYmsb-qk,25
3
- arthur_client/api_bindings/__init__.py,sha256=EWT4YgfxupPVZWhkfYHPvB_PslSNvwg8cJ3hLSNOtBo,28059
3
+ arthur_client/api_bindings/__init__.py,sha256=2J93CZ45YbQJJ_cjXLr1R17rr5jTZdpor1hN4RWPM4U,27973
4
4
  arthur_client/api_bindings/api/__init__.py,sha256=LUOVle03SD-ZkuW_-wPOHEZTW8kF_VfVPzT8DsFBKIg,2112
5
5
  arthur_client/api_bindings/api/alert_rules_v1_api.py,sha256=6bvhsumFswvhaf9Wik6heiIoYgnqy3foQ8i-K7rJWdQ,77212
6
6
  arthur_client/api_bindings/api/alerts_v1_api.py,sha256=RVP4gZUK70I7rn2B9xSeN3CRJaix3C14BLQAVvVTh2Q,41291
@@ -64,7 +64,7 @@ arthur_client/api_bindings/docs/BoundMemberKind.md,sha256=c9F6NAc73bTE4k6Hq2svCI
64
64
  arthur_client/api_bindings/docs/BoundResource.md,sha256=64kr6ydPsxDo-2ZbYk-SjVEv0OuJOMj-BtjT2YXdQVQ,1052
65
65
  arthur_client/api_bindings/docs/BoundResourceKind.md,sha256=rArt76UY3hTQwGPIm4O8Tm0ADSkrpD8JRa5BESI1M8s,351
66
66
  arthur_client/api_bindings/docs/BoundRole.md,sha256=Zr3vafeU2eN2DeZ1_zxzOO8eS7H00PdZnFwk6ulpKnU,886
67
- arthur_client/api_bindings/docs/Config.md,sha256=vn0DqkTJUw0p5B3HvhakFiT05B2tED69hAYG3xD_Zbw,1529
67
+ arthur_client/api_bindings/docs/Config.md,sha256=QLMLW5IEY0iDBsUdY1cnfqWRPF35qr0Eq5DUZZBch4s,1528
68
68
  arthur_client/api_bindings/docs/ConflictError.md,sha256=0gmQTWVu29Y9kN6VnupBF9HNVOqQBf3zmhkWTrWiGGs,913
69
69
  arthur_client/api_bindings/docs/ConnectorCheckJobSpec.md,sha256=6Sa3csRC3D3Z42pBOJkBRgcjH9_v4iQee3ohyZI58ac,1104
70
70
  arthur_client/api_bindings/docs/ConnectorCheckOutcome.md,sha256=RA_axuhze57O9DHAGgpiwaG2Mmm53lIdNbiYdP9I9yc,269
@@ -309,8 +309,7 @@ arthur_client/api_bindings/docs/Role.md,sha256=gEiThpbf3vdljVMFpj5M0E39RXPTr7HiN
309
309
  arthur_client/api_bindings/docs/RoleBinding.md,sha256=v6n0G0hIGOv85Vjm5nmYig2Pr2wBcQSkxX9qNCrWQa0,1407
310
310
  arthur_client/api_bindings/docs/RoleSort.md,sha256=tfkDLa1DEOND4-rcwVNzd_fF-9Bk3QZv7m9q8NVZXkQ,294
311
311
  arthur_client/api_bindings/docs/RolesV1Api.md,sha256=nqIOUf-x3JTyT1Lbh5bQCVwY2V6XTPUVp4SpiKP9L38,2531
312
- arthur_client/api_bindings/docs/RuleResponse.md,sha256=PrAYsH_0YRHAyGLt7ppzL3XP9bZdY7_PONq5g8hiLOk,1486
313
- arthur_client/api_bindings/docs/RuleResponseConfig.md,sha256=HVk5lzGsAO6c-ya58rWI57RfrhRRVFUfteMrQSxWlVY,1696
312
+ arthur_client/api_bindings/docs/RuleResponse.md,sha256=ZMNuUW-DxC_J4rqlJpipFRfAyOqAyMz6eXm2p4YPp4E,1462
314
313
  arthur_client/api_bindings/docs/RuleScope.md,sha256=e8j2icHfXrxgrBDONLOmCkIpvzjR4JkL21mwpmutNt0,249
315
314
  arthur_client/api_bindings/docs/RuleType.md,sha256=6DHI4rS8FKEB3jPhuDgal5EfXVkcNx_DylPNFq6ITE8,542
316
315
  arthur_client/api_bindings/docs/ScalarType.md,sha256=8NcbDO8vrTAVvOF3rUySp_4ZL5DlpyswOks6l-FN9x0,853
@@ -357,7 +356,7 @@ arthur_client/api_bindings/docs/Workspace.md,sha256=G4pN-rx4iU2-sxOhF-1Fp6QbHYrr
357
356
  arthur_client/api_bindings/docs/WorkspaceSort.md,sha256=g2lRzcM9sBnHufImJj3fvRQYgiQRt885iYZc7OkE9Mk,299
358
357
  arthur_client/api_bindings/docs/WorkspacesV1Api.md,sha256=WM4FbbGbsiekeP2VnFE1Em0gT9-rXb45aBoqPTiBDqI,14011
359
358
  arthur_client/api_bindings/exceptions.py,sha256=yy0Uot-WkcM6-PbNo2KDnrKAUL_PFmeCTD2tvq_gFp4,5977
360
- arthur_client/api_bindings/models/__init__.py,sha256=FK5M8iaH6OCsLRAHNlsy1NdB0JJUIuFYGkoRRpuLQxA,25343
359
+ arthur_client/api_bindings/models/__init__.py,sha256=nrPUUausPJcXFISi7UdQZj2F28_reMtk602gCLzlnms,25257
361
360
  arthur_client/api_bindings/models/aggregation_kind.py,sha256=HS-dSt_0CD9T47N_A6wU0BkR1D57zjE24IkwEJqPQVY,765
362
361
  arthur_client/api_bindings/models/aggregation_metric_type.py,sha256=USKpDqhX4TQ4lqIoHOp3q70mydsf1u_zc1EKus9QhYo,783
363
362
  arthur_client/api_bindings/models/aggregation_spec.py,sha256=-MpHK2VeaKjUlbrYMGe1ZMtrqh5lQwdAnoV-LuzPNUw,4825
@@ -387,13 +386,13 @@ arthur_client/api_bindings/models/bound_member_kind.py,sha256=osjo6iZteKM0n546-e
387
386
  arthur_client/api_bindings/models/bound_resource.py,sha256=10mJhbjnvcbUOHZrPr5fevnQZRhG944oAkMtdZcTaIA,3336
388
387
  arthur_client/api_bindings/models/bound_resource_kind.py,sha256=pjZCSLDKfVYqMQyXIZoJhhpPzB7Ndo5I83aBH7lHtUk,841
389
388
  arthur_client/api_bindings/models/bound_role.py,sha256=FkKYlol1I2uzWl_wTHGYsvuQyfbdDiFsR02v1oR-aMo,2607
390
- arthur_client/api_bindings/models/config.py,sha256=uTU22Fz-Zj9kWwS8pJQ7YX94d-F91NLiCDw7TVPrSi8,7195
389
+ arthur_client/api_bindings/models/config.py,sha256=qN42CtIpyv4oE62nAL7jiATDyQvkMl7CdwaCc2tYJrg,7194
391
390
  arthur_client/api_bindings/models/conflict_error.py,sha256=vQzpZVUN-IANUMrlaFhsSvUtf1pC9MAypOG-wHXEJXg,2563
392
391
  arthur_client/api_bindings/models/connector_check_job_spec.py,sha256=xYE_WektRnb2A1R-WTjD44rRKKI87cvsvje4QApITN0,3110
393
392
  arthur_client/api_bindings/models/connector_check_outcome.py,sha256=hVtC6MSjIGi6ISDsi7Yezt628l6OcogA-i-iGpWtbME,787
394
393
  arthur_client/api_bindings/models/connector_check_result.py,sha256=hVP8y2zK_Jq9ZaxqbirbyF2Qa7Jhs6j-nPRH-2fwKgc,3117
395
394
  arthur_client/api_bindings/models/connector_field_data_type.py,sha256=TehwAv9B-tql-hpBvzC2uweG9RlZLOcSZ2oKbSQnEww,814
396
- arthur_client/api_bindings/models/connector_pagination_options.py,sha256=zxWzWZCnHRxDpfemG4NrS6IB1HfJcG05WCOpW0G1Fmw,2831
395
+ arthur_client/api_bindings/models/connector_pagination_options.py,sha256=uDh3YdFbTuOX_KL3YogoaFWUJawQ7ohX9joH02P3ts4,2837
397
396
  arthur_client/api_bindings/models/connector_spec.py,sha256=4CZAFzgxfb_ajn21z12Eh2HaaGo5j8H4V6HIS1jFGZg,5970
398
397
  arthur_client/api_bindings/models/connector_spec_field.py,sha256=Zi5uAFgWVTOALOiFn8ZbXIXjC2mV7sR6qXBExphOgG0,2662
399
398
  arthur_client/api_bindings/models/connector_spec_field_with_metadata.py,sha256=Jv4ajDJFcCB73cj_VU-JPIqVohFe26myCQkGIrxTtZ0,3119
@@ -613,8 +612,7 @@ arthur_client/api_bindings/models/result_filter.py,sha256=qH6Fm7DcuIIaB21M1IvNPh
613
612
  arthur_client/api_bindings/models/role.py,sha256=gI8OswpxJAGeOq3TdOC_kcZzrLbncc4AtbhfrNykJU0,4450
614
613
  arthur_client/api_bindings/models/role_binding.py,sha256=qFIGtIGoGkiC0-2gcOwaMCialJZeTEEggwlv9BrjEwA,4662
615
614
  arthur_client/api_bindings/models/role_sort.py,sha256=tnFgMGKLKBqPJ3Mtq78v03Q1nwO_tl9pOKKnNwa2CG0,776
616
- arthur_client/api_bindings/models/rule_response.py,sha256=TOlG3j4RTImJBa8VkCNPEtc_eZkedxHjN6XjHinP4lk,4607
617
- arthur_client/api_bindings/models/rule_response_config.py,sha256=hOWfa_gU5nnPYEOyeats61juwiBB0pmRU7mW3jXLW6U,7254
615
+ arthur_client/api_bindings/models/rule_response.py,sha256=3b5IYwa4AvCKMN8c4uTVnYmT44JCtmRmlMG5vPzIKIw,4557
618
616
  arthur_client/api_bindings/models/rule_scope.py,sha256=PPwbxg4xCT8CxaddgR_hcJktYeAKKlQ7RXsH-KBU7Lw,743
619
617
  arthur_client/api_bindings/models/rule_type.py,sha256=CP44aMompXxVPKZ951ipkvmFbFCOjv1OgJsICfeDPkA,984
620
618
  arthur_client/api_bindings/models/scalar_type.py,sha256=uHj_BG0x3WwJWzzhOZ4M1i6JJ0KBjhIAgXFkwg1xC7o,2509
@@ -695,7 +693,7 @@ arthur_client/api_bindings/test/test_connector_check_job_spec.py,sha256=qSR1jytq
695
693
  arthur_client/api_bindings/test/test_connector_check_outcome.py,sha256=XSdaA2i_1jdFuZeQg8o7meyNAhnDx0liWSAA0Ahd6Xg,778
696
694
  arthur_client/api_bindings/test/test_connector_check_result.py,sha256=BoFKKVR0k1iYCxW6z9a-DsrAt-b6jEq02sQf5lgV6Cg,1593
697
695
  arthur_client/api_bindings/test/test_connector_field_data_type.py,sha256=hW_tTR6HXgaHNccZ3IZ1VLfV9d9xaaZt6f8Ce-J2Dhs,786
698
- arthur_client/api_bindings/test/test_connector_pagination_options.py,sha256=TUSs9s8xXplqxbKReo_lwcyS0vsgNcqbSNp7WL10wbg,1576
696
+ arthur_client/api_bindings/test/test_connector_pagination_options.py,sha256=_toUt4qDE2d50MDf8Y-85N_ayBqsvp9eAjk_g5A8Wk8,1577
699
697
  arthur_client/api_bindings/test/test_connector_schemas_v1_api.py,sha256=S7wHVLhjZRhoy9tTc2deEyvu8cahXfixFU3grBJWJUw,1033
700
698
  arthur_client/api_bindings/test/test_connector_spec.py,sha256=KcymZI3TXYtSvKUeeS63VKBlCt5caIoB4SXeyeYVJC0,3766
701
699
  arthur_client/api_bindings/test/test_connector_spec_field.py,sha256=RYHyv98eL9TlTEXBlTJS9IP7cpgUSp-nXvYsHG69qnE,1528
@@ -753,7 +751,7 @@ arthur_client/api_bindings/test/test_example_config.py,sha256=OylfHZemPweJ0vtN2R
753
751
  arthur_client/api_bindings/test/test_examples_config.py,sha256=xCCTVYd_iG3bTmdltfQrlVJdSFrsJ8_7ZQ0sK_ghblc,1652
754
752
  arthur_client/api_bindings/test/test_extended_role.py,sha256=4h0GEqYeFMhZh6CiY-S_DTV8i6j6EyeNJmk3wp1kYQw,3343
755
753
  arthur_client/api_bindings/test/test_feature_flags_v1_api.py,sha256=MwHAwNzY_UrKB3UlWsQyD8EagDrpCOcbMsmTeA4SMEs,823
756
- arthur_client/api_bindings/test/test_fetch_data_job_spec.py,sha256=xD2-rj_1v3ynuimPO5lFZVZDnvKyWq6Hmk7Idmwp-AU,2978
754
+ arthur_client/api_bindings/test/test_fetch_data_job_spec.py,sha256=oAzyLISxHDUH-Lrn6Zzkkj4q1aKxaKUhd34RATE4pb8,2980
757
755
  arthur_client/api_bindings/test/test_fetch_model_task_job_spec.py,sha256=lqrrmLuClJ7HQvmqqiB8gBWOwQWye8yItKgr2rL9ANw,1579
758
756
  arthur_client/api_bindings/test/test_generate_metrics_spec_request.py,sha256=KNChYSEig2L9TVUVj8uPtq-SraWHRKBQ50oliFVgxzg,1673
759
757
  arthur_client/api_bindings/test/test_group.py,sha256=tUD1ensu4AYn4jtiLCuiIWvAYLqEGd5SiLZVS6NmC_4,1964
@@ -780,7 +778,7 @@ arthur_client/api_bindings/test/test_job_log_level.py,sha256=6lSjT9tpE3zqfdWV8Ri
780
778
  arthur_client/api_bindings/test/test_job_logs.py,sha256=CjgLFuMklquWRpsgHcG25cRI94KEFepcYDzbWNLec10,1925
781
779
  arthur_client/api_bindings/test/test_job_priority.py,sha256=suCJbTIBMq2XhRuBO07yQfZc3EkUw9FQTrRYnXSpWXg,707
782
780
  arthur_client/api_bindings/test/test_job_run.py,sha256=pZN5z5duK1zQ9clNsCBTqb3lx7nq9DTDIi0yo_-8hMY,1853
783
- arthur_client/api_bindings/test/test_job_spec.py,sha256=U1c4iI4JJqvQUaVDwHQfJ-gtbxv9u99ybOnut0ltpAM,6101
781
+ arthur_client/api_bindings/test/test_job_spec.py,sha256=vWSIdFF_-iQtP5d3_U50LbfHIeFljDBAS42yLC3DTf8,6103
784
782
  arthur_client/api_bindings/test/test_job_state.py,sha256=w-KhmCfHrkS2j3gUor7p1Uk1DDOWf3vYzhNvo-extbs,686
785
783
  arthur_client/api_bindings/test/test_job_trigger.py,sha256=cVDUkkCIGvHRObdjTkP9YJ0LQpPlVuTdTSl2-2LFqGQ,700
786
784
  arthur_client/api_bindings/test/test_jobs_batch.py,sha256=yj-lJ15n8YW__7yJ8Ngq5S2eKtGZO6v5bbflR9tkeg8,5361
@@ -856,7 +854,7 @@ arthur_client/api_bindings/test/test_post_connector_spec.py,sha256=zm6t8neoUmUG1
856
854
  arthur_client/api_bindings/test/test_post_custom_aggregation_spec_schema.py,sha256=zlnRmZ5A8FDBowiGq4lXkdV4KigQx4WkCzfgfxesZKQ,2906
857
855
  arthur_client/api_bindings/test/test_post_data_plane.py,sha256=Ih1oKJykD_Ajjd1Pnh_WSWWVGPFpz2i8u59f71f69X0,1640
858
856
  arthur_client/api_bindings/test/test_post_data_plane_association.py,sha256=9UlCOBGcQ4nWtPcC4xRdedKGLNEPf-qdd7RR1Or9UOQ,1631
859
- arthur_client/api_bindings/test/test_post_data_retrieval_operation.py,sha256=NVP050td_KKDTb-IJm7wU25NsncHN3ekce1kvGyEog0,2446
857
+ arthur_client/api_bindings/test/test_post_data_retrieval_operation.py,sha256=edGjwlWQVkXgZySaJhCkmC0CjMzH30dEOE-qwSE3BQI,2447
860
858
  arthur_client/api_bindings/test/test_post_dataset.py,sha256=1NrQBGEM4xelYEbqltPnmAsDkOLK6WMsgD5qMgoTfxI,2637
861
859
  arthur_client/api_bindings/test/test_post_dataset_join_spec.py,sha256=lTNSix4oSrlpMWjATbAGvtx2zO8oMCguKmX-tFEA2Ds,1802
862
860
  arthur_client/api_bindings/test/test_post_end_user.py,sha256=Ncs1a-2p56ygBwgD8twhkMdWQFFKjIpTSwvomG1TAR0,1582
@@ -935,7 +933,6 @@ arthur_client/api_bindings/test/test_role_binding.py,sha256=fU8OCSWCOhmYD30fb_Gn
935
933
  arthur_client/api_bindings/test/test_role_sort.py,sha256=NpNXx4Ll3c9i6HQyjDB4TD7koyspcBG2vjTRTuZd48E,686
936
934
  arthur_client/api_bindings/test/test_roles_v1_api.py,sha256=_KX9w4CAcUFdkj2AgYzgSy5NYxRoHApsS20IbN8SnLQ,760
937
935
  arthur_client/api_bindings/test/test_rule_response.py,sha256=f7KK3p701fX1OLNgajiU9j_2jhFkfpobRH6d6NGgDw4,1956
938
- arthur_client/api_bindings/test/test_rule_response_config.py,sha256=GqhqE1KGLp7TOdyh0q8vI1akHe_PhpoKxf7YZ9vzKj8,2259
939
936
  arthur_client/api_bindings/test/test_rule_scope.py,sha256=l1qTxnmPB3iNclwxXerBxg-pt-FJqpE7OHSqIRl_6M8,693
940
937
  arthur_client/api_bindings/test/test_rule_type.py,sha256=Y9K11Vohb-GUFBaO4BWULVXZLeE5KN7BBmSsX35QxUM,686
941
938
  arthur_client/api_bindings/test/test_scalar_type.py,sha256=LTVGBiTSbQod0jnUJAfTDzfVg9C_ZyN1M1h2lXWZy-8,1397
@@ -981,13 +978,13 @@ arthur_client/api_bindings/test/test_webhooks_v1_api.py,sha256=7x3pb2tZdXbnSAI-w
981
978
  arthur_client/api_bindings/test/test_workspace.py,sha256=hDjh6CQ8oHTVk_X3fb_wKVPp_cY9bQFAGmNh7qMKpIw,1918
982
979
  arthur_client/api_bindings/test/test_workspace_sort.py,sha256=PDxv__jzX9VXu54ExqHJTLHRn9XKwGVwYjZ4OdFBmLk,721
983
980
  arthur_client/api_bindings/test/test_workspaces_v1_api.py,sha256=_EdT96HqIQWQ64Oy11CEP4LqcJhZPB_EYzCYbhceJG0,1345
984
- arthur_client/api_bindings_README.md,sha256=k6Q54TxBsWOHjha_bHlDXPrUuK8tzd8HQn4FW783HlQ,54592
981
+ arthur_client/api_bindings_README.md,sha256=pssWrpx6zhccSO0pmp2kJDaLQbuTT6YUT3IusbL_7AA,54513
985
982
  arthur_client/auth/__init__.py,sha256=f4XqpGe9d1V0xlocq2JlNtd8l_GUoUOy6_1yTMCBsc0,210
986
983
  arthur_client/auth/constants.py,sha256=lIEdf1UujvAZhueQ8WZGjd3ErcJlCmrXRxjRhTRNb18,38
987
984
  arthur_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD97Qlc1accA,2598
988
985
  arthur_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
989
986
  arthur_client/auth/oauth_api_config.py,sha256=MB-bwm6Qo_USZD_4KVId6d_v5OtLBphwBjMjslVjTlo,1348
990
987
  arthur_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
991
- arthur_client-1.4.1475.dist-info/METADATA,sha256=dn43X7L3ktv-EhQelCg9jRM8ogHPWx-efw_11ATryYE,1730
992
- arthur_client-1.4.1475.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
993
- arthur_client-1.4.1475.dist-info/RECORD,,
988
+ arthur_client-1.4.1476.dist-info/METADATA,sha256=xUuk5rHgm3-HIhSpbgJ7Mp6tcYAw6223ZDEzQFTgF2I,1730
989
+ arthur_client-1.4.1476.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
990
+ arthur_client-1.4.1476.dist-info/RECORD,,
@@ -1,37 +0,0 @@
1
- # RuleResponseConfig
2
-
3
- Config of the rule
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **keywords** | **List[str]** | List of Keywords |
10
- **regex_patterns** | **List[str]** | List of Regex patterns to be used for validation. Be sure to encode requests in JSON and account for escape characters. |
11
- **examples** | [**List[ExampleConfig]**](ExampleConfig.md) | List of all the examples for Sensitive Data Rule |
12
- **hint** | **str** | | [optional]
13
- **threshold** | **float** | Optional. Float (0, 1) indicating the level of tolerable toxicity to consider the rule passed or failed. Min: 0 (no toxic language) Max: 1 (very toxic language). Default: 0.5 | [optional] [default to 0.5]
14
- **disabled_pii_entities** | **List[str]** | | [optional]
15
- **confidence_threshold** | **float** | | [optional]
16
- **allow_list** | **List[str]** | | [optional]
17
-
18
- ## Example
19
-
20
- ```python
21
- from arthur_client.api_bindings.models.rule_response_config import RuleResponseConfig
22
-
23
- # TODO update the JSON string below
24
- json = "{}"
25
- # create an instance of RuleResponseConfig from a JSON string
26
- rule_response_config_instance = RuleResponseConfig.from_json(json)
27
- # print the JSON string representation of the object
28
- print(RuleResponseConfig.to_json())
29
-
30
- # convert the object into a dict
31
- rule_response_config_dict = rule_response_config_instance.to_dict()
32
- # create an instance of RuleResponseConfig from a dict
33
- rule_response_config_from_dict = RuleResponseConfig.from_dict(rule_response_config_dict)
34
- ```
35
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36
-
37
-
@@ -1,185 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Arthur Scope
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- from inspect import getfullargspec
17
- import json
18
- import pprint
19
- import re # noqa: F401
20
- from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
21
- from typing import Optional
22
- from arthur_client.api_bindings.models.examples_config import ExamplesConfig
23
- from arthur_client.api_bindings.models.keywords_config import KeywordsConfig
24
- from arthur_client.api_bindings.models.pii_config import PIIConfig
25
- from arthur_client.api_bindings.models.regex_config import RegexConfig
26
- from arthur_client.api_bindings.models.toxicity_config import ToxicityConfig
27
- from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
28
- from typing_extensions import Literal, Self
29
- from pydantic import Field
30
-
31
- RULERESPONSECONFIG_ANY_OF_SCHEMAS = ["ExamplesConfig", "KeywordsConfig", "PIIConfig", "RegexConfig", "ToxicityConfig"]
32
-
33
- class RuleResponseConfig(BaseModel):
34
- """
35
- Config of the rule
36
- """
37
-
38
- # data type: KeywordsConfig
39
- anyof_schema_1_validator: Optional[KeywordsConfig] = None
40
- # data type: RegexConfig
41
- anyof_schema_2_validator: Optional[RegexConfig] = None
42
- # data type: ExamplesConfig
43
- anyof_schema_3_validator: Optional[ExamplesConfig] = None
44
- # data type: ToxicityConfig
45
- anyof_schema_4_validator: Optional[ToxicityConfig] = None
46
- # data type: PIIConfig
47
- anyof_schema_5_validator: Optional[PIIConfig] = None
48
- if TYPE_CHECKING:
49
- actual_instance: Optional[Union[ExamplesConfig, KeywordsConfig, PIIConfig, RegexConfig, ToxicityConfig]] = None
50
- else:
51
- actual_instance: Any = None
52
- any_of_schemas: Set[str] = { "ExamplesConfig", "KeywordsConfig", "PIIConfig", "RegexConfig", "ToxicityConfig" }
53
-
54
- model_config = {
55
- "validate_assignment": True,
56
- "protected_namespaces": (),
57
- }
58
-
59
- def __init__(self, *args, **kwargs) -> None:
60
- if args:
61
- if len(args) > 1:
62
- raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
63
- if kwargs:
64
- raise ValueError("If a position argument is used, keyword arguments cannot be used.")
65
- super().__init__(actual_instance=args[0])
66
- else:
67
- super().__init__(**kwargs)
68
-
69
- @field_validator('actual_instance')
70
- def actual_instance_must_validate_anyof(cls, v):
71
- if v is None:
72
- return v
73
-
74
- instance = RuleResponseConfig.model_construct()
75
- error_messages = []
76
- # validate data type: KeywordsConfig
77
- if not isinstance(v, KeywordsConfig):
78
- error_messages.append(f"Error! Input type `{type(v)}` is not `KeywordsConfig`")
79
- else:
80
- return v
81
-
82
- # validate data type: RegexConfig
83
- if not isinstance(v, RegexConfig):
84
- error_messages.append(f"Error! Input type `{type(v)}` is not `RegexConfig`")
85
- else:
86
- return v
87
-
88
- # validate data type: ExamplesConfig
89
- if not isinstance(v, ExamplesConfig):
90
- error_messages.append(f"Error! Input type `{type(v)}` is not `ExamplesConfig`")
91
- else:
92
- return v
93
-
94
- # validate data type: ToxicityConfig
95
- if not isinstance(v, ToxicityConfig):
96
- error_messages.append(f"Error! Input type `{type(v)}` is not `ToxicityConfig`")
97
- else:
98
- return v
99
-
100
- # validate data type: PIIConfig
101
- if not isinstance(v, PIIConfig):
102
- error_messages.append(f"Error! Input type `{type(v)}` is not `PIIConfig`")
103
- else:
104
- return v
105
-
106
- if error_messages:
107
- # no match
108
- raise ValueError("No match found when setting the actual_instance in RuleResponseConfig with anyOf schemas: ExamplesConfig, KeywordsConfig, PIIConfig, RegexConfig, ToxicityConfig. Details: " + ", ".join(error_messages))
109
- else:
110
- return v
111
-
112
- @classmethod
113
- def from_dict(cls, obj: Dict[str, Any]) -> Self:
114
- return cls.from_json(json.dumps(obj))
115
-
116
- @classmethod
117
- def from_json(cls, json_str: str) -> Self:
118
- """Returns the object represented by the json string"""
119
- instance = cls.model_construct()
120
- if json_str is None:
121
- return instance
122
-
123
- error_messages = []
124
- # anyof_schema_1_validator: Optional[KeywordsConfig] = None
125
- try:
126
- instance.actual_instance = KeywordsConfig.from_json(json_str)
127
- return instance
128
- except (ValidationError, ValueError) as e:
129
- error_messages.append(str(e))
130
- # anyof_schema_2_validator: Optional[RegexConfig] = None
131
- try:
132
- instance.actual_instance = RegexConfig.from_json(json_str)
133
- return instance
134
- except (ValidationError, ValueError) as e:
135
- error_messages.append(str(e))
136
- # anyof_schema_3_validator: Optional[ExamplesConfig] = None
137
- try:
138
- instance.actual_instance = ExamplesConfig.from_json(json_str)
139
- return instance
140
- except (ValidationError, ValueError) as e:
141
- error_messages.append(str(e))
142
- # anyof_schema_4_validator: Optional[ToxicityConfig] = None
143
- try:
144
- instance.actual_instance = ToxicityConfig.from_json(json_str)
145
- return instance
146
- except (ValidationError, ValueError) as e:
147
- error_messages.append(str(e))
148
- # anyof_schema_5_validator: Optional[PIIConfig] = None
149
- try:
150
- instance.actual_instance = PIIConfig.from_json(json_str)
151
- return instance
152
- except (ValidationError, ValueError) as e:
153
- error_messages.append(str(e))
154
-
155
- if error_messages:
156
- # no match
157
- raise ValueError("No match found when deserializing the JSON string into RuleResponseConfig with anyOf schemas: ExamplesConfig, KeywordsConfig, PIIConfig, RegexConfig, ToxicityConfig. Details: " + ", ".join(error_messages))
158
- else:
159
- return instance
160
-
161
- def to_json(self) -> str:
162
- """Returns the JSON representation of the actual instance"""
163
- if self.actual_instance is None:
164
- return "null"
165
-
166
- if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
167
- return self.actual_instance.to_json()
168
- else:
169
- return json.dumps(self.actual_instance)
170
-
171
- def to_dict(self) -> Optional[Union[Dict[str, Any], ExamplesConfig, KeywordsConfig, PIIConfig, RegexConfig, ToxicityConfig]]:
172
- """Returns the dict representation of the actual instance"""
173
- if self.actual_instance is None:
174
- return None
175
-
176
- if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
177
- return self.actual_instance.to_dict()
178
- else:
179
- return self.actual_instance
180
-
181
- def to_str(self) -> str:
182
- """Returns the string representation of the actual instance"""
183
- return pprint.pformat(self.model_dump())
184
-
185
-
@@ -1,77 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Arthur Scope
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- import unittest
16
-
17
- from arthur_client.api_bindings.models.rule_response_config import RuleResponseConfig
18
-
19
- class TestRuleResponseConfig(unittest.TestCase):
20
- """RuleResponseConfig unit test stubs"""
21
-
22
- def setUp(self):
23
- pass
24
-
25
- def tearDown(self):
26
- pass
27
-
28
- def make_instance(self, include_optional) -> RuleResponseConfig:
29
- """Test RuleResponseConfig
30
- include_optional is a boolean, when False only required
31
- params are included, when True both required and
32
- optional params are included """
33
- # uncomment below to create an instance of `RuleResponseConfig`
34
- """
35
- model = RuleResponseConfig()
36
- if include_optional:
37
- return RuleResponseConfig(
38
- keywords = [
39
- ''
40
- ],
41
- regex_patterns = [
42
- ''
43
- ],
44
- examples = [
45
- {example=John has O negative blood group, result=true}
46
- ],
47
- hint = '',
48
- threshold = 1.337,
49
- disabled_pii_entities = [
50
- ''
51
- ],
52
- confidence_threshold = 1.337,
53
- allow_list = [
54
- ''
55
- ]
56
- )
57
- else:
58
- return RuleResponseConfig(
59
- keywords = [
60
- ''
61
- ],
62
- regex_patterns = [
63
- ''
64
- ],
65
- examples = [
66
- {example=John has O negative blood group, result=true}
67
- ],
68
- )
69
- """
70
-
71
- def testRuleResponseConfig(self):
72
- """Test RuleResponseConfig"""
73
- # inst_req_only = self.make_instance(include_optional=False)
74
- # inst_req_and_optional = self.make_instance(include_optional=True)
75
-
76
- if __name__ == '__main__':
77
- unittest.main()