Skip to content

Commit 5502c42

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for cdn-Python-2021-03-01-online-1016-2025_03_10_17_15_05
1 parent 756cacf commit 5502c42

File tree

11 files changed

+743
-6
lines changed

11 files changed

+743
-6
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.128",
3-
"meta_commit": "57fd53d9441d28feeac7486db2bd9892a3cedc05"
2+
"lasted": "1.0.129",
3+
"meta_commit": "84c63bf20f79ab96cebc1663a049480091c5c687"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "1.0.128"
6+
VERSION = "1.0.129"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcdn/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@
242242
from volcenginesdkcdn.models.deny_referer_access_rule_for_update_shared_config_input import DenyRefererAccessRuleForUpdateSharedConfigInput
243243
from volcenginesdkcdn.models.deploy_result_for_batch_deploy_cert_output import DeployResultForBatchDeployCertOutput
244244
from volcenginesdkcdn.models.deploy_result_for_batch_update_cdn_config_output import DeployResultForBatchUpdateCdnConfigOutput
245+
from volcenginesdkcdn.models.describe_billing_detail_request import DescribeBillingDetailRequest
246+
from volcenginesdkcdn.models.describe_billing_detail_response import DescribeBillingDetailResponse
245247
from volcenginesdkcdn.models.describe_cdn_access_log_request import DescribeCdnAccessLogRequest
246248
from volcenginesdkcdn.models.describe_cdn_access_log_response import DescribeCdnAccessLogResponse
247249
from volcenginesdkcdn.models.describe_cdn_config_request import DescribeCdnConfigRequest
@@ -641,6 +643,7 @@
641643
from volcenginesdkcdn.models.timeout_rule_for_batch_update_cdn_config_input import TimeoutRuleForBatchUpdateCdnConfigInput
642644
from volcenginesdkcdn.models.timeout_rule_for_describe_cdn_config_output import TimeoutRuleForDescribeCdnConfigOutput
643645
from volcenginesdkcdn.models.timeout_rule_for_update_cdn_config_input import TimeoutRuleForUpdateCdnConfigInput
646+
from volcenginesdkcdn.models.timestamp_point_for_describe_billing_detail_output import TimestampPointForDescribeBillingDetailOutput
644647
from volcenginesdkcdn.models.top_data_detail_for_describe_district_ranking_output import TopDataDetailForDescribeDistrictRankingOutput
645648
from volcenginesdkcdn.models.top_data_detail_for_describe_edge_ranking_output import TopDataDetailForDescribeEdgeRankingOutput
646649
from volcenginesdkcdn.models.top_data_detail_for_describe_edge_status_code_ranking_output import TopDataDetailForDescribeEdgeStatusCodeRankingOutput

volcenginesdkcdn/api/cdn_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,103 @@ def delete_usage_report_with_http_info(self, body, **kwargs): # noqa: E501
11971197
_request_timeout=params.get('_request_timeout'),
11981198
collection_formats=collection_formats)
11991199

1200+
def describe_billing_detail(self, body, **kwargs): # noqa: E501
1201+
"""describe_billing_detail # noqa: E501
1202+
1203+
This method makes a synchronous HTTP request by default. To make an
1204+
asynchronous HTTP request, please pass async_req=True
1205+
>>> thread = api.describe_billing_detail(body, async_req=True)
1206+
>>> result = thread.get()
1207+
1208+
:param async_req bool
1209+
:param DescribeBillingDetailRequest body: (required)
1210+
:return: DescribeBillingDetailResponse
1211+
If the method is called asynchronously,
1212+
returns the request thread.
1213+
"""
1214+
kwargs['_return_http_data_only'] = True
1215+
if kwargs.get('async_req'):
1216+
return self.describe_billing_detail_with_http_info(body, **kwargs) # noqa: E501
1217+
else:
1218+
(data) = self.describe_billing_detail_with_http_info(body, **kwargs) # noqa: E501
1219+
return data
1220+
1221+
def describe_billing_detail_with_http_info(self, body, **kwargs): # noqa: E501
1222+
"""describe_billing_detail # noqa: E501
1223+
1224+
This method makes a synchronous HTTP request by default. To make an
1225+
asynchronous HTTP request, please pass async_req=True
1226+
>>> thread = api.describe_billing_detail_with_http_info(body, async_req=True)
1227+
>>> result = thread.get()
1228+
1229+
:param async_req bool
1230+
:param DescribeBillingDetailRequest body: (required)
1231+
:return: DescribeBillingDetailResponse
1232+
If the method is called asynchronously,
1233+
returns the request thread.
1234+
"""
1235+
1236+
all_params = ['body'] # noqa: E501
1237+
all_params.append('async_req')
1238+
all_params.append('_return_http_data_only')
1239+
all_params.append('_preload_content')
1240+
all_params.append('_request_timeout')
1241+
1242+
params = locals()
1243+
for key, val in six.iteritems(params['kwargs']):
1244+
if key not in all_params:
1245+
raise TypeError(
1246+
"Got an unexpected keyword argument '%s'"
1247+
" to method describe_billing_detail" % key
1248+
)
1249+
params[key] = val
1250+
del params['kwargs']
1251+
# verify the required parameter 'body' is set
1252+
if self.api_client.client_side_validation and ('body' not in params or
1253+
params['body'] is None): # noqa: E501
1254+
raise ValueError("Missing the required parameter `body` when calling `describe_billing_detail`") # noqa: E501
1255+
1256+
collection_formats = {}
1257+
1258+
path_params = {}
1259+
1260+
query_params = []
1261+
1262+
header_params = {}
1263+
1264+
form_params = []
1265+
local_var_files = {}
1266+
1267+
body_params = None
1268+
if 'body' in params:
1269+
body_params = params['body']
1270+
# HTTP header `Accept`
1271+
header_params['Accept'] = self.api_client.select_header_accept(
1272+
['application/json']) # noqa: E501
1273+
1274+
# HTTP header `Content-Type`
1275+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1276+
['application/json']) # noqa: E501
1277+
1278+
# Authentication setting
1279+
auth_settings = ['volcengineSign'] # noqa: E501
1280+
1281+
return self.api_client.call_api(
1282+
'/DescribeBillingDetail/2021-03-01/cdn/post/application_json/', 'POST',
1283+
path_params,
1284+
query_params,
1285+
header_params,
1286+
body=body_params,
1287+
post_params=form_params,
1288+
files=local_var_files,
1289+
response_type='DescribeBillingDetailResponse', # noqa: E501
1290+
auth_settings=auth_settings,
1291+
async_req=params.get('async_req'),
1292+
_return_http_data_only=params.get('_return_http_data_only'),
1293+
_preload_content=params.get('_preload_content', True),
1294+
_request_timeout=params.get('_request_timeout'),
1295+
collection_formats=collection_formats)
1296+
12001297
def describe_cdn_access_log(self, body, **kwargs): # noqa: E501
12011298
"""describe_cdn_access_log # noqa: E501
12021299

volcenginesdkcdn/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@
238238
from volcenginesdkcdn.models.deny_referer_access_rule_for_update_shared_config_input import DenyRefererAccessRuleForUpdateSharedConfigInput
239239
from volcenginesdkcdn.models.deploy_result_for_batch_deploy_cert_output import DeployResultForBatchDeployCertOutput
240240
from volcenginesdkcdn.models.deploy_result_for_batch_update_cdn_config_output import DeployResultForBatchUpdateCdnConfigOutput
241+
from volcenginesdkcdn.models.describe_billing_detail_request import DescribeBillingDetailRequest
242+
from volcenginesdkcdn.models.describe_billing_detail_response import DescribeBillingDetailResponse
241243
from volcenginesdkcdn.models.describe_cdn_access_log_request import DescribeCdnAccessLogRequest
242244
from volcenginesdkcdn.models.describe_cdn_access_log_response import DescribeCdnAccessLogResponse
243245
from volcenginesdkcdn.models.describe_cdn_config_request import DescribeCdnConfigRequest
@@ -637,6 +639,7 @@
637639
from volcenginesdkcdn.models.timeout_rule_for_batch_update_cdn_config_input import TimeoutRuleForBatchUpdateCdnConfigInput
638640
from volcenginesdkcdn.models.timeout_rule_for_describe_cdn_config_output import TimeoutRuleForDescribeCdnConfigOutput
639641
from volcenginesdkcdn.models.timeout_rule_for_update_cdn_config_input import TimeoutRuleForUpdateCdnConfigInput
642+
from volcenginesdkcdn.models.timestamp_point_for_describe_billing_detail_output import TimestampPointForDescribeBillingDetailOutput
640643
from volcenginesdkcdn.models.top_data_detail_for_describe_district_ranking_output import TopDataDetailForDescribeDistrictRankingOutput
641644
from volcenginesdkcdn.models.top_data_detail_for_describe_edge_ranking_output import TopDataDetailForDescribeEdgeRankingOutput
642645
from volcenginesdkcdn.models.top_data_detail_for_describe_edge_status_code_ranking_output import TopDataDetailForDescribeEdgeStatusCodeRankingOutput

volcenginesdkcdn/models/add_cdn_domain_response.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,46 @@ class AddCdnDomainResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'resource_ids': 'list[str]'
3637
}
3738

3839
attribute_map = {
40+
'resource_ids': 'ResourceIds'
3941
}
4042

41-
def __init__(self, _configuration=None): # noqa: E501
43+
def __init__(self, resource_ids=None, _configuration=None): # noqa: E501
4244
"""AddCdnDomainResponse - a model defined in Swagger""" # noqa: E501
4345
if _configuration is None:
4446
_configuration = Configuration()
4547
self._configuration = _configuration
48+
49+
self._resource_ids = None
4650
self.discriminator = None
4751

52+
if resource_ids is not None:
53+
self.resource_ids = resource_ids
54+
55+
@property
56+
def resource_ids(self):
57+
"""Gets the resource_ids of this AddCdnDomainResponse. # noqa: E501
58+
59+
60+
:return: The resource_ids of this AddCdnDomainResponse. # noqa: E501
61+
:rtype: list[str]
62+
"""
63+
return self._resource_ids
64+
65+
@resource_ids.setter
66+
def resource_ids(self, resource_ids):
67+
"""Sets the resource_ids of this AddCdnDomainResponse.
68+
69+
70+
:param resource_ids: The resource_ids of this AddCdnDomainResponse. # noqa: E501
71+
:type: list[str]
72+
"""
73+
74+
self._resource_ids = resource_ids
75+
4876
def to_dict(self):
4977
"""Returns the model properties as a dict"""
5078
result = {}

0 commit comments

Comments
 (0)