rapidata 1.10.1__py3-none-any.whl → 2.1.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 rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +22 -17
- rapidata/api_client/__init__.py +16 -5
- rapidata/api_client/api/coco_api.py +14 -29
- rapidata/api_client/api/dataset_api.py +6 -6
- rapidata/api_client/api/identity_api.py +3 -3
- rapidata/api_client/api/pipeline_api.py +1008 -95
- rapidata/api_client/api/rapid_api.py +6 -6
- rapidata/api_client/api/validation_api.py +12 -42
- rapidata/api_client/models/__init__.py +16 -5
- rapidata/api_client/models/add_campaign_model.py +5 -5
- rapidata/api_client/models/add_validation_text_rapid_model.py +1 -1
- rapidata/api_client/models/age_group.py +5 -4
- rapidata/api_client/models/base_error.py +1 -4
- rapidata/api_client/models/compare_workflow_config.py +9 -24
- rapidata/api_client/models/compare_workflow_config_model.py +9 -29
- rapidata/api_client/models/compare_workflow_config_model_pair_maker_config.py +140 -0
- rapidata/api_client/models/compare_workflow_config_pair_maker_config.py +140 -0
- rapidata/api_client/models/compare_workflow_model.py +7 -3
- rapidata/api_client/models/compare_workflow_model1.py +7 -3
- rapidata/api_client/models/compare_workflow_model1_pair_maker_information.py +140 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +140 -0
- rapidata/api_client/models/create_order_model.py +4 -2
- rapidata/api_client/models/create_order_model_user_filters_inner.py +25 -11
- rapidata/api_client/models/custom_user_filter_model.py +98 -0
- rapidata/api_client/models/file_asset_model_metadata_inner.py +8 -22
- rapidata/api_client/models/get_classify_workflow_result_overview_result.py +144 -0
- rapidata/api_client/models/get_pipeline_by_id_result.py +13 -3
- rapidata/api_client/models/identity_read_bridge_token_get202_response.py +140 -0
- rapidata/api_client/models/not_available_yet_result.py +96 -0
- rapidata/api_client/models/online_pair_maker_config.py +98 -0
- rapidata/api_client/models/online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/online_pair_maker_information.py +100 -0
- rapidata/api_client/models/pipeline_id_workflow_put_request.py +140 -0
- rapidata/api_client/models/pre_arranged_pair_maker_config.py +100 -0
- rapidata/api_client/models/pre_arranged_pair_maker_config_model.py +96 -0
- rapidata/api_client/models/pre_arranged_pair_maker_information.py +102 -0
- rapidata/api_client/models/read_bridge_token_keys_result.py +11 -2
- rapidata/api_client/models/simple_workflow_config.py +7 -26
- rapidata/api_client/models/simple_workflow_config_model.py +4 -28
- rapidata/api_client/models/simple_workflow_get_result_overview_get200_response.py +16 -16
- rapidata/api_client/models/simple_workflow_model1.py +3 -3
- rapidata/api_client/models/update_campaign_model.py +99 -0
- rapidata/api_client/models/validation_import_post_request_blueprint.py +1 -1
- rapidata/api_client_README.md +21 -7
- rapidata/rapidata_client/__init__.py +20 -10
- rapidata/rapidata_client/assets/__init__.py +5 -4
- rapidata/rapidata_client/assets/{media_asset.py → _media_asset.py} +32 -11
- rapidata/rapidata_client/assets/{multi_asset.py → _multi_asset.py} +1 -1
- rapidata/rapidata_client/assets/{text_asset.py → _text_asset.py} +1 -1
- rapidata/rapidata_client/assets/data_type_enum.py +7 -0
- rapidata/rapidata_client/filter/__init__.py +2 -1
- rapidata/rapidata_client/filter/_base_filter.py +10 -0
- rapidata/rapidata_client/filter/age_filter.py +12 -5
- rapidata/rapidata_client/filter/campaign_filter.py +12 -3
- rapidata/rapidata_client/filter/country_filter.py +10 -3
- rapidata/rapidata_client/filter/custom_filter.py +29 -0
- rapidata/rapidata_client/filter/gender_filter.py +12 -5
- rapidata/rapidata_client/filter/language_filter.py +14 -3
- rapidata/rapidata_client/filter/models/age_group.py +26 -0
- rapidata/rapidata_client/filter/models/gender.py +19 -0
- rapidata/rapidata_client/filter/rapidata_filters.py +35 -0
- rapidata/rapidata_client/filter/user_score_filter.py +20 -4
- rapidata/rapidata_client/metadata/__init__.py +5 -5
- rapidata/rapidata_client/metadata/{base_metadata.py → _base_metadata.py} +2 -1
- rapidata/rapidata_client/metadata/{private_text_metadata.py → _private_text_metadata.py} +2 -2
- rapidata/rapidata_client/metadata/{prompt_metadata.py → _prompt_metadata.py} +3 -2
- rapidata/rapidata_client/metadata/{public_text_metadata.py → _public_text_metadata.py} +2 -2
- rapidata/rapidata_client/metadata/{select_words_metadata.py → _select_words_metadata.py} +3 -2
- rapidata/rapidata_client/{dataset/rapidata_dataset.py → order/_rapidata_dataset.py} +7 -8
- rapidata/rapidata_client/order/_rapidata_order_builder.py +365 -0
- rapidata/rapidata_client/order/rapidata_order.py +50 -32
- rapidata/rapidata_client/order/rapidata_order_manager.py +461 -0
- rapidata/rapidata_client/rapidata_client.py +12 -201
- rapidata/rapidata_client/referee/__init__.py +3 -3
- rapidata/rapidata_client/referee/{base_referee.py → _base_referee.py} +3 -3
- rapidata/rapidata_client/referee/{early_stopping_referee.py → _early_stopping_referee.py} +14 -11
- rapidata/rapidata_client/referee/{naive_referee.py → _naive_referee.py} +9 -9
- rapidata/rapidata_client/selection/__init__.py +1 -1
- rapidata/rapidata_client/{filter/base_filter.py → selection/_base_selection.py} +2 -2
- rapidata/rapidata_client/selection/capped_selection.py +15 -5
- rapidata/rapidata_client/selection/conditional_validation_selection.py +17 -4
- rapidata/rapidata_client/selection/demographic_selection.py +18 -7
- rapidata/rapidata_client/selection/labeling_selection.py +10 -3
- rapidata/rapidata_client/selection/rapidata_selections.py +21 -0
- rapidata/rapidata_client/selection/validation_selection.py +11 -4
- rapidata/rapidata_client/settings/__init__.py +9 -2
- rapidata/rapidata_client/settings/_rapidata_setting.py +11 -0
- rapidata/rapidata_client/settings/alert_on_fast_response.py +21 -0
- rapidata/rapidata_client/settings/custom_setting.py +16 -0
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +16 -0
- rapidata/rapidata_client/settings/models/__init__.py +1 -0
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +14 -0
- rapidata/rapidata_client/settings/no_shuffle.py +16 -0
- rapidata/rapidata_client/settings/play_video_until_the_end.py +16 -0
- rapidata/rapidata_client/settings/rapidata_settings.py +31 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +18 -0
- rapidata/rapidata_client/validation/__init__.py +1 -0
- rapidata/rapidata_client/{dataset/validation_rapid_parts.py → validation/_validation_rapid_parts.py} +7 -6
- rapidata/rapidata_client/validation/_validation_set_builder.py +371 -0
- rapidata/rapidata_client/{dataset → validation}/rapidata_validation_set.py +54 -50
- rapidata/rapidata_client/validation/rapids/__init__.py +1 -0
- rapidata/rapidata_client/validation/rapids/box.py +17 -0
- rapidata/rapidata_client/validation/rapids/rapids.py +94 -0
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +163 -0
- rapidata/rapidata_client/validation/validation_set_manager.py +338 -0
- rapidata/rapidata_client/workflow/__init__.py +8 -6
- rapidata/rapidata_client/workflow/_base_workflow.py +25 -0
- rapidata/rapidata_client/workflow/{classify_workflow.py → _classify_workflow.py} +6 -6
- rapidata/rapidata_client/workflow/{compare_workflow.py → _compare_workflow.py} +10 -16
- rapidata/rapidata_client/workflow/_draw_workflow.py +22 -0
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +26 -0
- rapidata/rapidata_client/workflow/{free_text_workflow.py → _free_text_workflow.py} +10 -16
- rapidata/rapidata_client/workflow/_locate_workflow.py +22 -0
- rapidata/rapidata_client/workflow/{select_words_workflow.py → _select_words_workflow.py} +2 -8
- rapidata/service/credential_manager.py +11 -1
- rapidata/service/openapi_service.py +23 -4
- {rapidata-1.10.1.dist-info → rapidata-2.1.0.dist-info}/METADATA +2 -1
- {rapidata-1.10.1.dist-info → rapidata-2.1.0.dist-info}/RECORD +122 -96
- rapidata/constants.py +0 -1
- rapidata/rapidata_client/dataset/rapid_builders/__init__.py +0 -4
- rapidata/rapidata_client/dataset/rapid_builders/base_rapid_builder.py +0 -33
- rapidata/rapidata_client/dataset/rapid_builders/classify_rapid_builders.py +0 -166
- rapidata/rapidata_client/dataset/rapid_builders/compare_rapid_builders.py +0 -145
- rapidata/rapidata_client/dataset/rapid_builders/rapids.py +0 -33
- rapidata/rapidata_client/dataset/rapid_builders/select_words_rapid_builders.py +0 -124
- rapidata/rapidata_client/dataset/validation_set_builder.py +0 -336
- rapidata/rapidata_client/order/order_builder.py +0 -25
- rapidata/rapidata_client/order/rapidata_order_builder.py +0 -463
- rapidata/rapidata_client/selection/base_selection.py +0 -9
- rapidata/rapidata_client/settings/feature_flags.py +0 -125
- rapidata/rapidata_client/settings/settings.py +0 -124
- rapidata/rapidata_client/simple_builders/__init__.py +0 -0
- rapidata/rapidata_client/simple_builders/simple_classification_builders.py +0 -271
- rapidata/rapidata_client/simple_builders/simple_compare_builders.py +0 -267
- rapidata/rapidata_client/simple_builders/simple_free_text_builders.py +0 -192
- rapidata/rapidata_client/simple_builders/simple_select_words_builders.py +0 -196
- rapidata/rapidata_client/workflow/base_workflow.py +0 -42
- rapidata/rapidata_client/workflow/evaluation_workflow.py +0 -15
- /rapidata/rapidata_client/assets/{base_asset.py → _base_asset.py} +0 -0
- /rapidata/rapidata_client/{dataset → filter/models}/__init__.py +0 -0
- {rapidata-1.10.1.dist-info → rapidata-2.1.0.dist-info}/LICENSE +0 -0
- {rapidata-1.10.1.dist-info → rapidata-2.1.0.dist-info}/WHEEL +0 -0
|
@@ -22,7 +22,8 @@ from typing_extensions import Annotated
|
|
|
22
22
|
from rapidata.api_client.models.add_campaign_artifact_result import AddCampaignArtifactResult
|
|
23
23
|
from rapidata.api_client.models.add_campaign_model import AddCampaignModel
|
|
24
24
|
from rapidata.api_client.models.get_pipeline_by_id_result import GetPipelineByIdResult
|
|
25
|
-
from rapidata.api_client.models.
|
|
25
|
+
from rapidata.api_client.models.pipeline_id_workflow_put_request import PipelineIdWorkflowPutRequest
|
|
26
|
+
from rapidata.api_client.models.update_campaign_model import UpdateCampaignModel
|
|
26
27
|
|
|
27
28
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
28
29
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -43,9 +44,11 @@ class PipelineApi:
|
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
@validate_call
|
|
46
|
-
def
|
|
47
|
+
def pipeline_id_campaign_artifact_id_put(
|
|
47
48
|
self,
|
|
48
|
-
|
|
49
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
50
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
51
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
49
52
|
_request_timeout: Union[
|
|
50
53
|
None,
|
|
51
54
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -58,12 +61,16 @@ class PipelineApi:
|
|
|
58
61
|
_content_type: Optional[StrictStr] = None,
|
|
59
62
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
63
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
-
) ->
|
|
62
|
-
"""
|
|
64
|
+
) -> None:
|
|
65
|
+
"""Updates a specific campaign for a pipeline.
|
|
63
66
|
|
|
64
67
|
|
|
65
|
-
:param
|
|
66
|
-
:type
|
|
68
|
+
:param id: The id of the pipeline to update. (required)
|
|
69
|
+
:type id: str
|
|
70
|
+
:param artifact_id: The id of the campaign artifact to update. (required)
|
|
71
|
+
:type artifact_id: str
|
|
72
|
+
:param update_campaign_model: The new campaign settings.
|
|
73
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
67
74
|
:param _request_timeout: timeout setting for this request. If one
|
|
68
75
|
number provided, it will be total request
|
|
69
76
|
timeout. It can also be a pair (tuple) of
|
|
@@ -86,8 +93,10 @@ class PipelineApi:
|
|
|
86
93
|
:return: Returns the result object.
|
|
87
94
|
""" # noqa: E501
|
|
88
95
|
|
|
89
|
-
_param = self.
|
|
90
|
-
|
|
96
|
+
_param = self._pipeline_id_campaign_artifact_id_put_serialize(
|
|
97
|
+
id=id,
|
|
98
|
+
artifact_id=artifact_id,
|
|
99
|
+
update_campaign_model=update_campaign_model,
|
|
91
100
|
_request_auth=_request_auth,
|
|
92
101
|
_content_type=_content_type,
|
|
93
102
|
_headers=_headers,
|
|
@@ -95,7 +104,7 @@ class PipelineApi:
|
|
|
95
104
|
)
|
|
96
105
|
|
|
97
106
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
-
'
|
|
107
|
+
'204': None,
|
|
99
108
|
}
|
|
100
109
|
response_data = self.api_client.call_api(
|
|
101
110
|
*_param,
|
|
@@ -109,9 +118,11 @@ class PipelineApi:
|
|
|
109
118
|
|
|
110
119
|
|
|
111
120
|
@validate_call
|
|
112
|
-
def
|
|
121
|
+
def pipeline_id_campaign_artifact_id_put_with_http_info(
|
|
113
122
|
self,
|
|
114
|
-
|
|
123
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
124
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
125
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
115
126
|
_request_timeout: Union[
|
|
116
127
|
None,
|
|
117
128
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -124,12 +135,16 @@ class PipelineApi:
|
|
|
124
135
|
_content_type: Optional[StrictStr] = None,
|
|
125
136
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
137
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
-
) -> ApiResponse[
|
|
128
|
-
"""
|
|
138
|
+
) -> ApiResponse[None]:
|
|
139
|
+
"""Updates a specific campaign for a pipeline.
|
|
129
140
|
|
|
130
141
|
|
|
131
|
-
:param
|
|
132
|
-
:type
|
|
142
|
+
:param id: The id of the pipeline to update. (required)
|
|
143
|
+
:type id: str
|
|
144
|
+
:param artifact_id: The id of the campaign artifact to update. (required)
|
|
145
|
+
:type artifact_id: str
|
|
146
|
+
:param update_campaign_model: The new campaign settings.
|
|
147
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
133
148
|
:param _request_timeout: timeout setting for this request. If one
|
|
134
149
|
number provided, it will be total request
|
|
135
150
|
timeout. It can also be a pair (tuple) of
|
|
@@ -152,8 +167,10 @@ class PipelineApi:
|
|
|
152
167
|
:return: Returns the result object.
|
|
153
168
|
""" # noqa: E501
|
|
154
169
|
|
|
155
|
-
_param = self.
|
|
156
|
-
|
|
170
|
+
_param = self._pipeline_id_campaign_artifact_id_put_serialize(
|
|
171
|
+
id=id,
|
|
172
|
+
artifact_id=artifact_id,
|
|
173
|
+
update_campaign_model=update_campaign_model,
|
|
157
174
|
_request_auth=_request_auth,
|
|
158
175
|
_content_type=_content_type,
|
|
159
176
|
_headers=_headers,
|
|
@@ -161,7 +178,7 @@ class PipelineApi:
|
|
|
161
178
|
)
|
|
162
179
|
|
|
163
180
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
-
'
|
|
181
|
+
'204': None,
|
|
165
182
|
}
|
|
166
183
|
response_data = self.api_client.call_api(
|
|
167
184
|
*_param,
|
|
@@ -175,9 +192,11 @@ class PipelineApi:
|
|
|
175
192
|
|
|
176
193
|
|
|
177
194
|
@validate_call
|
|
178
|
-
def
|
|
195
|
+
def pipeline_id_campaign_artifact_id_put_without_preload_content(
|
|
179
196
|
self,
|
|
180
|
-
|
|
197
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
198
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
199
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
181
200
|
_request_timeout: Union[
|
|
182
201
|
None,
|
|
183
202
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -191,11 +210,15 @@ class PipelineApi:
|
|
|
191
210
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
211
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
212
|
) -> RESTResponseType:
|
|
194
|
-
"""
|
|
213
|
+
"""Updates a specific campaign for a pipeline.
|
|
195
214
|
|
|
196
215
|
|
|
197
|
-
:param
|
|
198
|
-
:type
|
|
216
|
+
:param id: The id of the pipeline to update. (required)
|
|
217
|
+
:type id: str
|
|
218
|
+
:param artifact_id: The id of the campaign artifact to update. (required)
|
|
219
|
+
:type artifact_id: str
|
|
220
|
+
:param update_campaign_model: The new campaign settings.
|
|
221
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
199
222
|
:param _request_timeout: timeout setting for this request. If one
|
|
200
223
|
number provided, it will be total request
|
|
201
224
|
timeout. It can also be a pair (tuple) of
|
|
@@ -218,8 +241,10 @@ class PipelineApi:
|
|
|
218
241
|
:return: Returns the result object.
|
|
219
242
|
""" # noqa: E501
|
|
220
243
|
|
|
221
|
-
_param = self.
|
|
222
|
-
|
|
244
|
+
_param = self._pipeline_id_campaign_artifact_id_put_serialize(
|
|
245
|
+
id=id,
|
|
246
|
+
artifact_id=artifact_id,
|
|
247
|
+
update_campaign_model=update_campaign_model,
|
|
223
248
|
_request_auth=_request_auth,
|
|
224
249
|
_content_type=_content_type,
|
|
225
250
|
_headers=_headers,
|
|
@@ -227,7 +252,7 @@ class PipelineApi:
|
|
|
227
252
|
)
|
|
228
253
|
|
|
229
254
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
230
|
-
'
|
|
255
|
+
'204': None,
|
|
231
256
|
}
|
|
232
257
|
response_data = self.api_client.call_api(
|
|
233
258
|
*_param,
|
|
@@ -236,9 +261,11 @@ class PipelineApi:
|
|
|
236
261
|
return response_data.response
|
|
237
262
|
|
|
238
263
|
|
|
239
|
-
def
|
|
264
|
+
def _pipeline_id_campaign_artifact_id_put_serialize(
|
|
240
265
|
self,
|
|
241
|
-
|
|
266
|
+
id,
|
|
267
|
+
artifact_id,
|
|
268
|
+
update_campaign_model,
|
|
242
269
|
_request_auth,
|
|
243
270
|
_content_type,
|
|
244
271
|
_headers,
|
|
@@ -260,23 +287,18 @@ class PipelineApi:
|
|
|
260
287
|
_body_params: Optional[bytes] = None
|
|
261
288
|
|
|
262
289
|
# process the path parameters
|
|
290
|
+
if id is not None:
|
|
291
|
+
_path_params['id'] = id
|
|
292
|
+
if artifact_id is not None:
|
|
293
|
+
_path_params['artifact-id'] = artifact_id
|
|
263
294
|
# process the query parameters
|
|
264
295
|
# process the header parameters
|
|
265
296
|
# process the form parameters
|
|
266
297
|
# process the body parameter
|
|
267
|
-
if
|
|
268
|
-
_body_params =
|
|
298
|
+
if update_campaign_model is not None:
|
|
299
|
+
_body_params = update_campaign_model
|
|
269
300
|
|
|
270
301
|
|
|
271
|
-
# set the HTTP header `Accept`
|
|
272
|
-
if 'Accept' not in _header_params:
|
|
273
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
274
|
-
[
|
|
275
|
-
'text/plain',
|
|
276
|
-
'application/json',
|
|
277
|
-
'text/json'
|
|
278
|
-
]
|
|
279
|
-
)
|
|
280
302
|
|
|
281
303
|
# set the HTTP header `Content-Type`
|
|
282
304
|
if _content_type:
|
|
@@ -301,8 +323,8 @@ class PipelineApi:
|
|
|
301
323
|
]
|
|
302
324
|
|
|
303
325
|
return self.api_client.param_serialize(
|
|
304
|
-
method='
|
|
305
|
-
resource_path='/
|
|
326
|
+
method='PUT',
|
|
327
|
+
resource_path='/pipeline/{id}/campaign/{artifact-id}',
|
|
306
328
|
path_params=_path_params,
|
|
307
329
|
query_params=_query_params,
|
|
308
330
|
header_params=_header_params,
|
|
@@ -319,9 +341,10 @@ class PipelineApi:
|
|
|
319
341
|
|
|
320
342
|
|
|
321
343
|
@validate_call
|
|
322
|
-
def
|
|
344
|
+
def pipeline_id_campaign_post(
|
|
323
345
|
self,
|
|
324
|
-
id: Annotated[StrictStr, Field(description="The id of the pipeline to
|
|
346
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
347
|
+
add_campaign_model: Optional[AddCampaignModel] = None,
|
|
325
348
|
_request_timeout: Union[
|
|
326
349
|
None,
|
|
327
350
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -334,12 +357,14 @@ class PipelineApi:
|
|
|
334
357
|
_content_type: Optional[StrictStr] = None,
|
|
335
358
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
336
359
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
337
|
-
) ->
|
|
338
|
-
"""
|
|
360
|
+
) -> AddCampaignArtifactResult:
|
|
361
|
+
"""Adds a campaign to a pipeline.
|
|
339
362
|
|
|
340
363
|
|
|
341
|
-
:param id: The id of the pipeline to
|
|
364
|
+
:param id: The id of the pipeline to update (required)
|
|
342
365
|
:type id: str
|
|
366
|
+
:param add_campaign_model:
|
|
367
|
+
:type add_campaign_model: AddCampaignModel
|
|
343
368
|
:param _request_timeout: timeout setting for this request. If one
|
|
344
369
|
number provided, it will be total request
|
|
345
370
|
timeout. It can also be a pair (tuple) of
|
|
@@ -362,8 +387,9 @@ class PipelineApi:
|
|
|
362
387
|
:return: Returns the result object.
|
|
363
388
|
""" # noqa: E501
|
|
364
389
|
|
|
365
|
-
_param = self.
|
|
390
|
+
_param = self._pipeline_id_campaign_post_serialize(
|
|
366
391
|
id=id,
|
|
392
|
+
add_campaign_model=add_campaign_model,
|
|
367
393
|
_request_auth=_request_auth,
|
|
368
394
|
_content_type=_content_type,
|
|
369
395
|
_headers=_headers,
|
|
@@ -371,7 +397,7 @@ class PipelineApi:
|
|
|
371
397
|
)
|
|
372
398
|
|
|
373
399
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
374
|
-
'200': "
|
|
400
|
+
'200': "AddCampaignArtifactResult",
|
|
375
401
|
}
|
|
376
402
|
response_data = self.api_client.call_api(
|
|
377
403
|
*_param,
|
|
@@ -385,9 +411,10 @@ class PipelineApi:
|
|
|
385
411
|
|
|
386
412
|
|
|
387
413
|
@validate_call
|
|
388
|
-
def
|
|
414
|
+
def pipeline_id_campaign_post_with_http_info(
|
|
389
415
|
self,
|
|
390
|
-
id: Annotated[StrictStr, Field(description="The id of the pipeline to
|
|
416
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
417
|
+
add_campaign_model: Optional[AddCampaignModel] = None,
|
|
391
418
|
_request_timeout: Union[
|
|
392
419
|
None,
|
|
393
420
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -400,12 +427,14 @@ class PipelineApi:
|
|
|
400
427
|
_content_type: Optional[StrictStr] = None,
|
|
401
428
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
402
429
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
403
|
-
) -> ApiResponse[
|
|
404
|
-
"""
|
|
430
|
+
) -> ApiResponse[AddCampaignArtifactResult]:
|
|
431
|
+
"""Adds a campaign to a pipeline.
|
|
405
432
|
|
|
406
433
|
|
|
407
|
-
:param id: The id of the pipeline to
|
|
434
|
+
:param id: The id of the pipeline to update (required)
|
|
408
435
|
:type id: str
|
|
436
|
+
:param add_campaign_model:
|
|
437
|
+
:type add_campaign_model: AddCampaignModel
|
|
409
438
|
:param _request_timeout: timeout setting for this request. If one
|
|
410
439
|
number provided, it will be total request
|
|
411
440
|
timeout. It can also be a pair (tuple) of
|
|
@@ -428,8 +457,9 @@ class PipelineApi:
|
|
|
428
457
|
:return: Returns the result object.
|
|
429
458
|
""" # noqa: E501
|
|
430
459
|
|
|
431
|
-
_param = self.
|
|
460
|
+
_param = self._pipeline_id_campaign_post_serialize(
|
|
432
461
|
id=id,
|
|
462
|
+
add_campaign_model=add_campaign_model,
|
|
433
463
|
_request_auth=_request_auth,
|
|
434
464
|
_content_type=_content_type,
|
|
435
465
|
_headers=_headers,
|
|
@@ -437,7 +467,7 @@ class PipelineApi:
|
|
|
437
467
|
)
|
|
438
468
|
|
|
439
469
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
440
|
-
'200': "
|
|
470
|
+
'200': "AddCampaignArtifactResult",
|
|
441
471
|
}
|
|
442
472
|
response_data = self.api_client.call_api(
|
|
443
473
|
*_param,
|
|
@@ -451,9 +481,10 @@ class PipelineApi:
|
|
|
451
481
|
|
|
452
482
|
|
|
453
483
|
@validate_call
|
|
454
|
-
def
|
|
484
|
+
def pipeline_id_campaign_post_without_preload_content(
|
|
455
485
|
self,
|
|
456
|
-
id: Annotated[StrictStr, Field(description="The id of the pipeline to
|
|
486
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
487
|
+
add_campaign_model: Optional[AddCampaignModel] = None,
|
|
457
488
|
_request_timeout: Union[
|
|
458
489
|
None,
|
|
459
490
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -467,11 +498,13 @@ class PipelineApi:
|
|
|
467
498
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
468
499
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
469
500
|
) -> RESTResponseType:
|
|
470
|
-
"""
|
|
501
|
+
"""Adds a campaign to a pipeline.
|
|
471
502
|
|
|
472
503
|
|
|
473
|
-
:param id: The id of the pipeline to
|
|
504
|
+
:param id: The id of the pipeline to update (required)
|
|
474
505
|
:type id: str
|
|
506
|
+
:param add_campaign_model:
|
|
507
|
+
:type add_campaign_model: AddCampaignModel
|
|
475
508
|
:param _request_timeout: timeout setting for this request. If one
|
|
476
509
|
number provided, it will be total request
|
|
477
510
|
timeout. It can also be a pair (tuple) of
|
|
@@ -494,8 +527,9 @@ class PipelineApi:
|
|
|
494
527
|
:return: Returns the result object.
|
|
495
528
|
""" # noqa: E501
|
|
496
529
|
|
|
497
|
-
_param = self.
|
|
530
|
+
_param = self._pipeline_id_campaign_post_serialize(
|
|
498
531
|
id=id,
|
|
532
|
+
add_campaign_model=add_campaign_model,
|
|
499
533
|
_request_auth=_request_auth,
|
|
500
534
|
_content_type=_content_type,
|
|
501
535
|
_headers=_headers,
|
|
@@ -503,7 +537,7 @@ class PipelineApi:
|
|
|
503
537
|
)
|
|
504
538
|
|
|
505
539
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
-
'200': "
|
|
540
|
+
'200': "AddCampaignArtifactResult",
|
|
507
541
|
}
|
|
508
542
|
response_data = self.api_client.call_api(
|
|
509
543
|
*_param,
|
|
@@ -512,9 +546,10 @@ class PipelineApi:
|
|
|
512
546
|
return response_data.response
|
|
513
547
|
|
|
514
548
|
|
|
515
|
-
def
|
|
549
|
+
def _pipeline_id_campaign_post_serialize(
|
|
516
550
|
self,
|
|
517
551
|
id,
|
|
552
|
+
add_campaign_model,
|
|
518
553
|
_request_auth,
|
|
519
554
|
_content_type,
|
|
520
555
|
_headers,
|
|
@@ -542,6 +577,8 @@ class PipelineApi:
|
|
|
542
577
|
# process the header parameters
|
|
543
578
|
# process the form parameters
|
|
544
579
|
# process the body parameter
|
|
580
|
+
if add_campaign_model is not None:
|
|
581
|
+
_body_params = add_campaign_model
|
|
545
582
|
|
|
546
583
|
|
|
547
584
|
# set the HTTP header `Accept`
|
|
@@ -554,6 +591,21 @@ class PipelineApi:
|
|
|
554
591
|
]
|
|
555
592
|
)
|
|
556
593
|
|
|
594
|
+
# set the HTTP header `Content-Type`
|
|
595
|
+
if _content_type:
|
|
596
|
+
_header_params['Content-Type'] = _content_type
|
|
597
|
+
else:
|
|
598
|
+
_default_content_type = (
|
|
599
|
+
self.api_client.select_header_content_type(
|
|
600
|
+
[
|
|
601
|
+
'application/json',
|
|
602
|
+
'text/json',
|
|
603
|
+
'application/*+json'
|
|
604
|
+
]
|
|
605
|
+
)
|
|
606
|
+
)
|
|
607
|
+
if _default_content_type is not None:
|
|
608
|
+
_header_params['Content-Type'] = _default_content_type
|
|
557
609
|
|
|
558
610
|
# authentication setting
|
|
559
611
|
_auth_settings: List[str] = [
|
|
@@ -562,8 +614,8 @@ class PipelineApi:
|
|
|
562
614
|
]
|
|
563
615
|
|
|
564
616
|
return self.api_client.param_serialize(
|
|
565
|
-
method='
|
|
566
|
-
resource_path='/
|
|
617
|
+
method='POST',
|
|
618
|
+
resource_path='/pipeline/{id}/campaign',
|
|
567
619
|
path_params=_path_params,
|
|
568
620
|
query_params=_query_params,
|
|
569
621
|
header_params=_header_params,
|
|
@@ -580,9 +632,10 @@ class PipelineApi:
|
|
|
580
632
|
|
|
581
633
|
|
|
582
634
|
@validate_call
|
|
583
|
-
def
|
|
635
|
+
def pipeline_id_campaign_put(
|
|
584
636
|
self,
|
|
585
|
-
|
|
637
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
638
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
586
639
|
_request_timeout: Union[
|
|
587
640
|
None,
|
|
588
641
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -596,11 +649,13 @@ class PipelineApi:
|
|
|
596
649
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
597
650
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
598
651
|
) -> None:
|
|
599
|
-
"""Updates the
|
|
652
|
+
"""Updates the default campaign for a pipeline.
|
|
600
653
|
|
|
601
654
|
|
|
602
|
-
:param
|
|
603
|
-
:type
|
|
655
|
+
:param id: The id of the pipeline to update. (required)
|
|
656
|
+
:type id: str
|
|
657
|
+
:param update_campaign_model: The new campaign settings.
|
|
658
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
604
659
|
:param _request_timeout: timeout setting for this request. If one
|
|
605
660
|
number provided, it will be total request
|
|
606
661
|
timeout. It can also be a pair (tuple) of
|
|
@@ -623,8 +678,9 @@ class PipelineApi:
|
|
|
623
678
|
:return: Returns the result object.
|
|
624
679
|
""" # noqa: E501
|
|
625
680
|
|
|
626
|
-
_param = self.
|
|
627
|
-
|
|
681
|
+
_param = self._pipeline_id_campaign_put_serialize(
|
|
682
|
+
id=id,
|
|
683
|
+
update_campaign_model=update_campaign_model,
|
|
628
684
|
_request_auth=_request_auth,
|
|
629
685
|
_content_type=_content_type,
|
|
630
686
|
_headers=_headers,
|
|
@@ -632,7 +688,7 @@ class PipelineApi:
|
|
|
632
688
|
)
|
|
633
689
|
|
|
634
690
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
635
|
-
'
|
|
691
|
+
'204': None,
|
|
636
692
|
}
|
|
637
693
|
response_data = self.api_client.call_api(
|
|
638
694
|
*_param,
|
|
@@ -646,9 +702,10 @@ class PipelineApi:
|
|
|
646
702
|
|
|
647
703
|
|
|
648
704
|
@validate_call
|
|
649
|
-
def
|
|
705
|
+
def pipeline_id_campaign_put_with_http_info(
|
|
650
706
|
self,
|
|
651
|
-
|
|
707
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
708
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
652
709
|
_request_timeout: Union[
|
|
653
710
|
None,
|
|
654
711
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -662,11 +719,13 @@ class PipelineApi:
|
|
|
662
719
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
663
720
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
664
721
|
) -> ApiResponse[None]:
|
|
665
|
-
"""Updates the
|
|
722
|
+
"""Updates the default campaign for a pipeline.
|
|
666
723
|
|
|
667
724
|
|
|
668
|
-
:param
|
|
669
|
-
:type
|
|
725
|
+
:param id: The id of the pipeline to update. (required)
|
|
726
|
+
:type id: str
|
|
727
|
+
:param update_campaign_model: The new campaign settings.
|
|
728
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
670
729
|
:param _request_timeout: timeout setting for this request. If one
|
|
671
730
|
number provided, it will be total request
|
|
672
731
|
timeout. It can also be a pair (tuple) of
|
|
@@ -689,8 +748,9 @@ class PipelineApi:
|
|
|
689
748
|
:return: Returns the result object.
|
|
690
749
|
""" # noqa: E501
|
|
691
750
|
|
|
692
|
-
_param = self.
|
|
693
|
-
|
|
751
|
+
_param = self._pipeline_id_campaign_put_serialize(
|
|
752
|
+
id=id,
|
|
753
|
+
update_campaign_model=update_campaign_model,
|
|
694
754
|
_request_auth=_request_auth,
|
|
695
755
|
_content_type=_content_type,
|
|
696
756
|
_headers=_headers,
|
|
@@ -698,7 +758,7 @@ class PipelineApi:
|
|
|
698
758
|
)
|
|
699
759
|
|
|
700
760
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
701
|
-
'
|
|
761
|
+
'204': None,
|
|
702
762
|
}
|
|
703
763
|
response_data = self.api_client.call_api(
|
|
704
764
|
*_param,
|
|
@@ -712,9 +772,10 @@ class PipelineApi:
|
|
|
712
772
|
|
|
713
773
|
|
|
714
774
|
@validate_call
|
|
715
|
-
def
|
|
775
|
+
def pipeline_id_campaign_put_without_preload_content(
|
|
716
776
|
self,
|
|
717
|
-
|
|
777
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
778
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
718
779
|
_request_timeout: Union[
|
|
719
780
|
None,
|
|
720
781
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -728,11 +789,13 @@ class PipelineApi:
|
|
|
728
789
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
729
790
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
730
791
|
) -> RESTResponseType:
|
|
731
|
-
"""Updates the
|
|
792
|
+
"""Updates the default campaign for a pipeline.
|
|
732
793
|
|
|
733
794
|
|
|
734
|
-
:param
|
|
735
|
-
:type
|
|
795
|
+
:param id: The id of the pipeline to update. (required)
|
|
796
|
+
:type id: str
|
|
797
|
+
:param update_campaign_model: The new campaign settings.
|
|
798
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
736
799
|
:param _request_timeout: timeout setting for this request. If one
|
|
737
800
|
number provided, it will be total request
|
|
738
801
|
timeout. It can also be a pair (tuple) of
|
|
@@ -755,8 +818,9 @@ class PipelineApi:
|
|
|
755
818
|
:return: Returns the result object.
|
|
756
819
|
""" # noqa: E501
|
|
757
820
|
|
|
758
|
-
_param = self.
|
|
759
|
-
|
|
821
|
+
_param = self._pipeline_id_campaign_put_serialize(
|
|
822
|
+
id=id,
|
|
823
|
+
update_campaign_model=update_campaign_model,
|
|
760
824
|
_request_auth=_request_auth,
|
|
761
825
|
_content_type=_content_type,
|
|
762
826
|
_headers=_headers,
|
|
@@ -764,7 +828,7 @@ class PipelineApi:
|
|
|
764
828
|
)
|
|
765
829
|
|
|
766
830
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
767
|
-
'
|
|
831
|
+
'204': None,
|
|
768
832
|
}
|
|
769
833
|
response_data = self.api_client.call_api(
|
|
770
834
|
*_param,
|
|
@@ -773,9 +837,10 @@ class PipelineApi:
|
|
|
773
837
|
return response_data.response
|
|
774
838
|
|
|
775
839
|
|
|
776
|
-
def
|
|
840
|
+
def _pipeline_id_campaign_put_serialize(
|
|
777
841
|
self,
|
|
778
|
-
|
|
842
|
+
id,
|
|
843
|
+
update_campaign_model,
|
|
779
844
|
_request_auth,
|
|
780
845
|
_content_type,
|
|
781
846
|
_headers,
|
|
@@ -797,12 +862,14 @@ class PipelineApi:
|
|
|
797
862
|
_body_params: Optional[bytes] = None
|
|
798
863
|
|
|
799
864
|
# process the path parameters
|
|
865
|
+
if id is not None:
|
|
866
|
+
_path_params['id'] = id
|
|
800
867
|
# process the query parameters
|
|
801
868
|
# process the header parameters
|
|
802
869
|
# process the form parameters
|
|
803
870
|
# process the body parameter
|
|
804
|
-
if
|
|
805
|
-
_body_params =
|
|
871
|
+
if update_campaign_model is not None:
|
|
872
|
+
_body_params = update_campaign_model
|
|
806
873
|
|
|
807
874
|
|
|
808
875
|
|
|
@@ -829,8 +896,854 @@ class PipelineApi:
|
|
|
829
896
|
]
|
|
830
897
|
|
|
831
898
|
return self.api_client.param_serialize(
|
|
832
|
-
method='
|
|
833
|
-
resource_path='/
|
|
899
|
+
method='PUT',
|
|
900
|
+
resource_path='/pipeline/{id}/campaign',
|
|
901
|
+
path_params=_path_params,
|
|
902
|
+
query_params=_query_params,
|
|
903
|
+
header_params=_header_params,
|
|
904
|
+
body=_body_params,
|
|
905
|
+
post_params=_form_params,
|
|
906
|
+
files=_files,
|
|
907
|
+
auth_settings=_auth_settings,
|
|
908
|
+
collection_formats=_collection_formats,
|
|
909
|
+
_host=_host,
|
|
910
|
+
_request_auth=_request_auth
|
|
911
|
+
)
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
@validate_call
|
|
917
|
+
def pipeline_id_get(
|
|
918
|
+
self,
|
|
919
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to get.")],
|
|
920
|
+
_request_timeout: Union[
|
|
921
|
+
None,
|
|
922
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
923
|
+
Tuple[
|
|
924
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
925
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
926
|
+
]
|
|
927
|
+
] = None,
|
|
928
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
929
|
+
_content_type: Optional[StrictStr] = None,
|
|
930
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
931
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
932
|
+
) -> GetPipelineByIdResult:
|
|
933
|
+
"""Gets a pipeline by its id.
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
:param id: The id of the pipeline to get. (required)
|
|
937
|
+
:type id: str
|
|
938
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
939
|
+
number provided, it will be total request
|
|
940
|
+
timeout. It can also be a pair (tuple) of
|
|
941
|
+
(connection, read) timeouts.
|
|
942
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
943
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
944
|
+
request; this effectively ignores the
|
|
945
|
+
authentication in the spec for a single request.
|
|
946
|
+
:type _request_auth: dict, optional
|
|
947
|
+
:param _content_type: force content-type for the request.
|
|
948
|
+
:type _content_type: str, Optional
|
|
949
|
+
:param _headers: set to override the headers for a single
|
|
950
|
+
request; this effectively ignores the headers
|
|
951
|
+
in the spec for a single request.
|
|
952
|
+
:type _headers: dict, optional
|
|
953
|
+
:param _host_index: set to override the host_index for a single
|
|
954
|
+
request; this effectively ignores the host_index
|
|
955
|
+
in the spec for a single request.
|
|
956
|
+
:type _host_index: int, optional
|
|
957
|
+
:return: Returns the result object.
|
|
958
|
+
""" # noqa: E501
|
|
959
|
+
|
|
960
|
+
_param = self._pipeline_id_get_serialize(
|
|
961
|
+
id=id,
|
|
962
|
+
_request_auth=_request_auth,
|
|
963
|
+
_content_type=_content_type,
|
|
964
|
+
_headers=_headers,
|
|
965
|
+
_host_index=_host_index
|
|
966
|
+
)
|
|
967
|
+
|
|
968
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
969
|
+
'200': "GetPipelineByIdResult",
|
|
970
|
+
}
|
|
971
|
+
response_data = self.api_client.call_api(
|
|
972
|
+
*_param,
|
|
973
|
+
_request_timeout=_request_timeout
|
|
974
|
+
)
|
|
975
|
+
response_data.read()
|
|
976
|
+
return self.api_client.response_deserialize(
|
|
977
|
+
response_data=response_data,
|
|
978
|
+
response_types_map=_response_types_map,
|
|
979
|
+
).data
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
@validate_call
|
|
983
|
+
def pipeline_id_get_with_http_info(
|
|
984
|
+
self,
|
|
985
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to get.")],
|
|
986
|
+
_request_timeout: Union[
|
|
987
|
+
None,
|
|
988
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
989
|
+
Tuple[
|
|
990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
991
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
992
|
+
]
|
|
993
|
+
] = None,
|
|
994
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
995
|
+
_content_type: Optional[StrictStr] = None,
|
|
996
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
997
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
998
|
+
) -> ApiResponse[GetPipelineByIdResult]:
|
|
999
|
+
"""Gets a pipeline by its id.
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
:param id: The id of the pipeline to get. (required)
|
|
1003
|
+
:type id: str
|
|
1004
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1005
|
+
number provided, it will be total request
|
|
1006
|
+
timeout. It can also be a pair (tuple) of
|
|
1007
|
+
(connection, read) timeouts.
|
|
1008
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1009
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1010
|
+
request; this effectively ignores the
|
|
1011
|
+
authentication in the spec for a single request.
|
|
1012
|
+
:type _request_auth: dict, optional
|
|
1013
|
+
:param _content_type: force content-type for the request.
|
|
1014
|
+
:type _content_type: str, Optional
|
|
1015
|
+
:param _headers: set to override the headers for a single
|
|
1016
|
+
request; this effectively ignores the headers
|
|
1017
|
+
in the spec for a single request.
|
|
1018
|
+
:type _headers: dict, optional
|
|
1019
|
+
:param _host_index: set to override the host_index for a single
|
|
1020
|
+
request; this effectively ignores the host_index
|
|
1021
|
+
in the spec for a single request.
|
|
1022
|
+
:type _host_index: int, optional
|
|
1023
|
+
:return: Returns the result object.
|
|
1024
|
+
""" # noqa: E501
|
|
1025
|
+
|
|
1026
|
+
_param = self._pipeline_id_get_serialize(
|
|
1027
|
+
id=id,
|
|
1028
|
+
_request_auth=_request_auth,
|
|
1029
|
+
_content_type=_content_type,
|
|
1030
|
+
_headers=_headers,
|
|
1031
|
+
_host_index=_host_index
|
|
1032
|
+
)
|
|
1033
|
+
|
|
1034
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1035
|
+
'200': "GetPipelineByIdResult",
|
|
1036
|
+
}
|
|
1037
|
+
response_data = self.api_client.call_api(
|
|
1038
|
+
*_param,
|
|
1039
|
+
_request_timeout=_request_timeout
|
|
1040
|
+
)
|
|
1041
|
+
response_data.read()
|
|
1042
|
+
return self.api_client.response_deserialize(
|
|
1043
|
+
response_data=response_data,
|
|
1044
|
+
response_types_map=_response_types_map,
|
|
1045
|
+
)
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
@validate_call
|
|
1049
|
+
def pipeline_id_get_without_preload_content(
|
|
1050
|
+
self,
|
|
1051
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to get.")],
|
|
1052
|
+
_request_timeout: Union[
|
|
1053
|
+
None,
|
|
1054
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1055
|
+
Tuple[
|
|
1056
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1057
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1058
|
+
]
|
|
1059
|
+
] = None,
|
|
1060
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1061
|
+
_content_type: Optional[StrictStr] = None,
|
|
1062
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1063
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1064
|
+
) -> RESTResponseType:
|
|
1065
|
+
"""Gets a pipeline by its id.
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
:param id: The id of the pipeline to get. (required)
|
|
1069
|
+
:type id: str
|
|
1070
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1071
|
+
number provided, it will be total request
|
|
1072
|
+
timeout. It can also be a pair (tuple) of
|
|
1073
|
+
(connection, read) timeouts.
|
|
1074
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1075
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1076
|
+
request; this effectively ignores the
|
|
1077
|
+
authentication in the spec for a single request.
|
|
1078
|
+
:type _request_auth: dict, optional
|
|
1079
|
+
:param _content_type: force content-type for the request.
|
|
1080
|
+
:type _content_type: str, Optional
|
|
1081
|
+
:param _headers: set to override the headers for a single
|
|
1082
|
+
request; this effectively ignores the headers
|
|
1083
|
+
in the spec for a single request.
|
|
1084
|
+
:type _headers: dict, optional
|
|
1085
|
+
:param _host_index: set to override the host_index for a single
|
|
1086
|
+
request; this effectively ignores the host_index
|
|
1087
|
+
in the spec for a single request.
|
|
1088
|
+
:type _host_index: int, optional
|
|
1089
|
+
:return: Returns the result object.
|
|
1090
|
+
""" # noqa: E501
|
|
1091
|
+
|
|
1092
|
+
_param = self._pipeline_id_get_serialize(
|
|
1093
|
+
id=id,
|
|
1094
|
+
_request_auth=_request_auth,
|
|
1095
|
+
_content_type=_content_type,
|
|
1096
|
+
_headers=_headers,
|
|
1097
|
+
_host_index=_host_index
|
|
1098
|
+
)
|
|
1099
|
+
|
|
1100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1101
|
+
'200': "GetPipelineByIdResult",
|
|
1102
|
+
}
|
|
1103
|
+
response_data = self.api_client.call_api(
|
|
1104
|
+
*_param,
|
|
1105
|
+
_request_timeout=_request_timeout
|
|
1106
|
+
)
|
|
1107
|
+
return response_data.response
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
def _pipeline_id_get_serialize(
|
|
1111
|
+
self,
|
|
1112
|
+
id,
|
|
1113
|
+
_request_auth,
|
|
1114
|
+
_content_type,
|
|
1115
|
+
_headers,
|
|
1116
|
+
_host_index,
|
|
1117
|
+
) -> RequestSerialized:
|
|
1118
|
+
|
|
1119
|
+
_host = None
|
|
1120
|
+
|
|
1121
|
+
_collection_formats: Dict[str, str] = {
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
_path_params: Dict[str, str] = {}
|
|
1125
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1126
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1127
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1128
|
+
_files: Dict[
|
|
1129
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1130
|
+
] = {}
|
|
1131
|
+
_body_params: Optional[bytes] = None
|
|
1132
|
+
|
|
1133
|
+
# process the path parameters
|
|
1134
|
+
if id is not None:
|
|
1135
|
+
_path_params['id'] = id
|
|
1136
|
+
# process the query parameters
|
|
1137
|
+
# process the header parameters
|
|
1138
|
+
# process the form parameters
|
|
1139
|
+
# process the body parameter
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
# set the HTTP header `Accept`
|
|
1143
|
+
if 'Accept' not in _header_params:
|
|
1144
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1145
|
+
[
|
|
1146
|
+
'text/plain',
|
|
1147
|
+
'application/json',
|
|
1148
|
+
'text/json'
|
|
1149
|
+
]
|
|
1150
|
+
)
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
# authentication setting
|
|
1154
|
+
_auth_settings: List[str] = [
|
|
1155
|
+
'bearer',
|
|
1156
|
+
'oauth2'
|
|
1157
|
+
]
|
|
1158
|
+
|
|
1159
|
+
return self.api_client.param_serialize(
|
|
1160
|
+
method='GET',
|
|
1161
|
+
resource_path='/Pipeline/{id}',
|
|
1162
|
+
path_params=_path_params,
|
|
1163
|
+
query_params=_query_params,
|
|
1164
|
+
header_params=_header_params,
|
|
1165
|
+
body=_body_params,
|
|
1166
|
+
post_params=_form_params,
|
|
1167
|
+
files=_files,
|
|
1168
|
+
auth_settings=_auth_settings,
|
|
1169
|
+
collection_formats=_collection_formats,
|
|
1170
|
+
_host=_host,
|
|
1171
|
+
_request_auth=_request_auth
|
|
1172
|
+
)
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
@validate_call
|
|
1178
|
+
def pipeline_id_workflow_artifact_id_put(
|
|
1179
|
+
self,
|
|
1180
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1181
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the workflow config artifact to update.")],
|
|
1182
|
+
pipeline_id_workflow_put_request: Annotated[Optional[PipelineIdWorkflowPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
1183
|
+
_request_timeout: Union[
|
|
1184
|
+
None,
|
|
1185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1186
|
+
Tuple[
|
|
1187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1188
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1189
|
+
]
|
|
1190
|
+
] = None,
|
|
1191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1192
|
+
_content_type: Optional[StrictStr] = None,
|
|
1193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1195
|
+
) -> None:
|
|
1196
|
+
"""Updates the workflow configuration for a pipeline.
|
|
1197
|
+
|
|
1198
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
1199
|
+
|
|
1200
|
+
:param id: The id of the pipeline to update. (required)
|
|
1201
|
+
:type id: str
|
|
1202
|
+
:param artifact_id: The id of the workflow config artifact to update. (required)
|
|
1203
|
+
:type artifact_id: str
|
|
1204
|
+
:param pipeline_id_workflow_put_request: The new workflow configuration.
|
|
1205
|
+
:type pipeline_id_workflow_put_request: PipelineIdWorkflowPutRequest
|
|
1206
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1207
|
+
number provided, it will be total request
|
|
1208
|
+
timeout. It can also be a pair (tuple) of
|
|
1209
|
+
(connection, read) timeouts.
|
|
1210
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1211
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1212
|
+
request; this effectively ignores the
|
|
1213
|
+
authentication in the spec for a single request.
|
|
1214
|
+
:type _request_auth: dict, optional
|
|
1215
|
+
:param _content_type: force content-type for the request.
|
|
1216
|
+
:type _content_type: str, Optional
|
|
1217
|
+
:param _headers: set to override the headers for a single
|
|
1218
|
+
request; this effectively ignores the headers
|
|
1219
|
+
in the spec for a single request.
|
|
1220
|
+
:type _headers: dict, optional
|
|
1221
|
+
:param _host_index: set to override the host_index for a single
|
|
1222
|
+
request; this effectively ignores the host_index
|
|
1223
|
+
in the spec for a single request.
|
|
1224
|
+
:type _host_index: int, optional
|
|
1225
|
+
:return: Returns the result object.
|
|
1226
|
+
""" # noqa: E501
|
|
1227
|
+
|
|
1228
|
+
_param = self._pipeline_id_workflow_artifact_id_put_serialize(
|
|
1229
|
+
id=id,
|
|
1230
|
+
artifact_id=artifact_id,
|
|
1231
|
+
pipeline_id_workflow_put_request=pipeline_id_workflow_put_request,
|
|
1232
|
+
_request_auth=_request_auth,
|
|
1233
|
+
_content_type=_content_type,
|
|
1234
|
+
_headers=_headers,
|
|
1235
|
+
_host_index=_host_index
|
|
1236
|
+
)
|
|
1237
|
+
|
|
1238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1239
|
+
'204': None,
|
|
1240
|
+
}
|
|
1241
|
+
response_data = self.api_client.call_api(
|
|
1242
|
+
*_param,
|
|
1243
|
+
_request_timeout=_request_timeout
|
|
1244
|
+
)
|
|
1245
|
+
response_data.read()
|
|
1246
|
+
return self.api_client.response_deserialize(
|
|
1247
|
+
response_data=response_data,
|
|
1248
|
+
response_types_map=_response_types_map,
|
|
1249
|
+
).data
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
@validate_call
|
|
1253
|
+
def pipeline_id_workflow_artifact_id_put_with_http_info(
|
|
1254
|
+
self,
|
|
1255
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1256
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the workflow config artifact to update.")],
|
|
1257
|
+
pipeline_id_workflow_put_request: Annotated[Optional[PipelineIdWorkflowPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
1258
|
+
_request_timeout: Union[
|
|
1259
|
+
None,
|
|
1260
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1261
|
+
Tuple[
|
|
1262
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1263
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1264
|
+
]
|
|
1265
|
+
] = None,
|
|
1266
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1267
|
+
_content_type: Optional[StrictStr] = None,
|
|
1268
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1269
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1270
|
+
) -> ApiResponse[None]:
|
|
1271
|
+
"""Updates the workflow configuration for a pipeline.
|
|
1272
|
+
|
|
1273
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
1274
|
+
|
|
1275
|
+
:param id: The id of the pipeline to update. (required)
|
|
1276
|
+
:type id: str
|
|
1277
|
+
:param artifact_id: The id of the workflow config artifact to update. (required)
|
|
1278
|
+
:type artifact_id: str
|
|
1279
|
+
:param pipeline_id_workflow_put_request: The new workflow configuration.
|
|
1280
|
+
:type pipeline_id_workflow_put_request: PipelineIdWorkflowPutRequest
|
|
1281
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1282
|
+
number provided, it will be total request
|
|
1283
|
+
timeout. It can also be a pair (tuple) of
|
|
1284
|
+
(connection, read) timeouts.
|
|
1285
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1286
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1287
|
+
request; this effectively ignores the
|
|
1288
|
+
authentication in the spec for a single request.
|
|
1289
|
+
:type _request_auth: dict, optional
|
|
1290
|
+
:param _content_type: force content-type for the request.
|
|
1291
|
+
:type _content_type: str, Optional
|
|
1292
|
+
:param _headers: set to override the headers for a single
|
|
1293
|
+
request; this effectively ignores the headers
|
|
1294
|
+
in the spec for a single request.
|
|
1295
|
+
:type _headers: dict, optional
|
|
1296
|
+
:param _host_index: set to override the host_index for a single
|
|
1297
|
+
request; this effectively ignores the host_index
|
|
1298
|
+
in the spec for a single request.
|
|
1299
|
+
:type _host_index: int, optional
|
|
1300
|
+
:return: Returns the result object.
|
|
1301
|
+
""" # noqa: E501
|
|
1302
|
+
|
|
1303
|
+
_param = self._pipeline_id_workflow_artifact_id_put_serialize(
|
|
1304
|
+
id=id,
|
|
1305
|
+
artifact_id=artifact_id,
|
|
1306
|
+
pipeline_id_workflow_put_request=pipeline_id_workflow_put_request,
|
|
1307
|
+
_request_auth=_request_auth,
|
|
1308
|
+
_content_type=_content_type,
|
|
1309
|
+
_headers=_headers,
|
|
1310
|
+
_host_index=_host_index
|
|
1311
|
+
)
|
|
1312
|
+
|
|
1313
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1314
|
+
'204': None,
|
|
1315
|
+
}
|
|
1316
|
+
response_data = self.api_client.call_api(
|
|
1317
|
+
*_param,
|
|
1318
|
+
_request_timeout=_request_timeout
|
|
1319
|
+
)
|
|
1320
|
+
response_data.read()
|
|
1321
|
+
return self.api_client.response_deserialize(
|
|
1322
|
+
response_data=response_data,
|
|
1323
|
+
response_types_map=_response_types_map,
|
|
1324
|
+
)
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
@validate_call
|
|
1328
|
+
def pipeline_id_workflow_artifact_id_put_without_preload_content(
|
|
1329
|
+
self,
|
|
1330
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1331
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the workflow config artifact to update.")],
|
|
1332
|
+
pipeline_id_workflow_put_request: Annotated[Optional[PipelineIdWorkflowPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
1333
|
+
_request_timeout: Union[
|
|
1334
|
+
None,
|
|
1335
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1336
|
+
Tuple[
|
|
1337
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1338
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1339
|
+
]
|
|
1340
|
+
] = None,
|
|
1341
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1342
|
+
_content_type: Optional[StrictStr] = None,
|
|
1343
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1344
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1345
|
+
) -> RESTResponseType:
|
|
1346
|
+
"""Updates the workflow configuration for a pipeline.
|
|
1347
|
+
|
|
1348
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
1349
|
+
|
|
1350
|
+
:param id: The id of the pipeline to update. (required)
|
|
1351
|
+
:type id: str
|
|
1352
|
+
:param artifact_id: The id of the workflow config artifact to update. (required)
|
|
1353
|
+
:type artifact_id: str
|
|
1354
|
+
:param pipeline_id_workflow_put_request: The new workflow configuration.
|
|
1355
|
+
:type pipeline_id_workflow_put_request: PipelineIdWorkflowPutRequest
|
|
1356
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1357
|
+
number provided, it will be total request
|
|
1358
|
+
timeout. It can also be a pair (tuple) of
|
|
1359
|
+
(connection, read) timeouts.
|
|
1360
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1361
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1362
|
+
request; this effectively ignores the
|
|
1363
|
+
authentication in the spec for a single request.
|
|
1364
|
+
:type _request_auth: dict, optional
|
|
1365
|
+
:param _content_type: force content-type for the request.
|
|
1366
|
+
:type _content_type: str, Optional
|
|
1367
|
+
:param _headers: set to override the headers for a single
|
|
1368
|
+
request; this effectively ignores the headers
|
|
1369
|
+
in the spec for a single request.
|
|
1370
|
+
:type _headers: dict, optional
|
|
1371
|
+
:param _host_index: set to override the host_index for a single
|
|
1372
|
+
request; this effectively ignores the host_index
|
|
1373
|
+
in the spec for a single request.
|
|
1374
|
+
:type _host_index: int, optional
|
|
1375
|
+
:return: Returns the result object.
|
|
1376
|
+
""" # noqa: E501
|
|
1377
|
+
|
|
1378
|
+
_param = self._pipeline_id_workflow_artifact_id_put_serialize(
|
|
1379
|
+
id=id,
|
|
1380
|
+
artifact_id=artifact_id,
|
|
1381
|
+
pipeline_id_workflow_put_request=pipeline_id_workflow_put_request,
|
|
1382
|
+
_request_auth=_request_auth,
|
|
1383
|
+
_content_type=_content_type,
|
|
1384
|
+
_headers=_headers,
|
|
1385
|
+
_host_index=_host_index
|
|
1386
|
+
)
|
|
1387
|
+
|
|
1388
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1389
|
+
'204': None,
|
|
1390
|
+
}
|
|
1391
|
+
response_data = self.api_client.call_api(
|
|
1392
|
+
*_param,
|
|
1393
|
+
_request_timeout=_request_timeout
|
|
1394
|
+
)
|
|
1395
|
+
return response_data.response
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
def _pipeline_id_workflow_artifact_id_put_serialize(
|
|
1399
|
+
self,
|
|
1400
|
+
id,
|
|
1401
|
+
artifact_id,
|
|
1402
|
+
pipeline_id_workflow_put_request,
|
|
1403
|
+
_request_auth,
|
|
1404
|
+
_content_type,
|
|
1405
|
+
_headers,
|
|
1406
|
+
_host_index,
|
|
1407
|
+
) -> RequestSerialized:
|
|
1408
|
+
|
|
1409
|
+
_host = None
|
|
1410
|
+
|
|
1411
|
+
_collection_formats: Dict[str, str] = {
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
_path_params: Dict[str, str] = {}
|
|
1415
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1416
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1417
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1418
|
+
_files: Dict[
|
|
1419
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1420
|
+
] = {}
|
|
1421
|
+
_body_params: Optional[bytes] = None
|
|
1422
|
+
|
|
1423
|
+
# process the path parameters
|
|
1424
|
+
if id is not None:
|
|
1425
|
+
_path_params['id'] = id
|
|
1426
|
+
if artifact_id is not None:
|
|
1427
|
+
_path_params['artifact-id'] = artifact_id
|
|
1428
|
+
# process the query parameters
|
|
1429
|
+
# process the header parameters
|
|
1430
|
+
# process the form parameters
|
|
1431
|
+
# process the body parameter
|
|
1432
|
+
if pipeline_id_workflow_put_request is not None:
|
|
1433
|
+
_body_params = pipeline_id_workflow_put_request
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
# set the HTTP header `Content-Type`
|
|
1438
|
+
if _content_type:
|
|
1439
|
+
_header_params['Content-Type'] = _content_type
|
|
1440
|
+
else:
|
|
1441
|
+
_default_content_type = (
|
|
1442
|
+
self.api_client.select_header_content_type(
|
|
1443
|
+
[
|
|
1444
|
+
'application/json',
|
|
1445
|
+
'text/json',
|
|
1446
|
+
'application/*+json'
|
|
1447
|
+
]
|
|
1448
|
+
)
|
|
1449
|
+
)
|
|
1450
|
+
if _default_content_type is not None:
|
|
1451
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1452
|
+
|
|
1453
|
+
# authentication setting
|
|
1454
|
+
_auth_settings: List[str] = [
|
|
1455
|
+
'bearer',
|
|
1456
|
+
'oauth2'
|
|
1457
|
+
]
|
|
1458
|
+
|
|
1459
|
+
return self.api_client.param_serialize(
|
|
1460
|
+
method='PUT',
|
|
1461
|
+
resource_path='/pipeline/{id}/workflow/{artifact-id}',
|
|
1462
|
+
path_params=_path_params,
|
|
1463
|
+
query_params=_query_params,
|
|
1464
|
+
header_params=_header_params,
|
|
1465
|
+
body=_body_params,
|
|
1466
|
+
post_params=_form_params,
|
|
1467
|
+
files=_files,
|
|
1468
|
+
auth_settings=_auth_settings,
|
|
1469
|
+
collection_formats=_collection_formats,
|
|
1470
|
+
_host=_host,
|
|
1471
|
+
_request_auth=_request_auth
|
|
1472
|
+
)
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
@validate_call
|
|
1478
|
+
def pipeline_id_workflow_put(
|
|
1479
|
+
self,
|
|
1480
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1481
|
+
pipeline_id_workflow_put_request: Annotated[Optional[PipelineIdWorkflowPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
1482
|
+
_request_timeout: Union[
|
|
1483
|
+
None,
|
|
1484
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1485
|
+
Tuple[
|
|
1486
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1487
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1488
|
+
]
|
|
1489
|
+
] = None,
|
|
1490
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1491
|
+
_content_type: Optional[StrictStr] = None,
|
|
1492
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1493
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1494
|
+
) -> None:
|
|
1495
|
+
"""Updates the workflow configuration for a pipeline.
|
|
1496
|
+
|
|
1497
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
1498
|
+
|
|
1499
|
+
:param id: The id of the pipeline to update. (required)
|
|
1500
|
+
:type id: str
|
|
1501
|
+
:param pipeline_id_workflow_put_request: The new workflow configuration.
|
|
1502
|
+
:type pipeline_id_workflow_put_request: PipelineIdWorkflowPutRequest
|
|
1503
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1504
|
+
number provided, it will be total request
|
|
1505
|
+
timeout. It can also be a pair (tuple) of
|
|
1506
|
+
(connection, read) timeouts.
|
|
1507
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1508
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1509
|
+
request; this effectively ignores the
|
|
1510
|
+
authentication in the spec for a single request.
|
|
1511
|
+
:type _request_auth: dict, optional
|
|
1512
|
+
:param _content_type: force content-type for the request.
|
|
1513
|
+
:type _content_type: str, Optional
|
|
1514
|
+
:param _headers: set to override the headers for a single
|
|
1515
|
+
request; this effectively ignores the headers
|
|
1516
|
+
in the spec for a single request.
|
|
1517
|
+
:type _headers: dict, optional
|
|
1518
|
+
:param _host_index: set to override the host_index for a single
|
|
1519
|
+
request; this effectively ignores the host_index
|
|
1520
|
+
in the spec for a single request.
|
|
1521
|
+
:type _host_index: int, optional
|
|
1522
|
+
:return: Returns the result object.
|
|
1523
|
+
""" # noqa: E501
|
|
1524
|
+
|
|
1525
|
+
_param = self._pipeline_id_workflow_put_serialize(
|
|
1526
|
+
id=id,
|
|
1527
|
+
pipeline_id_workflow_put_request=pipeline_id_workflow_put_request,
|
|
1528
|
+
_request_auth=_request_auth,
|
|
1529
|
+
_content_type=_content_type,
|
|
1530
|
+
_headers=_headers,
|
|
1531
|
+
_host_index=_host_index
|
|
1532
|
+
)
|
|
1533
|
+
|
|
1534
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1535
|
+
'204': None,
|
|
1536
|
+
}
|
|
1537
|
+
response_data = self.api_client.call_api(
|
|
1538
|
+
*_param,
|
|
1539
|
+
_request_timeout=_request_timeout
|
|
1540
|
+
)
|
|
1541
|
+
response_data.read()
|
|
1542
|
+
return self.api_client.response_deserialize(
|
|
1543
|
+
response_data=response_data,
|
|
1544
|
+
response_types_map=_response_types_map,
|
|
1545
|
+
).data
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
@validate_call
|
|
1549
|
+
def pipeline_id_workflow_put_with_http_info(
|
|
1550
|
+
self,
|
|
1551
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1552
|
+
pipeline_id_workflow_put_request: Annotated[Optional[PipelineIdWorkflowPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
1553
|
+
_request_timeout: Union[
|
|
1554
|
+
None,
|
|
1555
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1556
|
+
Tuple[
|
|
1557
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1558
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1559
|
+
]
|
|
1560
|
+
] = None,
|
|
1561
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1562
|
+
_content_type: Optional[StrictStr] = None,
|
|
1563
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1564
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1565
|
+
) -> ApiResponse[None]:
|
|
1566
|
+
"""Updates the workflow configuration for a pipeline.
|
|
1567
|
+
|
|
1568
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
1569
|
+
|
|
1570
|
+
:param id: The id of the pipeline to update. (required)
|
|
1571
|
+
:type id: str
|
|
1572
|
+
:param pipeline_id_workflow_put_request: The new workflow configuration.
|
|
1573
|
+
:type pipeline_id_workflow_put_request: PipelineIdWorkflowPutRequest
|
|
1574
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1575
|
+
number provided, it will be total request
|
|
1576
|
+
timeout. It can also be a pair (tuple) of
|
|
1577
|
+
(connection, read) timeouts.
|
|
1578
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1579
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1580
|
+
request; this effectively ignores the
|
|
1581
|
+
authentication in the spec for a single request.
|
|
1582
|
+
:type _request_auth: dict, optional
|
|
1583
|
+
:param _content_type: force content-type for the request.
|
|
1584
|
+
:type _content_type: str, Optional
|
|
1585
|
+
:param _headers: set to override the headers for a single
|
|
1586
|
+
request; this effectively ignores the headers
|
|
1587
|
+
in the spec for a single request.
|
|
1588
|
+
:type _headers: dict, optional
|
|
1589
|
+
:param _host_index: set to override the host_index for a single
|
|
1590
|
+
request; this effectively ignores the host_index
|
|
1591
|
+
in the spec for a single request.
|
|
1592
|
+
:type _host_index: int, optional
|
|
1593
|
+
:return: Returns the result object.
|
|
1594
|
+
""" # noqa: E501
|
|
1595
|
+
|
|
1596
|
+
_param = self._pipeline_id_workflow_put_serialize(
|
|
1597
|
+
id=id,
|
|
1598
|
+
pipeline_id_workflow_put_request=pipeline_id_workflow_put_request,
|
|
1599
|
+
_request_auth=_request_auth,
|
|
1600
|
+
_content_type=_content_type,
|
|
1601
|
+
_headers=_headers,
|
|
1602
|
+
_host_index=_host_index
|
|
1603
|
+
)
|
|
1604
|
+
|
|
1605
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1606
|
+
'204': None,
|
|
1607
|
+
}
|
|
1608
|
+
response_data = self.api_client.call_api(
|
|
1609
|
+
*_param,
|
|
1610
|
+
_request_timeout=_request_timeout
|
|
1611
|
+
)
|
|
1612
|
+
response_data.read()
|
|
1613
|
+
return self.api_client.response_deserialize(
|
|
1614
|
+
response_data=response_data,
|
|
1615
|
+
response_types_map=_response_types_map,
|
|
1616
|
+
)
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
@validate_call
|
|
1620
|
+
def pipeline_id_workflow_put_without_preload_content(
|
|
1621
|
+
self,
|
|
1622
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1623
|
+
pipeline_id_workflow_put_request: Annotated[Optional[PipelineIdWorkflowPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
1624
|
+
_request_timeout: Union[
|
|
1625
|
+
None,
|
|
1626
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1627
|
+
Tuple[
|
|
1628
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1629
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1630
|
+
]
|
|
1631
|
+
] = None,
|
|
1632
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1633
|
+
_content_type: Optional[StrictStr] = None,
|
|
1634
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1635
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1636
|
+
) -> RESTResponseType:
|
|
1637
|
+
"""Updates the workflow configuration for a pipeline.
|
|
1638
|
+
|
|
1639
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
1640
|
+
|
|
1641
|
+
:param id: The id of the pipeline to update. (required)
|
|
1642
|
+
:type id: str
|
|
1643
|
+
:param pipeline_id_workflow_put_request: The new workflow configuration.
|
|
1644
|
+
:type pipeline_id_workflow_put_request: PipelineIdWorkflowPutRequest
|
|
1645
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1646
|
+
number provided, it will be total request
|
|
1647
|
+
timeout. It can also be a pair (tuple) of
|
|
1648
|
+
(connection, read) timeouts.
|
|
1649
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1650
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1651
|
+
request; this effectively ignores the
|
|
1652
|
+
authentication in the spec for a single request.
|
|
1653
|
+
:type _request_auth: dict, optional
|
|
1654
|
+
:param _content_type: force content-type for the request.
|
|
1655
|
+
:type _content_type: str, Optional
|
|
1656
|
+
:param _headers: set to override the headers for a single
|
|
1657
|
+
request; this effectively ignores the headers
|
|
1658
|
+
in the spec for a single request.
|
|
1659
|
+
:type _headers: dict, optional
|
|
1660
|
+
:param _host_index: set to override the host_index for a single
|
|
1661
|
+
request; this effectively ignores the host_index
|
|
1662
|
+
in the spec for a single request.
|
|
1663
|
+
:type _host_index: int, optional
|
|
1664
|
+
:return: Returns the result object.
|
|
1665
|
+
""" # noqa: E501
|
|
1666
|
+
|
|
1667
|
+
_param = self._pipeline_id_workflow_put_serialize(
|
|
1668
|
+
id=id,
|
|
1669
|
+
pipeline_id_workflow_put_request=pipeline_id_workflow_put_request,
|
|
1670
|
+
_request_auth=_request_auth,
|
|
1671
|
+
_content_type=_content_type,
|
|
1672
|
+
_headers=_headers,
|
|
1673
|
+
_host_index=_host_index
|
|
1674
|
+
)
|
|
1675
|
+
|
|
1676
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1677
|
+
'204': None,
|
|
1678
|
+
}
|
|
1679
|
+
response_data = self.api_client.call_api(
|
|
1680
|
+
*_param,
|
|
1681
|
+
_request_timeout=_request_timeout
|
|
1682
|
+
)
|
|
1683
|
+
return response_data.response
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
def _pipeline_id_workflow_put_serialize(
|
|
1687
|
+
self,
|
|
1688
|
+
id,
|
|
1689
|
+
pipeline_id_workflow_put_request,
|
|
1690
|
+
_request_auth,
|
|
1691
|
+
_content_type,
|
|
1692
|
+
_headers,
|
|
1693
|
+
_host_index,
|
|
1694
|
+
) -> RequestSerialized:
|
|
1695
|
+
|
|
1696
|
+
_host = None
|
|
1697
|
+
|
|
1698
|
+
_collection_formats: Dict[str, str] = {
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
_path_params: Dict[str, str] = {}
|
|
1702
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1703
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1704
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1705
|
+
_files: Dict[
|
|
1706
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1707
|
+
] = {}
|
|
1708
|
+
_body_params: Optional[bytes] = None
|
|
1709
|
+
|
|
1710
|
+
# process the path parameters
|
|
1711
|
+
if id is not None:
|
|
1712
|
+
_path_params['id'] = id
|
|
1713
|
+
# process the query parameters
|
|
1714
|
+
# process the header parameters
|
|
1715
|
+
# process the form parameters
|
|
1716
|
+
# process the body parameter
|
|
1717
|
+
if pipeline_id_workflow_put_request is not None:
|
|
1718
|
+
_body_params = pipeline_id_workflow_put_request
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
# set the HTTP header `Content-Type`
|
|
1723
|
+
if _content_type:
|
|
1724
|
+
_header_params['Content-Type'] = _content_type
|
|
1725
|
+
else:
|
|
1726
|
+
_default_content_type = (
|
|
1727
|
+
self.api_client.select_header_content_type(
|
|
1728
|
+
[
|
|
1729
|
+
'application/json',
|
|
1730
|
+
'text/json',
|
|
1731
|
+
'application/*+json'
|
|
1732
|
+
]
|
|
1733
|
+
)
|
|
1734
|
+
)
|
|
1735
|
+
if _default_content_type is not None:
|
|
1736
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1737
|
+
|
|
1738
|
+
# authentication setting
|
|
1739
|
+
_auth_settings: List[str] = [
|
|
1740
|
+
'bearer',
|
|
1741
|
+
'oauth2'
|
|
1742
|
+
]
|
|
1743
|
+
|
|
1744
|
+
return self.api_client.param_serialize(
|
|
1745
|
+
method='PUT',
|
|
1746
|
+
resource_path='/pipeline/{id}/workflow',
|
|
834
1747
|
path_params=_path_params,
|
|
835
1748
|
query_params=_query_params,
|
|
836
1749
|
header_params=_header_params,
|