Skip to content

Commit aaee78c

Browse files
committed
feat: update cr api
1 parent 4fdf9ab commit aaee78c

File tree

2 files changed

+48
-22
lines changed

2 files changed

+48
-22
lines changed

volcenginesdkcr/api/cr_api.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501
115115
auth_settings = ['volcengineSign'] # noqa: E501
116116

117117
return self.api_client.call_api(
118-
'/CreateNamespace/2022-05-12/cr/post/', 'POST',
118+
'/CreateNamespace/2022-05-12/cr/post/application_json/', 'POST',
119119
path_params,
120120
query_params,
121121
header_params,
@@ -212,7 +212,7 @@ def create_registry_with_http_info(self, body, **kwargs): # noqa: E501
212212
auth_settings = ['volcengineSign'] # noqa: E501
213213

214214
return self.api_client.call_api(
215-
'/CreateRegistry/2022-05-12/cr/post/', 'POST',
215+
'/CreateRegistry/2022-05-12/cr/post/application_json/', 'POST',
216216
path_params,
217217
query_params,
218218
header_params,
@@ -309,7 +309,7 @@ def create_repository_with_http_info(self, body, **kwargs): # noqa: E501
309309
auth_settings = ['volcengineSign'] # noqa: E501
310310

311311
return self.api_client.call_api(
312-
'/CreateRepository/2022-05-12/cr/post/', 'POST',
312+
'/CreateRepository/2022-05-12/cr/post/application_json/', 'POST',
313313
path_params,
314314
query_params,
315315
header_params,
@@ -406,7 +406,7 @@ def delete_namespace_with_http_info(self, body, **kwargs): # noqa: E501
406406
auth_settings = ['volcengineSign'] # noqa: E501
407407

408408
return self.api_client.call_api(
409-
'/DeleteNamespace/2022-05-12/cr/post/', 'POST',
409+
'/DeleteNamespace/2022-05-12/cr/post/application_json/', 'POST',
410410
path_params,
411411
query_params,
412412
header_params,
@@ -503,7 +503,7 @@ def delete_registry_with_http_info(self, body, **kwargs): # noqa: E501
503503
auth_settings = ['volcengineSign'] # noqa: E501
504504

505505
return self.api_client.call_api(
506-
'/DeleteRegistry/2022-05-12/cr/post/', 'POST',
506+
'/DeleteRegistry/2022-05-12/cr/post/application_json/', 'POST',
507507
path_params,
508508
query_params,
509509
header_params,
@@ -600,7 +600,7 @@ def delete_repository_with_http_info(self, body, **kwargs): # noqa: E501
600600
auth_settings = ['volcengineSign'] # noqa: E501
601601

602602
return self.api_client.call_api(
603-
'/DeleteRepository/2022-05-12/cr/post/', 'POST',
603+
'/DeleteRepository/2022-05-12/cr/post/application_json/', 'POST',
604604
path_params,
605605
query_params,
606606
header_params,
@@ -697,7 +697,7 @@ def delete_tags_with_http_info(self, body, **kwargs): # noqa: E501
697697
auth_settings = ['volcengineSign'] # noqa: E501
698698

699699
return self.api_client.call_api(
700-
'/DeleteTags/2022-05-12/cr/post/', 'POST',
700+
'/DeleteTags/2022-05-12/cr/post/application_json/', 'POST',
701701
path_params,
702702
query_params,
703703
header_params,
@@ -794,7 +794,7 @@ def get_authorization_token_with_http_info(self, body, **kwargs): # noqa: E501
794794
auth_settings = ['volcengineSign'] # noqa: E501
795795

796796
return self.api_client.call_api(
797-
'/GetAuthorizationToken/2022-05-12/cr/post/', 'POST',
797+
'/GetAuthorizationToken/2022-05-12/cr/post/application_json/', 'POST',
798798
path_params,
799799
query_params,
800800
header_params,
@@ -891,7 +891,7 @@ def get_public_endpoint_with_http_info(self, body, **kwargs): # noqa: E501
891891
auth_settings = ['volcengineSign'] # noqa: E501
892892

893893
return self.api_client.call_api(
894-
'/GetPublicEndpoint/2022-05-12/cr/post/', 'POST',
894+
'/GetPublicEndpoint/2022-05-12/cr/post/application_json/', 'POST',
895895
path_params,
896896
query_params,
897897
header_params,
@@ -988,7 +988,7 @@ def get_user_with_http_info(self, body, **kwargs): # noqa: E501
988988
auth_settings = ['volcengineSign'] # noqa: E501
989989

990990
return self.api_client.call_api(
991-
'/GetUser/2022-05-12/cr/post/', 'POST',
991+
'/GetUser/2022-05-12/cr/post/application_json/', 'POST',
992992
path_params,
993993
query_params,
994994
header_params,
@@ -1085,7 +1085,7 @@ def get_vpc_endpoint_with_http_info(self, body, **kwargs): # noqa: E501
10851085
auth_settings = ['volcengineSign'] # noqa: E501
10861086

10871087
return self.api_client.call_api(
1088-
'/GetVpcEndpoint/2022-05-12/cr/post/', 'POST',
1088+
'/GetVpcEndpoint/2022-05-12/cr/post/application_json/', 'POST',
10891089
path_params,
10901090
query_params,
10911091
header_params,
@@ -1182,7 +1182,7 @@ def list_domains_with_http_info(self, body, **kwargs): # noqa: E501
11821182
auth_settings = ['volcengineSign'] # noqa: E501
11831183

11841184
return self.api_client.call_api(
1185-
'/ListDomains/2022-05-12/cr/post/', 'POST',
1185+
'/ListDomains/2022-05-12/cr/post/application_json/', 'POST',
11861186
path_params,
11871187
query_params,
11881188
header_params,
@@ -1279,7 +1279,7 @@ def list_namespaces_with_http_info(self, body, **kwargs): # noqa: E501
12791279
auth_settings = ['volcengineSign'] # noqa: E501
12801280

12811281
return self.api_client.call_api(
1282-
'/ListNamespaces/2022-05-12/cr/post/', 'POST',
1282+
'/ListNamespaces/2022-05-12/cr/post/application_json/', 'POST',
12831283
path_params,
12841284
query_params,
12851285
header_params,
@@ -1376,7 +1376,7 @@ def list_registries_with_http_info(self, body, **kwargs): # noqa: E501
13761376
auth_settings = ['volcengineSign'] # noqa: E501
13771377

13781378
return self.api_client.call_api(
1379-
'/ListRegistries/2022-05-12/cr/post/', 'POST',
1379+
'/ListRegistries/2022-05-12/cr/post/application_json/', 'POST',
13801380
path_params,
13811381
query_params,
13821382
header_params,
@@ -1473,7 +1473,7 @@ def list_repositories_with_http_info(self, body, **kwargs): # noqa: E501
14731473
auth_settings = ['volcengineSign'] # noqa: E501
14741474

14751475
return self.api_client.call_api(
1476-
'/ListRepositories/2022-05-12/cr/post/', 'POST',
1476+
'/ListRepositories/2022-05-12/cr/post/application_json/', 'POST',
14771477
path_params,
14781478
query_params,
14791479
header_params,
@@ -1570,7 +1570,7 @@ def list_tags_with_http_info(self, body, **kwargs): # noqa: E501
15701570
auth_settings = ['volcengineSign'] # noqa: E501
15711571

15721572
return self.api_client.call_api(
1573-
'/ListTags/2022-05-12/cr/post/', 'POST',
1573+
'/ListTags/2022-05-12/cr/post/application_json/', 'POST',
15741574
path_params,
15751575
query_params,
15761576
header_params,
@@ -1667,7 +1667,7 @@ def set_user_with_http_info(self, body, **kwargs): # noqa: E501
16671667
auth_settings = ['volcengineSign'] # noqa: E501
16681668

16691669
return self.api_client.call_api(
1670-
'/SetUser/2022-05-12/cr/post/', 'POST',
1670+
'/SetUser/2022-05-12/cr/post/application_json/', 'POST',
16711671
path_params,
16721672
query_params,
16731673
header_params,
@@ -1764,7 +1764,7 @@ def start_registry_with_http_info(self, body, **kwargs): # noqa: E501
17641764
auth_settings = ['volcengineSign'] # noqa: E501
17651765

17661766
return self.api_client.call_api(
1767-
'/StartRegistry/2022-05-12/cr/post/', 'POST',
1767+
'/StartRegistry/2022-05-12/cr/post/application_json/', 'POST',
17681768
path_params,
17691769
query_params,
17701770
header_params,
@@ -1861,7 +1861,7 @@ def update_public_endpoint_with_http_info(self, body, **kwargs): # noqa: E501
18611861
auth_settings = ['volcengineSign'] # noqa: E501
18621862

18631863
return self.api_client.call_api(
1864-
'/UpdatePublicEndpoint/2022-05-12/cr/post/', 'POST',
1864+
'/UpdatePublicEndpoint/2022-05-12/cr/post/application_json/', 'POST',
18651865
path_params,
18661866
query_params,
18671867
header_params,
@@ -1958,7 +1958,7 @@ def update_repository_with_http_info(self, body, **kwargs): # noqa: E501
19581958
auth_settings = ['volcengineSign'] # noqa: E501
19591959

19601960
return self.api_client.call_api(
1961-
'/UpdateRepository/2022-05-12/cr/post/', 'POST',
1961+
'/UpdateRepository/2022-05-12/cr/post/application_json/', 'POST',
19621962
path_params,
19631963
query_params,
19641964
header_params,
@@ -2055,7 +2055,7 @@ def update_vpc_endpoint_with_http_info(self, body, **kwargs): # noqa: E501
20552055
auth_settings = ['volcengineSign'] # noqa: E501
20562056

20572057
return self.api_client.call_api(
2058-
'/UpdateVpcEndpoint/2022-05-12/cr/post/', 'POST',
2058+
'/UpdateVpcEndpoint/2022-05-12/cr/post/application_json/', 'POST',
20592059
path_params,
20602060
query_params,
20612061
header_params,

volcenginesdkcr/models/item_for_list_repositories_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ItemForListRepositoriesOutput(object):
3737
'create_time': 'str',
3838
'description': 'str',
3939
'name': 'str',
40+
'namespace': 'str',
4041
'update_time': 'str'
4142
}
4243

@@ -45,10 +46,11 @@ class ItemForListRepositoriesOutput(object):
4546
'create_time': 'CreateTime',
4647
'description': 'Description',
4748
'name': 'Name',
49+
'namespace': 'Namespace',
4850
'update_time': 'UpdateTime'
4951
}
5052

51-
def __init__(self, access_level=None, create_time=None, description=None, name=None, update_time=None, _configuration=None): # noqa: E501
53+
def __init__(self, access_level=None, create_time=None, description=None, name=None, namespace=None, update_time=None, _configuration=None): # noqa: E501
5254
"""ItemForListRepositoriesOutput - a model defined in Swagger""" # noqa: E501
5355
if _configuration is None:
5456
_configuration = Configuration()
@@ -58,6 +60,7 @@ def __init__(self, access_level=None, create_time=None, description=None, name=N
5860
self._create_time = None
5961
self._description = None
6062
self._name = None
63+
self._namespace = None
6164
self._update_time = None
6265
self.discriminator = None
6366

@@ -69,6 +72,8 @@ def __init__(self, access_level=None, create_time=None, description=None, name=N
6972
self.description = description
7073
if name is not None:
7174
self.name = name
75+
if namespace is not None:
76+
self.namespace = namespace
7277
if update_time is not None:
7378
self.update_time = update_time
7479

@@ -156,6 +161,27 @@ def name(self, name):
156161

157162
self._name = name
158163

164+
@property
165+
def namespace(self):
166+
"""Gets the namespace of this ItemForListRepositoriesOutput. # noqa: E501
167+
168+
169+
:return: The namespace of this ItemForListRepositoriesOutput. # noqa: E501
170+
:rtype: str
171+
"""
172+
return self._namespace
173+
174+
@namespace.setter
175+
def namespace(self, namespace):
176+
"""Sets the namespace of this ItemForListRepositoriesOutput.
177+
178+
179+
:param namespace: The namespace of this ItemForListRepositoriesOutput. # noqa: E501
180+
:type: str
181+
"""
182+
183+
self._namespace = namespace
184+
159185
@property
160186
def update_time(self):
161187
"""Gets the update_time of this ItemForListRepositoriesOutput. # noqa: E501

0 commit comments

Comments
 (0)