kingsoftcloud-sdk-python 1.5.8.40__py2.py3-none-any.whl → 1.5.8.42__py2.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.
- {kingsoftcloud_sdk_python-1.5.8.40.dist-info → kingsoftcloud_sdk_python-1.5.8.42.dist-info}/METADATA +1 -1
- {kingsoftcloud_sdk_python-1.5.8.40.dist-info → kingsoftcloud_sdk_python-1.5.8.42.dist-info}/RECORD +10 -10
- ksyun/__init__.py +1 -1
- ksyun/client/aicp/v20240612/client.py +621 -0
- ksyun/client/aicp/v20240612/models.py +703 -5
- ksyun/client/epc/v20151101/client.py +23 -0
- ksyun/client/epc/v20151101/models.py +16 -0
- {kingsoftcloud_sdk_python-1.5.8.40.dist-info → kingsoftcloud_sdk_python-1.5.8.42.dist-info}/WHEEL +0 -0
- {kingsoftcloud_sdk_python-1.5.8.40.dist-info → kingsoftcloud_sdk_python-1.5.8.42.dist-info}/licenses/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.5.8.40.dist-info → kingsoftcloud_sdk_python-1.5.8.42.dist-info}/top_level.txt +0 -0
|
@@ -513,6 +513,237 @@ class StopNotebookSavingImageRequest(AbstractModel):
|
|
|
513
513
|
self.NotebookId = params.get("NotebookId")
|
|
514
514
|
|
|
515
515
|
|
|
516
|
+
class EnableApikeyStatusRequest(AbstractModel):
|
|
517
|
+
"""EnableApikeyStatus请求参数结构体
|
|
518
|
+
"""
|
|
519
|
+
|
|
520
|
+
def __init__(self):
|
|
521
|
+
r"""启用API Key
|
|
522
|
+
:param KeyId: API Key的ID
|
|
523
|
+
:type PathPrefix: String
|
|
524
|
+
:param Status: 启禁用状态:1启用,2禁用
|
|
525
|
+
:type PathPrefix: String
|
|
526
|
+
"""
|
|
527
|
+
self.KeyId = None
|
|
528
|
+
self.Status = None
|
|
529
|
+
|
|
530
|
+
def _deserialize(self, params):
|
|
531
|
+
if params.get("KeyId"):
|
|
532
|
+
self.KeyId = params.get("KeyId")
|
|
533
|
+
if params.get("Status"):
|
|
534
|
+
self.Status = params.get("Status")
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
class ModifyApikeyRequest(AbstractModel):
|
|
538
|
+
"""ModifyApikey请求参数结构体
|
|
539
|
+
"""
|
|
540
|
+
|
|
541
|
+
def __init__(self):
|
|
542
|
+
r"""编辑API Key
|
|
543
|
+
:param KeyId:
|
|
544
|
+
:type PathPrefix: String
|
|
545
|
+
:param Name: API Key 名称
|
|
546
|
+
:type PathPrefix: String
|
|
547
|
+
:param Description: API Key 描述
|
|
548
|
+
:type PathPrefix: String
|
|
549
|
+
:param AssociatedModelIds: API Key 关联的模型列表
|
|
550
|
+
:type PathPrefix: Array
|
|
551
|
+
:param AllAssociatedModel: 是否全选
|
|
552
|
+
:type PathPrefix: Boolean
|
|
553
|
+
"""
|
|
554
|
+
self.KeyId = None
|
|
555
|
+
self.Name = None
|
|
556
|
+
self.Description = None
|
|
557
|
+
self.AssociatedModelIds = None
|
|
558
|
+
self.AllAssociatedModel = None
|
|
559
|
+
|
|
560
|
+
def _deserialize(self, params):
|
|
561
|
+
if params.get("KeyId"):
|
|
562
|
+
self.KeyId = params.get("KeyId")
|
|
563
|
+
if params.get("Name"):
|
|
564
|
+
self.Name = params.get("Name")
|
|
565
|
+
if params.get("Description"):
|
|
566
|
+
self.Description = params.get("Description")
|
|
567
|
+
if params.get("AssociatedModelIds"):
|
|
568
|
+
self.AssociatedModelIds = params.get("AssociatedModelIds")
|
|
569
|
+
if params.get("AllAssociatedModel"):
|
|
570
|
+
self.AllAssociatedModel = params.get("AllAssociatedModel")
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
class ActivateApiServiceRequest(AbstractModel):
|
|
574
|
+
"""ActivateApiService请求参数结构体
|
|
575
|
+
"""
|
|
576
|
+
|
|
577
|
+
def __init__(self):
|
|
578
|
+
r"""开通模型API服务
|
|
579
|
+
:param Status: 状态:1 表示开通服务
|
|
580
|
+
:type PathPrefix: String
|
|
581
|
+
"""
|
|
582
|
+
self.Status = None
|
|
583
|
+
|
|
584
|
+
def _deserialize(self, params):
|
|
585
|
+
if params.get("Status"):
|
|
586
|
+
self.Status = params.get("Status")
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
class DeleteApikeyRequest(AbstractModel):
|
|
590
|
+
"""DeleteApikey请求参数结构体
|
|
591
|
+
"""
|
|
592
|
+
|
|
593
|
+
def __init__(self):
|
|
594
|
+
r"""删除API Key
|
|
595
|
+
:param KeyId: KeyId,例如:API-KEY-1158133806039134208
|
|
596
|
+
:type PathPrefix: String
|
|
597
|
+
"""
|
|
598
|
+
self.KeyId = None
|
|
599
|
+
|
|
600
|
+
def _deserialize(self, params):
|
|
601
|
+
if params.get("KeyId"):
|
|
602
|
+
self.KeyId = params.get("KeyId")
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
class DescribeModelsRequest(AbstractModel):
|
|
606
|
+
"""DescribeModels请求参数结构体
|
|
607
|
+
"""
|
|
608
|
+
|
|
609
|
+
def __init__(self):
|
|
610
|
+
r"""查询模型列表(支持分页)
|
|
611
|
+
:param Marker: 分页页码,从1开始
|
|
612
|
+
:type PathPrefix: Int
|
|
613
|
+
:param MaxResults: 分页页长,最大100
|
|
614
|
+
:type PathPrefix: Int
|
|
615
|
+
:param ModelCategory: 模型类别筛选项
|
|
616
|
+
:type PathPrefix: Filter
|
|
617
|
+
:param Provider: 模型供应商
|
|
618
|
+
:type PathPrefix: Filter
|
|
619
|
+
:param ContextLength: 模型上下文长度
|
|
620
|
+
1 - 128k及以下
|
|
621
|
+
2 - 128k到256k
|
|
622
|
+
3 - 256k以上
|
|
623
|
+
:type PathPrefix: Filter
|
|
624
|
+
:param ModelName: 模型名称关键词
|
|
625
|
+
:type PathPrefix: String
|
|
626
|
+
"""
|
|
627
|
+
self.Marker = None
|
|
628
|
+
self.MaxResults = None
|
|
629
|
+
self.ModelCategory = None
|
|
630
|
+
self.Provider = None
|
|
631
|
+
self.ContextLength = None
|
|
632
|
+
self.ModelName = None
|
|
633
|
+
|
|
634
|
+
def _deserialize(self, params):
|
|
635
|
+
if params.get("Marker"):
|
|
636
|
+
self.Marker = params.get("Marker")
|
|
637
|
+
if params.get("MaxResults"):
|
|
638
|
+
self.MaxResults = params.get("MaxResults")
|
|
639
|
+
if params.get("ModelCategory"):
|
|
640
|
+
self.ModelCategory = params.get("ModelCategory")
|
|
641
|
+
if params.get("Provider"):
|
|
642
|
+
self.Provider = params.get("Provider")
|
|
643
|
+
if params.get("ContextLength"):
|
|
644
|
+
self.ContextLength = params.get("ContextLength")
|
|
645
|
+
if params.get("ModelName"):
|
|
646
|
+
self.ModelName = params.get("ModelName")
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
class CreateApikeyRequest(AbstractModel):
|
|
650
|
+
"""CreateApikey请求参数结构体
|
|
651
|
+
"""
|
|
652
|
+
|
|
653
|
+
def __init__(self):
|
|
654
|
+
r"""创建API Key
|
|
655
|
+
:param Name: API Key 名称
|
|
656
|
+
:type PathPrefix: String
|
|
657
|
+
:param Description: API Key 描述
|
|
658
|
+
:type PathPrefix: String
|
|
659
|
+
:param ProjectId: 项目ID
|
|
660
|
+
:type PathPrefix: Int
|
|
661
|
+
:param AssociatedModelIds: 关联的模型列表
|
|
662
|
+
:type PathPrefix: Array
|
|
663
|
+
:param AllAssociatedModel: 是否全选
|
|
664
|
+
:type PathPrefix: Boolean
|
|
665
|
+
:param AllowedIps: IP白名单,空数组表示不设置白名单
|
|
666
|
+
:type PathPrefix: Array
|
|
667
|
+
"""
|
|
668
|
+
self.Name = None
|
|
669
|
+
self.Description = None
|
|
670
|
+
self.ProjectId = None
|
|
671
|
+
self.AssociatedModelIds = None
|
|
672
|
+
self.AllAssociatedModel = None
|
|
673
|
+
self.AllowedIps = None
|
|
674
|
+
|
|
675
|
+
def _deserialize(self, params):
|
|
676
|
+
if params.get("Name"):
|
|
677
|
+
self.Name = params.get("Name")
|
|
678
|
+
if params.get("Description"):
|
|
679
|
+
self.Description = params.get("Description")
|
|
680
|
+
if params.get("ProjectId"):
|
|
681
|
+
self.ProjectId = params.get("ProjectId")
|
|
682
|
+
if params.get("AssociatedModelIds"):
|
|
683
|
+
self.AssociatedModelIds = params.get("AssociatedModelIds")
|
|
684
|
+
if params.get("AllAssociatedModel"):
|
|
685
|
+
self.AllAssociatedModel = params.get("AllAssociatedModel")
|
|
686
|
+
if params.get("AllowedIps"):
|
|
687
|
+
self.AllowedIps = params.get("AllowedIps")
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
class GetModelDetailRequest(AbstractModel):
|
|
691
|
+
"""GetModelDetail请求参数结构体
|
|
692
|
+
"""
|
|
693
|
+
|
|
694
|
+
def __init__(self):
|
|
695
|
+
r"""查询模型详情
|
|
696
|
+
:param ModelId:
|
|
697
|
+
:type PathPrefix: String
|
|
698
|
+
"""
|
|
699
|
+
self.ModelId = None
|
|
700
|
+
|
|
701
|
+
def _deserialize(self, params):
|
|
702
|
+
if params.get("ModelId"):
|
|
703
|
+
self.ModelId = params.get("ModelId")
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
class DescribeApikeysRequest(AbstractModel):
|
|
707
|
+
"""DescribeApikeys请求参数结构体
|
|
708
|
+
"""
|
|
709
|
+
|
|
710
|
+
def __init__(self):
|
|
711
|
+
r"""查询API Key列表(分页)
|
|
712
|
+
:param Marker: 分页页码,从1开始
|
|
713
|
+
:type PathPrefix: Int
|
|
714
|
+
:param MaxResults: 每页条数,最多100
|
|
715
|
+
:type PathPrefix: Int
|
|
716
|
+
:param AssociatedModelId: 通过模型查关联的API Key
|
|
717
|
+
:type PathPrefix: Filter
|
|
718
|
+
:param Status: 按状态过滤查询
|
|
719
|
+
:type PathPrefix: Filter
|
|
720
|
+
:param Namekeyword: 名称搜索关键词
|
|
721
|
+
:type PathPrefix: String
|
|
722
|
+
:param DefaultKey: 是否默认只查默认Key
|
|
723
|
+
:type PathPrefix: Boolean
|
|
724
|
+
"""
|
|
725
|
+
self.Marker = None
|
|
726
|
+
self.MaxResults = None
|
|
727
|
+
self.AssociatedModelId = None
|
|
728
|
+
self.Status = None
|
|
729
|
+
self.Namekeyword = None
|
|
730
|
+
self.DefaultKey = None
|
|
731
|
+
|
|
732
|
+
def _deserialize(self, params):
|
|
733
|
+
if params.get("Marker"):
|
|
734
|
+
self.Marker = params.get("Marker")
|
|
735
|
+
if params.get("MaxResults"):
|
|
736
|
+
self.MaxResults = params.get("MaxResults")
|
|
737
|
+
if params.get("AssociatedModelId"):
|
|
738
|
+
self.AssociatedModelId = params.get("AssociatedModelId")
|
|
739
|
+
if params.get("Status"):
|
|
740
|
+
self.Status = params.get("Status")
|
|
741
|
+
if params.get("Namekeyword"):
|
|
742
|
+
self.Namekeyword = params.get("Namekeyword")
|
|
743
|
+
if params.get("DefaultKey"):
|
|
744
|
+
self.DefaultKey = params.get("DefaultKey")
|
|
745
|
+
|
|
746
|
+
|
|
516
747
|
class QueryTokenDataRequest(AbstractModel):
|
|
517
748
|
"""QueryTokenData请求参数结构体
|
|
518
749
|
"""
|
|
@@ -525,8 +756,6 @@ class QueryTokenDataRequest(AbstractModel):
|
|
|
525
756
|
:type PathPrefix: Int
|
|
526
757
|
:param MaxResults: 分页页长,最大10000
|
|
527
758
|
:type PathPrefix: Int
|
|
528
|
-
:param ModelKeyword: model 搜索关键词
|
|
529
|
-
:type PathPrefix: String
|
|
530
759
|
:param Keyword: 搜索关键词
|
|
531
760
|
:type PathPrefix: String
|
|
532
761
|
:param GroupBy: 分组字段:
|
|
@@ -542,7 +771,6 @@ model-按模型分组;keyId-按apikey分组。
|
|
|
542
771
|
self.StartTimestamp = None
|
|
543
772
|
self.EndTimestamp = None
|
|
544
773
|
self.MaxResults = None
|
|
545
|
-
self.ModelKeyword = None
|
|
546
774
|
self.Keyword = None
|
|
547
775
|
self.GroupBy = None
|
|
548
776
|
self.ReasoningType = None
|
|
@@ -556,8 +784,6 @@ model-按模型分组;keyId-按apikey分组。
|
|
|
556
784
|
self.EndTimestamp = params.get("EndTimestamp")
|
|
557
785
|
if params.get("MaxResults"):
|
|
558
786
|
self.MaxResults = params.get("MaxResults")
|
|
559
|
-
if params.get("ModelKeyword"):
|
|
560
|
-
self.ModelKeyword = params.get("ModelKeyword")
|
|
561
787
|
if params.get("Keyword"):
|
|
562
788
|
self.Keyword = params.get("Keyword")
|
|
563
789
|
if params.get("GroupBy"):
|
|
@@ -570,6 +796,333 @@ model-按模型分组;keyId-按apikey分组。
|
|
|
570
796
|
self.IsGlobalServer = params.get("IsGlobalServer")
|
|
571
797
|
|
|
572
798
|
|
|
799
|
+
class DisableApikeyStatusRequest(AbstractModel):
|
|
800
|
+
"""DisableApikeyStatus请求参数结构体
|
|
801
|
+
"""
|
|
802
|
+
|
|
803
|
+
def __init__(self):
|
|
804
|
+
r"""禁用API Key
|
|
805
|
+
:param KeyId: API Key的ID
|
|
806
|
+
:type PathPrefix: String
|
|
807
|
+
:param Status: 启禁用状态:1启用,2禁用
|
|
808
|
+
:type PathPrefix: String
|
|
809
|
+
"""
|
|
810
|
+
self.KeyId = None
|
|
811
|
+
self.Status = None
|
|
812
|
+
|
|
813
|
+
def _deserialize(self, params):
|
|
814
|
+
if params.get("KeyId"):
|
|
815
|
+
self.KeyId = params.get("KeyId")
|
|
816
|
+
if params.get("Status"):
|
|
817
|
+
self.Status = params.get("Status")
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
class GetApiServiceRequest(AbstractModel):
|
|
821
|
+
"""GetApiService请求参数结构体
|
|
822
|
+
"""
|
|
823
|
+
|
|
824
|
+
def __init__(self):
|
|
825
|
+
r"""查询API服务开通状态
|
|
826
|
+
"""
|
|
827
|
+
|
|
828
|
+
def _deserialize(self, params):
|
|
829
|
+
return
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
class GetBatchInferenceJobsFinalResultDownloadUrlRequest(AbstractModel):
|
|
833
|
+
"""GetBatchInferenceJobsFinalResultDownloadUrl请求参数结构体
|
|
834
|
+
"""
|
|
835
|
+
|
|
836
|
+
def __init__(self):
|
|
837
|
+
r"""查询批量推理任务最终结果下载链接
|
|
838
|
+
:param BatchId:
|
|
839
|
+
:type PathPrefix: String
|
|
840
|
+
"""
|
|
841
|
+
self.BatchId = None
|
|
842
|
+
|
|
843
|
+
def _deserialize(self, params):
|
|
844
|
+
if params.get("BatchId"):
|
|
845
|
+
self.BatchId = params.get("BatchId")
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
class DescribeInferenceJobsKs3AuthInfoRequest(AbstractModel):
|
|
849
|
+
"""DescribeInferenceJobsKs3AuthInfo请求参数结构体
|
|
850
|
+
"""
|
|
851
|
+
|
|
852
|
+
def __init__(self):
|
|
853
|
+
r"""查询批量推理任务Ks3鉴权信息
|
|
854
|
+
"""
|
|
855
|
+
|
|
856
|
+
def _deserialize(self, params):
|
|
857
|
+
return
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
class StopBatchInferenceJobRequest(AbstractModel):
|
|
861
|
+
"""StopBatchInferenceJob请求参数结构体
|
|
862
|
+
"""
|
|
863
|
+
|
|
864
|
+
def __init__(self):
|
|
865
|
+
r"""终止批量推理任务
|
|
866
|
+
:param BatchId:
|
|
867
|
+
:type PathPrefix: String
|
|
868
|
+
"""
|
|
869
|
+
self.BatchId = None
|
|
870
|
+
|
|
871
|
+
def _deserialize(self, params):
|
|
872
|
+
if params.get("BatchId"):
|
|
873
|
+
self.BatchId = params.get("BatchId")
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
class CreateBatchInferenceJobRequest(AbstractModel):
|
|
877
|
+
"""CreateBatchInferenceJob请求参数结构体
|
|
878
|
+
"""
|
|
879
|
+
|
|
880
|
+
def __init__(self):
|
|
881
|
+
r"""创建批量推理任务
|
|
882
|
+
:param JobName:
|
|
883
|
+
:type PathPrefix: String
|
|
884
|
+
:param JobDesc:
|
|
885
|
+
:type PathPrefix: String
|
|
886
|
+
:param ApikeyId:
|
|
887
|
+
:type PathPrefix: String
|
|
888
|
+
:param Model: 模型名,如:deepseek-r1-0528
|
|
889
|
+
:type PathPrefix: String
|
|
890
|
+
:param ExecuteTimeoutMs:
|
|
891
|
+
:type PathPrefix: Int
|
|
892
|
+
:param InputDataType: 文件类型:user_ks3 用户ks3;upload_ks3 上传文件
|
|
893
|
+
:type PathPrefix: String
|
|
894
|
+
:param Ks3Region:
|
|
895
|
+
:type PathPrefix: String
|
|
896
|
+
:param Ks3Ak:
|
|
897
|
+
:type PathPrefix: String
|
|
898
|
+
:param Ks3Sk:
|
|
899
|
+
:type PathPrefix: String
|
|
900
|
+
:param InBucket:
|
|
901
|
+
:type PathPrefix: String
|
|
902
|
+
:param OutBucket:
|
|
903
|
+
:type PathPrefix: String
|
|
904
|
+
:param InObjectName:
|
|
905
|
+
:type PathPrefix: String
|
|
906
|
+
:param OutObjectName:
|
|
907
|
+
:type PathPrefix: String
|
|
908
|
+
"""
|
|
909
|
+
self.JobName = None
|
|
910
|
+
self.JobDesc = None
|
|
911
|
+
self.ApikeyId = None
|
|
912
|
+
self.Model = None
|
|
913
|
+
self.ExecuteTimeoutMs = None
|
|
914
|
+
self.InputDataType = None
|
|
915
|
+
self.Ks3Region = None
|
|
916
|
+
self.Ks3Ak = None
|
|
917
|
+
self.Ks3Sk = None
|
|
918
|
+
self.InBucket = None
|
|
919
|
+
self.OutBucket = None
|
|
920
|
+
self.InObjectName = None
|
|
921
|
+
self.OutObjectName = None
|
|
922
|
+
|
|
923
|
+
def _deserialize(self, params):
|
|
924
|
+
if params.get("JobName"):
|
|
925
|
+
self.JobName = params.get("JobName")
|
|
926
|
+
if params.get("JobDesc"):
|
|
927
|
+
self.JobDesc = params.get("JobDesc")
|
|
928
|
+
if params.get("ApikeyId"):
|
|
929
|
+
self.ApikeyId = params.get("ApikeyId")
|
|
930
|
+
if params.get("Model"):
|
|
931
|
+
self.Model = params.get("Model")
|
|
932
|
+
if params.get("ExecuteTimeoutMs"):
|
|
933
|
+
self.ExecuteTimeoutMs = params.get("ExecuteTimeoutMs")
|
|
934
|
+
if params.get("InputDataType"):
|
|
935
|
+
self.InputDataType = params.get("InputDataType")
|
|
936
|
+
if params.get("Ks3Region"):
|
|
937
|
+
self.Ks3Region = params.get("Ks3Region")
|
|
938
|
+
if params.get("Ks3Ak"):
|
|
939
|
+
self.Ks3Ak = params.get("Ks3Ak")
|
|
940
|
+
if params.get("Ks3Sk"):
|
|
941
|
+
self.Ks3Sk = params.get("Ks3Sk")
|
|
942
|
+
if params.get("InBucket"):
|
|
943
|
+
self.InBucket = params.get("InBucket")
|
|
944
|
+
if params.get("OutBucket"):
|
|
945
|
+
self.OutBucket = params.get("OutBucket")
|
|
946
|
+
if params.get("InObjectName"):
|
|
947
|
+
self.InObjectName = params.get("InObjectName")
|
|
948
|
+
if params.get("OutObjectName"):
|
|
949
|
+
self.OutObjectName = params.get("OutObjectName")
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
class ModifyBatchInferenceJobRequest(AbstractModel):
|
|
953
|
+
"""ModifyBatchInferenceJob请求参数结构体
|
|
954
|
+
"""
|
|
955
|
+
|
|
956
|
+
def __init__(self):
|
|
957
|
+
r"""更新批量推理任务(修改jobName和jobDesc)
|
|
958
|
+
:param BatchId:
|
|
959
|
+
:type PathPrefix: String
|
|
960
|
+
:param JobName:
|
|
961
|
+
:type PathPrefix: String
|
|
962
|
+
:param JobDesc:
|
|
963
|
+
:type PathPrefix: String
|
|
964
|
+
"""
|
|
965
|
+
self.BatchId = None
|
|
966
|
+
self.JobName = None
|
|
967
|
+
self.JobDesc = None
|
|
968
|
+
|
|
969
|
+
def _deserialize(self, params):
|
|
970
|
+
if params.get("BatchId"):
|
|
971
|
+
self.BatchId = params.get("BatchId")
|
|
972
|
+
if params.get("JobName"):
|
|
973
|
+
self.JobName = params.get("JobName")
|
|
974
|
+
if params.get("JobDesc"):
|
|
975
|
+
self.JobDesc = params.get("JobDesc")
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
class DescribeBatchInferenceJobsRequest(AbstractModel):
|
|
979
|
+
"""DescribeBatchInferenceJobs请求参数结构体
|
|
980
|
+
"""
|
|
981
|
+
|
|
982
|
+
def __init__(self):
|
|
983
|
+
r"""查询批量推理任务(支持分页,按创建用户过滤)
|
|
984
|
+
:param Marker: 页码,从1开始,默认是1
|
|
985
|
+
:type PathPrefix: Int
|
|
986
|
+
:param MaxResults: 页长,默认和最大都是100
|
|
987
|
+
:type PathPrefix: Int
|
|
988
|
+
:param JobNameKeyword: 任务名称模糊查询条件
|
|
989
|
+
:type PathPrefix: String
|
|
990
|
+
:param Status: 按状态过滤查询
|
|
991
|
+
init、queuing、running、terminated、completed、failed、timeout
|
|
992
|
+
:type PathPrefix: Filter
|
|
993
|
+
:param BatchId:
|
|
994
|
+
:type PathPrefix: String
|
|
995
|
+
"""
|
|
996
|
+
self.Marker = None
|
|
997
|
+
self.MaxResults = None
|
|
998
|
+
self.JobNameKeyword = None
|
|
999
|
+
self.Status = None
|
|
1000
|
+
self.BatchId = None
|
|
1001
|
+
|
|
1002
|
+
def _deserialize(self, params):
|
|
1003
|
+
if params.get("Marker"):
|
|
1004
|
+
self.Marker = params.get("Marker")
|
|
1005
|
+
if params.get("MaxResults"):
|
|
1006
|
+
self.MaxResults = params.get("MaxResults")
|
|
1007
|
+
if params.get("JobNameKeyword"):
|
|
1008
|
+
self.JobNameKeyword = params.get("JobNameKeyword")
|
|
1009
|
+
if params.get("Status"):
|
|
1010
|
+
self.Status = params.get("Status")
|
|
1011
|
+
if params.get("BatchId"):
|
|
1012
|
+
self.BatchId = params.get("BatchId")
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
class DeleteBatchInferenceJobRequest(AbstractModel):
|
|
1016
|
+
"""DeleteBatchInferenceJob请求参数结构体
|
|
1017
|
+
"""
|
|
1018
|
+
|
|
1019
|
+
def __init__(self):
|
|
1020
|
+
r"""删除批量推理任务
|
|
1021
|
+
:param BatchId:
|
|
1022
|
+
:type PathPrefix: String
|
|
1023
|
+
"""
|
|
1024
|
+
self.BatchId = None
|
|
1025
|
+
|
|
1026
|
+
def _deserialize(self, params):
|
|
1027
|
+
if params.get("BatchId"):
|
|
1028
|
+
self.BatchId = params.get("BatchId")
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
class EnableModelsRequest(AbstractModel):
|
|
1032
|
+
"""EnableModels请求参数结构体
|
|
1033
|
+
"""
|
|
1034
|
+
|
|
1035
|
+
def __init__(self):
|
|
1036
|
+
r"""开通模型,支持批量
|
|
1037
|
+
:param ModelIds:
|
|
1038
|
+
:type PathPrefix: Array
|
|
1039
|
+
"""
|
|
1040
|
+
self.ModelIds = None
|
|
1041
|
+
|
|
1042
|
+
def _deserialize(self, params):
|
|
1043
|
+
if params.get("ModelIds"):
|
|
1044
|
+
self.ModelIds = params.get("ModelIds")
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
class DescribeModelQuotasRequest(AbstractModel):
|
|
1048
|
+
"""DescribeModelQuotas请求参数结构体
|
|
1049
|
+
"""
|
|
1050
|
+
|
|
1051
|
+
def __init__(self):
|
|
1052
|
+
r"""查询模型配额列表
|
|
1053
|
+
:param Marker: 分页页码,从1开始
|
|
1054
|
+
:type PathPrefix: Int
|
|
1055
|
+
:param MaxResults: 分页页长,最大100
|
|
1056
|
+
:type PathPrefix: Int
|
|
1057
|
+
:param Keyword: 模型搜索关键词
|
|
1058
|
+
:type PathPrefix: String
|
|
1059
|
+
:param Type: 文本模型/视觉模型
|
|
1060
|
+
:type PathPrefix: String
|
|
1061
|
+
"""
|
|
1062
|
+
self.Marker = None
|
|
1063
|
+
self.MaxResults = None
|
|
1064
|
+
self.Keyword = None
|
|
1065
|
+
self.Type = None
|
|
1066
|
+
|
|
1067
|
+
def _deserialize(self, params):
|
|
1068
|
+
if params.get("Marker"):
|
|
1069
|
+
self.Marker = params.get("Marker")
|
|
1070
|
+
if params.get("MaxResults"):
|
|
1071
|
+
self.MaxResults = params.get("MaxResults")
|
|
1072
|
+
if params.get("Keyword"):
|
|
1073
|
+
self.Keyword = params.get("Keyword")
|
|
1074
|
+
if params.get("Type"):
|
|
1075
|
+
self.Type = params.get("Type")
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
class DisableModelsRequest(AbstractModel):
|
|
1079
|
+
"""DisableModels请求参数结构体
|
|
1080
|
+
"""
|
|
1081
|
+
|
|
1082
|
+
def __init__(self):
|
|
1083
|
+
r"""禁用对应模型
|
|
1084
|
+
:param ModelIds:
|
|
1085
|
+
:type PathPrefix: Array
|
|
1086
|
+
"""
|
|
1087
|
+
self.ModelIds = None
|
|
1088
|
+
|
|
1089
|
+
def _deserialize(self, params):
|
|
1090
|
+
if params.get("ModelIds"):
|
|
1091
|
+
self.ModelIds = params.get("ModelIds")
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
class EnableOverFreeLimitRequest(AbstractModel):
|
|
1095
|
+
"""EnableOverFreeLimit请求参数结构体
|
|
1096
|
+
"""
|
|
1097
|
+
|
|
1098
|
+
def __init__(self):
|
|
1099
|
+
r"""免费配额用完后禁用对应模型
|
|
1100
|
+
:param ModelIds:
|
|
1101
|
+
:type PathPrefix: Array
|
|
1102
|
+
"""
|
|
1103
|
+
self.ModelIds = None
|
|
1104
|
+
|
|
1105
|
+
def _deserialize(self, params):
|
|
1106
|
+
if params.get("ModelIds"):
|
|
1107
|
+
self.ModelIds = params.get("ModelIds")
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
class DisableOverFreeLimitRequest(AbstractModel):
|
|
1111
|
+
"""DisableOverFreeLimit请求参数结构体
|
|
1112
|
+
"""
|
|
1113
|
+
|
|
1114
|
+
def __init__(self):
|
|
1115
|
+
r"""即免费配额用完后继续使用计费配额
|
|
1116
|
+
:param ModelIds:
|
|
1117
|
+
:type PathPrefix: Array
|
|
1118
|
+
"""
|
|
1119
|
+
self.ModelIds = None
|
|
1120
|
+
|
|
1121
|
+
def _deserialize(self, params):
|
|
1122
|
+
if params.get("ModelIds"):
|
|
1123
|
+
self.ModelIds = params.get("ModelIds")
|
|
1124
|
+
|
|
1125
|
+
|
|
573
1126
|
class CreateTrainJobRequest(AbstractModel):
|
|
574
1127
|
"""CreateTrainJob请求参数结构体
|
|
575
1128
|
"""
|
|
@@ -1015,3 +1568,148 @@ class DescribeResourcePoolInstancesRequest(AbstractModel):
|
|
|
1015
1568
|
self.Filter = params.get("Filter")
|
|
1016
1569
|
|
|
1017
1570
|
|
|
1571
|
+
class CreateInferenceEndpointRequest(AbstractModel):
|
|
1572
|
+
"""CreateInferenceEndpoint请求参数结构体
|
|
1573
|
+
"""
|
|
1574
|
+
|
|
1575
|
+
def __init__(self):
|
|
1576
|
+
r"""创建接入点
|
|
1577
|
+
:param EndpointName: 推理接入点名称,1-64个字符,允许字母中文,数字,特殊字符-_、()
|
|
1578
|
+
:type PathPrefix: String
|
|
1579
|
+
:param ProjectId: 项目制Id
|
|
1580
|
+
:type PathPrefix: String
|
|
1581
|
+
:param ModelName: 默认绑定的模型名称
|
|
1582
|
+
:type PathPrefix: String
|
|
1583
|
+
:param RateLimit : 接入点限流配置
|
|
1584
|
+
:type PathPrefix: Object
|
|
1585
|
+
:param ModelId: ModelId 模型名称
|
|
1586
|
+
:type PathPrefix: String
|
|
1587
|
+
"""
|
|
1588
|
+
self.EndpointName = None
|
|
1589
|
+
self.ProjectId = None
|
|
1590
|
+
self.ModelName = None
|
|
1591
|
+
self.RateLimit_ = None
|
|
1592
|
+
self.ModelId = None
|
|
1593
|
+
|
|
1594
|
+
def _deserialize(self, params):
|
|
1595
|
+
if params.get("EndpointName"):
|
|
1596
|
+
self.EndpointName = params.get("EndpointName")
|
|
1597
|
+
if params.get("ProjectId"):
|
|
1598
|
+
self.ProjectId = params.get("ProjectId")
|
|
1599
|
+
if params.get("ModelName"):
|
|
1600
|
+
self.ModelName = params.get("ModelName")
|
|
1601
|
+
if params.get("RateLimit "):
|
|
1602
|
+
self.RateLimit_ = params.get("RateLimit ")
|
|
1603
|
+
if params.get("ModelId"):
|
|
1604
|
+
self.ModelId = params.get("ModelId")
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
class DescribeInferenceEndpointsRequest(AbstractModel):
|
|
1608
|
+
"""DescribeInferenceEndpoints请求参数结构体
|
|
1609
|
+
"""
|
|
1610
|
+
|
|
1611
|
+
def __init__(self):
|
|
1612
|
+
r"""查询接入点
|
|
1613
|
+
:param EndpointId: 推理接入点 ID列表,范围为1-100
|
|
1614
|
+
:type PathPrefix: Filter
|
|
1615
|
+
:param EndpointName:
|
|
1616
|
+
:type PathPrefix: String
|
|
1617
|
+
:param Marker:
|
|
1618
|
+
:type PathPrefix: Int
|
|
1619
|
+
:param MaxResults:
|
|
1620
|
+
:type PathPrefix: Int
|
|
1621
|
+
:param ProjectId:
|
|
1622
|
+
:type PathPrefix: Filter
|
|
1623
|
+
:param Filter: 条件过滤,支持按照state状态和project过滤
|
|
1624
|
+
:type PathPrefix: Array
|
|
1625
|
+
"""
|
|
1626
|
+
self.EndpointId = None
|
|
1627
|
+
self.EndpointName = None
|
|
1628
|
+
self.Marker = None
|
|
1629
|
+
self.MaxResults = None
|
|
1630
|
+
self.ProjectId = None
|
|
1631
|
+
self.Filter = None
|
|
1632
|
+
|
|
1633
|
+
def _deserialize(self, params):
|
|
1634
|
+
if params.get("EndpointId"):
|
|
1635
|
+
self.EndpointId = params.get("EndpointId")
|
|
1636
|
+
if params.get("EndpointName"):
|
|
1637
|
+
self.EndpointName = params.get("EndpointName")
|
|
1638
|
+
if params.get("Marker"):
|
|
1639
|
+
self.Marker = params.get("Marker")
|
|
1640
|
+
if params.get("MaxResults"):
|
|
1641
|
+
self.MaxResults = params.get("MaxResults")
|
|
1642
|
+
if params.get("ProjectId"):
|
|
1643
|
+
self.ProjectId = params.get("ProjectId")
|
|
1644
|
+
if params.get("Filter"):
|
|
1645
|
+
self.Filter = params.get("Filter")
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
class StartInferenceEndpointRequest(AbstractModel):
|
|
1649
|
+
"""StartInferenceEndpoint请求参数结构体
|
|
1650
|
+
"""
|
|
1651
|
+
|
|
1652
|
+
def __init__(self):
|
|
1653
|
+
r"""关闭接入点
|
|
1654
|
+
:param EndpointName: 推理接入点名称
|
|
1655
|
+
:type PathPrefix: String
|
|
1656
|
+
:param ProjectId: 项目制Id
|
|
1657
|
+
:type PathPrefix: String
|
|
1658
|
+
:param ModelName: 默认绑定的模型名称
|
|
1659
|
+
:type PathPrefix: String
|
|
1660
|
+
:param RateLimit : 接入点限流配置
|
|
1661
|
+
:type PathPrefix: Object
|
|
1662
|
+
:param EndpointId:
|
|
1663
|
+
:type PathPrefix: String
|
|
1664
|
+
"""
|
|
1665
|
+
self.EndpointName = None
|
|
1666
|
+
self.ProjectId = None
|
|
1667
|
+
self.ModelName = None
|
|
1668
|
+
self.RateLimit_ = None
|
|
1669
|
+
self.EndpointId = None
|
|
1670
|
+
|
|
1671
|
+
def _deserialize(self, params):
|
|
1672
|
+
if params.get("EndpointName"):
|
|
1673
|
+
self.EndpointName = params.get("EndpointName")
|
|
1674
|
+
if params.get("ProjectId"):
|
|
1675
|
+
self.ProjectId = params.get("ProjectId")
|
|
1676
|
+
if params.get("ModelName"):
|
|
1677
|
+
self.ModelName = params.get("ModelName")
|
|
1678
|
+
if params.get("RateLimit "):
|
|
1679
|
+
self.RateLimit_ = params.get("RateLimit ")
|
|
1680
|
+
if params.get("EndpointId"):
|
|
1681
|
+
self.EndpointId = params.get("EndpointId")
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
class DeleteInferenceEndpointRequest(AbstractModel):
|
|
1685
|
+
"""DeleteInferenceEndpoint请求参数结构体
|
|
1686
|
+
"""
|
|
1687
|
+
|
|
1688
|
+
def __init__(self):
|
|
1689
|
+
r"""删除接入点
|
|
1690
|
+
:param EndpointId:
|
|
1691
|
+
:type PathPrefix: String
|
|
1692
|
+
"""
|
|
1693
|
+
self.EndpointId = None
|
|
1694
|
+
|
|
1695
|
+
def _deserialize(self, params):
|
|
1696
|
+
if params.get("EndpointId"):
|
|
1697
|
+
self.EndpointId = params.get("EndpointId")
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
class DisableEndpointRateLimitRequest(AbstractModel):
|
|
1701
|
+
"""DisableEndpointRateLimit请求参数结构体
|
|
1702
|
+
"""
|
|
1703
|
+
|
|
1704
|
+
def __init__(self):
|
|
1705
|
+
r"""关闭接入点限流
|
|
1706
|
+
:param EndpointId:
|
|
1707
|
+
:type PathPrefix: String
|
|
1708
|
+
"""
|
|
1709
|
+
self.EndpointId = None
|
|
1710
|
+
|
|
1711
|
+
def _deserialize(self, params):
|
|
1712
|
+
if params.get("EndpointId"):
|
|
1713
|
+
self.EndpointId = params.get("EndpointId")
|
|
1714
|
+
|
|
1715
|
+
|