perceptic-core-client 0.13.0__py3-none-any.whl → 0.15.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.

Files changed (37) hide show
  1. perceptic_core_client/__init__.py +15 -0
  2. perceptic_core_client/api/__init__.py +1 -0
  3. perceptic_core_client/api/indexing_schedule_resource_api.py +2243 -0
  4. perceptic_core_client/models/__init__.py +14 -0
  5. perceptic_core_client/models/create_indexing_schedule_request.py +122 -0
  6. perceptic_core_client/models/create_indexing_schedule_response.py +93 -0
  7. perceptic_core_client/models/cron_trigger.py +106 -0
  8. perceptic_core_client/models/execution_trigger_reason.py +37 -0
  9. perceptic_core_client/models/get_indexing_schedule_response.py +91 -0
  10. perceptic_core_client/models/indexing_schedule_dto.py +118 -0
  11. perceptic_core_client/models/interval_trigger.py +92 -0
  12. perceptic_core_client/models/list_indexing_schedules_response.py +104 -0
  13. perceptic_core_client/models/list_schedule_executions_response.py +104 -0
  14. perceptic_core_client/models/on_upload_trigger.py +87 -0
  15. perceptic_core_client/models/schedule_execution_dto.py +104 -0
  16. perceptic_core_client/models/schedule_trigger.py +189 -0
  17. perceptic_core_client/models/update_indexing_schedule_request.py +127 -0
  18. perceptic_core_client/models/update_indexing_schedule_response.py +91 -0
  19. perceptic_core_client/test/test_create_indexing_schedule_request.py +66 -0
  20. perceptic_core_client/test/test_create_indexing_schedule_response.py +68 -0
  21. perceptic_core_client/test/test_cron_trigger.py +55 -0
  22. perceptic_core_client/test/test_execution_trigger_reason.py +33 -0
  23. perceptic_core_client/test/test_get_indexing_schedule_response.py +67 -0
  24. perceptic_core_client/test/test_indexing_schedule_dto.py +66 -0
  25. perceptic_core_client/test/test_indexing_schedule_resource_api.py +87 -0
  26. perceptic_core_client/test/test_interval_trigger.py +54 -0
  27. perceptic_core_client/test/test_list_indexing_schedules_response.py +71 -0
  28. perceptic_core_client/test/test_list_schedule_executions_response.py +61 -0
  29. perceptic_core_client/test/test_on_upload_trigger.py +51 -0
  30. perceptic_core_client/test/test_schedule_execution_dto.py +56 -0
  31. perceptic_core_client/test/test_schedule_trigger.py +58 -0
  32. perceptic_core_client/test/test_update_indexing_schedule_request.py +58 -0
  33. perceptic_core_client/test/test_update_indexing_schedule_response.py +67 -0
  34. {perceptic_core_client-0.13.0.dist-info → perceptic_core_client-0.15.0.dist-info}/METADATA +1 -1
  35. {perceptic_core_client-0.13.0.dist-info → perceptic_core_client-0.15.0.dist-info}/RECORD +37 -7
  36. {perceptic_core_client-0.13.0.dist-info → perceptic_core_client-0.15.0.dist-info}/WHEEL +0 -0
  37. {perceptic_core_client-0.13.0.dist-info → perceptic_core_client-0.15.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,127 @@
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, StrictBool, StrictInt
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from perceptic_core_client.models.schedule_trigger import ScheduleTrigger
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class UpdateIndexingScheduleRequest(BaseModel):
28
+ """
29
+ UpdateIndexingScheduleRequest
30
+ """ # noqa: E501
31
+ name: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="Updated display name")
32
+ description: Optional[Annotated[str, Field(strict=True, max_length=1000)]] = Field(default=None, description="Updated description")
33
+ target_minimum_version: Optional[StrictInt] = Field(default=None, description="Updated minimum indexer version", alias="targetMinimumVersion")
34
+ indexing_settings: Optional[Dict[str, Any]] = Field(default=None, description="Updated indexer-specific settings", alias="indexingSettings")
35
+ trigger: Optional[ScheduleTrigger] = None
36
+ enabled: Optional[StrictBool] = Field(default=None, description="Updated enabled status")
37
+ __properties: ClassVar[List[str]] = ["name", "description", "targetMinimumVersion", "indexingSettings", "trigger", "enabled"]
38
+
39
+ model_config = ConfigDict(
40
+ populate_by_name=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> Optional[Self]:
57
+ """Create an instance of UpdateIndexingScheduleRequest from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self) -> Dict[str, Any]:
61
+ """Return the dictionary representation of the model using alias.
62
+
63
+ This has the following differences from calling pydantic's
64
+ `self.model_dump(by_alias=True)`:
65
+
66
+ * `None` is only added to the output dict for nullable fields that
67
+ were set at model initialization. Other fields with value `None`
68
+ are ignored.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ ])
72
+
73
+ _dict = self.model_dump(
74
+ by_alias=True,
75
+ exclude=excluded_fields,
76
+ exclude_none=True,
77
+ )
78
+ # override the default output from pydantic by calling `to_dict()` of trigger
79
+ if self.trigger:
80
+ _dict['trigger'] = self.trigger.to_dict()
81
+ # set to None if name (nullable) is None
82
+ # and model_fields_set contains the field
83
+ if self.name is None and "name" in self.model_fields_set:
84
+ _dict['name'] = None
85
+
86
+ # set to None if description (nullable) is None
87
+ # and model_fields_set contains the field
88
+ if self.description is None and "description" in self.model_fields_set:
89
+ _dict['description'] = None
90
+
91
+ # set to None if target_minimum_version (nullable) is None
92
+ # and model_fields_set contains the field
93
+ if self.target_minimum_version is None and "target_minimum_version" in self.model_fields_set:
94
+ _dict['targetMinimumVersion'] = None
95
+
96
+ # set to None if trigger (nullable) is None
97
+ # and model_fields_set contains the field
98
+ if self.trigger is None and "trigger" in self.model_fields_set:
99
+ _dict['trigger'] = None
100
+
101
+ # set to None if enabled (nullable) is None
102
+ # and model_fields_set contains the field
103
+ if self.enabled is None and "enabled" in self.model_fields_set:
104
+ _dict['enabled'] = None
105
+
106
+ return _dict
107
+
108
+ @classmethod
109
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110
+ """Create an instance of UpdateIndexingScheduleRequest from a dict"""
111
+ if obj is None:
112
+ return None
113
+
114
+ if not isinstance(obj, dict):
115
+ return cls.model_validate(obj)
116
+
117
+ _obj = cls.model_validate({
118
+ "name": obj.get("name"),
119
+ "description": obj.get("description"),
120
+ "targetMinimumVersion": obj.get("targetMinimumVersion"),
121
+ "indexingSettings": obj.get("indexingSettings"),
122
+ "trigger": ScheduleTrigger.from_dict(obj["trigger"]) if obj.get("trigger") is not None else None,
123
+ "enabled": obj.get("enabled")
124
+ })
125
+ return _obj
126
+
127
+
@@ -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
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from perceptic_core_client.models.indexing_schedule_dto import IndexingScheduleDto
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class UpdateIndexingScheduleResponse(BaseModel):
27
+ """
28
+ UpdateIndexingScheduleResponse
29
+ """ # noqa: E501
30
+ schedule: Optional[IndexingScheduleDto] = None
31
+ __properties: ClassVar[List[str]] = ["schedule"]
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 UpdateIndexingScheduleResponse 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 schedule
73
+ if self.schedule:
74
+ _dict['schedule'] = self.schedule.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 UpdateIndexingScheduleResponse 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
+ "schedule": IndexingScheduleDto.from_dict(obj["schedule"]) if obj.get("schedule") is not None else None
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,66 @@
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.create_indexing_schedule_request import CreateIndexingScheduleRequest
18
+
19
+ class TestCreateIndexingScheduleRequest(unittest.TestCase):
20
+ """CreateIndexingScheduleRequest 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) -> CreateIndexingScheduleRequest:
29
+ """Test CreateIndexingScheduleRequest
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 `CreateIndexingScheduleRequest`
34
+ """
35
+ model = CreateIndexingScheduleRequest()
36
+ if include_optional:
37
+ return CreateIndexingScheduleRequest(
38
+ name = 'Daily CSV indexing',
39
+ description = '',
40
+ indexer_rid = 'ri.indexer..instance.indexer-csv-processor',
41
+ target_uri = 'prtc://ri.perceptic..instance.fs-data-lake/documents',
42
+ namespace = 'production',
43
+ target_minimum_version = 1,
44
+ indexing_settings = {
45
+ 'key' : null
46
+ },
47
+ trigger = perceptic_core_client.models.schedule_trigger.ScheduleTrigger(),
48
+ enabled = True
49
+ )
50
+ else:
51
+ return CreateIndexingScheduleRequest(
52
+ name = 'Daily CSV indexing',
53
+ indexer_rid = 'ri.indexer..instance.indexer-csv-processor',
54
+ target_uri = 'prtc://ri.perceptic..instance.fs-data-lake/documents',
55
+ namespace = 'production',
56
+ trigger = perceptic_core_client.models.schedule_trigger.ScheduleTrigger(),
57
+ )
58
+ """
59
+
60
+ def testCreateIndexingScheduleRequest(self):
61
+ """Test CreateIndexingScheduleRequest"""
62
+ # inst_req_only = self.make_instance(include_optional=False)
63
+ # inst_req_and_optional = self.make_instance(include_optional=True)
64
+
65
+ if __name__ == '__main__':
66
+ unittest.main()
@@ -0,0 +1,68 @@
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.create_indexing_schedule_response import CreateIndexingScheduleResponse
18
+
19
+ class TestCreateIndexingScheduleResponse(unittest.TestCase):
20
+ """CreateIndexingScheduleResponse 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) -> CreateIndexingScheduleResponse:
29
+ """Test CreateIndexingScheduleResponse
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 `CreateIndexingScheduleResponse`
34
+ """
35
+ model = CreateIndexingScheduleResponse()
36
+ if include_optional:
37
+ return CreateIndexingScheduleResponse(
38
+ schedule_rid = '',
39
+ schedule = perceptic_core_client.models.indexing_schedule_dto.IndexingScheduleDto(
40
+ schedule_rid = '',
41
+ name = '',
42
+ description = '',
43
+ indexer_rid = '',
44
+ target_uri = '',
45
+ namespace = '',
46
+ target_minimum_version = 56,
47
+ indexing_settings = {
48
+ 'key' : null
49
+ },
50
+ trigger = perceptic_core_client.models.schedule_trigger.ScheduleTrigger(),
51
+ enabled = True,
52
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
53
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
54
+ last_executed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
55
+ next_execution_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
56
+ )
57
+ else:
58
+ return CreateIndexingScheduleResponse(
59
+ )
60
+ """
61
+
62
+ def testCreateIndexingScheduleResponse(self):
63
+ """Test CreateIndexingScheduleResponse"""
64
+ # inst_req_only = self.make_instance(include_optional=False)
65
+ # inst_req_and_optional = self.make_instance(include_optional=True)
66
+
67
+ if __name__ == '__main__':
68
+ 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.cron_trigger import CronTrigger
18
+
19
+ class TestCronTrigger(unittest.TestCase):
20
+ """CronTrigger 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) -> CronTrigger:
29
+ """Test CronTrigger
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 `CronTrigger`
34
+ """
35
+ model = CronTrigger()
36
+ if include_optional:
37
+ return CronTrigger(
38
+ expression = '0 0 * * *',
39
+ timezone = 'America/New_York',
40
+ type = ''
41
+ )
42
+ else:
43
+ return CronTrigger(
44
+ expression = '0 0 * * *',
45
+ timezone = 'America/New_York',
46
+ )
47
+ """
48
+
49
+ def testCronTrigger(self):
50
+ """Test CronTrigger"""
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()
@@ -0,0 +1,33 @@
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.execution_trigger_reason import ExecutionTriggerReason
18
+
19
+ class TestExecutionTriggerReason(unittest.TestCase):
20
+ """ExecutionTriggerReason unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def testExecutionTriggerReason(self):
29
+ """Test ExecutionTriggerReason"""
30
+ # inst = ExecutionTriggerReason()
31
+
32
+ if __name__ == '__main__':
33
+ unittest.main()
@@ -0,0 +1,67 @@
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.get_indexing_schedule_response import GetIndexingScheduleResponse
18
+
19
+ class TestGetIndexingScheduleResponse(unittest.TestCase):
20
+ """GetIndexingScheduleResponse 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) -> GetIndexingScheduleResponse:
29
+ """Test GetIndexingScheduleResponse
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 `GetIndexingScheduleResponse`
34
+ """
35
+ model = GetIndexingScheduleResponse()
36
+ if include_optional:
37
+ return GetIndexingScheduleResponse(
38
+ schedule = perceptic_core_client.models.indexing_schedule_dto.IndexingScheduleDto(
39
+ schedule_rid = '',
40
+ name = '',
41
+ description = '',
42
+ indexer_rid = '',
43
+ target_uri = '',
44
+ namespace = '',
45
+ target_minimum_version = 56,
46
+ indexing_settings = {
47
+ 'key' : null
48
+ },
49
+ trigger = perceptic_core_client.models.schedule_trigger.ScheduleTrigger(),
50
+ enabled = True,
51
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
52
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
53
+ last_executed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
54
+ next_execution_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
55
+ )
56
+ else:
57
+ return GetIndexingScheduleResponse(
58
+ )
59
+ """
60
+
61
+ def testGetIndexingScheduleResponse(self):
62
+ """Test GetIndexingScheduleResponse"""
63
+ # inst_req_only = self.make_instance(include_optional=False)
64
+ # inst_req_and_optional = self.make_instance(include_optional=True)
65
+
66
+ if __name__ == '__main__':
67
+ unittest.main()
@@ -0,0 +1,66 @@
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.indexing_schedule_dto import IndexingScheduleDto
18
+
19
+ class TestIndexingScheduleDto(unittest.TestCase):
20
+ """IndexingScheduleDto 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) -> IndexingScheduleDto:
29
+ """Test IndexingScheduleDto
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 `IndexingScheduleDto`
34
+ """
35
+ model = IndexingScheduleDto()
36
+ if include_optional:
37
+ return IndexingScheduleDto(
38
+ schedule_rid = '',
39
+ name = '',
40
+ description = '',
41
+ indexer_rid = '',
42
+ target_uri = '',
43
+ namespace = '',
44
+ target_minimum_version = 56,
45
+ indexing_settings = {
46
+ 'key' : null
47
+ },
48
+ trigger = perceptic_core_client.models.schedule_trigger.ScheduleTrigger(),
49
+ enabled = True,
50
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
51
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
52
+ last_executed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
53
+ next_execution_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
54
+ )
55
+ else:
56
+ return IndexingScheduleDto(
57
+ )
58
+ """
59
+
60
+ def testIndexingScheduleDto(self):
61
+ """Test IndexingScheduleDto"""
62
+ # inst_req_only = self.make_instance(include_optional=False)
63
+ # inst_req_and_optional = self.make_instance(include_optional=True)
64
+
65
+ if __name__ == '__main__':
66
+ unittest.main()
@@ -0,0 +1,87 @@
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.api.indexing_schedule_resource_api import IndexingScheduleResourceApi
18
+
19
+
20
+ class TestIndexingScheduleResourceApi(unittest.TestCase):
21
+ """IndexingScheduleResourceApi unit test stubs"""
22
+
23
+ def setUp(self) -> None:
24
+ self.api = IndexingScheduleResourceApi()
25
+
26
+ def tearDown(self) -> None:
27
+ pass
28
+
29
+ def test_create_indexing_schedule(self) -> None:
30
+ """Test case for create_indexing_schedule
31
+
32
+ Create an indexing schedule
33
+ """
34
+ pass
35
+
36
+ def test_delete_indexing_schedule(self) -> None:
37
+ """Test case for delete_indexing_schedule
38
+
39
+ Delete an indexing schedule
40
+ """
41
+ pass
42
+
43
+ def test_disable_indexing_schedule(self) -> None:
44
+ """Test case for disable_indexing_schedule
45
+
46
+ Disable an indexing schedule
47
+ """
48
+ pass
49
+
50
+ def test_enable_indexing_schedule(self) -> None:
51
+ """Test case for enable_indexing_schedule
52
+
53
+ Enable an indexing schedule
54
+ """
55
+ pass
56
+
57
+ def test_get_indexing_schedule(self) -> None:
58
+ """Test case for get_indexing_schedule
59
+
60
+ Get an indexing schedule
61
+ """
62
+ pass
63
+
64
+ def test_list_indexing_schedules(self) -> None:
65
+ """Test case for list_indexing_schedules
66
+
67
+ List indexing schedules
68
+ """
69
+ pass
70
+
71
+ def test_list_schedule_executions(self) -> None:
72
+ """Test case for list_schedule_executions
73
+
74
+ List schedule execution history
75
+ """
76
+ pass
77
+
78
+ def test_update_indexing_schedule(self) -> None:
79
+ """Test case for update_indexing_schedule
80
+
81
+ Update an indexing schedule
82
+ """
83
+ pass
84
+
85
+
86
+ if __name__ == '__main__':
87
+ unittest.main()