1717from typing_extensions import Annotated
1818
1919from pydantic import StrictStr
20+ from typing import Optional
2021from vectorize_client .models .ai_platform_connector import AIPlatformConnector
2122from vectorize_client .models .create_ai_platform_connector_request import CreateAIPlatformConnectorRequest
2223from vectorize_client .models .create_ai_platform_connector_response import CreateAIPlatformConnectorResponse
@@ -48,6 +49,7 @@ def create_ai_platform_connector(
4849 self ,
4950 organization_id : StrictStr ,
5051 create_ai_platform_connector_request : CreateAIPlatformConnectorRequest ,
52+ workspace_id : Optional [StrictStr ] = None ,
5153 _request_timeout : Union [
5254 None ,
5355 Annotated [StrictFloat , Field (gt = 0 )],
@@ -69,6 +71,8 @@ def create_ai_platform_connector(
6971 :type organization_id: str
7072 :param create_ai_platform_connector_request: (required)
7173 :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest
74+ :param workspace_id:
75+ :type workspace_id: str
7276 :param _request_timeout: timeout setting for this request. If one
7377 number provided, it will be total request
7478 timeout. It can also be a pair (tuple) of
@@ -94,6 +98,7 @@ def create_ai_platform_connector(
9498 _param = self ._create_ai_platform_connector_serialize (
9599 organization_id = organization_id ,
96100 create_ai_platform_connector_request = create_ai_platform_connector_request ,
101+ workspace_id = workspace_id ,
97102 _request_auth = _request_auth ,
98103 _content_type = _content_type ,
99104 _headers = _headers ,
@@ -124,6 +129,7 @@ def create_ai_platform_connector_with_http_info(
124129 self ,
125130 organization_id : StrictStr ,
126131 create_ai_platform_connector_request : CreateAIPlatformConnectorRequest ,
132+ workspace_id : Optional [StrictStr ] = None ,
127133 _request_timeout : Union [
128134 None ,
129135 Annotated [StrictFloat , Field (gt = 0 )],
@@ -145,6 +151,8 @@ def create_ai_platform_connector_with_http_info(
145151 :type organization_id: str
146152 :param create_ai_platform_connector_request: (required)
147153 :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest
154+ :param workspace_id:
155+ :type workspace_id: str
148156 :param _request_timeout: timeout setting for this request. If one
149157 number provided, it will be total request
150158 timeout. It can also be a pair (tuple) of
@@ -170,6 +178,7 @@ def create_ai_platform_connector_with_http_info(
170178 _param = self ._create_ai_platform_connector_serialize (
171179 organization_id = organization_id ,
172180 create_ai_platform_connector_request = create_ai_platform_connector_request ,
181+ workspace_id = workspace_id ,
173182 _request_auth = _request_auth ,
174183 _content_type = _content_type ,
175184 _headers = _headers ,
@@ -200,6 +209,7 @@ def create_ai_platform_connector_without_preload_content(
200209 self ,
201210 organization_id : StrictStr ,
202211 create_ai_platform_connector_request : CreateAIPlatformConnectorRequest ,
212+ workspace_id : Optional [StrictStr ] = None ,
203213 _request_timeout : Union [
204214 None ,
205215 Annotated [StrictFloat , Field (gt = 0 )],
@@ -221,6 +231,8 @@ def create_ai_platform_connector_without_preload_content(
221231 :type organization_id: str
222232 :param create_ai_platform_connector_request: (required)
223233 :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest
234+ :param workspace_id:
235+ :type workspace_id: str
224236 :param _request_timeout: timeout setting for this request. If one
225237 number provided, it will be total request
226238 timeout. It can also be a pair (tuple) of
@@ -246,6 +258,7 @@ def create_ai_platform_connector_without_preload_content(
246258 _param = self ._create_ai_platform_connector_serialize (
247259 organization_id = organization_id ,
248260 create_ai_platform_connector_request = create_ai_platform_connector_request ,
261+ workspace_id = workspace_id ,
249262 _request_auth = _request_auth ,
250263 _content_type = _content_type ,
251264 _headers = _headers ,
@@ -271,6 +284,7 @@ def _create_ai_platform_connector_serialize(
271284 self ,
272285 organization_id ,
273286 create_ai_platform_connector_request ,
287+ workspace_id ,
274288 _request_auth ,
275289 _content_type ,
276290 _headers ,
@@ -295,6 +309,10 @@ def _create_ai_platform_connector_serialize(
295309 if organization_id is not None :
296310 _path_params ['organizationId' ] = organization_id
297311 # process the query parameters
312+ if workspace_id is not None :
313+
314+ _query_params .append (('workspaceId' , workspace_id ))
315+
298316 # process the header parameters
299317 # process the form parameters
300318 # process the body parameter
@@ -933,6 +951,7 @@ def _get_ai_platform_connector_serialize(
933951 def get_ai_platform_connectors (
934952 self ,
935953 organization_id : StrictStr ,
954+ workspace_id : Optional [StrictStr ] = None ,
936955 _request_timeout : Union [
937956 None ,
938957 Annotated [StrictFloat , Field (gt = 0 )],
@@ -952,6 +971,8 @@ def get_ai_platform_connectors(
952971
953972 :param organization_id: (required)
954973 :type organization_id: str
974+ :param workspace_id:
975+ :type workspace_id: str
955976 :param _request_timeout: timeout setting for this request. If one
956977 number provided, it will be total request
957978 timeout. It can also be a pair (tuple) of
@@ -976,6 +997,7 @@ def get_ai_platform_connectors(
976997
977998 _param = self ._get_ai_platform_connectors_serialize (
978999 organization_id = organization_id ,
1000+ workspace_id = workspace_id ,
9791001 _request_auth = _request_auth ,
9801002 _content_type = _content_type ,
9811003 _headers = _headers ,
@@ -1005,6 +1027,7 @@ def get_ai_platform_connectors(
10051027 def get_ai_platform_connectors_with_http_info (
10061028 self ,
10071029 organization_id : StrictStr ,
1030+ workspace_id : Optional [StrictStr ] = None ,
10081031 _request_timeout : Union [
10091032 None ,
10101033 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1024,6 +1047,8 @@ def get_ai_platform_connectors_with_http_info(
10241047
10251048 :param organization_id: (required)
10261049 :type organization_id: str
1050+ :param workspace_id:
1051+ :type workspace_id: str
10271052 :param _request_timeout: timeout setting for this request. If one
10281053 number provided, it will be total request
10291054 timeout. It can also be a pair (tuple) of
@@ -1048,6 +1073,7 @@ def get_ai_platform_connectors_with_http_info(
10481073
10491074 _param = self ._get_ai_platform_connectors_serialize (
10501075 organization_id = organization_id ,
1076+ workspace_id = workspace_id ,
10511077 _request_auth = _request_auth ,
10521078 _content_type = _content_type ,
10531079 _headers = _headers ,
@@ -1077,6 +1103,7 @@ def get_ai_platform_connectors_with_http_info(
10771103 def get_ai_platform_connectors_without_preload_content (
10781104 self ,
10791105 organization_id : StrictStr ,
1106+ workspace_id : Optional [StrictStr ] = None ,
10801107 _request_timeout : Union [
10811108 None ,
10821109 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1096,6 +1123,8 @@ def get_ai_platform_connectors_without_preload_content(
10961123
10971124 :param organization_id: (required)
10981125 :type organization_id: str
1126+ :param workspace_id:
1127+ :type workspace_id: str
10991128 :param _request_timeout: timeout setting for this request. If one
11001129 number provided, it will be total request
11011130 timeout. It can also be a pair (tuple) of
@@ -1120,6 +1149,7 @@ def get_ai_platform_connectors_without_preload_content(
11201149
11211150 _param = self ._get_ai_platform_connectors_serialize (
11221151 organization_id = organization_id ,
1152+ workspace_id = workspace_id ,
11231153 _request_auth = _request_auth ,
11241154 _content_type = _content_type ,
11251155 _headers = _headers ,
@@ -1144,6 +1174,7 @@ def get_ai_platform_connectors_without_preload_content(
11441174 def _get_ai_platform_connectors_serialize (
11451175 self ,
11461176 organization_id ,
1177+ workspace_id ,
11471178 _request_auth ,
11481179 _content_type ,
11491180 _headers ,
@@ -1168,6 +1199,10 @@ def _get_ai_platform_connectors_serialize(
11681199 if organization_id is not None :
11691200 _path_params ['organizationId' ] = organization_id
11701201 # process the query parameters
1202+ if workspace_id is not None :
1203+
1204+ _query_params .append (('workspaceId' , workspace_id ))
1205+
11711206 # process the header parameters
11721207 # process the form parameters
11731208 # process the body parameter
0 commit comments