arthur-client 1.4.1251__py3-none-any.whl → 1.4.1253__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.
- arthur_client/api_bindings/__init__.py +1 -0
- arthur_client/api_bindings/api/custom_aggregations_v1_api.py +381 -6
- arthur_client/api_bindings/docs/CustomAggregationSpecSchema.md +3 -3
- arthur_client/api_bindings/docs/CustomAggregationsV1Api.md +95 -4
- arthur_client/api_bindings/docs/PermissionName.md +2 -0
- arthur_client/api_bindings/docs/PostCustomAggregationSpecSchema.md +1 -1
- arthur_client/api_bindings/docs/PutCustomAggregationSpecSchema.md +1 -1
- arthur_client/api_bindings/docs/ResourceListCustomAggregationSpecSchema.md +30 -0
- arthur_client/api_bindings/models/__init__.py +1 -0
- arthur_client/api_bindings/models/custom_aggregation_spec_schema.py +16 -5
- arthur_client/api_bindings/models/permission_name.py +1 -0
- arthur_client/api_bindings/models/post_custom_aggregation_spec_schema.py +9 -3
- arthur_client/api_bindings/models/put_custom_aggregation_spec_schema.py +9 -3
- arthur_client/api_bindings/models/resource_list_custom_aggregation_spec_schema.py +101 -0
- arthur_client/api_bindings/test/test_custom_aggregation_spec_schema.py +0 -1
- arthur_client/api_bindings/test/test_custom_aggregations_v1_api.py +7 -0
- arthur_client/api_bindings/test/test_post_custom_aggregation_spec_schema.py +0 -1
- arthur_client/api_bindings/test/test_put_custom_aggregation_spec_schema.py +0 -1
- arthur_client/api_bindings/test/test_resource_list_custom_aggregation_spec_schema.py +134 -0
- arthur_client/api_bindings_README.md +2 -0
- {arthur_client-1.4.1251.dist-info → arthur_client-1.4.1253.dist-info}/METADATA +1 -1
- {arthur_client-1.4.1251.dist-info → arthur_client-1.4.1253.dist-info}/RECORD +23 -20
- {arthur_client-1.4.1251.dist-info → arthur_client-1.4.1253.dist-info}/WHEEL +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
Name | Type | Description | Notes
|
7
7
|
------------ | ------------- | ------------- | -------------
|
8
8
|
**name** | **str** | Name of the custom aggregation function. |
|
9
|
-
**description** | **str** |
|
9
|
+
**description** | **str** | | [optional]
|
10
10
|
**reported_aggregations** | [**List[ReportedCustomAggregation]**](ReportedCustomAggregation.md) | Metadata for every aggregation the custom aggregation reports. |
|
11
11
|
**aggregate_args** | [**List[CustomAggregationSpecSchemaAggregateArgsInner]**](CustomAggregationSpecSchemaAggregateArgsInner.md) | List of parameters to the custom aggregation's query function. |
|
12
12
|
**sql** | **str** | DuckDBSQL query for the custom aggregation. |
|
@@ -6,7 +6,7 @@
|
|
6
6
|
Name | Type | Description | Notes
|
7
7
|
------------ | ------------- | ------------- | -------------
|
8
8
|
**name** | **str** | Name of the custom aggregation function. |
|
9
|
-
**description** | **str** |
|
9
|
+
**description** | **str** | | [optional]
|
10
10
|
**reported_aggregations** | [**List[ReportedCustomAggregation]**](ReportedCustomAggregation.md) | Metadata for every aggregation the custom aggregation reports. |
|
11
11
|
**aggregate_args** | [**List[CustomAggregationSpecSchemaAggregateArgsInner]**](CustomAggregationSpecSchemaAggregateArgsInner.md) | List of parameters to the custom aggregation's query function. |
|
12
12
|
**sql** | **str** | DuckDBSQL query for the custom aggregation. |
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# ResourceListCustomAggregationSpecSchema
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**records** | [**List[CustomAggregationSpecSchema]**](CustomAggregationSpecSchema.md) | List of records. |
|
9
|
+
**pagination** | [**Pagination**](Pagination.md) | Pagination information. |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```python
|
14
|
+
from arthur_client.api_bindings.models.resource_list_custom_aggregation_spec_schema import ResourceListCustomAggregationSpecSchema
|
15
|
+
|
16
|
+
# TODO update the JSON string below
|
17
|
+
json = "{}"
|
18
|
+
# create an instance of ResourceListCustomAggregationSpecSchema from a JSON string
|
19
|
+
resource_list_custom_aggregation_spec_schema_instance = ResourceListCustomAggregationSpecSchema.from_json(json)
|
20
|
+
# print the JSON string representation of the object
|
21
|
+
print(ResourceListCustomAggregationSpecSchema.to_json())
|
22
|
+
|
23
|
+
# convert the object into a dict
|
24
|
+
resource_list_custom_aggregation_spec_schema_dict = resource_list_custom_aggregation_spec_schema_instance.to_dict()
|
25
|
+
# create an instance of ResourceListCustomAggregationSpecSchema from a dict
|
26
|
+
resource_list_custom_aggregation_spec_schema_from_dict = ResourceListCustomAggregationSpecSchema.from_dict(resource_list_custom_aggregation_spec_schema_dict)
|
27
|
+
```
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
29
|
+
|
30
|
+
|
@@ -244,6 +244,7 @@ from arthur_client.api_bindings.models.resource_list_alert_rule import ResourceL
|
|
244
244
|
from arthur_client.api_bindings.models.resource_list_available_dataset import ResourceListAvailableDataset
|
245
245
|
from arthur_client.api_bindings.models.resource_list_connector_spec import ResourceListConnectorSpec
|
246
246
|
from arthur_client.api_bindings.models.resource_list_connector_type import ResourceListConnectorType
|
247
|
+
from arthur_client.api_bindings.models.resource_list_custom_aggregation_spec_schema import ResourceListCustomAggregationSpecSchema
|
247
248
|
from arthur_client.api_bindings.models.resource_list_data_plane import ResourceListDataPlane
|
248
249
|
from arthur_client.api_bindings.models.resource_list_data_plane_association import ResourceListDataPlaneAssociation
|
249
250
|
from arthur_client.api_bindings.models.resource_list_dataset import ResourceListDataset
|
@@ -19,7 +19,8 @@ import json
|
|
19
19
|
|
20
20
|
from datetime import datetime
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from typing_extensions import Annotated
|
23
24
|
from arthur_client.api_bindings.models.custom_aggregation_spec_schema_aggregate_args_inner import CustomAggregationSpecSchemaAggregateArgsInner
|
24
25
|
from arthur_client.api_bindings.models.reported_custom_aggregation import ReportedCustomAggregation
|
25
26
|
from arthur_client.api_bindings.models.user import User
|
@@ -31,14 +32,14 @@ class CustomAggregationSpecSchema(BaseModel):
|
|
31
32
|
CustomAggregationSpecSchema
|
32
33
|
""" # noqa: E501
|
33
34
|
name: StrictStr = Field(description="Name of the custom aggregation function.")
|
34
|
-
description: StrictStr =
|
35
|
-
reported_aggregations: List[ReportedCustomAggregation] = Field(description="Metadata for every aggregation the custom aggregation reports.")
|
35
|
+
description: Optional[StrictStr] = None
|
36
|
+
reported_aggregations: Annotated[List[ReportedCustomAggregation], Field(min_length=1)] = Field(description="Metadata for every aggregation the custom aggregation reports.")
|
36
37
|
aggregate_args: List[CustomAggregationSpecSchemaAggregateArgsInner] = Field(description="List of parameters to the custom aggregation's query function.")
|
37
38
|
sql: StrictStr = Field(description="DuckDBSQL query for the custom aggregation.")
|
38
|
-
id: StrictStr = Field(description="Unique identifier of the custom aggregation
|
39
|
+
id: StrictStr = Field(description="Unique identifier of the custom aggregation with version.")
|
39
40
|
workspace_id: StrictStr = Field(description="Unique identifier of the custom aggregation's parent workspace.")
|
40
41
|
version: StrictInt = Field(description="Version number of the custom aggregation function.")
|
41
|
-
authored_by: User
|
42
|
+
authored_by: Optional[User]
|
42
43
|
created_at: datetime = Field(description="Time of aggregation creation.")
|
43
44
|
__properties: ClassVar[List[str]] = ["name", "description", "reported_aggregations", "aggregate_args", "sql", "id", "workspace_id", "version", "authored_by", "created_at"]
|
44
45
|
|
@@ -98,6 +99,16 @@ class CustomAggregationSpecSchema(BaseModel):
|
|
98
99
|
# override the default output from pydantic by calling `to_dict()` of authored_by
|
99
100
|
if self.authored_by:
|
100
101
|
_dict['authored_by'] = self.authored_by.to_dict()
|
102
|
+
# set to None if description (nullable) is None
|
103
|
+
# and model_fields_set contains the field
|
104
|
+
if self.description is None and "description" in self.model_fields_set:
|
105
|
+
_dict['description'] = None
|
106
|
+
|
107
|
+
# set to None if authored_by (nullable) is None
|
108
|
+
# and model_fields_set contains the field
|
109
|
+
if self.authored_by is None and "authored_by" in self.model_fields_set:
|
110
|
+
_dict['authored_by'] = None
|
111
|
+
|
101
112
|
return _dict
|
102
113
|
|
103
114
|
@classmethod
|
@@ -71,6 +71,7 @@ class PermissionName(str, Enum):
|
|
71
71
|
WORKSPACE_CREATE_CUSTOM_AGGREGATION = 'workspace_create_custom_aggregation'
|
72
72
|
WORKSPACE_VALIDATE_CUSTOM_AGGREGATION = 'workspace_validate_custom_aggregation'
|
73
73
|
WORKSPACE_LIST_DATASETS = 'workspace_list_datasets'
|
74
|
+
WORKSPACE_LIST_CUSTOM_AGGREGATIONS = 'workspace_list_custom_aggregations'
|
74
75
|
PROJECT_READ = 'project_read'
|
75
76
|
PROJECT_UPDATE = 'project_update'
|
76
77
|
PROJECT_DELETE = 'project_delete'
|
@@ -18,7 +18,8 @@ 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
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
+
from typing_extensions import Annotated
|
22
23
|
from arthur_client.api_bindings.models.custom_aggregation_spec_schema_aggregate_args_inner import CustomAggregationSpecSchemaAggregateArgsInner
|
23
24
|
from arthur_client.api_bindings.models.reported_custom_aggregation import ReportedCustomAggregation
|
24
25
|
from typing import Optional, Set
|
@@ -29,8 +30,8 @@ class PostCustomAggregationSpecSchema(BaseModel):
|
|
29
30
|
PostCustomAggregationSpecSchema
|
30
31
|
""" # noqa: E501
|
31
32
|
name: StrictStr = Field(description="Name of the custom aggregation function.")
|
32
|
-
description: StrictStr =
|
33
|
-
reported_aggregations: List[ReportedCustomAggregation] = Field(description="Metadata for every aggregation the custom aggregation reports.")
|
33
|
+
description: Optional[StrictStr] = None
|
34
|
+
reported_aggregations: Annotated[List[ReportedCustomAggregation], Field(min_length=1)] = Field(description="Metadata for every aggregation the custom aggregation reports.")
|
34
35
|
aggregate_args: List[CustomAggregationSpecSchemaAggregateArgsInner] = Field(description="List of parameters to the custom aggregation's query function.")
|
35
36
|
sql: StrictStr = Field(description="DuckDBSQL query for the custom aggregation.")
|
36
37
|
__properties: ClassVar[List[str]] = ["name", "description", "reported_aggregations", "aggregate_args", "sql"]
|
@@ -88,6 +89,11 @@ class PostCustomAggregationSpecSchema(BaseModel):
|
|
88
89
|
if _item_aggregate_args:
|
89
90
|
_items.append(_item_aggregate_args.to_dict())
|
90
91
|
_dict['aggregate_args'] = _items
|
92
|
+
# set to None if description (nullable) is None
|
93
|
+
# and model_fields_set contains the field
|
94
|
+
if self.description is None and "description" in self.model_fields_set:
|
95
|
+
_dict['description'] = None
|
96
|
+
|
91
97
|
return _dict
|
92
98
|
|
93
99
|
@classmethod
|
@@ -18,7 +18,8 @@ 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
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
+
from typing_extensions import Annotated
|
22
23
|
from arthur_client.api_bindings.models.custom_aggregation_spec_schema_aggregate_args_inner import CustomAggregationSpecSchemaAggregateArgsInner
|
23
24
|
from arthur_client.api_bindings.models.reported_custom_aggregation import ReportedCustomAggregation
|
24
25
|
from typing import Optional, Set
|
@@ -29,8 +30,8 @@ class PutCustomAggregationSpecSchema(BaseModel):
|
|
29
30
|
PutCustomAggregationSpecSchema
|
30
31
|
""" # noqa: E501
|
31
32
|
name: StrictStr = Field(description="Name of the custom aggregation function.")
|
32
|
-
description: StrictStr =
|
33
|
-
reported_aggregations: List[ReportedCustomAggregation] = Field(description="Metadata for every aggregation the custom aggregation reports.")
|
33
|
+
description: Optional[StrictStr] = None
|
34
|
+
reported_aggregations: Annotated[List[ReportedCustomAggregation], Field(min_length=1)] = Field(description="Metadata for every aggregation the custom aggregation reports.")
|
34
35
|
aggregate_args: List[CustomAggregationSpecSchemaAggregateArgsInner] = Field(description="List of parameters to the custom aggregation's query function.")
|
35
36
|
sql: StrictStr = Field(description="DuckDBSQL query for the custom aggregation.")
|
36
37
|
__properties: ClassVar[List[str]] = ["name", "description", "reported_aggregations", "aggregate_args", "sql"]
|
@@ -88,6 +89,11 @@ class PutCustomAggregationSpecSchema(BaseModel):
|
|
88
89
|
if _item_aggregate_args:
|
89
90
|
_items.append(_item_aggregate_args.to_dict())
|
90
91
|
_dict['aggregate_args'] = _items
|
92
|
+
# set to None if description (nullable) is None
|
93
|
+
# and model_fields_set contains the field
|
94
|
+
if self.description is None and "description" in self.model_fields_set:
|
95
|
+
_dict['description'] = None
|
96
|
+
|
91
97
|
return _dict
|
92
98
|
|
93
99
|
@classmethod
|
@@ -0,0 +1,101 @@
|
|
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
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
22
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema import CustomAggregationSpecSchema
|
23
|
+
from arthur_client.api_bindings.models.pagination import Pagination
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class ResourceListCustomAggregationSpecSchema(BaseModel):
|
28
|
+
"""
|
29
|
+
ResourceListCustomAggregationSpecSchema
|
30
|
+
""" # noqa: E501
|
31
|
+
records: List[CustomAggregationSpecSchema] = Field(description="List of records.")
|
32
|
+
pagination: Pagination = Field(description="Pagination information.")
|
33
|
+
__properties: ClassVar[List[str]] = ["records", "pagination"]
|
34
|
+
|
35
|
+
model_config = ConfigDict(
|
36
|
+
populate_by_name=True,
|
37
|
+
validate_assignment=True,
|
38
|
+
protected_namespaces=(),
|
39
|
+
)
|
40
|
+
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
49
|
+
return json.dumps(self.to_dict())
|
50
|
+
|
51
|
+
@classmethod
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
53
|
+
"""Create an instance of ResourceListCustomAggregationSpecSchema from a JSON string"""
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
55
|
+
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
58
|
+
|
59
|
+
This has the following differences from calling pydantic's
|
60
|
+
`self.model_dump(by_alias=True)`:
|
61
|
+
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
63
|
+
were set at model initialization. Other fields with value `None`
|
64
|
+
are ignored.
|
65
|
+
"""
|
66
|
+
excluded_fields: Set[str] = set([
|
67
|
+
])
|
68
|
+
|
69
|
+
_dict = self.model_dump(
|
70
|
+
by_alias=True,
|
71
|
+
exclude=excluded_fields,
|
72
|
+
exclude_none=True,
|
73
|
+
)
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of each item in records (list)
|
75
|
+
_items = []
|
76
|
+
if self.records:
|
77
|
+
for _item_records in self.records:
|
78
|
+
if _item_records:
|
79
|
+
_items.append(_item_records.to_dict())
|
80
|
+
_dict['records'] = _items
|
81
|
+
# override the default output from pydantic by calling `to_dict()` of pagination
|
82
|
+
if self.pagination:
|
83
|
+
_dict['pagination'] = self.pagination.to_dict()
|
84
|
+
return _dict
|
85
|
+
|
86
|
+
@classmethod
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
88
|
+
"""Create an instance of ResourceListCustomAggregationSpecSchema from a dict"""
|
89
|
+
if obj is None:
|
90
|
+
return None
|
91
|
+
|
92
|
+
if not isinstance(obj, dict):
|
93
|
+
return cls.model_validate(obj)
|
94
|
+
|
95
|
+
_obj = cls.model_validate({
|
96
|
+
"records": [CustomAggregationSpecSchema.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None,
|
97
|
+
"pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None
|
98
|
+
})
|
99
|
+
return _obj
|
100
|
+
|
101
|
+
|
@@ -73,7 +73,6 @@ class TestCustomAggregationSpecSchema(unittest.TestCase):
|
|
73
73
|
else:
|
74
74
|
return CustomAggregationSpecSchema(
|
75
75
|
name = '',
|
76
|
-
description = '',
|
77
76
|
reported_aggregations = [
|
78
77
|
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
79
78
|
metric_name = '',
|
@@ -40,6 +40,13 @@ class TestCustomAggregationsV1Api(unittest.TestCase):
|
|
40
40
|
"""
|
41
41
|
pass
|
42
42
|
|
43
|
+
def test_get_custom_aggregations_for_workspace(self) -> None:
|
44
|
+
"""Test case for get_custom_aggregations_for_workspace
|
45
|
+
|
46
|
+
Get Custom Aggregation.
|
47
|
+
"""
|
48
|
+
pass
|
49
|
+
|
43
50
|
def test_post_custom_aggregation(self) -> None:
|
44
51
|
"""Test case for post_custom_aggregation
|
45
52
|
|
@@ -56,7 +56,6 @@ class TestPostCustomAggregationSpecSchema(unittest.TestCase):
|
|
56
56
|
else:
|
57
57
|
return PostCustomAggregationSpecSchema(
|
58
58
|
name = '',
|
59
|
-
description = '',
|
60
59
|
reported_aggregations = [
|
61
60
|
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
62
61
|
metric_name = '',
|
@@ -56,7 +56,6 @@ class TestPutCustomAggregationSpecSchema(unittest.TestCase):
|
|
56
56
|
else:
|
57
57
|
return PutCustomAggregationSpecSchema(
|
58
58
|
name = '',
|
59
|
-
description = '',
|
60
59
|
reported_aggregations = [
|
61
60
|
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
62
61
|
metric_name = '',
|
@@ -0,0 +1,134 @@
|
|
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.resource_list_custom_aggregation_spec_schema import ResourceListCustomAggregationSpecSchema
|
18
|
+
|
19
|
+
class TestResourceListCustomAggregationSpecSchema(unittest.TestCase):
|
20
|
+
"""ResourceListCustomAggregationSpecSchema 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) -> ResourceListCustomAggregationSpecSchema:
|
29
|
+
"""Test ResourceListCustomAggregationSpecSchema
|
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 `ResourceListCustomAggregationSpecSchema`
|
34
|
+
"""
|
35
|
+
model = ResourceListCustomAggregationSpecSchema()
|
36
|
+
if include_optional:
|
37
|
+
return ResourceListCustomAggregationSpecSchema(
|
38
|
+
records = [
|
39
|
+
arthur_client.api_bindings.models.custom_aggregation_spec_schema.CustomAggregationSpecSchema(
|
40
|
+
name = '',
|
41
|
+
description = '',
|
42
|
+
reported_aggregations = [
|
43
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
44
|
+
metric_name = '',
|
45
|
+
description = '',
|
46
|
+
value_column = '',
|
47
|
+
timestamp_column = '',
|
48
|
+
metric_kind = 'sketch',
|
49
|
+
dimension_columns = [
|
50
|
+
''
|
51
|
+
], )
|
52
|
+
],
|
53
|
+
aggregate_args = [
|
54
|
+
null
|
55
|
+
],
|
56
|
+
sql = '',
|
57
|
+
id = '',
|
58
|
+
workspace_id = '',
|
59
|
+
version = 56,
|
60
|
+
authored_by = arthur_client.api_bindings.models.user.User(
|
61
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
62
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
63
|
+
organization_id = '',
|
64
|
+
id = '',
|
65
|
+
first_name = '',
|
66
|
+
last_name = '',
|
67
|
+
email = '',
|
68
|
+
picture = '',
|
69
|
+
user_type = 'user',
|
70
|
+
data_plane_id = '',
|
71
|
+
client_id = '',
|
72
|
+
organization_name = '', ),
|
73
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
74
|
+
],
|
75
|
+
pagination = arthur_client.api_bindings.models.pagination.Pagination(
|
76
|
+
page = 56,
|
77
|
+
page_size = 56,
|
78
|
+
total_pages = 56,
|
79
|
+
total_records = 56, )
|
80
|
+
)
|
81
|
+
else:
|
82
|
+
return ResourceListCustomAggregationSpecSchema(
|
83
|
+
records = [
|
84
|
+
arthur_client.api_bindings.models.custom_aggregation_spec_schema.CustomAggregationSpecSchema(
|
85
|
+
name = '',
|
86
|
+
description = '',
|
87
|
+
reported_aggregations = [
|
88
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
89
|
+
metric_name = '',
|
90
|
+
description = '',
|
91
|
+
value_column = '',
|
92
|
+
timestamp_column = '',
|
93
|
+
metric_kind = 'sketch',
|
94
|
+
dimension_columns = [
|
95
|
+
''
|
96
|
+
], )
|
97
|
+
],
|
98
|
+
aggregate_args = [
|
99
|
+
null
|
100
|
+
],
|
101
|
+
sql = '',
|
102
|
+
id = '',
|
103
|
+
workspace_id = '',
|
104
|
+
version = 56,
|
105
|
+
authored_by = arthur_client.api_bindings.models.user.User(
|
106
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
107
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
108
|
+
organization_id = '',
|
109
|
+
id = '',
|
110
|
+
first_name = '',
|
111
|
+
last_name = '',
|
112
|
+
email = '',
|
113
|
+
picture = '',
|
114
|
+
user_type = 'user',
|
115
|
+
data_plane_id = '',
|
116
|
+
client_id = '',
|
117
|
+
organization_name = '', ),
|
118
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
|
119
|
+
],
|
120
|
+
pagination = arthur_client.api_bindings.models.pagination.Pagination(
|
121
|
+
page = 56,
|
122
|
+
page_size = 56,
|
123
|
+
total_pages = 56,
|
124
|
+
total_records = 56, ),
|
125
|
+
)
|
126
|
+
"""
|
127
|
+
|
128
|
+
def testResourceListCustomAggregationSpecSchema(self):
|
129
|
+
"""Test ResourceListCustomAggregationSpecSchema"""
|
130
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
131
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
132
|
+
|
133
|
+
if __name__ == '__main__':
|
134
|
+
unittest.main()
|
@@ -100,6 +100,7 @@ Class | Method | HTTP request | Description
|
|
100
100
|
*ConnectorsV1Api* | [**put_connector_check_results**](arthur_client/api_bindings/docs/ConnectorsV1Api.md#put_connector_check_results) | **PUT** /api/v1/connectors/{connector_id}/check_results | Persist Connector Check Results
|
101
101
|
*CustomAggregationsV1Api* | [**delete_custom_aggregation**](arthur_client/api_bindings/docs/CustomAggregationsV1Api.md#delete_custom_aggregation) | **DELETE** /api/v1/custom_aggregations/{custom_aggregation_id} | Delete Custom Aggregation.
|
102
102
|
*CustomAggregationsV1Api* | [**get_custom_aggregation**](arthur_client/api_bindings/docs/CustomAggregationsV1Api.md#get_custom_aggregation) | **GET** /api/v1/custom_aggregations/{custom_aggregation_id} | Get Custom Aggregation By Id.
|
103
|
+
*CustomAggregationsV1Api* | [**get_custom_aggregations_for_workspace**](arthur_client/api_bindings/docs/CustomAggregationsV1Api.md#get_custom_aggregations_for_workspace) | **GET** /api/v1/workspaces/{workspace_id}/custom_aggregations | Get Custom Aggregation.
|
103
104
|
*CustomAggregationsV1Api* | [**post_custom_aggregation**](arthur_client/api_bindings/docs/CustomAggregationsV1Api.md#post_custom_aggregation) | **POST** /api/v1/workspaces/{workspace_id}/custom_aggregations | Post Custom Aggregation.
|
104
105
|
*CustomAggregationsV1Api* | [**put_custom_aggregation**](arthur_client/api_bindings/docs/CustomAggregationsV1Api.md#put_custom_aggregation) | **PUT** /api/v1/custom_aggregations/{custom_aggregation_id} | Update Custom Aggregation By Id.
|
105
106
|
*CustomAggregationsV1Api* | [**validate_custom_aggregation**](arthur_client/api_bindings/docs/CustomAggregationsV1Api.md#validate_custom_aggregation) | **POST** /api/v1/workspaces/{workspace_id}/validate_custom_aggregation | Validate A Custom Aggregation Before Creation.
|
@@ -451,6 +452,7 @@ Class | Method | HTTP request | Description
|
|
451
452
|
- [ResourceListAvailableDataset](arthur_client/api_bindings/docs/ResourceListAvailableDataset.md)
|
452
453
|
- [ResourceListConnectorSpec](arthur_client/api_bindings/docs/ResourceListConnectorSpec.md)
|
453
454
|
- [ResourceListConnectorType](arthur_client/api_bindings/docs/ResourceListConnectorType.md)
|
455
|
+
- [ResourceListCustomAggregationSpecSchema](arthur_client/api_bindings/docs/ResourceListCustomAggregationSpecSchema.md)
|
454
456
|
- [ResourceListDataPlane](arthur_client/api_bindings/docs/ResourceListDataPlane.md)
|
455
457
|
- [ResourceListDataPlaneAssociation](arthur_client/api_bindings/docs/ResourceListDataPlaneAssociation.md)
|
456
458
|
- [ResourceListDataset](arthur_client/api_bindings/docs/ResourceListDataset.md)
|