perceptic-core-client 0.20.0__py3-none-any.whl → 0.21.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client/__init__.py +4 -0
- perceptic_core_client/api/file_system_resource_api.py +250 -0
- perceptic_core_client/api/tag_resource_api.py +596 -16
- perceptic_core_client/models/__init__.py +4 -0
- perceptic_core_client/models/list_tags_response.py +95 -0
- perceptic_core_client/models/tag_info.py +93 -0
- perceptic_core_client/models/update_tag_request.py +99 -0
- perceptic_core_client/models/update_tag_response.py +91 -0
- perceptic_core_client/test/test_file_system_resource_api.py +7 -0
- perceptic_core_client/test/test_list_tags_response.py +57 -0
- perceptic_core_client/test/test_tag_info.py +54 -0
- perceptic_core_client/test/test_tag_resource_api.py +14 -0
- perceptic_core_client/test/test_update_tag_request.py +52 -0
- perceptic_core_client/test/test_update_tag_response.py +55 -0
- {perceptic_core_client-0.20.0.dist-info → perceptic_core_client-0.21.0.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.20.0.dist-info → perceptic_core_client-0.21.0.dist-info}/RECORD +18 -10
- {perceptic_core_client-0.20.0.dist-info → perceptic_core_client-0.21.0.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.20.0.dist-info → perceptic_core_client-0.21.0.dist-info}/top_level.txt +0 -0
|
@@ -64,6 +64,7 @@ from perceptic_core_client.models.list_indexers_response import ListIndexersResp
|
|
|
64
64
|
from perceptic_core_client.models.list_indexing_actions_response import ListIndexingActionsResponse
|
|
65
65
|
from perceptic_core_client.models.list_indexing_schedules_response import ListIndexingSchedulesResponse
|
|
66
66
|
from perceptic_core_client.models.list_schedule_executions_response import ListScheduleExecutionsResponse
|
|
67
|
+
from perceptic_core_client.models.list_tags_response import ListTagsResponse
|
|
67
68
|
from perceptic_core_client.models.managed_file_system_api_dto import ManagedFileSystemApiDto
|
|
68
69
|
from perceptic_core_client.models.me_response import MeResponse
|
|
69
70
|
from perceptic_core_client.models.model_schema import ModelSchema
|
|
@@ -85,8 +86,11 @@ from perceptic_core_client.models.schedule_execution_dto import ScheduleExecutio
|
|
|
85
86
|
from perceptic_core_client.models.schedule_trigger import ScheduleTrigger
|
|
86
87
|
from perceptic_core_client.models.schema_location import SchemaLocation
|
|
87
88
|
from perceptic_core_client.models.start_execution_response import StartExecutionResponse
|
|
89
|
+
from perceptic_core_client.models.tag_info import TagInfo
|
|
88
90
|
from perceptic_core_client.models.update_indexing_schedule_request import UpdateIndexingScheduleRequest
|
|
89
91
|
from perceptic_core_client.models.update_indexing_schedule_response import UpdateIndexingScheduleResponse
|
|
92
|
+
from perceptic_core_client.models.update_tag_request import UpdateTagRequest
|
|
93
|
+
from perceptic_core_client.models.update_tag_response import UpdateTagResponse
|
|
90
94
|
from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
|
|
91
95
|
from perceptic_core_client.models.worker_event import WorkerEvent
|
|
92
96
|
from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from perceptic_core_client.models.tag_info import TagInfo
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ListTagsResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ListTagsResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
tags: Optional[List[TagInfo]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["tags"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ListTagsResponse from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each item in tags (list)
|
|
73
|
+
_items = []
|
|
74
|
+
if self.tags:
|
|
75
|
+
for _item_tags in self.tags:
|
|
76
|
+
if _item_tags:
|
|
77
|
+
_items.append(_item_tags.to_dict())
|
|
78
|
+
_dict['tags'] = _items
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of ListTagsResponse from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"tags": [TagInfo.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class TagInfo(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
TagInfo
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
rid: Optional[StrictStr] = None
|
|
30
|
+
name: Optional[StrictStr] = None
|
|
31
|
+
description: Optional[StrictStr] = None
|
|
32
|
+
user_id: Optional[StrictStr] = Field(default=None, alias="userId")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["rid", "name", "description", "userId"]
|
|
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 TagInfo 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
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of TagInfo from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"rid": obj.get("rid"),
|
|
87
|
+
"name": obj.get("name"),
|
|
88
|
+
"description": obj.get("description"),
|
|
89
|
+
"userId": obj.get("userId")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class UpdateTagRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
UpdateTagRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
new_name: Optional[StrictStr] = Field(default=None, alias="newName")
|
|
30
|
+
new_description: Optional[StrictStr] = Field(default=None, alias="newDescription")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["newName", "newDescription"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of UpdateTagRequest from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# set to None if new_name (nullable) is None
|
|
73
|
+
# and model_fields_set contains the field
|
|
74
|
+
if self.new_name is None and "new_name" in self.model_fields_set:
|
|
75
|
+
_dict['newName'] = None
|
|
76
|
+
|
|
77
|
+
# set to None if new_description (nullable) is None
|
|
78
|
+
# and model_fields_set contains the field
|
|
79
|
+
if self.new_description is None and "new_description" in self.model_fields_set:
|
|
80
|
+
_dict['newDescription'] = None
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of UpdateTagRequest from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"newName": obj.get("newName"),
|
|
95
|
+
"newDescription": obj.get("newDescription")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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, Optional
|
|
22
|
+
from perceptic_core_client.models.tag_info import TagInfo
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class UpdateTagResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateTagResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
updated_tag: Optional[TagInfo] = Field(default=None, alias="updatedTag")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["updatedTag"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of UpdateTagResponse from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of updated_tag
|
|
73
|
+
if self.updated_tag:
|
|
74
|
+
_dict['updatedTag'] = self.updated_tag.to_dict()
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of UpdateTagResponse from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"updatedTag": TagInfo.from_dict(obj["updatedTag"]) if obj.get("updatedTag") is not None else None
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -40,6 +40,13 @@ class TestFileSystemResourceApi(unittest.TestCase):
|
|
|
40
40
|
"""
|
|
41
41
|
pass
|
|
42
42
|
|
|
43
|
+
def test_delete_file_system(self) -> None:
|
|
44
|
+
"""Test case for delete_file_system
|
|
45
|
+
|
|
46
|
+
Delete File System
|
|
47
|
+
"""
|
|
48
|
+
pass
|
|
49
|
+
|
|
43
50
|
def test_get_file_system(self) -> None:
|
|
44
51
|
"""Test case for get_file_system
|
|
45
52
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.list_tags_response import ListTagsResponse
|
|
18
|
+
|
|
19
|
+
class TestListTagsResponse(unittest.TestCase):
|
|
20
|
+
"""ListTagsResponse 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) -> ListTagsResponse:
|
|
29
|
+
"""Test ListTagsResponse
|
|
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 `ListTagsResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = ListTagsResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ListTagsResponse(
|
|
38
|
+
tags = [
|
|
39
|
+
perceptic_core_client.models.tag_info.TagInfo(
|
|
40
|
+
rid = '',
|
|
41
|
+
name = '',
|
|
42
|
+
description = '',
|
|
43
|
+
user_id = '', )
|
|
44
|
+
]
|
|
45
|
+
)
|
|
46
|
+
else:
|
|
47
|
+
return ListTagsResponse(
|
|
48
|
+
)
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def testListTagsResponse(self):
|
|
52
|
+
"""Test ListTagsResponse"""
|
|
53
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
54
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
55
|
+
|
|
56
|
+
if __name__ == '__main__':
|
|
57
|
+
unittest.main()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.tag_info import TagInfo
|
|
18
|
+
|
|
19
|
+
class TestTagInfo(unittest.TestCase):
|
|
20
|
+
"""TagInfo 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) -> TagInfo:
|
|
29
|
+
"""Test TagInfo
|
|
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 `TagInfo`
|
|
34
|
+
"""
|
|
35
|
+
model = TagInfo()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return TagInfo(
|
|
38
|
+
rid = '',
|
|
39
|
+
name = '',
|
|
40
|
+
description = '',
|
|
41
|
+
user_id = ''
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return TagInfo(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testTagInfo(self):
|
|
49
|
+
"""Test TagInfo"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -47,6 +47,13 @@ class TestTagResourceApi(unittest.TestCase):
|
|
|
47
47
|
"""
|
|
48
48
|
pass
|
|
49
49
|
|
|
50
|
+
def test_remove_tag_empty(self) -> None:
|
|
51
|
+
"""Test case for remove_tag_empty
|
|
52
|
+
|
|
53
|
+
Remove Tag Empty
|
|
54
|
+
"""
|
|
55
|
+
pass
|
|
56
|
+
|
|
50
57
|
def test_update_tag(self) -> None:
|
|
51
58
|
"""Test case for update_tag
|
|
52
59
|
|
|
@@ -54,6 +61,13 @@ class TestTagResourceApi(unittest.TestCase):
|
|
|
54
61
|
"""
|
|
55
62
|
pass
|
|
56
63
|
|
|
64
|
+
def test_update_tag_empty(self) -> None:
|
|
65
|
+
"""Test case for update_tag_empty
|
|
66
|
+
|
|
67
|
+
Update Tag Empty
|
|
68
|
+
"""
|
|
69
|
+
pass
|
|
70
|
+
|
|
57
71
|
|
|
58
72
|
if __name__ == '__main__':
|
|
59
73
|
unittest.main()
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.update_tag_request import UpdateTagRequest
|
|
18
|
+
|
|
19
|
+
class TestUpdateTagRequest(unittest.TestCase):
|
|
20
|
+
"""UpdateTagRequest 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) -> UpdateTagRequest:
|
|
29
|
+
"""Test UpdateTagRequest
|
|
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 `UpdateTagRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UpdateTagRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UpdateTagRequest(
|
|
38
|
+
new_name = '',
|
|
39
|
+
new_description = ''
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return UpdateTagRequest(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testUpdateTagRequest(self):
|
|
47
|
+
"""Test UpdateTagRequest"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.update_tag_response import UpdateTagResponse
|
|
18
|
+
|
|
19
|
+
class TestUpdateTagResponse(unittest.TestCase):
|
|
20
|
+
"""UpdateTagResponse 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) -> UpdateTagResponse:
|
|
29
|
+
"""Test UpdateTagResponse
|
|
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 `UpdateTagResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = UpdateTagResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UpdateTagResponse(
|
|
38
|
+
updated_tag = perceptic_core_client.models.tag_info.TagInfo(
|
|
39
|
+
rid = '',
|
|
40
|
+
name = '',
|
|
41
|
+
description = '',
|
|
42
|
+
user_id = '', )
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return UpdateTagResponse(
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testUpdateTagResponse(self):
|
|
50
|
+
"""Test UpdateTagResponse"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|