rapidata 2.18.0__py3-none-any.whl → 2.19.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 +2 -0
- rapidata/api_client/__init__.py +7 -5
- rapidata/api_client/api/order_api.py +3 -6
- rapidata/api_client/api/pipeline_api.py +665 -98
- rapidata/api_client/api/validation_set_api.py +6 -6
- rapidata/api_client/models/__init__.py +7 -5
- rapidata/api_client/models/add_user_response_result.py +3 -3
- rapidata/api_client/models/campaign_query_result.py +2 -2
- rapidata/api_client/models/campaign_status.py +2 -1
- rapidata/api_client/models/create_order_model_user_filters_inner.py +39 -9
- rapidata/api_client/models/get_simple_workflow_results_result.py +3 -3
- rapidata/api_client/models/get_validation_rapids_result.py +143 -0
- rapidata/api_client/models/get_validation_rapids_result_asset.py +174 -0
- rapidata/api_client/models/get_validation_rapids_result_paged_result.py +105 -0
- rapidata/api_client/models/get_validation_rapids_result_payload.py +252 -0
- rapidata/api_client/models/get_validation_rapids_result_truth.py +258 -0
- rapidata/api_client/models/not_user_filter_model.py +102 -0
- rapidata/api_client/models/or_user_filter_model.py +106 -0
- rapidata/api_client/models/query_validation_rapids_result.py +9 -9
- rapidata/api_client_README.md +9 -5
- rapidata/rapidata_client/__init__.py +2 -0
- rapidata/rapidata_client/filter/__init__.py +2 -0
- rapidata/rapidata_client/filter/not_filter.py +30 -0
- rapidata/rapidata_client/filter/or_filter.py +30 -0
- rapidata/rapidata_client/filter/rapidata_filters.py +6 -3
- {rapidata-2.18.0.dist-info → rapidata-2.19.0.dist-info}/METADATA +1 -1
- {rapidata-2.18.0.dist-info → rapidata-2.19.0.dist-info}/RECORD +29 -20
- {rapidata-2.18.0.dist-info → rapidata-2.19.0.dist-info}/LICENSE +0 -0
- {rapidata-2.18.0.dist-info → rapidata-2.19.0.dist-info}/WHEEL +0 -0
|
@@ -648,12 +648,593 @@ class PipelineApi:
|
|
|
648
648
|
|
|
649
649
|
|
|
650
650
|
|
|
651
|
+
@validate_call
|
|
652
|
+
def pipeline_id_workflow_config_put(
|
|
653
|
+
self,
|
|
654
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
655
|
+
pipeline_id_workflow_artifact_id_put_request: Annotated[Optional[PipelineIdWorkflowArtifactIdPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
656
|
+
_request_timeout: Union[
|
|
657
|
+
None,
|
|
658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
659
|
+
Tuple[
|
|
660
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
661
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
662
|
+
]
|
|
663
|
+
] = None,
|
|
664
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
665
|
+
_content_type: Optional[StrictStr] = None,
|
|
666
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
667
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
668
|
+
) -> None:
|
|
669
|
+
"""Updates the workflow configuration for a pipeline.
|
|
670
|
+
|
|
671
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
672
|
+
|
|
673
|
+
:param id: The id of the pipeline to update. (required)
|
|
674
|
+
:type id: str
|
|
675
|
+
:param pipeline_id_workflow_artifact_id_put_request: The new workflow configuration.
|
|
676
|
+
:type pipeline_id_workflow_artifact_id_put_request: PipelineIdWorkflowArtifactIdPutRequest
|
|
677
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
678
|
+
number provided, it will be total request
|
|
679
|
+
timeout. It can also be a pair (tuple) of
|
|
680
|
+
(connection, read) timeouts.
|
|
681
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
682
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
683
|
+
request; this effectively ignores the
|
|
684
|
+
authentication in the spec for a single request.
|
|
685
|
+
:type _request_auth: dict, optional
|
|
686
|
+
:param _content_type: force content-type for the request.
|
|
687
|
+
:type _content_type: str, Optional
|
|
688
|
+
:param _headers: set to override the headers for a single
|
|
689
|
+
request; this effectively ignores the headers
|
|
690
|
+
in the spec for a single request.
|
|
691
|
+
:type _headers: dict, optional
|
|
692
|
+
:param _host_index: set to override the host_index for a single
|
|
693
|
+
request; this effectively ignores the host_index
|
|
694
|
+
in the spec for a single request.
|
|
695
|
+
:type _host_index: int, optional
|
|
696
|
+
:return: Returns the result object.
|
|
697
|
+
""" # noqa: E501
|
|
698
|
+
|
|
699
|
+
_param = self._pipeline_id_workflow_config_put_serialize(
|
|
700
|
+
id=id,
|
|
701
|
+
pipeline_id_workflow_artifact_id_put_request=pipeline_id_workflow_artifact_id_put_request,
|
|
702
|
+
_request_auth=_request_auth,
|
|
703
|
+
_content_type=_content_type,
|
|
704
|
+
_headers=_headers,
|
|
705
|
+
_host_index=_host_index
|
|
706
|
+
)
|
|
707
|
+
|
|
708
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
709
|
+
'204': None,
|
|
710
|
+
}
|
|
711
|
+
response_data = self.api_client.call_api(
|
|
712
|
+
*_param,
|
|
713
|
+
_request_timeout=_request_timeout
|
|
714
|
+
)
|
|
715
|
+
response_data.read()
|
|
716
|
+
return self.api_client.response_deserialize(
|
|
717
|
+
response_data=response_data,
|
|
718
|
+
response_types_map=_response_types_map,
|
|
719
|
+
).data
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
@validate_call
|
|
723
|
+
def pipeline_id_workflow_config_put_with_http_info(
|
|
724
|
+
self,
|
|
725
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
726
|
+
pipeline_id_workflow_artifact_id_put_request: Annotated[Optional[PipelineIdWorkflowArtifactIdPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
727
|
+
_request_timeout: Union[
|
|
728
|
+
None,
|
|
729
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
730
|
+
Tuple[
|
|
731
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
732
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
733
|
+
]
|
|
734
|
+
] = None,
|
|
735
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
736
|
+
_content_type: Optional[StrictStr] = None,
|
|
737
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
738
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
739
|
+
) -> ApiResponse[None]:
|
|
740
|
+
"""Updates the workflow configuration for a pipeline.
|
|
741
|
+
|
|
742
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
743
|
+
|
|
744
|
+
:param id: The id of the pipeline to update. (required)
|
|
745
|
+
:type id: str
|
|
746
|
+
:param pipeline_id_workflow_artifact_id_put_request: The new workflow configuration.
|
|
747
|
+
:type pipeline_id_workflow_artifact_id_put_request: PipelineIdWorkflowArtifactIdPutRequest
|
|
748
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
749
|
+
number provided, it will be total request
|
|
750
|
+
timeout. It can also be a pair (tuple) of
|
|
751
|
+
(connection, read) timeouts.
|
|
752
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
753
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
754
|
+
request; this effectively ignores the
|
|
755
|
+
authentication in the spec for a single request.
|
|
756
|
+
:type _request_auth: dict, optional
|
|
757
|
+
:param _content_type: force content-type for the request.
|
|
758
|
+
:type _content_type: str, Optional
|
|
759
|
+
:param _headers: set to override the headers for a single
|
|
760
|
+
request; this effectively ignores the headers
|
|
761
|
+
in the spec for a single request.
|
|
762
|
+
:type _headers: dict, optional
|
|
763
|
+
:param _host_index: set to override the host_index for a single
|
|
764
|
+
request; this effectively ignores the host_index
|
|
765
|
+
in the spec for a single request.
|
|
766
|
+
:type _host_index: int, optional
|
|
767
|
+
:return: Returns the result object.
|
|
768
|
+
""" # noqa: E501
|
|
769
|
+
|
|
770
|
+
_param = self._pipeline_id_workflow_config_put_serialize(
|
|
771
|
+
id=id,
|
|
772
|
+
pipeline_id_workflow_artifact_id_put_request=pipeline_id_workflow_artifact_id_put_request,
|
|
773
|
+
_request_auth=_request_auth,
|
|
774
|
+
_content_type=_content_type,
|
|
775
|
+
_headers=_headers,
|
|
776
|
+
_host_index=_host_index
|
|
777
|
+
)
|
|
778
|
+
|
|
779
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
780
|
+
'204': None,
|
|
781
|
+
}
|
|
782
|
+
response_data = self.api_client.call_api(
|
|
783
|
+
*_param,
|
|
784
|
+
_request_timeout=_request_timeout
|
|
785
|
+
)
|
|
786
|
+
response_data.read()
|
|
787
|
+
return self.api_client.response_deserialize(
|
|
788
|
+
response_data=response_data,
|
|
789
|
+
response_types_map=_response_types_map,
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
@validate_call
|
|
794
|
+
def pipeline_id_workflow_config_put_without_preload_content(
|
|
795
|
+
self,
|
|
796
|
+
id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
797
|
+
pipeline_id_workflow_artifact_id_put_request: Annotated[Optional[PipelineIdWorkflowArtifactIdPutRequest], Field(description="The new workflow configuration.")] = None,
|
|
798
|
+
_request_timeout: Union[
|
|
799
|
+
None,
|
|
800
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
801
|
+
Tuple[
|
|
802
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
803
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
804
|
+
]
|
|
805
|
+
] = None,
|
|
806
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
807
|
+
_content_type: Optional[StrictStr] = None,
|
|
808
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
809
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
810
|
+
) -> RESTResponseType:
|
|
811
|
+
"""Updates the workflow configuration for a pipeline.
|
|
812
|
+
|
|
813
|
+
This method needs to be called before the pipeline is started. Otherwise, the changes will not take effect unless the pipeline is restarted.
|
|
814
|
+
|
|
815
|
+
:param id: The id of the pipeline to update. (required)
|
|
816
|
+
:type id: str
|
|
817
|
+
:param pipeline_id_workflow_artifact_id_put_request: The new workflow configuration.
|
|
818
|
+
:type pipeline_id_workflow_artifact_id_put_request: PipelineIdWorkflowArtifactIdPutRequest
|
|
819
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
820
|
+
number provided, it will be total request
|
|
821
|
+
timeout. It can also be a pair (tuple) of
|
|
822
|
+
(connection, read) timeouts.
|
|
823
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
824
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
825
|
+
request; this effectively ignores the
|
|
826
|
+
authentication in the spec for a single request.
|
|
827
|
+
:type _request_auth: dict, optional
|
|
828
|
+
:param _content_type: force content-type for the request.
|
|
829
|
+
:type _content_type: str, Optional
|
|
830
|
+
:param _headers: set to override the headers for a single
|
|
831
|
+
request; this effectively ignores the headers
|
|
832
|
+
in the spec for a single request.
|
|
833
|
+
:type _headers: dict, optional
|
|
834
|
+
:param _host_index: set to override the host_index for a single
|
|
835
|
+
request; this effectively ignores the host_index
|
|
836
|
+
in the spec for a single request.
|
|
837
|
+
:type _host_index: int, optional
|
|
838
|
+
:return: Returns the result object.
|
|
839
|
+
""" # noqa: E501
|
|
840
|
+
|
|
841
|
+
_param = self._pipeline_id_workflow_config_put_serialize(
|
|
842
|
+
id=id,
|
|
843
|
+
pipeline_id_workflow_artifact_id_put_request=pipeline_id_workflow_artifact_id_put_request,
|
|
844
|
+
_request_auth=_request_auth,
|
|
845
|
+
_content_type=_content_type,
|
|
846
|
+
_headers=_headers,
|
|
847
|
+
_host_index=_host_index
|
|
848
|
+
)
|
|
849
|
+
|
|
850
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
851
|
+
'204': None,
|
|
852
|
+
}
|
|
853
|
+
response_data = self.api_client.call_api(
|
|
854
|
+
*_param,
|
|
855
|
+
_request_timeout=_request_timeout
|
|
856
|
+
)
|
|
857
|
+
return response_data.response
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
def _pipeline_id_workflow_config_put_serialize(
|
|
861
|
+
self,
|
|
862
|
+
id,
|
|
863
|
+
pipeline_id_workflow_artifact_id_put_request,
|
|
864
|
+
_request_auth,
|
|
865
|
+
_content_type,
|
|
866
|
+
_headers,
|
|
867
|
+
_host_index,
|
|
868
|
+
) -> RequestSerialized:
|
|
869
|
+
|
|
870
|
+
_host = None
|
|
871
|
+
|
|
872
|
+
_collection_formats: Dict[str, str] = {
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
_path_params: Dict[str, str] = {}
|
|
876
|
+
_query_params: List[Tuple[str, str]] = []
|
|
877
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
878
|
+
_form_params: List[Tuple[str, str]] = []
|
|
879
|
+
_files: Dict[
|
|
880
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
881
|
+
] = {}
|
|
882
|
+
_body_params: Optional[bytes] = None
|
|
883
|
+
|
|
884
|
+
# process the path parameters
|
|
885
|
+
if id is not None:
|
|
886
|
+
_path_params['id'] = id
|
|
887
|
+
# process the query parameters
|
|
888
|
+
# process the header parameters
|
|
889
|
+
# process the form parameters
|
|
890
|
+
# process the body parameter
|
|
891
|
+
if pipeline_id_workflow_artifact_id_put_request is not None:
|
|
892
|
+
_body_params = pipeline_id_workflow_artifact_id_put_request
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
# set the HTTP header `Content-Type`
|
|
897
|
+
if _content_type:
|
|
898
|
+
_header_params['Content-Type'] = _content_type
|
|
899
|
+
else:
|
|
900
|
+
_default_content_type = (
|
|
901
|
+
self.api_client.select_header_content_type(
|
|
902
|
+
[
|
|
903
|
+
'application/json',
|
|
904
|
+
'text/json',
|
|
905
|
+
'application/*+json'
|
|
906
|
+
]
|
|
907
|
+
)
|
|
908
|
+
)
|
|
909
|
+
if _default_content_type is not None:
|
|
910
|
+
_header_params['Content-Type'] = _default_content_type
|
|
911
|
+
|
|
912
|
+
# authentication setting
|
|
913
|
+
_auth_settings: List[str] = [
|
|
914
|
+
'bearer',
|
|
915
|
+
'oauth2'
|
|
916
|
+
]
|
|
917
|
+
|
|
918
|
+
return self.api_client.param_serialize(
|
|
919
|
+
method='PUT',
|
|
920
|
+
resource_path='/pipeline/{id}/workflow-config',
|
|
921
|
+
path_params=_path_params,
|
|
922
|
+
query_params=_query_params,
|
|
923
|
+
header_params=_header_params,
|
|
924
|
+
body=_body_params,
|
|
925
|
+
post_params=_form_params,
|
|
926
|
+
files=_files,
|
|
927
|
+
auth_settings=_auth_settings,
|
|
928
|
+
collection_formats=_collection_formats,
|
|
929
|
+
_host=_host,
|
|
930
|
+
_request_auth=_request_auth
|
|
931
|
+
)
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
651
936
|
@validate_call
|
|
652
937
|
def pipeline_pipeline_id_campaign_artifact_id_put(
|
|
653
938
|
self,
|
|
654
|
-
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
655
|
-
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
656
|
-
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
939
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
940
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
941
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
942
|
+
_request_timeout: Union[
|
|
943
|
+
None,
|
|
944
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
945
|
+
Tuple[
|
|
946
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
947
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
948
|
+
]
|
|
949
|
+
] = None,
|
|
950
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
951
|
+
_content_type: Optional[StrictStr] = None,
|
|
952
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
953
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
954
|
+
) -> None:
|
|
955
|
+
"""Updates a specific campaign for a pipeline.
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
:param pipeline_id: The id of the pipeline to update. (required)
|
|
959
|
+
:type pipeline_id: str
|
|
960
|
+
:param artifact_id: The id of the campaign artifact to update. (required)
|
|
961
|
+
:type artifact_id: str
|
|
962
|
+
:param update_campaign_model: The new campaign settings.
|
|
963
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
964
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
965
|
+
number provided, it will be total request
|
|
966
|
+
timeout. It can also be a pair (tuple) of
|
|
967
|
+
(connection, read) timeouts.
|
|
968
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
969
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
970
|
+
request; this effectively ignores the
|
|
971
|
+
authentication in the spec for a single request.
|
|
972
|
+
:type _request_auth: dict, optional
|
|
973
|
+
:param _content_type: force content-type for the request.
|
|
974
|
+
:type _content_type: str, Optional
|
|
975
|
+
:param _headers: set to override the headers for a single
|
|
976
|
+
request; this effectively ignores the headers
|
|
977
|
+
in the spec for a single request.
|
|
978
|
+
:type _headers: dict, optional
|
|
979
|
+
:param _host_index: set to override the host_index for a single
|
|
980
|
+
request; this effectively ignores the host_index
|
|
981
|
+
in the spec for a single request.
|
|
982
|
+
:type _host_index: int, optional
|
|
983
|
+
:return: Returns the result object.
|
|
984
|
+
""" # noqa: E501
|
|
985
|
+
|
|
986
|
+
_param = self._pipeline_pipeline_id_campaign_artifact_id_put_serialize(
|
|
987
|
+
pipeline_id=pipeline_id,
|
|
988
|
+
artifact_id=artifact_id,
|
|
989
|
+
update_campaign_model=update_campaign_model,
|
|
990
|
+
_request_auth=_request_auth,
|
|
991
|
+
_content_type=_content_type,
|
|
992
|
+
_headers=_headers,
|
|
993
|
+
_host_index=_host_index
|
|
994
|
+
)
|
|
995
|
+
|
|
996
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
997
|
+
'204': None,
|
|
998
|
+
}
|
|
999
|
+
response_data = self.api_client.call_api(
|
|
1000
|
+
*_param,
|
|
1001
|
+
_request_timeout=_request_timeout
|
|
1002
|
+
)
|
|
1003
|
+
response_data.read()
|
|
1004
|
+
return self.api_client.response_deserialize(
|
|
1005
|
+
response_data=response_data,
|
|
1006
|
+
response_types_map=_response_types_map,
|
|
1007
|
+
).data
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
@validate_call
|
|
1011
|
+
def pipeline_pipeline_id_campaign_artifact_id_put_with_http_info(
|
|
1012
|
+
self,
|
|
1013
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1014
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
1015
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
1016
|
+
_request_timeout: Union[
|
|
1017
|
+
None,
|
|
1018
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1019
|
+
Tuple[
|
|
1020
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1021
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1022
|
+
]
|
|
1023
|
+
] = None,
|
|
1024
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1025
|
+
_content_type: Optional[StrictStr] = None,
|
|
1026
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1027
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1028
|
+
) -> ApiResponse[None]:
|
|
1029
|
+
"""Updates a specific campaign for a pipeline.
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
:param pipeline_id: The id of the pipeline to update. (required)
|
|
1033
|
+
:type pipeline_id: str
|
|
1034
|
+
:param artifact_id: The id of the campaign artifact to update. (required)
|
|
1035
|
+
:type artifact_id: str
|
|
1036
|
+
:param update_campaign_model: The new campaign settings.
|
|
1037
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
1038
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1039
|
+
number provided, it will be total request
|
|
1040
|
+
timeout. It can also be a pair (tuple) of
|
|
1041
|
+
(connection, read) timeouts.
|
|
1042
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1043
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1044
|
+
request; this effectively ignores the
|
|
1045
|
+
authentication in the spec for a single request.
|
|
1046
|
+
:type _request_auth: dict, optional
|
|
1047
|
+
:param _content_type: force content-type for the request.
|
|
1048
|
+
:type _content_type: str, Optional
|
|
1049
|
+
:param _headers: set to override the headers for a single
|
|
1050
|
+
request; this effectively ignores the headers
|
|
1051
|
+
in the spec for a single request.
|
|
1052
|
+
:type _headers: dict, optional
|
|
1053
|
+
:param _host_index: set to override the host_index for a single
|
|
1054
|
+
request; this effectively ignores the host_index
|
|
1055
|
+
in the spec for a single request.
|
|
1056
|
+
:type _host_index: int, optional
|
|
1057
|
+
:return: Returns the result object.
|
|
1058
|
+
""" # noqa: E501
|
|
1059
|
+
|
|
1060
|
+
_param = self._pipeline_pipeline_id_campaign_artifact_id_put_serialize(
|
|
1061
|
+
pipeline_id=pipeline_id,
|
|
1062
|
+
artifact_id=artifact_id,
|
|
1063
|
+
update_campaign_model=update_campaign_model,
|
|
1064
|
+
_request_auth=_request_auth,
|
|
1065
|
+
_content_type=_content_type,
|
|
1066
|
+
_headers=_headers,
|
|
1067
|
+
_host_index=_host_index
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1071
|
+
'204': None,
|
|
1072
|
+
}
|
|
1073
|
+
response_data = self.api_client.call_api(
|
|
1074
|
+
*_param,
|
|
1075
|
+
_request_timeout=_request_timeout
|
|
1076
|
+
)
|
|
1077
|
+
response_data.read()
|
|
1078
|
+
return self.api_client.response_deserialize(
|
|
1079
|
+
response_data=response_data,
|
|
1080
|
+
response_types_map=_response_types_map,
|
|
1081
|
+
)
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
@validate_call
|
|
1085
|
+
def pipeline_pipeline_id_campaign_artifact_id_put_without_preload_content(
|
|
1086
|
+
self,
|
|
1087
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1088
|
+
artifact_id: Annotated[StrictStr, Field(description="The id of the campaign artifact to update.")],
|
|
1089
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
1090
|
+
_request_timeout: Union[
|
|
1091
|
+
None,
|
|
1092
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1093
|
+
Tuple[
|
|
1094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1095
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1096
|
+
]
|
|
1097
|
+
] = None,
|
|
1098
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1099
|
+
_content_type: Optional[StrictStr] = None,
|
|
1100
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1101
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1102
|
+
) -> RESTResponseType:
|
|
1103
|
+
"""Updates a specific campaign for a pipeline.
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
:param pipeline_id: The id of the pipeline to update. (required)
|
|
1107
|
+
:type pipeline_id: str
|
|
1108
|
+
:param artifact_id: The id of the campaign artifact to update. (required)
|
|
1109
|
+
:type artifact_id: str
|
|
1110
|
+
:param update_campaign_model: The new campaign settings.
|
|
1111
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
1112
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1113
|
+
number provided, it will be total request
|
|
1114
|
+
timeout. It can also be a pair (tuple) of
|
|
1115
|
+
(connection, read) timeouts.
|
|
1116
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1117
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1118
|
+
request; this effectively ignores the
|
|
1119
|
+
authentication in the spec for a single request.
|
|
1120
|
+
:type _request_auth: dict, optional
|
|
1121
|
+
:param _content_type: force content-type for the request.
|
|
1122
|
+
:type _content_type: str, Optional
|
|
1123
|
+
:param _headers: set to override the headers for a single
|
|
1124
|
+
request; this effectively ignores the headers
|
|
1125
|
+
in the spec for a single request.
|
|
1126
|
+
:type _headers: dict, optional
|
|
1127
|
+
:param _host_index: set to override the host_index for a single
|
|
1128
|
+
request; this effectively ignores the host_index
|
|
1129
|
+
in the spec for a single request.
|
|
1130
|
+
:type _host_index: int, optional
|
|
1131
|
+
:return: Returns the result object.
|
|
1132
|
+
""" # noqa: E501
|
|
1133
|
+
|
|
1134
|
+
_param = self._pipeline_pipeline_id_campaign_artifact_id_put_serialize(
|
|
1135
|
+
pipeline_id=pipeline_id,
|
|
1136
|
+
artifact_id=artifact_id,
|
|
1137
|
+
update_campaign_model=update_campaign_model,
|
|
1138
|
+
_request_auth=_request_auth,
|
|
1139
|
+
_content_type=_content_type,
|
|
1140
|
+
_headers=_headers,
|
|
1141
|
+
_host_index=_host_index
|
|
1142
|
+
)
|
|
1143
|
+
|
|
1144
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1145
|
+
'204': None,
|
|
1146
|
+
}
|
|
1147
|
+
response_data = self.api_client.call_api(
|
|
1148
|
+
*_param,
|
|
1149
|
+
_request_timeout=_request_timeout
|
|
1150
|
+
)
|
|
1151
|
+
return response_data.response
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
def _pipeline_pipeline_id_campaign_artifact_id_put_serialize(
|
|
1155
|
+
self,
|
|
1156
|
+
pipeline_id,
|
|
1157
|
+
artifact_id,
|
|
1158
|
+
update_campaign_model,
|
|
1159
|
+
_request_auth,
|
|
1160
|
+
_content_type,
|
|
1161
|
+
_headers,
|
|
1162
|
+
_host_index,
|
|
1163
|
+
) -> RequestSerialized:
|
|
1164
|
+
|
|
1165
|
+
_host = None
|
|
1166
|
+
|
|
1167
|
+
_collection_formats: Dict[str, str] = {
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
_path_params: Dict[str, str] = {}
|
|
1171
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1172
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1173
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1174
|
+
_files: Dict[
|
|
1175
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1176
|
+
] = {}
|
|
1177
|
+
_body_params: Optional[bytes] = None
|
|
1178
|
+
|
|
1179
|
+
# process the path parameters
|
|
1180
|
+
if pipeline_id is not None:
|
|
1181
|
+
_path_params['pipelineId'] = pipeline_id
|
|
1182
|
+
if artifact_id is not None:
|
|
1183
|
+
_path_params['artifactId'] = artifact_id
|
|
1184
|
+
# process the query parameters
|
|
1185
|
+
# process the header parameters
|
|
1186
|
+
# process the form parameters
|
|
1187
|
+
# process the body parameter
|
|
1188
|
+
if update_campaign_model is not None:
|
|
1189
|
+
_body_params = update_campaign_model
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
# set the HTTP header `Content-Type`
|
|
1194
|
+
if _content_type:
|
|
1195
|
+
_header_params['Content-Type'] = _content_type
|
|
1196
|
+
else:
|
|
1197
|
+
_default_content_type = (
|
|
1198
|
+
self.api_client.select_header_content_type(
|
|
1199
|
+
[
|
|
1200
|
+
'application/json',
|
|
1201
|
+
'text/json',
|
|
1202
|
+
'application/*+json'
|
|
1203
|
+
]
|
|
1204
|
+
)
|
|
1205
|
+
)
|
|
1206
|
+
if _default_content_type is not None:
|
|
1207
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1208
|
+
|
|
1209
|
+
# authentication setting
|
|
1210
|
+
_auth_settings: List[str] = [
|
|
1211
|
+
'bearer',
|
|
1212
|
+
'oauth2'
|
|
1213
|
+
]
|
|
1214
|
+
|
|
1215
|
+
return self.api_client.param_serialize(
|
|
1216
|
+
method='PUT',
|
|
1217
|
+
resource_path='/pipeline/{pipelineId}/campaign/{artifactId}',
|
|
1218
|
+
path_params=_path_params,
|
|
1219
|
+
query_params=_query_params,
|
|
1220
|
+
header_params=_header_params,
|
|
1221
|
+
body=_body_params,
|
|
1222
|
+
post_params=_form_params,
|
|
1223
|
+
files=_files,
|
|
1224
|
+
auth_settings=_auth_settings,
|
|
1225
|
+
collection_formats=_collection_formats,
|
|
1226
|
+
_host=_host,
|
|
1227
|
+
_request_auth=_request_auth
|
|
1228
|
+
)
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
@validate_call
|
|
1234
|
+
def pipeline_pipeline_id_campaign_post(
|
|
1235
|
+
self,
|
|
1236
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
1237
|
+
add_campaign_model: Annotated[Optional[AddCampaignModel], Field(description="The body request")] = None,
|
|
657
1238
|
_request_timeout: Union[
|
|
658
1239
|
None,
|
|
659
1240
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -666,16 +1247,14 @@ class PipelineApi:
|
|
|
666
1247
|
_content_type: Optional[StrictStr] = None,
|
|
667
1248
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
668
1249
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
669
|
-
) ->
|
|
670
|
-
"""
|
|
1250
|
+
) -> AddCampaignArtifactResult:
|
|
1251
|
+
"""Adds a campaign to a pipeline.
|
|
671
1252
|
|
|
672
1253
|
|
|
673
|
-
:param pipeline_id: The id of the pipeline to update
|
|
1254
|
+
:param pipeline_id: The id of the pipeline to update (required)
|
|
674
1255
|
:type pipeline_id: str
|
|
675
|
-
:param
|
|
676
|
-
:type
|
|
677
|
-
:param update_campaign_model: The new campaign settings.
|
|
678
|
-
:type update_campaign_model: UpdateCampaignModel
|
|
1256
|
+
:param add_campaign_model: The body request
|
|
1257
|
+
:type add_campaign_model: AddCampaignModel
|
|
679
1258
|
:param _request_timeout: timeout setting for this request. If one
|
|
680
1259
|
number provided, it will be total request
|
|
681
1260
|
timeout. It can also be a pair (tuple) of
|
|
@@ -698,10 +1277,9 @@ class PipelineApi:
|
|
|
698
1277
|
:return: Returns the result object.
|
|
699
1278
|
""" # noqa: E501
|
|
700
1279
|
|
|
701
|
-
_param = self.
|
|
1280
|
+
_param = self._pipeline_pipeline_id_campaign_post_serialize(
|
|
702
1281
|
pipeline_id=pipeline_id,
|
|
703
|
-
|
|
704
|
-
update_campaign_model=update_campaign_model,
|
|
1282
|
+
add_campaign_model=add_campaign_model,
|
|
705
1283
|
_request_auth=_request_auth,
|
|
706
1284
|
_content_type=_content_type,
|
|
707
1285
|
_headers=_headers,
|
|
@@ -709,7 +1287,7 @@ class PipelineApi:
|
|
|
709
1287
|
)
|
|
710
1288
|
|
|
711
1289
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
712
|
-
'
|
|
1290
|
+
'200': "AddCampaignArtifactResult",
|
|
713
1291
|
}
|
|
714
1292
|
response_data = self.api_client.call_api(
|
|
715
1293
|
*_param,
|
|
@@ -723,11 +1301,10 @@ class PipelineApi:
|
|
|
723
1301
|
|
|
724
1302
|
|
|
725
1303
|
@validate_call
|
|
726
|
-
def
|
|
1304
|
+
def pipeline_pipeline_id_campaign_post_with_http_info(
|
|
727
1305
|
self,
|
|
728
|
-
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update
|
|
729
|
-
|
|
730
|
-
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
1306
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
1307
|
+
add_campaign_model: Annotated[Optional[AddCampaignModel], Field(description="The body request")] = None,
|
|
731
1308
|
_request_timeout: Union[
|
|
732
1309
|
None,
|
|
733
1310
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -740,16 +1317,14 @@ class PipelineApi:
|
|
|
740
1317
|
_content_type: Optional[StrictStr] = None,
|
|
741
1318
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
742
1319
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
743
|
-
) -> ApiResponse[
|
|
744
|
-
"""
|
|
1320
|
+
) -> ApiResponse[AddCampaignArtifactResult]:
|
|
1321
|
+
"""Adds a campaign to a pipeline.
|
|
745
1322
|
|
|
746
1323
|
|
|
747
|
-
:param pipeline_id: The id of the pipeline to update
|
|
1324
|
+
:param pipeline_id: The id of the pipeline to update (required)
|
|
748
1325
|
:type pipeline_id: str
|
|
749
|
-
:param
|
|
750
|
-
:type
|
|
751
|
-
:param update_campaign_model: The new campaign settings.
|
|
752
|
-
:type update_campaign_model: UpdateCampaignModel
|
|
1326
|
+
:param add_campaign_model: The body request
|
|
1327
|
+
:type add_campaign_model: AddCampaignModel
|
|
753
1328
|
:param _request_timeout: timeout setting for this request. If one
|
|
754
1329
|
number provided, it will be total request
|
|
755
1330
|
timeout. It can also be a pair (tuple) of
|
|
@@ -772,10 +1347,9 @@ class PipelineApi:
|
|
|
772
1347
|
:return: Returns the result object.
|
|
773
1348
|
""" # noqa: E501
|
|
774
1349
|
|
|
775
|
-
_param = self.
|
|
1350
|
+
_param = self._pipeline_pipeline_id_campaign_post_serialize(
|
|
776
1351
|
pipeline_id=pipeline_id,
|
|
777
|
-
|
|
778
|
-
update_campaign_model=update_campaign_model,
|
|
1352
|
+
add_campaign_model=add_campaign_model,
|
|
779
1353
|
_request_auth=_request_auth,
|
|
780
1354
|
_content_type=_content_type,
|
|
781
1355
|
_headers=_headers,
|
|
@@ -783,7 +1357,7 @@ class PipelineApi:
|
|
|
783
1357
|
)
|
|
784
1358
|
|
|
785
1359
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
786
|
-
'
|
|
1360
|
+
'200': "AddCampaignArtifactResult",
|
|
787
1361
|
}
|
|
788
1362
|
response_data = self.api_client.call_api(
|
|
789
1363
|
*_param,
|
|
@@ -797,11 +1371,10 @@ class PipelineApi:
|
|
|
797
1371
|
|
|
798
1372
|
|
|
799
1373
|
@validate_call
|
|
800
|
-
def
|
|
1374
|
+
def pipeline_pipeline_id_campaign_post_without_preload_content(
|
|
801
1375
|
self,
|
|
802
|
-
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update
|
|
803
|
-
|
|
804
|
-
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
1376
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
1377
|
+
add_campaign_model: Annotated[Optional[AddCampaignModel], Field(description="The body request")] = None,
|
|
805
1378
|
_request_timeout: Union[
|
|
806
1379
|
None,
|
|
807
1380
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -815,15 +1388,13 @@ class PipelineApi:
|
|
|
815
1388
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
816
1389
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
817
1390
|
) -> RESTResponseType:
|
|
818
|
-
"""
|
|
1391
|
+
"""Adds a campaign to a pipeline.
|
|
819
1392
|
|
|
820
1393
|
|
|
821
|
-
:param pipeline_id: The id of the pipeline to update
|
|
1394
|
+
:param pipeline_id: The id of the pipeline to update (required)
|
|
822
1395
|
:type pipeline_id: str
|
|
823
|
-
:param
|
|
824
|
-
:type
|
|
825
|
-
:param update_campaign_model: The new campaign settings.
|
|
826
|
-
:type update_campaign_model: UpdateCampaignModel
|
|
1396
|
+
:param add_campaign_model: The body request
|
|
1397
|
+
:type add_campaign_model: AddCampaignModel
|
|
827
1398
|
:param _request_timeout: timeout setting for this request. If one
|
|
828
1399
|
number provided, it will be total request
|
|
829
1400
|
timeout. It can also be a pair (tuple) of
|
|
@@ -846,10 +1417,9 @@ class PipelineApi:
|
|
|
846
1417
|
:return: Returns the result object.
|
|
847
1418
|
""" # noqa: E501
|
|
848
1419
|
|
|
849
|
-
_param = self.
|
|
1420
|
+
_param = self._pipeline_pipeline_id_campaign_post_serialize(
|
|
850
1421
|
pipeline_id=pipeline_id,
|
|
851
|
-
|
|
852
|
-
update_campaign_model=update_campaign_model,
|
|
1422
|
+
add_campaign_model=add_campaign_model,
|
|
853
1423
|
_request_auth=_request_auth,
|
|
854
1424
|
_content_type=_content_type,
|
|
855
1425
|
_headers=_headers,
|
|
@@ -857,7 +1427,7 @@ class PipelineApi:
|
|
|
857
1427
|
)
|
|
858
1428
|
|
|
859
1429
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
860
|
-
'
|
|
1430
|
+
'200': "AddCampaignArtifactResult",
|
|
861
1431
|
}
|
|
862
1432
|
response_data = self.api_client.call_api(
|
|
863
1433
|
*_param,
|
|
@@ -866,11 +1436,10 @@ class PipelineApi:
|
|
|
866
1436
|
return response_data.response
|
|
867
1437
|
|
|
868
1438
|
|
|
869
|
-
def
|
|
1439
|
+
def _pipeline_pipeline_id_campaign_post_serialize(
|
|
870
1440
|
self,
|
|
871
1441
|
pipeline_id,
|
|
872
|
-
|
|
873
|
-
update_campaign_model,
|
|
1442
|
+
add_campaign_model,
|
|
874
1443
|
_request_auth,
|
|
875
1444
|
_content_type,
|
|
876
1445
|
_headers,
|
|
@@ -894,16 +1463,23 @@ class PipelineApi:
|
|
|
894
1463
|
# process the path parameters
|
|
895
1464
|
if pipeline_id is not None:
|
|
896
1465
|
_path_params['pipelineId'] = pipeline_id
|
|
897
|
-
if artifact_id is not None:
|
|
898
|
-
_path_params['artifactId'] = artifact_id
|
|
899
1466
|
# process the query parameters
|
|
900
1467
|
# process the header parameters
|
|
901
1468
|
# process the form parameters
|
|
902
1469
|
# process the body parameter
|
|
903
|
-
if
|
|
904
|
-
_body_params =
|
|
1470
|
+
if add_campaign_model is not None:
|
|
1471
|
+
_body_params = add_campaign_model
|
|
905
1472
|
|
|
906
1473
|
|
|
1474
|
+
# set the HTTP header `Accept`
|
|
1475
|
+
if 'Accept' not in _header_params:
|
|
1476
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1477
|
+
[
|
|
1478
|
+
'text/plain',
|
|
1479
|
+
'application/json',
|
|
1480
|
+
'text/json'
|
|
1481
|
+
]
|
|
1482
|
+
)
|
|
907
1483
|
|
|
908
1484
|
# set the HTTP header `Content-Type`
|
|
909
1485
|
if _content_type:
|
|
@@ -928,8 +1504,8 @@ class PipelineApi:
|
|
|
928
1504
|
]
|
|
929
1505
|
|
|
930
1506
|
return self.api_client.param_serialize(
|
|
931
|
-
method='
|
|
932
|
-
resource_path='/pipeline/{pipelineId}/campaign
|
|
1507
|
+
method='POST',
|
|
1508
|
+
resource_path='/pipeline/{pipelineId}/campaign',
|
|
933
1509
|
path_params=_path_params,
|
|
934
1510
|
query_params=_query_params,
|
|
935
1511
|
header_params=_header_params,
|
|
@@ -946,10 +1522,10 @@ class PipelineApi:
|
|
|
946
1522
|
|
|
947
1523
|
|
|
948
1524
|
@validate_call
|
|
949
|
-
def
|
|
1525
|
+
def pipeline_pipeline_id_campaign_put(
|
|
950
1526
|
self,
|
|
951
|
-
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
952
|
-
|
|
1527
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1528
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
953
1529
|
_request_timeout: Union[
|
|
954
1530
|
None,
|
|
955
1531
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -962,14 +1538,14 @@ class PipelineApi:
|
|
|
962
1538
|
_content_type: Optional[StrictStr] = None,
|
|
963
1539
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
964
1540
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
965
|
-
) ->
|
|
966
|
-
"""
|
|
1541
|
+
) -> None:
|
|
1542
|
+
"""Updates a specific campaign for a pipeline.
|
|
967
1543
|
|
|
968
1544
|
|
|
969
|
-
:param pipeline_id: The id of the pipeline to update (required)
|
|
1545
|
+
:param pipeline_id: The id of the pipeline to update. (required)
|
|
970
1546
|
:type pipeline_id: str
|
|
971
|
-
:param
|
|
972
|
-
:type
|
|
1547
|
+
:param update_campaign_model: The new campaign settings.
|
|
1548
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
973
1549
|
:param _request_timeout: timeout setting for this request. If one
|
|
974
1550
|
number provided, it will be total request
|
|
975
1551
|
timeout. It can also be a pair (tuple) of
|
|
@@ -992,9 +1568,9 @@ class PipelineApi:
|
|
|
992
1568
|
:return: Returns the result object.
|
|
993
1569
|
""" # noqa: E501
|
|
994
1570
|
|
|
995
|
-
_param = self.
|
|
1571
|
+
_param = self._pipeline_pipeline_id_campaign_put_serialize(
|
|
996
1572
|
pipeline_id=pipeline_id,
|
|
997
|
-
|
|
1573
|
+
update_campaign_model=update_campaign_model,
|
|
998
1574
|
_request_auth=_request_auth,
|
|
999
1575
|
_content_type=_content_type,
|
|
1000
1576
|
_headers=_headers,
|
|
@@ -1002,7 +1578,7 @@ class PipelineApi:
|
|
|
1002
1578
|
)
|
|
1003
1579
|
|
|
1004
1580
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1005
|
-
'
|
|
1581
|
+
'204': None,
|
|
1006
1582
|
}
|
|
1007
1583
|
response_data = self.api_client.call_api(
|
|
1008
1584
|
*_param,
|
|
@@ -1016,10 +1592,10 @@ class PipelineApi:
|
|
|
1016
1592
|
|
|
1017
1593
|
|
|
1018
1594
|
@validate_call
|
|
1019
|
-
def
|
|
1595
|
+
def pipeline_pipeline_id_campaign_put_with_http_info(
|
|
1020
1596
|
self,
|
|
1021
|
-
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
1022
|
-
|
|
1597
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1598
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
1023
1599
|
_request_timeout: Union[
|
|
1024
1600
|
None,
|
|
1025
1601
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1032,14 +1608,14 @@ class PipelineApi:
|
|
|
1032
1608
|
_content_type: Optional[StrictStr] = None,
|
|
1033
1609
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1034
1610
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1035
|
-
) -> ApiResponse[
|
|
1036
|
-
"""
|
|
1611
|
+
) -> ApiResponse[None]:
|
|
1612
|
+
"""Updates a specific campaign for a pipeline.
|
|
1037
1613
|
|
|
1038
1614
|
|
|
1039
|
-
:param pipeline_id: The id of the pipeline to update (required)
|
|
1615
|
+
:param pipeline_id: The id of the pipeline to update. (required)
|
|
1040
1616
|
:type pipeline_id: str
|
|
1041
|
-
:param
|
|
1042
|
-
:type
|
|
1617
|
+
:param update_campaign_model: The new campaign settings.
|
|
1618
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
1043
1619
|
:param _request_timeout: timeout setting for this request. If one
|
|
1044
1620
|
number provided, it will be total request
|
|
1045
1621
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1062,9 +1638,9 @@ class PipelineApi:
|
|
|
1062
1638
|
:return: Returns the result object.
|
|
1063
1639
|
""" # noqa: E501
|
|
1064
1640
|
|
|
1065
|
-
_param = self.
|
|
1641
|
+
_param = self._pipeline_pipeline_id_campaign_put_serialize(
|
|
1066
1642
|
pipeline_id=pipeline_id,
|
|
1067
|
-
|
|
1643
|
+
update_campaign_model=update_campaign_model,
|
|
1068
1644
|
_request_auth=_request_auth,
|
|
1069
1645
|
_content_type=_content_type,
|
|
1070
1646
|
_headers=_headers,
|
|
@@ -1072,7 +1648,7 @@ class PipelineApi:
|
|
|
1072
1648
|
)
|
|
1073
1649
|
|
|
1074
1650
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1075
|
-
'
|
|
1651
|
+
'204': None,
|
|
1076
1652
|
}
|
|
1077
1653
|
response_data = self.api_client.call_api(
|
|
1078
1654
|
*_param,
|
|
@@ -1086,10 +1662,10 @@ class PipelineApi:
|
|
|
1086
1662
|
|
|
1087
1663
|
|
|
1088
1664
|
@validate_call
|
|
1089
|
-
def
|
|
1665
|
+
def pipeline_pipeline_id_campaign_put_without_preload_content(
|
|
1090
1666
|
self,
|
|
1091
|
-
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update")],
|
|
1092
|
-
|
|
1667
|
+
pipeline_id: Annotated[StrictStr, Field(description="The id of the pipeline to update.")],
|
|
1668
|
+
update_campaign_model: Annotated[Optional[UpdateCampaignModel], Field(description="The new campaign settings.")] = None,
|
|
1093
1669
|
_request_timeout: Union[
|
|
1094
1670
|
None,
|
|
1095
1671
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1103,13 +1679,13 @@ class PipelineApi:
|
|
|
1103
1679
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1104
1680
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1105
1681
|
) -> RESTResponseType:
|
|
1106
|
-
"""
|
|
1682
|
+
"""Updates a specific campaign for a pipeline.
|
|
1107
1683
|
|
|
1108
1684
|
|
|
1109
|
-
:param pipeline_id: The id of the pipeline to update (required)
|
|
1685
|
+
:param pipeline_id: The id of the pipeline to update. (required)
|
|
1110
1686
|
:type pipeline_id: str
|
|
1111
|
-
:param
|
|
1112
|
-
:type
|
|
1687
|
+
:param update_campaign_model: The new campaign settings.
|
|
1688
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
1113
1689
|
:param _request_timeout: timeout setting for this request. If one
|
|
1114
1690
|
number provided, it will be total request
|
|
1115
1691
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1132,9 +1708,9 @@ class PipelineApi:
|
|
|
1132
1708
|
:return: Returns the result object.
|
|
1133
1709
|
""" # noqa: E501
|
|
1134
1710
|
|
|
1135
|
-
_param = self.
|
|
1711
|
+
_param = self._pipeline_pipeline_id_campaign_put_serialize(
|
|
1136
1712
|
pipeline_id=pipeline_id,
|
|
1137
|
-
|
|
1713
|
+
update_campaign_model=update_campaign_model,
|
|
1138
1714
|
_request_auth=_request_auth,
|
|
1139
1715
|
_content_type=_content_type,
|
|
1140
1716
|
_headers=_headers,
|
|
@@ -1142,7 +1718,7 @@ class PipelineApi:
|
|
|
1142
1718
|
)
|
|
1143
1719
|
|
|
1144
1720
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1145
|
-
'
|
|
1721
|
+
'204': None,
|
|
1146
1722
|
}
|
|
1147
1723
|
response_data = self.api_client.call_api(
|
|
1148
1724
|
*_param,
|
|
@@ -1151,10 +1727,10 @@ class PipelineApi:
|
|
|
1151
1727
|
return response_data.response
|
|
1152
1728
|
|
|
1153
1729
|
|
|
1154
|
-
def
|
|
1730
|
+
def _pipeline_pipeline_id_campaign_put_serialize(
|
|
1155
1731
|
self,
|
|
1156
1732
|
pipeline_id,
|
|
1157
|
-
|
|
1733
|
+
update_campaign_model,
|
|
1158
1734
|
_request_auth,
|
|
1159
1735
|
_content_type,
|
|
1160
1736
|
_headers,
|
|
@@ -1182,19 +1758,10 @@ class PipelineApi:
|
|
|
1182
1758
|
# process the header parameters
|
|
1183
1759
|
# process the form parameters
|
|
1184
1760
|
# process the body parameter
|
|
1185
|
-
if
|
|
1186
|
-
_body_params =
|
|
1761
|
+
if update_campaign_model is not None:
|
|
1762
|
+
_body_params = update_campaign_model
|
|
1187
1763
|
|
|
1188
1764
|
|
|
1189
|
-
# set the HTTP header `Accept`
|
|
1190
|
-
if 'Accept' not in _header_params:
|
|
1191
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1192
|
-
[
|
|
1193
|
-
'text/plain',
|
|
1194
|
-
'application/json',
|
|
1195
|
-
'text/json'
|
|
1196
|
-
]
|
|
1197
|
-
)
|
|
1198
1765
|
|
|
1199
1766
|
# set the HTTP header `Content-Type`
|
|
1200
1767
|
if _content_type:
|
|
@@ -1219,7 +1786,7 @@ class PipelineApi:
|
|
|
1219
1786
|
]
|
|
1220
1787
|
|
|
1221
1788
|
return self.api_client.param_serialize(
|
|
1222
|
-
method='
|
|
1789
|
+
method='PUT',
|
|
1223
1790
|
resource_path='/pipeline/{pipelineId}/campaign',
|
|
1224
1791
|
path_params=_path_params,
|
|
1225
1792
|
query_params=_query_params,
|