Skip to content

Commit 89a6f2e

Browse files
committed
Merge "integration_2025-04-28_881197335810" into "dev/lsx/endpoint"
Conflicts: meta.json setup.py volcenginesdkcore/api_client.py volcenginesdkcore/configuration.py
2 parents 893fa6d + 3dbfc62 commit 89a6f2e

File tree

82 files changed

+13549
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+13549
-7
lines changed

volcenginesdkstorageebs/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from volcenginesdkstorageebs.models.apply_auto_snapshot_policy_response import ApplyAutoSnapshotPolicyResponse
2424
from volcenginesdkstorageebs.models.attach_volume_request import AttachVolumeRequest
2525
from volcenginesdkstorageebs.models.attach_volume_response import AttachVolumeResponse
26+
from volcenginesdkstorageebs.models.attachment_for_describe_volumes_output import AttachmentForDescribeVolumesOutput
2627
from volcenginesdkstorageebs.models.auto_renew_reserved_storage_capacity_request import AutoRenewReservedStorageCapacityRequest
2728
from volcenginesdkstorageebs.models.auto_renew_reserved_storage_capacity_response import AutoRenewReservedStorageCapacityResponse
2829
from volcenginesdkstorageebs.models.auto_snapshot_policy_for_describe_auto_snapshot_policy_output import AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput
@@ -81,6 +82,8 @@
8182
from volcenginesdkstorageebs.models.manual_renew_reserved_storage_capacity_response import ManualRenewReservedStorageCapacityResponse
8283
from volcenginesdkstorageebs.models.modify_auto_snapshot_policy_request import ModifyAutoSnapshotPolicyRequest
8384
from volcenginesdkstorageebs.models.modify_auto_snapshot_policy_response import ModifyAutoSnapshotPolicyResponse
85+
from volcenginesdkstorageebs.models.modify_reserved_storage_capacity_effective_at_request import ModifyReservedStorageCapacityEffectiveAtRequest
86+
from volcenginesdkstorageebs.models.modify_reserved_storage_capacity_effective_at_response import ModifyReservedStorageCapacityEffectiveAtResponse
8487
from volcenginesdkstorageebs.models.modify_snapshot_attribute_request import ModifySnapshotAttributeRequest
8588
from volcenginesdkstorageebs.models.modify_snapshot_attribute_response import ModifySnapshotAttributeResponse
8689
from volcenginesdkstorageebs.models.modify_snapshot_group_request import ModifySnapshotGroupRequest

volcenginesdkstorageebs/api/storage_ebs_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,6 +2749,103 @@ def modify_auto_snapshot_policy_with_http_info(self, body, **kwargs): # noqa: E
27492749
_request_timeout=params.get('_request_timeout'),
27502750
collection_formats=collection_formats)
27512751

2752+
def modify_reserved_storage_capacity_effective_at(self, body, **kwargs): # noqa: E501
2753+
"""modify_reserved_storage_capacity_effective_at # noqa: E501
2754+
2755+
This method makes a synchronous HTTP request by default. To make an
2756+
asynchronous HTTP request, please pass async_req=True
2757+
>>> thread = api.modify_reserved_storage_capacity_effective_at(body, async_req=True)
2758+
>>> result = thread.get()
2759+
2760+
:param async_req bool
2761+
:param ModifyReservedStorageCapacityEffectiveAtRequest body: (required)
2762+
:return: ModifyReservedStorageCapacityEffectiveAtResponse
2763+
If the method is called asynchronously,
2764+
returns the request thread.
2765+
"""
2766+
kwargs['_return_http_data_only'] = True
2767+
if kwargs.get('async_req'):
2768+
return self.modify_reserved_storage_capacity_effective_at_with_http_info(body, **kwargs) # noqa: E501
2769+
else:
2770+
(data) = self.modify_reserved_storage_capacity_effective_at_with_http_info(body, **kwargs) # noqa: E501
2771+
return data
2772+
2773+
def modify_reserved_storage_capacity_effective_at_with_http_info(self, body, **kwargs): # noqa: E501
2774+
"""modify_reserved_storage_capacity_effective_at # noqa: E501
2775+
2776+
This method makes a synchronous HTTP request by default. To make an
2777+
asynchronous HTTP request, please pass async_req=True
2778+
>>> thread = api.modify_reserved_storage_capacity_effective_at_with_http_info(body, async_req=True)
2779+
>>> result = thread.get()
2780+
2781+
:param async_req bool
2782+
:param ModifyReservedStorageCapacityEffectiveAtRequest body: (required)
2783+
:return: ModifyReservedStorageCapacityEffectiveAtResponse
2784+
If the method is called asynchronously,
2785+
returns the request thread.
2786+
"""
2787+
2788+
all_params = ['body'] # noqa: E501
2789+
all_params.append('async_req')
2790+
all_params.append('_return_http_data_only')
2791+
all_params.append('_preload_content')
2792+
all_params.append('_request_timeout')
2793+
2794+
params = locals()
2795+
for key, val in six.iteritems(params['kwargs']):
2796+
if key not in all_params:
2797+
raise TypeError(
2798+
"Got an unexpected keyword argument '%s'"
2799+
" to method modify_reserved_storage_capacity_effective_at" % key
2800+
)
2801+
params[key] = val
2802+
del params['kwargs']
2803+
# verify the required parameter 'body' is set
2804+
if self.api_client.client_side_validation and ('body' not in params or
2805+
params['body'] is None): # noqa: E501
2806+
raise ValueError("Missing the required parameter `body` when calling `modify_reserved_storage_capacity_effective_at`") # noqa: E501
2807+
2808+
collection_formats = {}
2809+
2810+
path_params = {}
2811+
2812+
query_params = []
2813+
2814+
header_params = {}
2815+
2816+
form_params = []
2817+
local_var_files = {}
2818+
2819+
body_params = None
2820+
if 'body' in params:
2821+
body_params = params['body']
2822+
# HTTP header `Accept`
2823+
header_params['Accept'] = self.api_client.select_header_accept(
2824+
['application/json']) # noqa: E501
2825+
2826+
# HTTP header `Content-Type`
2827+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2828+
['text/plain']) # noqa: E501
2829+
2830+
# Authentication setting
2831+
auth_settings = ['volcengineSign'] # noqa: E501
2832+
2833+
return self.api_client.call_api(
2834+
'/ModifyReservedStorageCapacityEffectiveAt/2020-04-01/storage_ebs/get/text_plain/', 'GET',
2835+
path_params,
2836+
query_params,
2837+
header_params,
2838+
body=body_params,
2839+
post_params=form_params,
2840+
files=local_var_files,
2841+
response_type='ModifyReservedStorageCapacityEffectiveAtResponse', # noqa: E501
2842+
auth_settings=auth_settings,
2843+
async_req=params.get('async_req'),
2844+
_return_http_data_only=params.get('_return_http_data_only'),
2845+
_preload_content=params.get('_preload_content', True),
2846+
_request_timeout=params.get('_request_timeout'),
2847+
collection_formats=collection_formats)
2848+
27522849
def modify_snapshot_attribute(self, body, **kwargs): # noqa: E501
27532850
"""modify_snapshot_attribute # noqa: E501
27542851

volcenginesdkstorageebs/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from volcenginesdkstorageebs.models.apply_auto_snapshot_policy_response import ApplyAutoSnapshotPolicyResponse
2020
from volcenginesdkstorageebs.models.attach_volume_request import AttachVolumeRequest
2121
from volcenginesdkstorageebs.models.attach_volume_response import AttachVolumeResponse
22+
from volcenginesdkstorageebs.models.attachment_for_describe_volumes_output import AttachmentForDescribeVolumesOutput
2223
from volcenginesdkstorageebs.models.auto_renew_reserved_storage_capacity_request import AutoRenewReservedStorageCapacityRequest
2324
from volcenginesdkstorageebs.models.auto_renew_reserved_storage_capacity_response import AutoRenewReservedStorageCapacityResponse
2425
from volcenginesdkstorageebs.models.auto_snapshot_policy_for_describe_auto_snapshot_policy_output import AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput
@@ -77,6 +78,8 @@
7778
from volcenginesdkstorageebs.models.manual_renew_reserved_storage_capacity_response import ManualRenewReservedStorageCapacityResponse
7879
from volcenginesdkstorageebs.models.modify_auto_snapshot_policy_request import ModifyAutoSnapshotPolicyRequest
7980
from volcenginesdkstorageebs.models.modify_auto_snapshot_policy_response import ModifyAutoSnapshotPolicyResponse
81+
from volcenginesdkstorageebs.models.modify_reserved_storage_capacity_effective_at_request import ModifyReservedStorageCapacityEffectiveAtRequest
82+
from volcenginesdkstorageebs.models.modify_reserved_storage_capacity_effective_at_response import ModifyReservedStorageCapacityEffectiveAtResponse
8083
from volcenginesdkstorageebs.models.modify_snapshot_attribute_request import ModifySnapshotAttributeRequest
8184
from volcenginesdkstorageebs.models.modify_snapshot_attribute_response import ModifySnapshotAttributeResponse
8285
from volcenginesdkstorageebs.models.modify_snapshot_group_request import ModifySnapshotGroupRequest
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# coding: utf-8
2+
3+
"""
4+
storage_ebs
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 AttachmentForDescribeVolumesOutput(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+
'attached_time': 'str',
37+
'instance_id': 'str'
38+
}
39+
40+
attribute_map = {
41+
'attached_time': 'AttachedTime',
42+
'instance_id': 'InstanceId'
43+
}
44+
45+
def __init__(self, attached_time=None, instance_id=None, _configuration=None): # noqa: E501
46+
"""AttachmentForDescribeVolumesOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._attached_time = None
52+
self._instance_id = None
53+
self.discriminator = None
54+
55+
if attached_time is not None:
56+
self.attached_time = attached_time
57+
if instance_id is not None:
58+
self.instance_id = instance_id
59+
60+
@property
61+
def attached_time(self):
62+
"""Gets the attached_time of this AttachmentForDescribeVolumesOutput. # noqa: E501
63+
64+
65+
:return: The attached_time of this AttachmentForDescribeVolumesOutput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._attached_time
69+
70+
@attached_time.setter
71+
def attached_time(self, attached_time):
72+
"""Sets the attached_time of this AttachmentForDescribeVolumesOutput.
73+
74+
75+
:param attached_time: The attached_time of this AttachmentForDescribeVolumesOutput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._attached_time = attached_time
80+
81+
@property
82+
def instance_id(self):
83+
"""Gets the instance_id of this AttachmentForDescribeVolumesOutput. # noqa: E501
84+
85+
86+
:return: The instance_id of this AttachmentForDescribeVolumesOutput. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._instance_id
90+
91+
@instance_id.setter
92+
def instance_id(self, instance_id):
93+
"""Sets the instance_id of this AttachmentForDescribeVolumesOutput.
94+
95+
96+
:param instance_id: The instance_id of this AttachmentForDescribeVolumesOutput. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._instance_id = instance_id
101+
102+
def to_dict(self):
103+
"""Returns the model properties as a dict"""
104+
result = {}
105+
106+
for attr, _ in six.iteritems(self.swagger_types):
107+
value = getattr(self, attr)
108+
if isinstance(value, list):
109+
result[attr] = list(map(
110+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
111+
value
112+
))
113+
elif hasattr(value, "to_dict"):
114+
result[attr] = value.to_dict()
115+
elif isinstance(value, dict):
116+
result[attr] = dict(map(
117+
lambda item: (item[0], item[1].to_dict())
118+
if hasattr(item[1], "to_dict") else item,
119+
value.items()
120+
))
121+
else:
122+
result[attr] = value
123+
if issubclass(AttachmentForDescribeVolumesOutput, dict):
124+
for key, value in self.items():
125+
result[key] = value
126+
127+
return result
128+
129+
def to_str(self):
130+
"""Returns the string representation of the model"""
131+
return pprint.pformat(self.to_dict())
132+
133+
def __repr__(self):
134+
"""For `print` and `pprint`"""
135+
return self.to_str()
136+
137+
def __eq__(self, other):
138+
"""Returns true if both objects are equal"""
139+
if not isinstance(other, AttachmentForDescribeVolumesOutput):
140+
return False
141+
142+
return self.to_dict() == other.to_dict()
143+
144+
def __ne__(self, other):
145+
"""Returns true if both objects are not equal"""
146+
if not isinstance(other, AttachmentForDescribeVolumesOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)