arthur-client 1.4.1233__py3-none-any.whl → 1.4.1234__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 +13 -1
- arthur_client/api_bindings/api/__init__.py +1 -0
- arthur_client/api_bindings/api/custom_aggregations_v1_api.py +1477 -0
- arthur_client/api_bindings/docs/AggregationSpecSchemaInitArgsInner.md +2 -2
- arthur_client/api_bindings/docs/BaseColumnParameterSchema.md +36 -0
- arthur_client/api_bindings/docs/BaseColumnParameterSchemaAllowedColumnTypesInner.md +31 -0
- arthur_client/api_bindings/docs/BaseDatasetParameterSchema.md +33 -0
- arthur_client/api_bindings/docs/BaseLiteralParameterSchema.md +33 -0
- arthur_client/api_bindings/docs/CustomAggregationSpecSchema.md +38 -0
- arthur_client/api_bindings/docs/CustomAggregationSpecSchemaAggregateArgsInner.md +38 -0
- arthur_client/api_bindings/docs/CustomAggregationsV1Api.md +410 -0
- arthur_client/api_bindings/docs/Items1.md +1 -1
- arthur_client/api_bindings/docs/MetricsColumnListParameterSchema.md +2 -2
- arthur_client/api_bindings/docs/MetricsColumnParameterSchema.md +2 -2
- arthur_client/api_bindings/docs/MetricsDatasetParameterSchema.md +1 -1
- arthur_client/api_bindings/docs/MetricsLiteralParameterSchema.md +1 -1
- arthur_client/api_bindings/docs/ObjectType.md +1 -1
- arthur_client/api_bindings/docs/PermissionName.md +10 -0
- arthur_client/api_bindings/docs/PostCustomAggregationSpecSchema.md +33 -0
- arthur_client/api_bindings/docs/PutCustomAggregationSpecSchema.md +33 -0
- arthur_client/api_bindings/docs/ReportedCustomAggregation.md +34 -0
- arthur_client/api_bindings/docs/ResourceKind.md +2 -0
- arthur_client/api_bindings/docs/RuleType.md +0 -4
- arthur_client/api_bindings/docs/ValidationOutcome.md +13 -0
- arthur_client/api_bindings/docs/ValidationResult.md +31 -0
- arthur_client/api_bindings/docs/ValidationResults.md +30 -0
- arthur_client/api_bindings/models/__init__.py +12 -1
- arthur_client/api_bindings/models/base_column_parameter_schema.py +125 -0
- arthur_client/api_bindings/models/{metrics_column_list_parameter_schema_allowed_column_types_inner.py → base_column_parameter_schema_allowed_column_types_inner.py} +7 -7
- arthur_client/api_bindings/models/base_dataset_parameter_schema.py +111 -0
- arthur_client/api_bindings/models/base_literal_parameter_schema.py +106 -0
- arthur_client/api_bindings/models/custom_aggregation_spec_schema.py +126 -0
- arthur_client/api_bindings/models/custom_aggregation_spec_schema_aggregate_args_inner.py +149 -0
- arthur_client/api_bindings/models/metrics_column_list_parameter_schema.py +7 -7
- arthur_client/api_bindings/models/metrics_column_parameter_schema.py +7 -7
- arthur_client/api_bindings/models/metrics_dataset_parameter_schema.py +4 -4
- arthur_client/api_bindings/models/metrics_literal_parameter_schema.py +4 -4
- arthur_client/api_bindings/models/object_type.py +3 -3
- arthur_client/api_bindings/models/permission_name.py +5 -0
- arthur_client/api_bindings/models/post_custom_aggregation_spec_schema.py +111 -0
- arthur_client/api_bindings/models/put_custom_aggregation_spec_schema.py +111 -0
- arthur_client/api_bindings/models/reported_custom_aggregation.py +98 -0
- arthur_client/api_bindings/models/resource_kind.py +1 -0
- arthur_client/api_bindings/models/rule_type.py +0 -2
- arthur_client/api_bindings/models/validation_outcome.py +37 -0
- arthur_client/api_bindings/models/validation_result.py +90 -0
- arthur_client/api_bindings/models/validation_results.py +95 -0
- arthur_client/api_bindings/test/test_aggregation_spec_schema_init_args_inner.py +1 -1
- arthur_client/api_bindings/test/test_base_column_parameter_schema.py +66 -0
- arthur_client/api_bindings/test/{test_metrics_column_list_parameter_schema_allowed_column_types_inner.py → test_base_column_parameter_schema_allowed_column_types_inner.py} +11 -11
- arthur_client/api_bindings/test/test_base_dataset_parameter_schema.py +58 -0
- arthur_client/api_bindings/test/test_base_literal_parameter_schema.py +59 -0
- arthur_client/api_bindings/test/test_custom_aggregation_spec_schema.py +118 -0
- arthur_client/api_bindings/test/test_custom_aggregation_spec_schema_aggregate_args_inner.py +69 -0
- arthur_client/api_bindings/test/test_custom_aggregations_v1_api.py +66 -0
- arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_metrics_column_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_metrics_dataset_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_metrics_literal_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_post_custom_aggregation_spec_schema.py +84 -0
- arthur_client/api_bindings/test/test_put_custom_aggregation_spec_schema.py +84 -0
- arthur_client/api_bindings/test/test_reported_custom_aggregation.py +66 -0
- arthur_client/api_bindings/test/test_validation_outcome.py +33 -0
- arthur_client/api_bindings/test/test_validation_result.py +54 -0
- arthur_client/api_bindings/test/test_validation_results.py +60 -0
- arthur_client/api_bindings_README.md +17 -1
- {arthur_client-1.4.1233.dist-info → arthur_client-1.4.1234.dist-info}/METADATA +1 -1
- {arthur_client-1.4.1233.dist-info → arthur_client-1.4.1234.dist-info}/RECORD +69 -33
- arthur_client/api_bindings/docs/MetricsColumnListParameterSchemaAllowedColumnTypesInner.md +0 -31
- {arthur_client-1.4.1233.dist-info → arthur_client-1.4.1234.dist-info}/WHEEL +0 -0
@@ -6,15 +6,15 @@
|
|
6
6
|
Name | Type | Description | Notes
|
7
7
|
------------ | ------------- | ------------- | -------------
|
8
8
|
**parameter_key** | **str** | Name of the parameter. |
|
9
|
-
**optional** | **bool** | Boolean denoting if the parameter is optional. | [optional] [default to False]
|
10
9
|
**friendly_name** | **str** | User facing name of the parameter. |
|
11
10
|
**description** | **str** | Description of the parameter. |
|
12
11
|
**parameter_type** | **str** | | [optional] [default to 'column_list']
|
13
12
|
**model_problem_type** | [**ModelProblemType**](ModelProblemType.md) | | [optional]
|
13
|
+
**optional** | **bool** | Boolean denoting if the parameter is optional. | [optional] [default to False]
|
14
14
|
**parameter_dtype** | [**DType**](DType.md) | Data type of the parameter. |
|
15
15
|
**tag_hints** | [**List[ScopeSchemaTag]**](ScopeSchemaTag.md) | List of tags that are applicable to this parameter. Datasets with columns that have matching tags can be inferred this way. | [optional] [default to []]
|
16
16
|
**source_dataset_parameter_key** | **str** | Name of the parameter that provides the dataset to be used for this column. |
|
17
|
-
**allowed_column_types** | [**List[
|
17
|
+
**allowed_column_types** | [**List[BaseColumnParameterSchemaAllowedColumnTypesInner]**](BaseColumnParameterSchemaAllowedColumnTypesInner.md) | | [optional]
|
18
18
|
**allow_any_column_type** | **bool** | Indicates if this metric parameter can accept any column type. | [optional] [default to False]
|
19
19
|
|
20
20
|
## Example
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# BaseColumnParameterSchema
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**parameter_key** | **str** | Name of the parameter. |
|
9
|
+
**friendly_name** | **str** | User facing name of the parameter. |
|
10
|
+
**description** | **str** | Description of the parameter. |
|
11
|
+
**tag_hints** | [**List[ScopeSchemaTag]**](ScopeSchemaTag.md) | List of tags that are applicable to this parameter. Datasets with columns that have matching tags can be inferred this way. | [optional] [default to []]
|
12
|
+
**source_dataset_parameter_key** | **str** | Name of the parameter that provides the dataset to be used for this column. |
|
13
|
+
**allowed_column_types** | [**List[BaseColumnParameterSchemaAllowedColumnTypesInner]**](BaseColumnParameterSchemaAllowedColumnTypesInner.md) | | [optional]
|
14
|
+
**allow_any_column_type** | **bool** | Indicates if this metric parameter can accept any column type. | [optional] [default to False]
|
15
|
+
**parameter_type** | **str** | | [optional] [default to 'column']
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```python
|
20
|
+
from arthur_client.api_bindings.models.base_column_parameter_schema import BaseColumnParameterSchema
|
21
|
+
|
22
|
+
# TODO update the JSON string below
|
23
|
+
json = "{}"
|
24
|
+
# create an instance of BaseColumnParameterSchema from a JSON string
|
25
|
+
base_column_parameter_schema_instance = BaseColumnParameterSchema.from_json(json)
|
26
|
+
# print the JSON string representation of the object
|
27
|
+
print(BaseColumnParameterSchema.to_json())
|
28
|
+
|
29
|
+
# convert the object into a dict
|
30
|
+
base_column_parameter_schema_dict = base_column_parameter_schema_instance.to_dict()
|
31
|
+
# create an instance of BaseColumnParameterSchema from a dict
|
32
|
+
base_column_parameter_schema_from_dict = BaseColumnParameterSchema.from_dict(base_column_parameter_schema_dict)
|
33
|
+
```
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
35
|
+
|
36
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# BaseColumnParameterSchemaAllowedColumnTypesInner
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**dtype** | [**DType**](DType.md) | |
|
9
|
+
**object** | [**Dict[str, BaseColumnParameterSchemaAllowedColumnTypesInner]**](BaseColumnParameterSchemaAllowedColumnTypesInner.md) | |
|
10
|
+
**items** | [**Items1**](Items1.md) | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```python
|
15
|
+
from arthur_client.api_bindings.models.base_column_parameter_schema_allowed_column_types_inner import BaseColumnParameterSchemaAllowedColumnTypesInner
|
16
|
+
|
17
|
+
# TODO update the JSON string below
|
18
|
+
json = "{}"
|
19
|
+
# create an instance of BaseColumnParameterSchemaAllowedColumnTypesInner from a JSON string
|
20
|
+
base_column_parameter_schema_allowed_column_types_inner_instance = BaseColumnParameterSchemaAllowedColumnTypesInner.from_json(json)
|
21
|
+
# print the JSON string representation of the object
|
22
|
+
print(BaseColumnParameterSchemaAllowedColumnTypesInner.to_json())
|
23
|
+
|
24
|
+
# convert the object into a dict
|
25
|
+
base_column_parameter_schema_allowed_column_types_inner_dict = base_column_parameter_schema_allowed_column_types_inner_instance.to_dict()
|
26
|
+
# create an instance of BaseColumnParameterSchemaAllowedColumnTypesInner from a dict
|
27
|
+
base_column_parameter_schema_allowed_column_types_inner_from_dict = BaseColumnParameterSchemaAllowedColumnTypesInner.from_dict(base_column_parameter_schema_allowed_column_types_inner_dict)
|
28
|
+
```
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# BaseDatasetParameterSchema
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**parameter_key** | **str** | Name of the parameter. |
|
9
|
+
**friendly_name** | **str** | User facing name of the parameter. |
|
10
|
+
**description** | **str** | Description of the parameter. |
|
11
|
+
**parameter_type** | **str** | | [optional] [default to 'dataset']
|
12
|
+
**model_problem_type** | [**ModelProblemType**](ModelProblemType.md) | | [optional]
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```python
|
17
|
+
from arthur_client.api_bindings.models.base_dataset_parameter_schema import BaseDatasetParameterSchema
|
18
|
+
|
19
|
+
# TODO update the JSON string below
|
20
|
+
json = "{}"
|
21
|
+
# create an instance of BaseDatasetParameterSchema from a JSON string
|
22
|
+
base_dataset_parameter_schema_instance = BaseDatasetParameterSchema.from_json(json)
|
23
|
+
# print the JSON string representation of the object
|
24
|
+
print(BaseDatasetParameterSchema.to_json())
|
25
|
+
|
26
|
+
# convert the object into a dict
|
27
|
+
base_dataset_parameter_schema_dict = base_dataset_parameter_schema_instance.to_dict()
|
28
|
+
# create an instance of BaseDatasetParameterSchema from a dict
|
29
|
+
base_dataset_parameter_schema_from_dict = BaseDatasetParameterSchema.from_dict(base_dataset_parameter_schema_dict)
|
30
|
+
```
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# BaseLiteralParameterSchema
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**parameter_key** | **str** | Name of the parameter. |
|
9
|
+
**friendly_name** | **str** | User facing name of the parameter. |
|
10
|
+
**description** | **str** | Description of the parameter. |
|
11
|
+
**parameter_type** | **str** | | [optional] [default to 'literal']
|
12
|
+
**parameter_dtype** | [**DType**](DType.md) | Data type of the parameter. |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```python
|
17
|
+
from arthur_client.api_bindings.models.base_literal_parameter_schema import BaseLiteralParameterSchema
|
18
|
+
|
19
|
+
# TODO update the JSON string below
|
20
|
+
json = "{}"
|
21
|
+
# create an instance of BaseLiteralParameterSchema from a JSON string
|
22
|
+
base_literal_parameter_schema_instance = BaseLiteralParameterSchema.from_json(json)
|
23
|
+
# print the JSON string representation of the object
|
24
|
+
print(BaseLiteralParameterSchema.to_json())
|
25
|
+
|
26
|
+
# convert the object into a dict
|
27
|
+
base_literal_parameter_schema_dict = base_literal_parameter_schema_instance.to_dict()
|
28
|
+
# create an instance of BaseLiteralParameterSchema from a dict
|
29
|
+
base_literal_parameter_schema_from_dict = BaseLiteralParameterSchema.from_dict(base_literal_parameter_schema_dict)
|
30
|
+
```
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# CustomAggregationSpecSchema
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**name** | **str** | Name of the custom aggregation function. |
|
9
|
+
**description** | **str** | Description of the custom aggregation function and what it aggregates. |
|
10
|
+
**reported_aggregations** | [**List[ReportedCustomAggregation]**](ReportedCustomAggregation.md) | Metadata for every aggregation the custom aggregation reports. |
|
11
|
+
**aggregate_args** | [**List[CustomAggregationSpecSchemaAggregateArgsInner]**](CustomAggregationSpecSchemaAggregateArgsInner.md) | List of parameters to the custom aggregation's query function. |
|
12
|
+
**sql** | **str** | DuckDBSQL query for the custom aggregation. |
|
13
|
+
**id** | **str** | Unique identifier of the custom aggregation function. |
|
14
|
+
**workspace_id** | **str** | Unique identifier of the custom aggregation's parent workspace. |
|
15
|
+
**version** | **int** | Version number of the custom aggregation function. |
|
16
|
+
**authored_by** | [**User**](User.md) | User who authored this custom aggregation. |
|
17
|
+
**created_at** | **datetime** | Time of aggregation creation. |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```python
|
22
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema import CustomAggregationSpecSchema
|
23
|
+
|
24
|
+
# TODO update the JSON string below
|
25
|
+
json = "{}"
|
26
|
+
# create an instance of CustomAggregationSpecSchema from a JSON string
|
27
|
+
custom_aggregation_spec_schema_instance = CustomAggregationSpecSchema.from_json(json)
|
28
|
+
# print the JSON string representation of the object
|
29
|
+
print(CustomAggregationSpecSchema.to_json())
|
30
|
+
|
31
|
+
# convert the object into a dict
|
32
|
+
custom_aggregation_spec_schema_dict = custom_aggregation_spec_schema_instance.to_dict()
|
33
|
+
# create an instance of CustomAggregationSpecSchema from a dict
|
34
|
+
custom_aggregation_spec_schema_from_dict = CustomAggregationSpecSchema.from_dict(custom_aggregation_spec_schema_dict)
|
35
|
+
```
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
37
|
+
|
38
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# CustomAggregationSpecSchemaAggregateArgsInner
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
|
6
|
+
Name | Type | Description | Notes
|
7
|
+
------------ | ------------- | ------------- | -------------
|
8
|
+
**parameter_key** | **str** | Name of the parameter. |
|
9
|
+
**friendly_name** | **str** | User facing name of the parameter. |
|
10
|
+
**description** | **str** | Description of the parameter. |
|
11
|
+
**parameter_type** | **str** | | [optional] [default to 'column']
|
12
|
+
**model_problem_type** | [**ModelProblemType**](ModelProblemType.md) | | [optional]
|
13
|
+
**parameter_dtype** | [**DType**](DType.md) | Data type of the parameter. |
|
14
|
+
**tag_hints** | [**List[ScopeSchemaTag]**](ScopeSchemaTag.md) | List of tags that are applicable to this parameter. Datasets with columns that have matching tags can be inferred this way. | [optional] [default to []]
|
15
|
+
**source_dataset_parameter_key** | **str** | Name of the parameter that provides the dataset to be used for this column. |
|
16
|
+
**allowed_column_types** | [**List[BaseColumnParameterSchemaAllowedColumnTypesInner]**](BaseColumnParameterSchemaAllowedColumnTypesInner.md) | | [optional]
|
17
|
+
**allow_any_column_type** | **bool** | Indicates if this metric parameter can accept any column type. | [optional] [default to False]
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```python
|
22
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema_aggregate_args_inner import CustomAggregationSpecSchemaAggregateArgsInner
|
23
|
+
|
24
|
+
# TODO update the JSON string below
|
25
|
+
json = "{}"
|
26
|
+
# create an instance of CustomAggregationSpecSchemaAggregateArgsInner from a JSON string
|
27
|
+
custom_aggregation_spec_schema_aggregate_args_inner_instance = CustomAggregationSpecSchemaAggregateArgsInner.from_json(json)
|
28
|
+
# print the JSON string representation of the object
|
29
|
+
print(CustomAggregationSpecSchemaAggregateArgsInner.to_json())
|
30
|
+
|
31
|
+
# convert the object into a dict
|
32
|
+
custom_aggregation_spec_schema_aggregate_args_inner_dict = custom_aggregation_spec_schema_aggregate_args_inner_instance.to_dict()
|
33
|
+
# create an instance of CustomAggregationSpecSchemaAggregateArgsInner from a dict
|
34
|
+
custom_aggregation_spec_schema_aggregate_args_inner_from_dict = CustomAggregationSpecSchemaAggregateArgsInner.from_dict(custom_aggregation_spec_schema_aggregate_args_inner_dict)
|
35
|
+
```
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
37
|
+
|
38
|
+
|
@@ -0,0 +1,410 @@
|
|
1
|
+
# arthur_client.api_bindings.CustomAggregationsV1Api
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_custom_aggregation**](CustomAggregationsV1Api.md#delete_custom_aggregation) | **DELETE** /api/v1/custom_aggregations/{custom_aggregation_id} | Delete Custom Aggregation.
|
8
|
+
[**get_custom_aggregation**](CustomAggregationsV1Api.md#get_custom_aggregation) | **GET** /api/v1/custom_aggregations/{custom_aggregation_id} | Get Custom Aggregation By Id.
|
9
|
+
[**post_custom_aggregation**](CustomAggregationsV1Api.md#post_custom_aggregation) | **POST** /api/v1/workspaces/{workspace_id}/custom_aggregations | Post Custom Aggregation.
|
10
|
+
[**put_custom_aggregation**](CustomAggregationsV1Api.md#put_custom_aggregation) | **PUT** /api/v1/custom_aggregations/{custom_aggregation_id} | Update Custom Aggregation By Id.
|
11
|
+
[**validate_custom_aggregation**](CustomAggregationsV1Api.md#validate_custom_aggregation) | **POST** /api/v1/workspaces/{workspace_id}/validate_custom_aggregation | Validate A Custom Aggregation Before Creation.
|
12
|
+
|
13
|
+
|
14
|
+
# **delete_custom_aggregation**
|
15
|
+
> delete_custom_aggregation(custom_aggregation_id)
|
16
|
+
|
17
|
+
Delete Custom Aggregation.
|
18
|
+
|
19
|
+
Requires custom_aggregation_delete permission.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
|
23
|
+
* OAuth Authentication (OAuth2AuthorizationCode):
|
24
|
+
|
25
|
+
```python
|
26
|
+
import arthur_client.api_bindings
|
27
|
+
from arthur_client.api_bindings.rest import ApiException
|
28
|
+
from pprint import pprint
|
29
|
+
|
30
|
+
# Defining the host is optional and defaults to http://localhost
|
31
|
+
# See configuration.py for a list of all supported configuration parameters.
|
32
|
+
configuration = arthur_client.api_bindings.Configuration(
|
33
|
+
host = "http://localhost"
|
34
|
+
)
|
35
|
+
|
36
|
+
# The client must configure the authentication and authorization parameters
|
37
|
+
# in accordance with the API server security policy.
|
38
|
+
# Examples for each auth method are provided below, use the example that
|
39
|
+
# satisfies your auth use case.
|
40
|
+
|
41
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
42
|
+
|
43
|
+
# Enter a context with an instance of the API client
|
44
|
+
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
|
45
|
+
# Create an instance of the API class
|
46
|
+
api_instance = arthur_client.api_bindings.CustomAggregationsV1Api(api_client)
|
47
|
+
custom_aggregation_id = 'custom_aggregation_id_example' # str |
|
48
|
+
|
49
|
+
try:
|
50
|
+
# Delete Custom Aggregation.
|
51
|
+
api_instance.delete_custom_aggregation(custom_aggregation_id)
|
52
|
+
except Exception as e:
|
53
|
+
print("Exception when calling CustomAggregationsV1Api->delete_custom_aggregation: %s\n" % e)
|
54
|
+
```
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
|
61
|
+
Name | Type | Description | Notes
|
62
|
+
------------- | ------------- | ------------- | -------------
|
63
|
+
**custom_aggregation_id** | **str**| |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
void (empty response body)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: Not defined
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
### HTTP response details
|
79
|
+
|
80
|
+
| Status code | Description | Response headers |
|
81
|
+
|-------------|-------------|------------------|
|
82
|
+
**204** | Successful Response | - |
|
83
|
+
**500** | Internal Server Error | - |
|
84
|
+
**404** | Not Found | - |
|
85
|
+
**422** | Validation Error | - |
|
86
|
+
|
87
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
88
|
+
|
89
|
+
# **get_custom_aggregation**
|
90
|
+
> CustomAggregationSpecSchema get_custom_aggregation(custom_aggregation_id)
|
91
|
+
|
92
|
+
Get Custom Aggregation By Id.
|
93
|
+
|
94
|
+
Requires custom_aggregation_read permission.
|
95
|
+
|
96
|
+
### Example
|
97
|
+
|
98
|
+
* OAuth Authentication (OAuth2AuthorizationCode):
|
99
|
+
|
100
|
+
```python
|
101
|
+
import arthur_client.api_bindings
|
102
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema import CustomAggregationSpecSchema
|
103
|
+
from arthur_client.api_bindings.rest import ApiException
|
104
|
+
from pprint import pprint
|
105
|
+
|
106
|
+
# Defining the host is optional and defaults to http://localhost
|
107
|
+
# See configuration.py for a list of all supported configuration parameters.
|
108
|
+
configuration = arthur_client.api_bindings.Configuration(
|
109
|
+
host = "http://localhost"
|
110
|
+
)
|
111
|
+
|
112
|
+
# The client must configure the authentication and authorization parameters
|
113
|
+
# in accordance with the API server security policy.
|
114
|
+
# Examples for each auth method are provided below, use the example that
|
115
|
+
# satisfies your auth use case.
|
116
|
+
|
117
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
118
|
+
|
119
|
+
# Enter a context with an instance of the API client
|
120
|
+
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
|
121
|
+
# Create an instance of the API class
|
122
|
+
api_instance = arthur_client.api_bindings.CustomAggregationsV1Api(api_client)
|
123
|
+
custom_aggregation_id = 'custom_aggregation_id_example' # str |
|
124
|
+
|
125
|
+
try:
|
126
|
+
# Get Custom Aggregation By Id.
|
127
|
+
api_response = api_instance.get_custom_aggregation(custom_aggregation_id)
|
128
|
+
print("The response of CustomAggregationsV1Api->get_custom_aggregation:\n")
|
129
|
+
pprint(api_response)
|
130
|
+
except Exception as e:
|
131
|
+
print("Exception when calling CustomAggregationsV1Api->get_custom_aggregation: %s\n" % e)
|
132
|
+
```
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
### Parameters
|
137
|
+
|
138
|
+
|
139
|
+
Name | Type | Description | Notes
|
140
|
+
------------- | ------------- | ------------- | -------------
|
141
|
+
**custom_aggregation_id** | **str**| |
|
142
|
+
|
143
|
+
### Return type
|
144
|
+
|
145
|
+
[**CustomAggregationSpecSchema**](CustomAggregationSpecSchema.md)
|
146
|
+
|
147
|
+
### Authorization
|
148
|
+
|
149
|
+
[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)
|
150
|
+
|
151
|
+
### HTTP request headers
|
152
|
+
|
153
|
+
- **Content-Type**: Not defined
|
154
|
+
- **Accept**: application/json
|
155
|
+
|
156
|
+
### HTTP response details
|
157
|
+
|
158
|
+
| Status code | Description | Response headers |
|
159
|
+
|-------------|-------------|------------------|
|
160
|
+
**200** | Successful Response | - |
|
161
|
+
**500** | Internal Server Error | - |
|
162
|
+
**404** | Not Found | - |
|
163
|
+
**422** | Validation Error | - |
|
164
|
+
|
165
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
166
|
+
|
167
|
+
# **post_custom_aggregation**
|
168
|
+
> CustomAggregationSpecSchema post_custom_aggregation(workspace_id, post_custom_aggregation_spec_schema)
|
169
|
+
|
170
|
+
Post Custom Aggregation.
|
171
|
+
|
172
|
+
Requires workspace_create_custom_aggregation permission.
|
173
|
+
|
174
|
+
### Example
|
175
|
+
|
176
|
+
* OAuth Authentication (OAuth2AuthorizationCode):
|
177
|
+
|
178
|
+
```python
|
179
|
+
import arthur_client.api_bindings
|
180
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema import CustomAggregationSpecSchema
|
181
|
+
from arthur_client.api_bindings.models.post_custom_aggregation_spec_schema import PostCustomAggregationSpecSchema
|
182
|
+
from arthur_client.api_bindings.rest import ApiException
|
183
|
+
from pprint import pprint
|
184
|
+
|
185
|
+
# Defining the host is optional and defaults to http://localhost
|
186
|
+
# See configuration.py for a list of all supported configuration parameters.
|
187
|
+
configuration = arthur_client.api_bindings.Configuration(
|
188
|
+
host = "http://localhost"
|
189
|
+
)
|
190
|
+
|
191
|
+
# The client must configure the authentication and authorization parameters
|
192
|
+
# in accordance with the API server security policy.
|
193
|
+
# Examples for each auth method are provided below, use the example that
|
194
|
+
# satisfies your auth use case.
|
195
|
+
|
196
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
197
|
+
|
198
|
+
# Enter a context with an instance of the API client
|
199
|
+
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
|
200
|
+
# Create an instance of the API class
|
201
|
+
api_instance = arthur_client.api_bindings.CustomAggregationsV1Api(api_client)
|
202
|
+
workspace_id = 'workspace_id_example' # str |
|
203
|
+
post_custom_aggregation_spec_schema = arthur_client.api_bindings.PostCustomAggregationSpecSchema() # PostCustomAggregationSpecSchema |
|
204
|
+
|
205
|
+
try:
|
206
|
+
# Post Custom Aggregation.
|
207
|
+
api_response = api_instance.post_custom_aggregation(workspace_id, post_custom_aggregation_spec_schema)
|
208
|
+
print("The response of CustomAggregationsV1Api->post_custom_aggregation:\n")
|
209
|
+
pprint(api_response)
|
210
|
+
except Exception as e:
|
211
|
+
print("Exception when calling CustomAggregationsV1Api->post_custom_aggregation: %s\n" % e)
|
212
|
+
```
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
### Parameters
|
217
|
+
|
218
|
+
|
219
|
+
Name | Type | Description | Notes
|
220
|
+
------------- | ------------- | ------------- | -------------
|
221
|
+
**workspace_id** | **str**| |
|
222
|
+
**post_custom_aggregation_spec_schema** | [**PostCustomAggregationSpecSchema**](PostCustomAggregationSpecSchema.md)| |
|
223
|
+
|
224
|
+
### Return type
|
225
|
+
|
226
|
+
[**CustomAggregationSpecSchema**](CustomAggregationSpecSchema.md)
|
227
|
+
|
228
|
+
### Authorization
|
229
|
+
|
230
|
+
[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)
|
231
|
+
|
232
|
+
### HTTP request headers
|
233
|
+
|
234
|
+
- **Content-Type**: application/json
|
235
|
+
- **Accept**: application/json
|
236
|
+
|
237
|
+
### HTTP response details
|
238
|
+
|
239
|
+
| Status code | Description | Response headers |
|
240
|
+
|-------------|-------------|------------------|
|
241
|
+
**200** | Successful Response | - |
|
242
|
+
**500** | Internal Server Error | - |
|
243
|
+
**400** | Bad Request | - |
|
244
|
+
**404** | Not Found | - |
|
245
|
+
**422** | Validation Error | - |
|
246
|
+
|
247
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
248
|
+
|
249
|
+
# **put_custom_aggregation**
|
250
|
+
> CustomAggregationSpecSchema put_custom_aggregation(custom_aggregation_id, put_custom_aggregation_spec_schema)
|
251
|
+
|
252
|
+
Update Custom Aggregation By Id.
|
253
|
+
|
254
|
+
Creates a new version of the custom aggregation. Requires custom_aggregation_put permission.
|
255
|
+
|
256
|
+
### Example
|
257
|
+
|
258
|
+
* OAuth Authentication (OAuth2AuthorizationCode):
|
259
|
+
|
260
|
+
```python
|
261
|
+
import arthur_client.api_bindings
|
262
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema import CustomAggregationSpecSchema
|
263
|
+
from arthur_client.api_bindings.models.put_custom_aggregation_spec_schema import PutCustomAggregationSpecSchema
|
264
|
+
from arthur_client.api_bindings.rest import ApiException
|
265
|
+
from pprint import pprint
|
266
|
+
|
267
|
+
# Defining the host is optional and defaults to http://localhost
|
268
|
+
# See configuration.py for a list of all supported configuration parameters.
|
269
|
+
configuration = arthur_client.api_bindings.Configuration(
|
270
|
+
host = "http://localhost"
|
271
|
+
)
|
272
|
+
|
273
|
+
# The client must configure the authentication and authorization parameters
|
274
|
+
# in accordance with the API server security policy.
|
275
|
+
# Examples for each auth method are provided below, use the example that
|
276
|
+
# satisfies your auth use case.
|
277
|
+
|
278
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
279
|
+
|
280
|
+
# Enter a context with an instance of the API client
|
281
|
+
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
|
282
|
+
# Create an instance of the API class
|
283
|
+
api_instance = arthur_client.api_bindings.CustomAggregationsV1Api(api_client)
|
284
|
+
custom_aggregation_id = 'custom_aggregation_id_example' # str |
|
285
|
+
put_custom_aggregation_spec_schema = arthur_client.api_bindings.PutCustomAggregationSpecSchema() # PutCustomAggregationSpecSchema |
|
286
|
+
|
287
|
+
try:
|
288
|
+
# Update Custom Aggregation By Id.
|
289
|
+
api_response = api_instance.put_custom_aggregation(custom_aggregation_id, put_custom_aggregation_spec_schema)
|
290
|
+
print("The response of CustomAggregationsV1Api->put_custom_aggregation:\n")
|
291
|
+
pprint(api_response)
|
292
|
+
except Exception as e:
|
293
|
+
print("Exception when calling CustomAggregationsV1Api->put_custom_aggregation: %s\n" % e)
|
294
|
+
```
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
### Parameters
|
299
|
+
|
300
|
+
|
301
|
+
Name | Type | Description | Notes
|
302
|
+
------------- | ------------- | ------------- | -------------
|
303
|
+
**custom_aggregation_id** | **str**| |
|
304
|
+
**put_custom_aggregation_spec_schema** | [**PutCustomAggregationSpecSchema**](PutCustomAggregationSpecSchema.md)| |
|
305
|
+
|
306
|
+
### Return type
|
307
|
+
|
308
|
+
[**CustomAggregationSpecSchema**](CustomAggregationSpecSchema.md)
|
309
|
+
|
310
|
+
### Authorization
|
311
|
+
|
312
|
+
[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)
|
313
|
+
|
314
|
+
### HTTP request headers
|
315
|
+
|
316
|
+
- **Content-Type**: application/json
|
317
|
+
- **Accept**: application/json
|
318
|
+
|
319
|
+
### HTTP response details
|
320
|
+
|
321
|
+
| Status code | Description | Response headers |
|
322
|
+
|-------------|-------------|------------------|
|
323
|
+
**200** | Successful Response | - |
|
324
|
+
**500** | Internal Server Error | - |
|
325
|
+
**404** | Not Found | - |
|
326
|
+
**422** | Validation Error | - |
|
327
|
+
|
328
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
329
|
+
|
330
|
+
# **validate_custom_aggregation**
|
331
|
+
> ValidationResults validate_custom_aggregation(workspace_id, post_custom_aggregation_spec_schema)
|
332
|
+
|
333
|
+
Validate A Custom Aggregation Before Creation.
|
334
|
+
|
335
|
+
Validates the custom aggregation and returns any expected errors for aggregation creation. Requires workspace_validate_custom_aggregation permission.
|
336
|
+
|
337
|
+
### Example
|
338
|
+
|
339
|
+
* OAuth Authentication (OAuth2AuthorizationCode):
|
340
|
+
|
341
|
+
```python
|
342
|
+
import arthur_client.api_bindings
|
343
|
+
from arthur_client.api_bindings.models.post_custom_aggregation_spec_schema import PostCustomAggregationSpecSchema
|
344
|
+
from arthur_client.api_bindings.models.validation_results import ValidationResults
|
345
|
+
from arthur_client.api_bindings.rest import ApiException
|
346
|
+
from pprint import pprint
|
347
|
+
|
348
|
+
# Defining the host is optional and defaults to http://localhost
|
349
|
+
# See configuration.py for a list of all supported configuration parameters.
|
350
|
+
configuration = arthur_client.api_bindings.Configuration(
|
351
|
+
host = "http://localhost"
|
352
|
+
)
|
353
|
+
|
354
|
+
# The client must configure the authentication and authorization parameters
|
355
|
+
# in accordance with the API server security policy.
|
356
|
+
# Examples for each auth method are provided below, use the example that
|
357
|
+
# satisfies your auth use case.
|
358
|
+
|
359
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
360
|
+
|
361
|
+
# Enter a context with an instance of the API client
|
362
|
+
with arthur_client.api_bindings.ApiClient(configuration) as api_client:
|
363
|
+
# Create an instance of the API class
|
364
|
+
api_instance = arthur_client.api_bindings.CustomAggregationsV1Api(api_client)
|
365
|
+
workspace_id = 'workspace_id_example' # str |
|
366
|
+
post_custom_aggregation_spec_schema = arthur_client.api_bindings.PostCustomAggregationSpecSchema() # PostCustomAggregationSpecSchema |
|
367
|
+
|
368
|
+
try:
|
369
|
+
# Validate A Custom Aggregation Before Creation.
|
370
|
+
api_response = api_instance.validate_custom_aggregation(workspace_id, post_custom_aggregation_spec_schema)
|
371
|
+
print("The response of CustomAggregationsV1Api->validate_custom_aggregation:\n")
|
372
|
+
pprint(api_response)
|
373
|
+
except Exception as e:
|
374
|
+
print("Exception when calling CustomAggregationsV1Api->validate_custom_aggregation: %s\n" % e)
|
375
|
+
```
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
### Parameters
|
380
|
+
|
381
|
+
|
382
|
+
Name | Type | Description | Notes
|
383
|
+
------------- | ------------- | ------------- | -------------
|
384
|
+
**workspace_id** | **str**| |
|
385
|
+
**post_custom_aggregation_spec_schema** | [**PostCustomAggregationSpecSchema**](PostCustomAggregationSpecSchema.md)| |
|
386
|
+
|
387
|
+
### Return type
|
388
|
+
|
389
|
+
[**ValidationResults**](ValidationResults.md)
|
390
|
+
|
391
|
+
### Authorization
|
392
|
+
|
393
|
+
[OAuth2AuthorizationCode](../README.md#OAuth2AuthorizationCode)
|
394
|
+
|
395
|
+
### HTTP request headers
|
396
|
+
|
397
|
+
- **Content-Type**: application/json
|
398
|
+
- **Accept**: application/json
|
399
|
+
|
400
|
+
### HTTP response details
|
401
|
+
|
402
|
+
| Status code | Description | Response headers |
|
403
|
+
|-------------|-------------|------------------|
|
404
|
+
**200** | Successful Response | - |
|
405
|
+
**500** | Internal Server Error | - |
|
406
|
+
**404** | Not Found | - |
|
407
|
+
**422** | Validation Error | - |
|
408
|
+
|
409
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
410
|
+
|
@@ -6,7 +6,7 @@
|
|
6
6
|
Name | Type | Description | Notes
|
7
7
|
------------ | ------------- | ------------- | -------------
|
8
8
|
**dtype** | [**DType**](DType.md) | |
|
9
|
-
**object** | [**Dict[str,
|
9
|
+
**object** | [**Dict[str, BaseColumnParameterSchemaAllowedColumnTypesInner]**](BaseColumnParameterSchemaAllowedColumnTypesInner.md) | |
|
10
10
|
**items** | [**Items1**](Items1.md) | |
|
11
11
|
|
12
12
|
## Example
|
@@ -6,14 +6,14 @@
|
|
6
6
|
Name | Type | Description | Notes
|
7
7
|
------------ | ------------- | ------------- | -------------
|
8
8
|
**parameter_key** | **str** | Name of the parameter. |
|
9
|
-
**optional** | **bool** | Boolean denoting if the parameter is optional. | [optional] [default to False]
|
10
9
|
**friendly_name** | **str** | User facing name of the parameter. |
|
11
10
|
**description** | **str** | Description of the parameter. |
|
12
11
|
**tag_hints** | [**List[ScopeSchemaTag]**](ScopeSchemaTag.md) | List of tags that are applicable to this parameter. Datasets with columns that have matching tags can be inferred this way. | [optional] [default to []]
|
13
12
|
**source_dataset_parameter_key** | **str** | Name of the parameter that provides the dataset to be used for this column. |
|
14
|
-
**allowed_column_types** | [**List[
|
13
|
+
**allowed_column_types** | [**List[BaseColumnParameterSchemaAllowedColumnTypesInner]**](BaseColumnParameterSchemaAllowedColumnTypesInner.md) | | [optional]
|
15
14
|
**allow_any_column_type** | **bool** | Indicates if this metric parameter can accept any column type. | [optional] [default to False]
|
16
15
|
**parameter_type** | **str** | | [optional] [default to 'column_list']
|
16
|
+
**optional** | **bool** | Boolean denoting if the parameter is optional. | [optional] [default to False]
|
17
17
|
|
18
18
|
## Example
|
19
19
|
|