egain-api-python 0.1.2__py3-none-any.whl → 0.1.4__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.
- egain_api_python/_version.py +3 -3
- egain_api_python/answers.py +26 -38
- egain_api_python/articlelists.py +10 -10
- egain_api_python/connectorssearchevents.py +4 -4
- egain_api_python/errors/gethealthop.py +33 -19
- egain_api_python/escalation.py +8 -8
- egain_api_python/export.py +6 -6
- egain_api_python/federatedsearchevent.py +2 -2
- egain_api_python/general.py +8 -8
- egain_api_python/guidedhelp.py +26 -26
- egain_api_python/health.py +2 -8
- egain_api_python/import_.py +56 -74
- egain_api_python/models/__init__.py +106 -95
- egain_api_python/models/aisearchop.py +6 -34
- egain_api_python/models/aisearchresponse.py +0 -4
- egain_api_python/models/answersrequest.py +0 -31
- egain_api_python/models/answersresponse.py +9 -11
- egain_api_python/models/articleaisearchresult.py +16 -45
- egain_api_python/models/articletype.py +3 -5
- egain_api_python/models/{getimportcontentop.py → cancelimportop.py} +3 -3
- egain_api_python/models/{createimportop.py → createimportjobop.py} +3 -3
- egain_api_python/models/{createimportvalidationop.py → createimportvalidationjobop.py} +3 -3
- egain_api_python/models/exportstatus.py +15 -8
- egain_api_python/models/getannouncementarticlesop.py +2 -2
- egain_api_python/models/getarticlelistdetailsop.py +2 -2
- egain_api_python/models/getarticlesintopicop.py +4 -4
- egain_api_python/models/getbestanswerop.py +6 -6
- egain_api_python/models/gethealthop.py +134 -7
- egain_api_python/models/{patchimportcontentvalidationop.py → getimportstatusop.py} +3 -3
- egain_api_python/models/getpopulararticlesop.py +4 -4
- egain_api_python/models/getrelatedarticlesop.py +2 -2
- egain_api_python/models/importstatus.py +116 -0
- egain_api_python/models/knowledgeexport.py +3 -5
- egain_api_python/models/referenceresponse.py +7 -23
- egain_api_python/models/retrievechunksop.py +6 -6
- egain_api_python/models/retrieveresponse.py +10 -12
- egain_api_python/models/searchresult.py +7 -23
- egain_api_python/populararticles.py +14 -14
- egain_api_python/portal_article.py +64 -64
- egain_api_python/portal_attachment.py +4 -4
- egain_api_python/portal_bookmark.py +6 -6
- egain_api_python/portal_suggestion.py +18 -18
- egain_api_python/portal_topic.py +8 -8
- egain_api_python/portal_userdetails.py +2 -2
- egain_api_python/portal_userprofile.py +4 -4
- egain_api_python/retrieve.py +22 -28
- egain_api_python/sdk.py +25 -24
- egain_api_python/sdkconfiguration.py +3 -4
- egain_api_python/search.py +24 -40
- egain_api_python/usermilestones.py +2 -2
- {egain_api_python-0.1.2.dist-info → egain_api_python-0.1.4.dist-info}/METADATA +44 -78
- {egain_api_python-0.1.2.dist-info → egain_api_python-0.1.4.dist-info}/RECORD +55 -57
- egain_api_python/models/resourcetype_parameter.py +0 -10
- egain_api_python/models/topicaisearchresult.py +0 -67
- {egain_api_python-0.1.2.dist-info → egain_api_python-0.1.4.dist-info}/WHEEL +0 -0
- {egain_api_python-0.1.2.dist-info → egain_api_python-0.1.4.dist-info}/licenses/LICENSE +0 -0
- {egain_api_python-0.1.2.dist-info → egain_api_python-0.1.4.dist-info}/top_level.txt +0 -0
egain_api_python/guidedhelp.py
CHANGED
@@ -86,7 +86,7 @@ class Guidedhelp(BaseSDK):
|
|
86
86
|
config=self.sdk_configuration,
|
87
87
|
base_url=base_url or "",
|
88
88
|
operation_id="getAllCasebasesReleases",
|
89
|
-
oauth2_scopes=
|
89
|
+
oauth2_scopes=None,
|
90
90
|
security_source=get_security_from_env(
|
91
91
|
self.sdk_configuration.security, models.Security
|
92
92
|
),
|
@@ -198,7 +198,7 @@ class Guidedhelp(BaseSDK):
|
|
198
198
|
config=self.sdk_configuration,
|
199
199
|
base_url=base_url or "",
|
200
200
|
operation_id="getAllCasebasesReleases",
|
201
|
-
oauth2_scopes=
|
201
|
+
oauth2_scopes=None,
|
202
202
|
security_source=get_security_from_env(
|
203
203
|
self.sdk_configuration.security, models.Security
|
204
204
|
),
|
@@ -310,7 +310,7 @@ class Guidedhelp(BaseSDK):
|
|
310
310
|
config=self.sdk_configuration,
|
311
311
|
base_url=base_url or "",
|
312
312
|
operation_id="getCasebaseReleaseById",
|
313
|
-
oauth2_scopes=
|
313
|
+
oauth2_scopes=None,
|
314
314
|
security_source=get_security_from_env(
|
315
315
|
self.sdk_configuration.security, models.Security
|
316
316
|
),
|
@@ -422,7 +422,7 @@ class Guidedhelp(BaseSDK):
|
|
422
422
|
config=self.sdk_configuration,
|
423
423
|
base_url=base_url or "",
|
424
424
|
operation_id="getCasebaseReleaseById",
|
425
|
-
oauth2_scopes=
|
425
|
+
oauth2_scopes=None,
|
426
426
|
security_source=get_security_from_env(
|
427
427
|
self.sdk_configuration.security, models.Security
|
428
428
|
),
|
@@ -537,7 +537,7 @@ class Guidedhelp(BaseSDK):
|
|
537
537
|
config=self.sdk_configuration,
|
538
538
|
base_url=base_url or "",
|
539
539
|
operation_id="getClusterByCasebaseReleaseId",
|
540
|
-
oauth2_scopes=
|
540
|
+
oauth2_scopes=None,
|
541
541
|
security_source=get_security_from_env(
|
542
542
|
self.sdk_configuration.security, models.Security
|
543
543
|
),
|
@@ -652,7 +652,7 @@ class Guidedhelp(BaseSDK):
|
|
652
652
|
config=self.sdk_configuration,
|
653
653
|
base_url=base_url or "",
|
654
654
|
operation_id="getClusterByCasebaseReleaseId",
|
655
|
-
oauth2_scopes=
|
655
|
+
oauth2_scopes=None,
|
656
656
|
security_source=get_security_from_env(
|
657
657
|
self.sdk_configuration.security, models.Security
|
658
658
|
),
|
@@ -764,7 +764,7 @@ class Guidedhelp(BaseSDK):
|
|
764
764
|
config=self.sdk_configuration,
|
765
765
|
base_url=base_url or "",
|
766
766
|
operation_id="getAllProfilesInPortal",
|
767
|
-
oauth2_scopes=
|
767
|
+
oauth2_scopes=None,
|
768
768
|
security_source=get_security_from_env(
|
769
769
|
self.sdk_configuration.security, models.Security
|
770
770
|
),
|
@@ -876,7 +876,7 @@ class Guidedhelp(BaseSDK):
|
|
876
876
|
config=self.sdk_configuration,
|
877
877
|
base_url=base_url or "",
|
878
878
|
operation_id="getAllProfilesInPortal",
|
879
|
-
oauth2_scopes=
|
879
|
+
oauth2_scopes=None,
|
880
880
|
security_source=get_security_from_env(
|
881
881
|
self.sdk_configuration.security, models.Security
|
882
882
|
),
|
@@ -1038,7 +1038,7 @@ class Guidedhelp(BaseSDK):
|
|
1038
1038
|
config=self.sdk_configuration,
|
1039
1039
|
base_url=base_url or "",
|
1040
1040
|
operation_id="startGHSearch",
|
1041
|
-
oauth2_scopes=
|
1041
|
+
oauth2_scopes=None,
|
1042
1042
|
security_source=get_security_from_env(
|
1043
1043
|
self.sdk_configuration.security, models.Security
|
1044
1044
|
),
|
@@ -1215,7 +1215,7 @@ class Guidedhelp(BaseSDK):
|
|
1215
1215
|
config=self.sdk_configuration,
|
1216
1216
|
base_url=base_url or "",
|
1217
1217
|
operation_id="startGHSearch",
|
1218
|
-
oauth2_scopes=
|
1218
|
+
oauth2_scopes=None,
|
1219
1219
|
security_source=get_security_from_env(
|
1220
1220
|
self.sdk_configuration.security, models.Security
|
1221
1221
|
),
|
@@ -1383,7 +1383,7 @@ class Guidedhelp(BaseSDK):
|
|
1383
1383
|
config=self.sdk_configuration,
|
1384
1384
|
base_url=base_url or "",
|
1385
1385
|
operation_id="stepGHSearch",
|
1386
|
-
oauth2_scopes=
|
1386
|
+
oauth2_scopes=None,
|
1387
1387
|
security_source=get_security_from_env(
|
1388
1388
|
self.sdk_configuration.security, models.Security
|
1389
1389
|
),
|
@@ -1544,7 +1544,7 @@ class Guidedhelp(BaseSDK):
|
|
1544
1544
|
config=self.sdk_configuration,
|
1545
1545
|
base_url=base_url or "",
|
1546
1546
|
operation_id="stepGHSearch",
|
1547
|
-
oauth2_scopes=
|
1547
|
+
oauth2_scopes=None,
|
1548
1548
|
security_source=get_security_from_env(
|
1549
1549
|
self.sdk_configuration.security, models.Security
|
1550
1550
|
),
|
@@ -1673,7 +1673,7 @@ class Guidedhelp(BaseSDK):
|
|
1673
1673
|
config=self.sdk_configuration,
|
1674
1674
|
base_url=base_url or "",
|
1675
1675
|
operation_id="getAllCases",
|
1676
|
-
oauth2_scopes=
|
1676
|
+
oauth2_scopes=None,
|
1677
1677
|
security_source=get_security_from_env(
|
1678
1678
|
self.sdk_configuration.security, models.Security
|
1679
1679
|
),
|
@@ -1794,7 +1794,7 @@ class Guidedhelp(BaseSDK):
|
|
1794
1794
|
config=self.sdk_configuration,
|
1795
1795
|
base_url=base_url or "",
|
1796
1796
|
operation_id="getAllCases",
|
1797
|
-
oauth2_scopes=
|
1797
|
+
oauth2_scopes=None,
|
1798
1798
|
security_source=get_security_from_env(
|
1799
1799
|
self.sdk_configuration.security, models.Security
|
1800
1800
|
),
|
@@ -1914,7 +1914,7 @@ class Guidedhelp(BaseSDK):
|
|
1914
1914
|
config=self.sdk_configuration,
|
1915
1915
|
base_url=base_url or "",
|
1916
1916
|
operation_id="getCaseById",
|
1917
|
-
oauth2_scopes=
|
1917
|
+
oauth2_scopes=None,
|
1918
1918
|
security_source=get_security_from_env(
|
1919
1919
|
self.sdk_configuration.security, models.Security
|
1920
1920
|
),
|
@@ -2034,7 +2034,7 @@ class Guidedhelp(BaseSDK):
|
|
2034
2034
|
config=self.sdk_configuration,
|
2035
2035
|
base_url=base_url or "",
|
2036
2036
|
operation_id="getCaseById",
|
2037
|
-
oauth2_scopes=
|
2037
|
+
oauth2_scopes=None,
|
2038
2038
|
security_source=get_security_from_env(
|
2039
2039
|
self.sdk_configuration.security, models.Security
|
2040
2040
|
),
|
@@ -2157,7 +2157,7 @@ class Guidedhelp(BaseSDK):
|
|
2157
2157
|
config=self.sdk_configuration,
|
2158
2158
|
base_url=base_url or "",
|
2159
2159
|
operation_id="acceptGHSolution",
|
2160
|
-
oauth2_scopes=
|
2160
|
+
oauth2_scopes=None,
|
2161
2161
|
security_source=get_security_from_env(
|
2162
2162
|
self.sdk_configuration.security, models.Security
|
2163
2163
|
),
|
@@ -2288,7 +2288,7 @@ class Guidedhelp(BaseSDK):
|
|
2288
2288
|
config=self.sdk_configuration,
|
2289
2289
|
base_url=base_url or "",
|
2290
2290
|
operation_id="acceptGHSolution",
|
2291
|
-
oauth2_scopes=
|
2291
|
+
oauth2_scopes=None,
|
2292
2292
|
security_source=get_security_from_env(
|
2293
2293
|
self.sdk_configuration.security, models.Security
|
2294
2294
|
),
|
@@ -2419,7 +2419,7 @@ class Guidedhelp(BaseSDK):
|
|
2419
2419
|
config=self.sdk_configuration,
|
2420
2420
|
base_url=base_url or "",
|
2421
2421
|
operation_id="rejectGHSolution",
|
2422
|
-
oauth2_scopes=
|
2422
|
+
oauth2_scopes=None,
|
2423
2423
|
security_source=get_security_from_env(
|
2424
2424
|
self.sdk_configuration.security, models.Security
|
2425
2425
|
),
|
@@ -2550,7 +2550,7 @@ class Guidedhelp(BaseSDK):
|
|
2550
2550
|
config=self.sdk_configuration,
|
2551
2551
|
base_url=base_url or "",
|
2552
2552
|
operation_id="rejectGHSolution",
|
2553
|
-
oauth2_scopes=
|
2553
|
+
oauth2_scopes=None,
|
2554
2554
|
security_source=get_security_from_env(
|
2555
2555
|
self.sdk_configuration.security, models.Security
|
2556
2556
|
),
|
@@ -2691,7 +2691,7 @@ class Guidedhelp(BaseSDK):
|
|
2691
2691
|
config=self.sdk_configuration,
|
2692
2692
|
base_url=base_url or "",
|
2693
2693
|
operation_id="createQuickpick",
|
2694
|
-
oauth2_scopes=
|
2694
|
+
oauth2_scopes=None,
|
2695
2695
|
security_source=get_security_from_env(
|
2696
2696
|
self.sdk_configuration.security, models.Security
|
2697
2697
|
),
|
@@ -2832,7 +2832,7 @@ class Guidedhelp(BaseSDK):
|
|
2832
2832
|
config=self.sdk_configuration,
|
2833
2833
|
base_url=base_url or "",
|
2834
2834
|
operation_id="createQuickpick",
|
2835
|
-
oauth2_scopes=
|
2835
|
+
oauth2_scopes=None,
|
2836
2836
|
security_source=get_security_from_env(
|
2837
2837
|
self.sdk_configuration.security, models.Security
|
2838
2838
|
),
|
@@ -2965,7 +2965,7 @@ class Guidedhelp(BaseSDK):
|
|
2965
2965
|
config=self.sdk_configuration,
|
2966
2966
|
base_url=base_url or "",
|
2967
2967
|
operation_id="getAllQuickPicks",
|
2968
|
-
oauth2_scopes=
|
2968
|
+
oauth2_scopes=None,
|
2969
2969
|
security_source=get_security_from_env(
|
2970
2970
|
self.sdk_configuration.security, models.Security
|
2971
2971
|
),
|
@@ -3090,7 +3090,7 @@ class Guidedhelp(BaseSDK):
|
|
3090
3090
|
config=self.sdk_configuration,
|
3091
3091
|
base_url=base_url or "",
|
3092
3092
|
operation_id="getAllQuickPicks",
|
3093
|
-
oauth2_scopes=
|
3093
|
+
oauth2_scopes=None,
|
3094
3094
|
security_source=get_security_from_env(
|
3095
3095
|
self.sdk_configuration.security, models.Security
|
3096
3096
|
),
|
@@ -3205,7 +3205,7 @@ class Guidedhelp(BaseSDK):
|
|
3205
3205
|
config=self.sdk_configuration,
|
3206
3206
|
base_url=base_url or "",
|
3207
3207
|
operation_id="restoreQuickpick",
|
3208
|
-
oauth2_scopes=
|
3208
|
+
oauth2_scopes=None,
|
3209
3209
|
security_source=get_security_from_env(
|
3210
3210
|
self.sdk_configuration.security, models.Security
|
3211
3211
|
),
|
@@ -3328,7 +3328,7 @@ class Guidedhelp(BaseSDK):
|
|
3328
3328
|
config=self.sdk_configuration,
|
3329
3329
|
base_url=base_url or "",
|
3330
3330
|
operation_id="restoreQuickpick",
|
3331
|
-
oauth2_scopes=
|
3331
|
+
oauth2_scopes=None,
|
3332
3332
|
security_source=get_security_from_env(
|
3333
3333
|
self.sdk_configuration.security, models.Security
|
3334
3334
|
),
|
egain_api_python/health.py
CHANGED
@@ -68,9 +68,6 @@ class Health(BaseSDK):
|
|
68
68
|
base_url = server_url
|
69
69
|
else:
|
70
70
|
base_url = models.GET_HEALTH_OP_SERVERS[0]
|
71
|
-
url_variables = {
|
72
|
-
"API_DOMAIN": "api.egain.cloud",
|
73
|
-
}
|
74
71
|
req = self._build_request(
|
75
72
|
method="GET",
|
76
73
|
path="/import/content/health",
|
@@ -100,7 +97,7 @@ class Health(BaseSDK):
|
|
100
97
|
config=self.sdk_configuration,
|
101
98
|
base_url=base_url or "",
|
102
99
|
operation_id="getHealth",
|
103
|
-
oauth2_scopes=
|
100
|
+
oauth2_scopes=None,
|
104
101
|
security_source=get_security_from_env(
|
105
102
|
self.sdk_configuration.security, models.Security
|
106
103
|
),
|
@@ -189,9 +186,6 @@ class Health(BaseSDK):
|
|
189
186
|
base_url = server_url
|
190
187
|
else:
|
191
188
|
base_url = models.GET_HEALTH_OP_SERVERS[0]
|
192
|
-
url_variables = {
|
193
|
-
"API_DOMAIN": "api.egain.cloud",
|
194
|
-
}
|
195
189
|
req = self._build_request_async(
|
196
190
|
method="GET",
|
197
191
|
path="/import/content/health",
|
@@ -221,7 +215,7 @@ class Health(BaseSDK):
|
|
221
215
|
config=self.sdk_configuration,
|
222
216
|
base_url=base_url or "",
|
223
217
|
operation_id="getHealth",
|
224
|
-
oauth2_scopes=
|
218
|
+
oauth2_scopes=None,
|
225
219
|
security_source=get_security_from_env(
|
226
220
|
self.sdk_configuration.security, models.Security
|
227
221
|
),
|
egain_api_python/import_.py
CHANGED
@@ -10,7 +10,7 @@ from typing import Any, Mapping, Optional, Union
|
|
10
10
|
|
11
11
|
|
12
12
|
class Import(BaseSDK):
|
13
|
-
def
|
13
|
+
def create_import_job(
|
14
14
|
self,
|
15
15
|
*,
|
16
16
|
data_source: Union[
|
@@ -24,13 +24,16 @@ class Import(BaseSDK):
|
|
24
24
|
server_url: Optional[str] = None,
|
25
25
|
timeout_ms: Optional[int] = None,
|
26
26
|
http_headers: Optional[Mapping[str, str]] = None,
|
27
|
-
) -> models.
|
28
|
-
r"""Import content from external sources
|
27
|
+
) -> models.CreateImportJobResponse:
|
28
|
+
r"""Import content from external sources by creating an import job
|
29
29
|
|
30
30
|
# Import Content
|
31
31
|
|
32
32
|
## Overview
|
33
|
-
This API initiates a bulk content import operation from
|
33
|
+
This API initiates a bulk content import operation from Data Sources. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.
|
34
|
+
|
35
|
+
## Pre-requisties
|
36
|
+
1. Content in Data Source needs to be in this format: [Guide to Data Import Format](../../../../../developer-portal/guides/ingestion/data-import-format-guide.md)
|
34
37
|
|
35
38
|
## How It Works
|
36
39
|
1. **Job Creation**: The API creates an import job and returns a unique job ID
|
@@ -73,10 +76,7 @@ class Import(BaseSDK):
|
|
73
76
|
if server_url is not None:
|
74
77
|
base_url = server_url
|
75
78
|
else:
|
76
|
-
base_url = models.
|
77
|
-
url_variables = {
|
78
|
-
"API_DOMAIN": "api.egain.cloud",
|
79
|
-
}
|
79
|
+
base_url = models.CREATE_IMPORT_JOB_OP_SERVERS[0]
|
80
80
|
|
81
81
|
request = models.ImportContent(
|
82
82
|
data_source=utils.get_pydantic_model(
|
@@ -119,8 +119,8 @@ class Import(BaseSDK):
|
|
119
119
|
hook_ctx=HookContext(
|
120
120
|
config=self.sdk_configuration,
|
121
121
|
base_url=base_url or "",
|
122
|
-
operation_id="
|
123
|
-
oauth2_scopes=
|
122
|
+
operation_id="createImportJob",
|
123
|
+
oauth2_scopes=None,
|
124
124
|
security_source=get_security_from_env(
|
125
125
|
self.sdk_configuration.security, models.Security
|
126
126
|
),
|
@@ -132,7 +132,7 @@ class Import(BaseSDK):
|
|
132
132
|
|
133
133
|
response_data: Any = None
|
134
134
|
if utils.match_response(http_res, "202", "*"):
|
135
|
-
return models.
|
135
|
+
return models.CreateImportJobResponse(
|
136
136
|
headers=utils.get_response_headers(http_res.headers)
|
137
137
|
)
|
138
138
|
if utils.match_response(
|
@@ -161,7 +161,7 @@ class Import(BaseSDK):
|
|
161
161
|
|
162
162
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
163
163
|
|
164
|
-
async def
|
164
|
+
async def create_import_job_async(
|
165
165
|
self,
|
166
166
|
*,
|
167
167
|
data_source: Union[
|
@@ -175,13 +175,16 @@ class Import(BaseSDK):
|
|
175
175
|
server_url: Optional[str] = None,
|
176
176
|
timeout_ms: Optional[int] = None,
|
177
177
|
http_headers: Optional[Mapping[str, str]] = None,
|
178
|
-
) -> models.
|
179
|
-
r"""Import content from external sources
|
178
|
+
) -> models.CreateImportJobResponse:
|
179
|
+
r"""Import content from external sources by creating an import job
|
180
180
|
|
181
181
|
# Import Content
|
182
182
|
|
183
183
|
## Overview
|
184
|
-
This API initiates a bulk content import operation from
|
184
|
+
This API initiates a bulk content import operation from Data Sources. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.
|
185
|
+
|
186
|
+
## Pre-requisties
|
187
|
+
1. Content in Data Source needs to be in this format: [Guide to Data Import Format](../../../../../developer-portal/guides/ingestion/data-import-format-guide.md)
|
185
188
|
|
186
189
|
## How It Works
|
187
190
|
1. **Job Creation**: The API creates an import job and returns a unique job ID
|
@@ -224,10 +227,7 @@ class Import(BaseSDK):
|
|
224
227
|
if server_url is not None:
|
225
228
|
base_url = server_url
|
226
229
|
else:
|
227
|
-
base_url = models.
|
228
|
-
url_variables = {
|
229
|
-
"API_DOMAIN": "api.egain.cloud",
|
230
|
-
}
|
230
|
+
base_url = models.CREATE_IMPORT_JOB_OP_SERVERS[0]
|
231
231
|
|
232
232
|
request = models.ImportContent(
|
233
233
|
data_source=utils.get_pydantic_model(
|
@@ -270,8 +270,8 @@ class Import(BaseSDK):
|
|
270
270
|
hook_ctx=HookContext(
|
271
271
|
config=self.sdk_configuration,
|
272
272
|
base_url=base_url or "",
|
273
|
-
operation_id="
|
274
|
-
oauth2_scopes=
|
273
|
+
operation_id="createImportJob",
|
274
|
+
oauth2_scopes=None,
|
275
275
|
security_source=get_security_from_env(
|
276
276
|
self.sdk_configuration.security, models.Security
|
277
277
|
),
|
@@ -283,7 +283,7 @@ class Import(BaseSDK):
|
|
283
283
|
|
284
284
|
response_data: Any = None
|
285
285
|
if utils.match_response(http_res, "202", "*"):
|
286
|
-
return models.
|
286
|
+
return models.CreateImportJobResponse(
|
287
287
|
headers=utils.get_response_headers(http_res.headers)
|
288
288
|
)
|
289
289
|
if utils.match_response(
|
@@ -312,7 +312,7 @@ class Import(BaseSDK):
|
|
312
312
|
|
313
313
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
314
314
|
|
315
|
-
def
|
315
|
+
def get_import_status(
|
316
316
|
self,
|
317
317
|
*,
|
318
318
|
job_id: str,
|
@@ -369,12 +369,9 @@ class Import(BaseSDK):
|
|
369
369
|
if server_url is not None:
|
370
370
|
base_url = server_url
|
371
371
|
else:
|
372
|
-
base_url = models.
|
373
|
-
url_variables = {
|
374
|
-
"API_DOMAIN": "api.egain.cloud",
|
375
|
-
}
|
372
|
+
base_url = models.GET_IMPORT_STATUS_OP_SERVERS[0]
|
376
373
|
|
377
|
-
request = models.
|
374
|
+
request = models.GetImportStatusRequest(
|
378
375
|
job_id=job_id,
|
379
376
|
)
|
380
377
|
|
@@ -406,8 +403,8 @@ class Import(BaseSDK):
|
|
406
403
|
hook_ctx=HookContext(
|
407
404
|
config=self.sdk_configuration,
|
408
405
|
base_url=base_url or "",
|
409
|
-
operation_id="
|
410
|
-
oauth2_scopes=
|
406
|
+
operation_id="getImportStatus",
|
407
|
+
oauth2_scopes=None,
|
411
408
|
security_source=get_security_from_env(
|
412
409
|
self.sdk_configuration.security, models.Security
|
413
410
|
),
|
@@ -441,7 +438,7 @@ class Import(BaseSDK):
|
|
441
438
|
|
442
439
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
443
440
|
|
444
|
-
async def
|
441
|
+
async def get_import_status_async(
|
445
442
|
self,
|
446
443
|
*,
|
447
444
|
job_id: str,
|
@@ -498,12 +495,9 @@ class Import(BaseSDK):
|
|
498
495
|
if server_url is not None:
|
499
496
|
base_url = server_url
|
500
497
|
else:
|
501
|
-
base_url = models.
|
502
|
-
url_variables = {
|
503
|
-
"API_DOMAIN": "api.egain.cloud",
|
504
|
-
}
|
498
|
+
base_url = models.GET_IMPORT_STATUS_OP_SERVERS[0]
|
505
499
|
|
506
|
-
request = models.
|
500
|
+
request = models.GetImportStatusRequest(
|
507
501
|
job_id=job_id,
|
508
502
|
)
|
509
503
|
|
@@ -535,8 +529,8 @@ class Import(BaseSDK):
|
|
535
529
|
hook_ctx=HookContext(
|
536
530
|
config=self.sdk_configuration,
|
537
531
|
base_url=base_url or "",
|
538
|
-
operation_id="
|
539
|
-
oauth2_scopes=
|
532
|
+
operation_id="getImportStatus",
|
533
|
+
oauth2_scopes=None,
|
540
534
|
security_source=get_security_from_env(
|
541
535
|
self.sdk_configuration.security, models.Security
|
542
536
|
),
|
@@ -570,7 +564,7 @@ class Import(BaseSDK):
|
|
570
564
|
|
571
565
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
572
566
|
|
573
|
-
def
|
567
|
+
def create_import_validation_job(
|
574
568
|
self,
|
575
569
|
*,
|
576
570
|
data_source: Union[
|
@@ -581,8 +575,8 @@ class Import(BaseSDK):
|
|
581
575
|
server_url: Optional[str] = None,
|
582
576
|
timeout_ms: Optional[int] = None,
|
583
577
|
http_headers: Optional[Mapping[str, str]] = None,
|
584
|
-
) -> models.
|
585
|
-
r"""Validate content structure and format before import
|
578
|
+
) -> models.CreateImportValidationJobResponse:
|
579
|
+
r"""Validate content structure and format before import by creating an import validation job
|
586
580
|
|
587
581
|
# Validate Import Content
|
588
582
|
|
@@ -641,10 +635,7 @@ class Import(BaseSDK):
|
|
641
635
|
if server_url is not None:
|
642
636
|
base_url = server_url
|
643
637
|
else:
|
644
|
-
base_url = models.
|
645
|
-
url_variables = {
|
646
|
-
"API_DOMAIN": "api.egain.cloud",
|
647
|
-
}
|
638
|
+
base_url = models.CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS[0]
|
648
639
|
|
649
640
|
request = models.ValidateImportContent(
|
650
641
|
data_source=utils.get_pydantic_model(
|
@@ -683,8 +674,8 @@ class Import(BaseSDK):
|
|
683
674
|
hook_ctx=HookContext(
|
684
675
|
config=self.sdk_configuration,
|
685
676
|
base_url=base_url or "",
|
686
|
-
operation_id="
|
687
|
-
oauth2_scopes=
|
677
|
+
operation_id="createImportValidationJob",
|
678
|
+
oauth2_scopes=None,
|
688
679
|
security_source=get_security_from_env(
|
689
680
|
self.sdk_configuration.security, models.Security
|
690
681
|
),
|
@@ -696,7 +687,7 @@ class Import(BaseSDK):
|
|
696
687
|
|
697
688
|
response_data: Any = None
|
698
689
|
if utils.match_response(http_res, "202", "*"):
|
699
|
-
return models.
|
690
|
+
return models.CreateImportValidationJobResponse(
|
700
691
|
headers=utils.get_response_headers(http_res.headers)
|
701
692
|
)
|
702
693
|
if utils.match_response(
|
@@ -725,7 +716,7 @@ class Import(BaseSDK):
|
|
725
716
|
|
726
717
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
727
718
|
|
728
|
-
async def
|
719
|
+
async def create_import_validation_job_async(
|
729
720
|
self,
|
730
721
|
*,
|
731
722
|
data_source: Union[
|
@@ -736,8 +727,8 @@ class Import(BaseSDK):
|
|
736
727
|
server_url: Optional[str] = None,
|
737
728
|
timeout_ms: Optional[int] = None,
|
738
729
|
http_headers: Optional[Mapping[str, str]] = None,
|
739
|
-
) -> models.
|
740
|
-
r"""Validate content structure and format before import
|
730
|
+
) -> models.CreateImportValidationJobResponse:
|
731
|
+
r"""Validate content structure and format before import by creating an import validation job
|
741
732
|
|
742
733
|
# Validate Import Content
|
743
734
|
|
@@ -796,10 +787,7 @@ class Import(BaseSDK):
|
|
796
787
|
if server_url is not None:
|
797
788
|
base_url = server_url
|
798
789
|
else:
|
799
|
-
base_url = models.
|
800
|
-
url_variables = {
|
801
|
-
"API_DOMAIN": "api.egain.cloud",
|
802
|
-
}
|
790
|
+
base_url = models.CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS[0]
|
803
791
|
|
804
792
|
request = models.ValidateImportContent(
|
805
793
|
data_source=utils.get_pydantic_model(
|
@@ -838,8 +826,8 @@ class Import(BaseSDK):
|
|
838
826
|
hook_ctx=HookContext(
|
839
827
|
config=self.sdk_configuration,
|
840
828
|
base_url=base_url or "",
|
841
|
-
operation_id="
|
842
|
-
oauth2_scopes=
|
829
|
+
operation_id="createImportValidationJob",
|
830
|
+
oauth2_scopes=None,
|
843
831
|
security_source=get_security_from_env(
|
844
832
|
self.sdk_configuration.security, models.Security
|
845
833
|
),
|
@@ -851,7 +839,7 @@ class Import(BaseSDK):
|
|
851
839
|
|
852
840
|
response_data: Any = None
|
853
841
|
if utils.match_response(http_res, "202", "*"):
|
854
|
-
return models.
|
842
|
+
return models.CreateImportValidationJobResponse(
|
855
843
|
headers=utils.get_response_headers(http_res.headers)
|
856
844
|
)
|
857
845
|
if utils.match_response(
|
@@ -880,7 +868,7 @@ class Import(BaseSDK):
|
|
880
868
|
|
881
869
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
882
870
|
|
883
|
-
def
|
871
|
+
def cancel_import(
|
884
872
|
self,
|
885
873
|
*,
|
886
874
|
job_id: str,
|
@@ -948,12 +936,9 @@ class Import(BaseSDK):
|
|
948
936
|
if server_url is not None:
|
949
937
|
base_url = server_url
|
950
938
|
else:
|
951
|
-
base_url = models.
|
952
|
-
url_variables = {
|
953
|
-
"API_DOMAIN": "api.egain.cloud",
|
954
|
-
}
|
939
|
+
base_url = models.CANCEL_IMPORT_OP_SERVERS[0]
|
955
940
|
|
956
|
-
request = models.
|
941
|
+
request = models.CancelImportRequest(
|
957
942
|
job_id=job_id,
|
958
943
|
)
|
959
944
|
|
@@ -985,8 +970,8 @@ class Import(BaseSDK):
|
|
985
970
|
hook_ctx=HookContext(
|
986
971
|
config=self.sdk_configuration,
|
987
972
|
base_url=base_url or "",
|
988
|
-
operation_id="
|
989
|
-
oauth2_scopes=
|
973
|
+
operation_id="cancelImport",
|
974
|
+
oauth2_scopes=None,
|
990
975
|
security_source=get_security_from_env(
|
991
976
|
self.sdk_configuration.security, models.Security
|
992
977
|
),
|
@@ -1020,7 +1005,7 @@ class Import(BaseSDK):
|
|
1020
1005
|
|
1021
1006
|
raise errors.EgainDefaultError("Unexpected response received", http_res)
|
1022
1007
|
|
1023
|
-
async def
|
1008
|
+
async def cancel_import_async(
|
1024
1009
|
self,
|
1025
1010
|
*,
|
1026
1011
|
job_id: str,
|
@@ -1088,12 +1073,9 @@ class Import(BaseSDK):
|
|
1088
1073
|
if server_url is not None:
|
1089
1074
|
base_url = server_url
|
1090
1075
|
else:
|
1091
|
-
base_url = models.
|
1092
|
-
url_variables = {
|
1093
|
-
"API_DOMAIN": "api.egain.cloud",
|
1094
|
-
}
|
1076
|
+
base_url = models.CANCEL_IMPORT_OP_SERVERS[0]
|
1095
1077
|
|
1096
|
-
request = models.
|
1078
|
+
request = models.CancelImportRequest(
|
1097
1079
|
job_id=job_id,
|
1098
1080
|
)
|
1099
1081
|
|
@@ -1125,8 +1107,8 @@ class Import(BaseSDK):
|
|
1125
1107
|
hook_ctx=HookContext(
|
1126
1108
|
config=self.sdk_configuration,
|
1127
1109
|
base_url=base_url or "",
|
1128
|
-
operation_id="
|
1129
|
-
oauth2_scopes=
|
1110
|
+
operation_id="cancelImport",
|
1111
|
+
oauth2_scopes=None,
|
1130
1112
|
security_source=get_security_from_env(
|
1131
1113
|
self.sdk_configuration.security, models.Security
|
1132
1114
|
),
|