python-cnb 1.28.8__tar.gz → 1.29.15__tar.gz
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.
- {python_cnb-1.28.8/python_cnb.egg-info → python_cnb-1.29.15}/PKG-INFO +1 -1
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/build.py +12 -10
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/dto.py +58 -59
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/organization.py +4 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/platform_service_api_internal_models_artifactory_dto.py +1 -1
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/organizations.py +42 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15/python_cnb.egg-info}/PKG-INFO +1 -1
- {python_cnb-1.28.8 → python_cnb-1.29.15}/setup.py +1 -1
- {python_cnb-1.28.8 → python_cnb-1.29.15}/LICENSE +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/MANIFEST.in +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/README.md +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/__init__.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/activities.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/ai.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/ai_ext.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/artifactsecurity.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/assets.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/authentication.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/badge.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/charge.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/client.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/cnb.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/event.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/exceptions.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/followers.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/git.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/gitsettings.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/issues.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/knowledgebase.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/members.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/missionresources.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/missions.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/__init__.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/api.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/chart.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/constant.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/convert.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/die.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/errors.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/flags.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/git_internal_app_git_service_bff_api.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/git_internal_app_vcs_service_bff_api.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/handler.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/member.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/mission_mission_resource_dto_web.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/models.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/openapi.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/models/web.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/npcobservability.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/pulls.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/rank.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/registries.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/releases.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/repocodeissue.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/repocontributor.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/repolabels.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/repositories.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/search.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/security.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/starring.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/users.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/cnb/workspace.py +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/pyproject.toml +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/python_cnb.egg-info/SOURCES.txt +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/python_cnb.egg-info/dependency_links.txt +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/python_cnb.egg-info/requires.txt +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/python_cnb.egg-info/top_level.txt +0 -0
- {python_cnb-1.28.8 → python_cnb-1.29.15}/setup.cfg +0 -0
|
@@ -20,7 +20,7 @@ class BuildService:
|
|
|
20
20
|
)
|
|
21
21
|
return dto.BuildCommonResult.safe_parse(data)
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# 删除构建日志。Delete build logs.
|
|
24
24
|
def build_logs_delete(self,
|
|
25
25
|
repo: str,
|
|
26
26
|
sn: str,
|
|
@@ -33,7 +33,7 @@ class BuildService:
|
|
|
33
33
|
)
|
|
34
34
|
return dto.BuildCommonResult.safe_parse(data)
|
|
35
35
|
|
|
36
|
-
#
|
|
36
|
+
# 下载 Runner 日志。Download runner logs.
|
|
37
37
|
def build_runner_download_log(self,
|
|
38
38
|
repo: str,
|
|
39
39
|
pipelineId: str,
|
|
@@ -46,7 +46,7 @@ class BuildService:
|
|
|
46
46
|
)
|
|
47
47
|
return
|
|
48
48
|
|
|
49
|
-
#
|
|
49
|
+
# 查询 AI 用量汇总。List AI usage by model.
|
|
50
50
|
def get_build_ai_audit(self,
|
|
51
51
|
repo: str,
|
|
52
52
|
sn: str,
|
|
@@ -60,7 +60,7 @@ class BuildService:
|
|
|
60
60
|
)
|
|
61
61
|
return dto.BuildAiAuditResult.safe_parse(data)
|
|
62
62
|
|
|
63
|
-
# 查询 AI 请求明细。List AI
|
|
63
|
+
# 查询 AI 请求明细。List AI requests.
|
|
64
64
|
def get_build_ai_request(self,
|
|
65
65
|
repo: str,
|
|
66
66
|
sn: str,
|
|
@@ -75,7 +75,7 @@ class BuildService:
|
|
|
75
75
|
)
|
|
76
76
|
return dto.BuildAiRequestResult.safe_parse(data)
|
|
77
77
|
|
|
78
|
-
#
|
|
78
|
+
# 查询 AI 请求详情。Get AI request detail.
|
|
79
79
|
def get_build_ai_request_detail(self,
|
|
80
80
|
repo: str,
|
|
81
81
|
sn: str,
|
|
@@ -90,7 +90,7 @@ class BuildService:
|
|
|
90
90
|
)
|
|
91
91
|
return dto.BuildAiRequestDetailResult.safe_parse(data)
|
|
92
92
|
|
|
93
|
-
#
|
|
93
|
+
# 查询构建历史。List build history.
|
|
94
94
|
def get_build_logs(self,
|
|
95
95
|
repo: str,
|
|
96
96
|
createTime: Optional[str] = None,
|
|
@@ -103,6 +103,7 @@ class BuildService:
|
|
|
103
103
|
sourceRef: Optional[str] = None,
|
|
104
104
|
status: Optional[str] = None,
|
|
105
105
|
targetRef: Optional[str] = None,
|
|
106
|
+
title: Optional[str] = None,
|
|
106
107
|
userId: Optional[str] = None,
|
|
107
108
|
userName: Optional[str] = None,
|
|
108
109
|
) -> dto.BuildLogsResult:
|
|
@@ -119,6 +120,7 @@ class BuildService:
|
|
|
119
120
|
"sourceRef": sourceRef,
|
|
120
121
|
"status": status,
|
|
121
122
|
"targetRef": targetRef,
|
|
123
|
+
"title": title,
|
|
122
124
|
"userId": userId,
|
|
123
125
|
"userName": userName,
|
|
124
126
|
}
|
|
@@ -129,7 +131,7 @@ class BuildService:
|
|
|
129
131
|
)
|
|
130
132
|
return dto.BuildLogsResult.safe_parse(data)
|
|
131
133
|
|
|
132
|
-
#
|
|
134
|
+
# 查询阶段详情。Get stage detail.
|
|
133
135
|
def get_build_stage(self,
|
|
134
136
|
repo: str,
|
|
135
137
|
sn: str,
|
|
@@ -144,7 +146,7 @@ class BuildService:
|
|
|
144
146
|
)
|
|
145
147
|
return dto.BuildStageResult.safe_parse(data)
|
|
146
148
|
|
|
147
|
-
#
|
|
149
|
+
# 查询构建状态。Get build status.
|
|
148
150
|
def get_build_status(self,
|
|
149
151
|
repo: str,
|
|
150
152
|
sn: str,
|
|
@@ -157,7 +159,7 @@ class BuildService:
|
|
|
157
159
|
)
|
|
158
160
|
return dto.BuildStatusResult.safe_parse(data)
|
|
159
161
|
|
|
160
|
-
#
|
|
162
|
+
# 触发构建。Trigger a build.
|
|
161
163
|
def start_build(self,
|
|
162
164
|
repo: str,
|
|
163
165
|
body_params: dto.StartBuildReq,
|
|
@@ -171,7 +173,7 @@ class BuildService:
|
|
|
171
173
|
)
|
|
172
174
|
return dto.BuildResult.safe_parse(data)
|
|
173
175
|
|
|
174
|
-
#
|
|
176
|
+
# 停止构建。Stop a build.
|
|
175
177
|
def stop_build(self,
|
|
176
178
|
repo: str,
|
|
177
179
|
sn: str,
|
|
@@ -511,59 +511,6 @@ class DockerModelConfig(CNBBaseModel):
|
|
|
511
511
|
quantization: Optional[str] = Field(alias="quantization", default=None)
|
|
512
512
|
size: Optional[str] = Field(alias="size", default=None)
|
|
513
513
|
pass
|
|
514
|
-
class DockerModelDescriptor(CNBBaseModel):
|
|
515
|
-
created: Optional[str] = Field(alias="created", default=None)
|
|
516
|
-
pass
|
|
517
|
-
class DockerModelPackageDetail(CNBBaseModel):
|
|
518
|
-
address: Optional[str] = Field(alias="address", default=None)
|
|
519
|
-
desc: Optional[str] = Field(alias="desc", default=None)
|
|
520
|
-
guarded: Optional[bool] = Field(alias="guarded", default=None)
|
|
521
|
-
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
522
|
-
package: Optional[str] = Field(alias="package", default=None)
|
|
523
|
-
pull_count: Optional[int] = Field(alias="pull_count", default=None)
|
|
524
|
-
recent_pull_count: Optional[int] = Field(alias="recent_pull_count", default=None)
|
|
525
|
-
slug: Optional[str] = Field(alias="slug", default=None)
|
|
526
|
-
tag_total: Optional[int] = Field(alias="tag_total", default=None)
|
|
527
|
-
tags: Optional[list['DockerModelTag']] = Field(alias="tags", default=None)
|
|
528
|
-
pass
|
|
529
|
-
class DockerModelProvenance(CNBBaseModel):
|
|
530
|
-
digest: Optional[str] = Field(alias="digest", default=None)
|
|
531
|
-
git_address: Optional[str] = Field(alias="git_address", default=None)
|
|
532
|
-
git_commit: Optional[str] = Field(alias="git_commit", default=None)
|
|
533
|
-
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
534
|
-
package: Optional[str] = Field(alias="package", default=None)
|
|
535
|
-
registry_address: Optional[str] = Field(alias="registry_address", default=None)
|
|
536
|
-
sn: Optional[str] = Field(alias="sn", default=None)
|
|
537
|
-
tag: Optional[str] = Field(alias="tag", default=None)
|
|
538
|
-
pass
|
|
539
|
-
class DockerModelTag(CNBBaseModel):
|
|
540
|
-
address: Optional[str] = Field(alias="address", default=None)
|
|
541
|
-
config: Optional['DockerModelConfig'] = Field(alias="config", default=None)
|
|
542
|
-
descriptor: Optional['DockerModelDescriptor'] = Field(alias="descriptor", default=None)
|
|
543
|
-
git_address: Optional[str] = Field(alias="git_address", default=None)
|
|
544
|
-
guarded: Optional[bool] = Field(alias="guarded", default=None)
|
|
545
|
-
has_provenance: Optional[bool] = Field(alias="has_provenance", default=None)
|
|
546
|
-
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
547
|
-
name: Optional[str] = Field(alias="name", default=None)
|
|
548
|
-
pull_count: Optional[int] = Field(alias="pull_count", default=None)
|
|
549
|
-
recent_pull_count: Optional[int] = Field(alias="recent_pull_count", default=None)
|
|
550
|
-
size: Optional[int] = Field(alias="size", default=None)
|
|
551
|
-
pass
|
|
552
|
-
class DockerModelTagDetail(CNBBaseModel):
|
|
553
|
-
address: Optional[str] = Field(alias="address", default=None)
|
|
554
|
-
config: Optional['DockerModelConfig'] = Field(alias="config", default=None)
|
|
555
|
-
descriptor: Optional['DockerModelDescriptor'] = Field(alias="descriptor", default=None)
|
|
556
|
-
git_address: Optional[str] = Field(alias="git_address", default=None)
|
|
557
|
-
guarded: Optional[bool] = Field(alias="guarded", default=None)
|
|
558
|
-
has_provenance: Optional[bool] = Field(alias="has_provenance", default=None)
|
|
559
|
-
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
560
|
-
package: Optional[str] = Field(alias="package", default=None)
|
|
561
|
-
pull_count: Optional[int] = Field(alias="pull_count", default=None)
|
|
562
|
-
recent_pull_count: Optional[int] = Field(alias="recent_pull_count", default=None)
|
|
563
|
-
size: Optional[int] = Field(alias="size", default=None)
|
|
564
|
-
slug: Optional[str] = Field(alias="slug", default=None)
|
|
565
|
-
tag: Optional[str] = Field(alias="tag", default=None)
|
|
566
|
-
pass
|
|
567
514
|
class DocumentStatistics(CNBBaseModel):
|
|
568
515
|
count: Optional[int] = Field(alias="count", default=None)
|
|
569
516
|
size: Optional[int] = Field(alias="size", default=None)
|
|
@@ -891,6 +838,59 @@ class NpcPrRow(CNBBaseModel):
|
|
|
891
838
|
update_time: Optional[str] = Field(alias="update_time", default=None)
|
|
892
839
|
visibility: Optional[str] = Field(alias="visibility", default=None)
|
|
893
840
|
pass
|
|
841
|
+
class OCIDescriptor(CNBBaseModel):
|
|
842
|
+
created: Optional[str] = Field(alias="created", default=None)
|
|
843
|
+
pass
|
|
844
|
+
class OCIPackageDetail(CNBBaseModel):
|
|
845
|
+
address: Optional[str] = Field(alias="address", default=None)
|
|
846
|
+
desc: Optional[str] = Field(alias="desc", default=None)
|
|
847
|
+
guarded: Optional[bool] = Field(alias="guarded", default=None)
|
|
848
|
+
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
849
|
+
package: Optional[str] = Field(alias="package", default=None)
|
|
850
|
+
pull_count: Optional[int] = Field(alias="pull_count", default=None)
|
|
851
|
+
recent_pull_count: Optional[int] = Field(alias="recent_pull_count", default=None)
|
|
852
|
+
slug: Optional[str] = Field(alias="slug", default=None)
|
|
853
|
+
tag_total: Optional[int] = Field(alias="tag_total", default=None)
|
|
854
|
+
tags: Optional[list['OCITag']] = Field(alias="tags", default=None)
|
|
855
|
+
pass
|
|
856
|
+
class OCIProvenance(CNBBaseModel):
|
|
857
|
+
digest: Optional[str] = Field(alias="digest", default=None)
|
|
858
|
+
git_address: Optional[str] = Field(alias="git_address", default=None)
|
|
859
|
+
git_commit: Optional[str] = Field(alias="git_commit", default=None)
|
|
860
|
+
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
861
|
+
package: Optional[str] = Field(alias="package", default=None)
|
|
862
|
+
registry_address: Optional[str] = Field(alias="registry_address", default=None)
|
|
863
|
+
sn: Optional[str] = Field(alias="sn", default=None)
|
|
864
|
+
tag: Optional[str] = Field(alias="tag", default=None)
|
|
865
|
+
pass
|
|
866
|
+
class OCITag(CNBBaseModel):
|
|
867
|
+
address: Optional[str] = Field(alias="address", default=None)
|
|
868
|
+
config: Optional['DockerModelConfig'] = Field(alias="config", default=None)
|
|
869
|
+
descriptor: Optional['OCIDescriptor'] = Field(alias="descriptor", default=None)
|
|
870
|
+
git_address: Optional[str] = Field(alias="git_address", default=None)
|
|
871
|
+
guarded: Optional[bool] = Field(alias="guarded", default=None)
|
|
872
|
+
has_provenance: Optional[bool] = Field(alias="has_provenance", default=None)
|
|
873
|
+
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
874
|
+
name: Optional[str] = Field(alias="name", default=None)
|
|
875
|
+
pull_count: Optional[int] = Field(alias="pull_count", default=None)
|
|
876
|
+
recent_pull_count: Optional[int] = Field(alias="recent_pull_count", default=None)
|
|
877
|
+
size: Optional[int] = Field(alias="size", default=None)
|
|
878
|
+
pass
|
|
879
|
+
class OCITagDetail(CNBBaseModel):
|
|
880
|
+
address: Optional[str] = Field(alias="address", default=None)
|
|
881
|
+
config: Optional['DockerModelConfig'] = Field(alias="config", default=None)
|
|
882
|
+
descriptor: Optional['OCIDescriptor'] = Field(alias="descriptor", default=None)
|
|
883
|
+
git_address: Optional[str] = Field(alias="git_address", default=None)
|
|
884
|
+
guarded: Optional[bool] = Field(alias="guarded", default=None)
|
|
885
|
+
has_provenance: Optional[bool] = Field(alias="has_provenance", default=None)
|
|
886
|
+
last_pusher: Optional['LastPusher'] = Field(alias="last_pusher", default=None)
|
|
887
|
+
package: Optional[str] = Field(alias="package", default=None)
|
|
888
|
+
pull_count: Optional[int] = Field(alias="pull_count", default=None)
|
|
889
|
+
recent_pull_count: Optional[int] = Field(alias="recent_pull_count", default=None)
|
|
890
|
+
size: Optional[int] = Field(alias="size", default=None)
|
|
891
|
+
slug: Optional[str] = Field(alias="slug", default=None)
|
|
892
|
+
tag: Optional[str] = Field(alias="tag", default=None)
|
|
893
|
+
pass
|
|
894
894
|
class OpenAPIArtifactLicenseOverview(CNBBaseModel):
|
|
895
895
|
enable: Optional[bool] = Field(alias="enable", default=None)
|
|
896
896
|
high_risk_cnt: Optional[int] = Field(alias="high_risk_cnt", default=None)
|
|
@@ -1039,12 +1039,12 @@ class PackageDetail(CNBBaseModel):
|
|
|
1039
1039
|
composer: Optional['CommonRegistryPackageDetail'] = Field(alias="composer", default=None)
|
|
1040
1040
|
conan: Optional['CommonRegistryPackageDetail'] = Field(alias="conan", default=None)
|
|
1041
1041
|
docker: Optional['ContainerPackageDetail'] = Field(alias="docker", default=None)
|
|
1042
|
-
dockermodel: Optional['DockerModelPackageDetail'] = Field(alias="dockermodel", default=None)
|
|
1043
1042
|
generic: Optional['CommonRegistryPackageDetail'] = Field(alias="generic", default=None)
|
|
1044
1043
|
helm: Optional['ChartPackageDetail'] = Field(alias="helm", default=None)
|
|
1045
1044
|
maven: Optional['CommonRegistryPackageDetail'] = Field(alias="maven", default=None)
|
|
1046
1045
|
npm: Optional['CommonRegistryPackageDetail'] = Field(alias="npm", default=None)
|
|
1047
1046
|
nuget: Optional['CommonRegistryPackageDetail'] = Field(alias="nuget", default=None)
|
|
1047
|
+
oci: Optional['OCIPackageDetail'] = Field(alias="oci", default=None)
|
|
1048
1048
|
ohpm: Optional['CommonRegistryPackageDetail'] = Field(alias="ohpm", default=None)
|
|
1049
1049
|
pypi: Optional['CommonRegistryPackageDetail'] = Field(alias="pypi", default=None)
|
|
1050
1050
|
pass
|
|
@@ -1053,8 +1053,7 @@ class PackageType(Enum):
|
|
|
1053
1053
|
PackageTypeArtifactory = "all"
|
|
1054
1054
|
PackageTypeDocker = "docker"
|
|
1055
1055
|
PackageTypeHelm = "helm"
|
|
1056
|
-
|
|
1057
|
-
PackageTypeDockerModelAlias = "dockermodel"
|
|
1056
|
+
PackageTypeOCI = "oci"
|
|
1058
1057
|
PackageTypeNpm = "npm"
|
|
1059
1058
|
PackageTypeMaven = "maven"
|
|
1060
1059
|
PackageTypeOhpm = "ohpm"
|
|
@@ -1088,12 +1087,12 @@ class Provenance(CNBBaseModel):
|
|
|
1088
1087
|
composer: Optional['CommonRegistryProvenance'] = Field(alias="composer", default=None)
|
|
1089
1088
|
conan: Optional['ConanProvenance'] = Field(alias="conan", default=None)
|
|
1090
1089
|
docker: Optional['ContainerProvenance'] = Field(alias="docker", default=None)
|
|
1091
|
-
dockermodel: Optional['DockerModelProvenance'] = Field(alias="dockermodel", default=None)
|
|
1092
1090
|
generic: Optional['CommonRegistryProvenance'] = Field(alias="generic", default=None)
|
|
1093
1091
|
helm: Optional['HelmProvenance'] = Field(alias="helm", default=None)
|
|
1094
1092
|
maven: Optional['CommonRegistryProvenance'] = Field(alias="maven", default=None)
|
|
1095
1093
|
npm: Optional['CommonRegistryProvenance'] = Field(alias="npm", default=None)
|
|
1096
1094
|
nuget: Optional['CommonRegistryProvenance'] = Field(alias="nuget", default=None)
|
|
1095
|
+
oci: Optional['OCIProvenance'] = Field(alias="oci", default=None)
|
|
1097
1096
|
ohpm: Optional['CommonRegistryProvenance'] = Field(alias="ohpm", default=None)
|
|
1098
1097
|
pypi: Optional['PypiProvenance'] = Field(alias="pypi", default=None)
|
|
1099
1098
|
pass
|
|
@@ -1301,6 +1300,7 @@ class Repos4User(CNBBaseModel):
|
|
|
1301
1300
|
tags: Optional[list[object]] = Field(alias="tags", default=None)
|
|
1302
1301
|
topics: Optional[str] = Field(alias="topics", default=None)
|
|
1303
1302
|
updated_at: Optional[str] = Field(alias="updated_at", default=None)
|
|
1303
|
+
visibility_change_lock: Optional[bool] = Field(alias="visibility_change_lock", default=None)
|
|
1304
1304
|
visibility_level: Optional['constant.Visibility'] = Field(alias="visibility_level", default=None)
|
|
1305
1305
|
web_url: Optional[str] = Field(alias="web_url", default=None)
|
|
1306
1306
|
pass
|
|
@@ -1439,12 +1439,12 @@ class TagDetail(CNBBaseModel):
|
|
|
1439
1439
|
composer: Optional['CommonRegistryTagDetail'] = Field(alias="composer", default=None)
|
|
1440
1440
|
conan: Optional['ConanRegistryTagDetail'] = Field(alias="conan", default=None)
|
|
1441
1441
|
docker: Optional['ContainerTagDetail'] = Field(alias="docker", default=None)
|
|
1442
|
-
dockermodel: Optional['DockerModelTagDetail'] = Field(alias="dockermodel", default=None)
|
|
1443
1442
|
generic: Optional['CommonRegistryTagDetail'] = Field(alias="generic", default=None)
|
|
1444
1443
|
helm: Optional['ChartTagDetail'] = Field(alias="helm", default=None)
|
|
1445
1444
|
maven: Optional['CommonRegistryTagDetail'] = Field(alias="maven", default=None)
|
|
1446
1445
|
npm: Optional['CommonRegistryTagDetail'] = Field(alias="npm", default=None)
|
|
1447
1446
|
nuget: Optional['CommonRegistryTagDetail'] = Field(alias="nuget", default=None)
|
|
1447
|
+
oci: Optional['OCITagDetail'] = Field(alias="oci", default=None)
|
|
1448
1448
|
ohpm: Optional['CommonRegistryTagDetail'] = Field(alias="ohpm", default=None)
|
|
1449
1449
|
pypi: Optional['PyPIRegistryTagDetail'] = Field(alias="pypi", default=None)
|
|
1450
1450
|
pass
|
|
@@ -1547,7 +1547,6 @@ class UsersResult(CNBBaseModel):
|
|
|
1547
1547
|
follow_repo_count: Optional[int] = Field(alias="follow_repo_count", default=None)
|
|
1548
1548
|
follower_count: Optional[int] = Field(alias="follower_count", default=None)
|
|
1549
1549
|
freeze: Optional[bool] = Field(alias="freeze", default=None)
|
|
1550
|
-
gender: Optional[int] = Field(alias="gender", default=None)
|
|
1551
1550
|
group_count: Optional[int] = Field(alias="group_count", default=None)
|
|
1552
1551
|
id: Optional[str] = Field(alias="id", default=None)
|
|
1553
1552
|
identity_providers: Optional[Dict[str, 'object']] = Field(alias="identity_providers", default=None)
|
|
@@ -36,3 +36,7 @@ class SettingValue(Enum):
|
|
|
36
36
|
onlyRepoMemberCanMentionNPC = "only_repo_member_can_mention_npc"
|
|
37
37
|
allowNpcCrossRepo = "allow_npc_cross_repo"
|
|
38
38
|
allowCronCrossRepo = "allow_cron_cross_repo"
|
|
39
|
+
allowUncredibleCrossRepo = "allow_uncredible_cross_repo"
|
|
40
|
+
disableRepoEventAutoTrigger = "disable_repo_event_auto_trigger"
|
|
41
|
+
disableRepoCronAutoTrigger = "disable_repo_cron_auto_trigger"
|
|
42
|
+
disableRepoNpcAutoTrigger = "disable_repo_npc_auto_trigger"
|
|
@@ -11,12 +11,12 @@ class Tag(CNBBaseModel):
|
|
|
11
11
|
composer: Optional[list['dto.CommonRegistryTag']] = Field(alias="composer", default=None)
|
|
12
12
|
conan: Optional[list['dto.CommonRegistryTag']] = Field(alias="conan", default=None)
|
|
13
13
|
docker: Optional[list['dto.ContainerTag']] = Field(alias="docker", default=None)
|
|
14
|
-
dockermodel: Optional[list['dto.DockerModelTag']] = Field(alias="dockermodel", default=None)
|
|
15
14
|
generic: Optional[list['dto.CommonRegistryTag']] = Field(alias="generic", default=None)
|
|
16
15
|
helm: Optional[list['dto.ChartTag']] = Field(alias="helm", default=None)
|
|
17
16
|
maven: Optional[list['dto.CommonRegistryTag']] = Field(alias="maven", default=None)
|
|
18
17
|
npm: Optional[list['dto.CommonRegistryTag']] = Field(alias="npm", default=None)
|
|
19
18
|
nuget: Optional[list['dto.CommonRegistryTag']] = Field(alias="nuget", default=None)
|
|
19
|
+
oci: Optional[list['dto.OCITag']] = Field(alias="oci", default=None)
|
|
20
20
|
ohpm: Optional[list['dto.CommonRegistryTag']] = Field(alias="ohpm", default=None)
|
|
21
21
|
package: Optional[str] = Field(alias="package", default=None)
|
|
22
22
|
pypi: Optional[list['dto.CommonRegistryTag']] = Field(alias="pypi", default=None)
|
|
@@ -21,6 +21,19 @@ class OrganizationsService:
|
|
|
21
21
|
)
|
|
22
22
|
return
|
|
23
23
|
|
|
24
|
+
# 删除根组织保护分支规则。Delete group branch protection rule.
|
|
25
|
+
def delete_group_branch_protection(self,
|
|
26
|
+
group: str,
|
|
27
|
+
id: str,
|
|
28
|
+
):
|
|
29
|
+
u = "/%s/-/git-group-settings/branch-protections/%s" % (group, id, )
|
|
30
|
+
|
|
31
|
+
data = self._client.request(
|
|
32
|
+
method="DELETE",
|
|
33
|
+
endpoint=u,
|
|
34
|
+
)
|
|
35
|
+
return
|
|
36
|
+
|
|
24
37
|
# 删除组织。Delete organization.
|
|
25
38
|
def delete_organization(self,
|
|
26
39
|
group: str,
|
|
@@ -167,6 +180,35 @@ class OrganizationsService:
|
|
|
167
180
|
)
|
|
168
181
|
return [dto.OrganizationAccess.safe_parse(item) for item in data]
|
|
169
182
|
|
|
183
|
+
# 更新根组织保护分支规则。Update group branch protection rule.
|
|
184
|
+
def patch_group_branch_protection(self,
|
|
185
|
+
group: str,
|
|
186
|
+
id: str,
|
|
187
|
+
body_params: api.BranchProtection,
|
|
188
|
+
):
|
|
189
|
+
u = "/%s/-/git-group-settings/branch-protections/%s" % (group, id, )
|
|
190
|
+
|
|
191
|
+
data = self._client.request(
|
|
192
|
+
method="PATCH",
|
|
193
|
+
endpoint=u,
|
|
194
|
+
json=body_params.to_dict(),
|
|
195
|
+
)
|
|
196
|
+
return
|
|
197
|
+
|
|
198
|
+
# 创建根组织保护分支规则。Create group branch protection rule.
|
|
199
|
+
def post_group_branch_protection(self,
|
|
200
|
+
group: str,
|
|
201
|
+
body_params: api.BranchProtection,
|
|
202
|
+
):
|
|
203
|
+
u = "/%s/-/git-group-settings/branch-protections" % (group, )
|
|
204
|
+
|
|
205
|
+
data = self._client.request(
|
|
206
|
+
method="POST",
|
|
207
|
+
endpoint=u,
|
|
208
|
+
json=body_params.to_dict(),
|
|
209
|
+
)
|
|
210
|
+
return
|
|
211
|
+
|
|
170
212
|
# 转移组织。Transfer an organization.
|
|
171
213
|
def transfer_group(self,
|
|
172
214
|
group: str,
|
|
@@ -7,7 +7,7 @@ long_description = (this_directory / "README.md").read_text(encoding="utf-8")
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="python-cnb",
|
|
10
|
-
version="1.
|
|
10
|
+
version="1.29.15",
|
|
11
11
|
author="Tencent Cloud",
|
|
12
12
|
author_email="ericdduan@tencent.com",
|
|
13
13
|
description="CNB OpenAPI的Python SDK,方便与CNB平台进行交互",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|