Skip to content

Commit ede6bb9

Browse files
author
BitsAdmin
committed
Merge branch 'organization-Python-2022-01-01-online-1744-2025_10_24_17_51_58' into 'integration_2025-10-30_1074886721538'
feat: [development task] organization-1744-Python (1783315) See merge request iaasng/volcengine-python-sdk!883
2 parents 2a54116 + 9169545 commit ede6bb9

File tree

9 files changed

+1247
-0
lines changed

9 files changed

+1247
-0
lines changed

volcenginesdkorganization/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
from volcenginesdkorganization.models.enable_console_login_response import EnableConsoleLoginResponse
6868
from volcenginesdkorganization.models.enable_service_control_policy_request import EnableServiceControlPolicyRequest
6969
from volcenginesdkorganization.models.enable_service_control_policy_response import EnableServiceControlPolicyResponse
70+
from volcenginesdkorganization.models.filter_for_list_tags_keys_input import FilterForListTagsKeysInput
71+
from volcenginesdkorganization.models.filter_for_list_tags_values_input import FilterForListTagsValuesInput
7072
from volcenginesdkorganization.models.get_account_secure_contact_info_request import GetAccountSecureContactInfoRequest
7173
from volcenginesdkorganization.models.get_account_secure_contact_info_response import GetAccountSecureContactInfoResponse
7274
from volcenginesdkorganization.models.get_service_control_policy_enablement_request import GetServiceControlPolicyEnablementRequest
@@ -91,6 +93,10 @@
9193
from volcenginesdkorganization.models.list_service_control_policies_response import ListServiceControlPoliciesResponse
9294
from volcenginesdkorganization.models.list_tag_resources_request import ListTagResourcesRequest
9395
from volcenginesdkorganization.models.list_tag_resources_response import ListTagResourcesResponse
96+
from volcenginesdkorganization.models.list_tags_keys_request import ListTagsKeysRequest
97+
from volcenginesdkorganization.models.list_tags_keys_response import ListTagsKeysResponse
98+
from volcenginesdkorganization.models.list_tags_values_request import ListTagsValuesRequest
99+
from volcenginesdkorganization.models.list_tags_values_response import ListTagsValuesResponse
94100
from volcenginesdkorganization.models.list_targets_for_policy_request import ListTargetsForPolicyRequest
95101
from volcenginesdkorganization.models.list_targets_for_policy_response import ListTargetsForPolicyResponse
96102
from volcenginesdkorganization.models.move_account_request import MoveAccountRequest

volcenginesdkorganization/api/organization_api.py

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,6 +3331,200 @@ def list_tag_resources_with_http_info(self, body, **kwargs): # noqa: E501
33313331
_request_timeout=params.get('_request_timeout'),
33323332
collection_formats=collection_formats)
33333333

3334+
def list_tags_keys(self, body, **kwargs): # noqa: E501
3335+
"""list_tags_keys # noqa: E501
3336+
3337+
This method makes a synchronous HTTP request by default. To make an
3338+
asynchronous HTTP request, please pass async_req=True
3339+
>>> thread = api.list_tags_keys(body, async_req=True)
3340+
>>> result = thread.get()
3341+
3342+
:param async_req bool
3343+
:param ListTagsKeysRequest body: (required)
3344+
:return: ListTagsKeysResponse
3345+
If the method is called asynchronously,
3346+
returns the request thread.
3347+
"""
3348+
kwargs['_return_http_data_only'] = True
3349+
if kwargs.get('async_req'):
3350+
return self.list_tags_keys_with_http_info(body, **kwargs) # noqa: E501
3351+
else:
3352+
(data) = self.list_tags_keys_with_http_info(body, **kwargs) # noqa: E501
3353+
return data
3354+
3355+
def list_tags_keys_with_http_info(self, body, **kwargs): # noqa: E501
3356+
"""list_tags_keys # noqa: E501
3357+
3358+
This method makes a synchronous HTTP request by default. To make an
3359+
asynchronous HTTP request, please pass async_req=True
3360+
>>> thread = api.list_tags_keys_with_http_info(body, async_req=True)
3361+
>>> result = thread.get()
3362+
3363+
:param async_req bool
3364+
:param ListTagsKeysRequest body: (required)
3365+
:return: ListTagsKeysResponse
3366+
If the method is called asynchronously,
3367+
returns the request thread.
3368+
"""
3369+
3370+
all_params = ['body'] # noqa: E501
3371+
all_params.append('async_req')
3372+
all_params.append('_return_http_data_only')
3373+
all_params.append('_preload_content')
3374+
all_params.append('_request_timeout')
3375+
3376+
params = locals()
3377+
for key, val in six.iteritems(params['kwargs']):
3378+
if key not in all_params:
3379+
raise TypeError(
3380+
"Got an unexpected keyword argument '%s'"
3381+
" to method list_tags_keys" % key
3382+
)
3383+
params[key] = val
3384+
del params['kwargs']
3385+
# verify the required parameter 'body' is set
3386+
if self.api_client.client_side_validation and ('body' not in params or
3387+
params['body'] is None): # noqa: E501
3388+
raise ValueError("Missing the required parameter `body` when calling `list_tags_keys`") # noqa: E501
3389+
3390+
collection_formats = {}
3391+
3392+
path_params = {}
3393+
3394+
query_params = []
3395+
3396+
header_params = {}
3397+
3398+
form_params = []
3399+
local_var_files = {}
3400+
3401+
body_params = None
3402+
if 'body' in params:
3403+
body_params = params['body']
3404+
# HTTP header `Accept`
3405+
header_params['Accept'] = self.api_client.select_header_accept(
3406+
['application/json']) # noqa: E501
3407+
3408+
# HTTP header `Content-Type`
3409+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3410+
['application/json']) # noqa: E501
3411+
3412+
# Authentication setting
3413+
auth_settings = ['volcengineSign'] # noqa: E501
3414+
3415+
return self.api_client.call_api(
3416+
'/ListTagsKeys/2022-01-01/organization/post/application_json/', 'POST',
3417+
path_params,
3418+
query_params,
3419+
header_params,
3420+
body=body_params,
3421+
post_params=form_params,
3422+
files=local_var_files,
3423+
response_type='ListTagsKeysResponse', # noqa: E501
3424+
auth_settings=auth_settings,
3425+
async_req=params.get('async_req'),
3426+
_return_http_data_only=params.get('_return_http_data_only'),
3427+
_preload_content=params.get('_preload_content', True),
3428+
_request_timeout=params.get('_request_timeout'),
3429+
collection_formats=collection_formats)
3430+
3431+
def list_tags_values(self, body, **kwargs): # noqa: E501
3432+
"""list_tags_values # noqa: E501
3433+
3434+
This method makes a synchronous HTTP request by default. To make an
3435+
asynchronous HTTP request, please pass async_req=True
3436+
>>> thread = api.list_tags_values(body, async_req=True)
3437+
>>> result = thread.get()
3438+
3439+
:param async_req bool
3440+
:param ListTagsValuesRequest body: (required)
3441+
:return: ListTagsValuesResponse
3442+
If the method is called asynchronously,
3443+
returns the request thread.
3444+
"""
3445+
kwargs['_return_http_data_only'] = True
3446+
if kwargs.get('async_req'):
3447+
return self.list_tags_values_with_http_info(body, **kwargs) # noqa: E501
3448+
else:
3449+
(data) = self.list_tags_values_with_http_info(body, **kwargs) # noqa: E501
3450+
return data
3451+
3452+
def list_tags_values_with_http_info(self, body, **kwargs): # noqa: E501
3453+
"""list_tags_values # noqa: E501
3454+
3455+
This method makes a synchronous HTTP request by default. To make an
3456+
asynchronous HTTP request, please pass async_req=True
3457+
>>> thread = api.list_tags_values_with_http_info(body, async_req=True)
3458+
>>> result = thread.get()
3459+
3460+
:param async_req bool
3461+
:param ListTagsValuesRequest body: (required)
3462+
:return: ListTagsValuesResponse
3463+
If the method is called asynchronously,
3464+
returns the request thread.
3465+
"""
3466+
3467+
all_params = ['body'] # noqa: E501
3468+
all_params.append('async_req')
3469+
all_params.append('_return_http_data_only')
3470+
all_params.append('_preload_content')
3471+
all_params.append('_request_timeout')
3472+
3473+
params = locals()
3474+
for key, val in six.iteritems(params['kwargs']):
3475+
if key not in all_params:
3476+
raise TypeError(
3477+
"Got an unexpected keyword argument '%s'"
3478+
" to method list_tags_values" % key
3479+
)
3480+
params[key] = val
3481+
del params['kwargs']
3482+
# verify the required parameter 'body' is set
3483+
if self.api_client.client_side_validation and ('body' not in params or
3484+
params['body'] is None): # noqa: E501
3485+
raise ValueError("Missing the required parameter `body` when calling `list_tags_values`") # noqa: E501
3486+
3487+
collection_formats = {}
3488+
3489+
path_params = {}
3490+
3491+
query_params = []
3492+
3493+
header_params = {}
3494+
3495+
form_params = []
3496+
local_var_files = {}
3497+
3498+
body_params = None
3499+
if 'body' in params:
3500+
body_params = params['body']
3501+
# HTTP header `Accept`
3502+
header_params['Accept'] = self.api_client.select_header_accept(
3503+
['application/json']) # noqa: E501
3504+
3505+
# HTTP header `Content-Type`
3506+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3507+
['application/json']) # noqa: E501
3508+
3509+
# Authentication setting
3510+
auth_settings = ['volcengineSign'] # noqa: E501
3511+
3512+
return self.api_client.call_api(
3513+
'/ListTagsValues/2022-01-01/organization/post/application_json/', 'POST',
3514+
path_params,
3515+
query_params,
3516+
header_params,
3517+
body=body_params,
3518+
post_params=form_params,
3519+
files=local_var_files,
3520+
response_type='ListTagsValuesResponse', # noqa: E501
3521+
auth_settings=auth_settings,
3522+
async_req=params.get('async_req'),
3523+
_return_http_data_only=params.get('_return_http_data_only'),
3524+
_preload_content=params.get('_preload_content', True),
3525+
_request_timeout=params.get('_request_timeout'),
3526+
collection_formats=collection_formats)
3527+
33343528
def list_targets_for_policy(self, body, **kwargs): # noqa: E501
33353529
"""list_targets_for_policy # noqa: E501
33363530

volcenginesdkorganization/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
from volcenginesdkorganization.models.enable_console_login_response import EnableConsoleLoginResponse
6464
from volcenginesdkorganization.models.enable_service_control_policy_request import EnableServiceControlPolicyRequest
6565
from volcenginesdkorganization.models.enable_service_control_policy_response import EnableServiceControlPolicyResponse
66+
from volcenginesdkorganization.models.filter_for_list_tags_keys_input import FilterForListTagsKeysInput
67+
from volcenginesdkorganization.models.filter_for_list_tags_values_input import FilterForListTagsValuesInput
6668
from volcenginesdkorganization.models.get_account_secure_contact_info_request import GetAccountSecureContactInfoRequest
6769
from volcenginesdkorganization.models.get_account_secure_contact_info_response import GetAccountSecureContactInfoResponse
6870
from volcenginesdkorganization.models.get_service_control_policy_enablement_request import GetServiceControlPolicyEnablementRequest
@@ -87,6 +89,10 @@
8789
from volcenginesdkorganization.models.list_service_control_policies_response import ListServiceControlPoliciesResponse
8890
from volcenginesdkorganization.models.list_tag_resources_request import ListTagResourcesRequest
8991
from volcenginesdkorganization.models.list_tag_resources_response import ListTagResourcesResponse
92+
from volcenginesdkorganization.models.list_tags_keys_request import ListTagsKeysRequest
93+
from volcenginesdkorganization.models.list_tags_keys_response import ListTagsKeysResponse
94+
from volcenginesdkorganization.models.list_tags_values_request import ListTagsValuesRequest
95+
from volcenginesdkorganization.models.list_tags_values_response import ListTagsValuesResponse
9096
from volcenginesdkorganization.models.list_targets_for_policy_request import ListTargetsForPolicyRequest
9197
from volcenginesdkorganization.models.list_targets_for_policy_response import ListTargetsForPolicyResponse
9298
from volcenginesdkorganization.models.move_account_request import MoveAccountRequest
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# coding: utf-8
2+
3+
"""
4+
organization
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class FilterForListTagsKeysInput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'key': 'str'
37+
}
38+
39+
attribute_map = {
40+
'key': 'Key'
41+
}
42+
43+
def __init__(self, key=None, _configuration=None): # noqa: E501
44+
"""FilterForListTagsKeysInput - a model defined in Swagger""" # noqa: E501
45+
if _configuration is None:
46+
_configuration = Configuration()
47+
self._configuration = _configuration
48+
49+
self._key = None
50+
self.discriminator = None
51+
52+
if key is not None:
53+
self.key = key
54+
55+
@property
56+
def key(self):
57+
"""Gets the key of this FilterForListTagsKeysInput. # noqa: E501
58+
59+
60+
:return: The key of this FilterForListTagsKeysInput. # noqa: E501
61+
:rtype: str
62+
"""
63+
return self._key
64+
65+
@key.setter
66+
def key(self, key):
67+
"""Sets the key of this FilterForListTagsKeysInput.
68+
69+
70+
:param key: The key of this FilterForListTagsKeysInput. # noqa: E501
71+
:type: str
72+
"""
73+
74+
self._key = key
75+
76+
def to_dict(self):
77+
"""Returns the model properties as a dict"""
78+
result = {}
79+
80+
for attr, _ in six.iteritems(self.swagger_types):
81+
value = getattr(self, attr)
82+
if isinstance(value, list):
83+
result[attr] = list(map(
84+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
85+
value
86+
))
87+
elif hasattr(value, "to_dict"):
88+
result[attr] = value.to_dict()
89+
elif isinstance(value, dict):
90+
result[attr] = dict(map(
91+
lambda item: (item[0], item[1].to_dict())
92+
if hasattr(item[1], "to_dict") else item,
93+
value.items()
94+
))
95+
else:
96+
result[attr] = value
97+
if issubclass(FilterForListTagsKeysInput, dict):
98+
for key, value in self.items():
99+
result[key] = value
100+
101+
return result
102+
103+
def to_str(self):
104+
"""Returns the string representation of the model"""
105+
return pprint.pformat(self.to_dict())
106+
107+
def __repr__(self):
108+
"""For `print` and `pprint`"""
109+
return self.to_str()
110+
111+
def __eq__(self, other):
112+
"""Returns true if both objects are equal"""
113+
if not isinstance(other, FilterForListTagsKeysInput):
114+
return False
115+
116+
return self.to_dict() == other.to_dict()
117+
118+
def __ne__(self, other):
119+
"""Returns true if both objects are not equal"""
120+
if not isinstance(other, FilterForListTagsKeysInput):
121+
return True
122+
123+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)