diff --git a/aliyun-python-sdk-r-kvstore/ChangeLog.txt b/aliyun-python-sdk-r-kvstore/ChangeLog.txt index 8321279d7d..0abf203465 100644 --- a/aliyun-python-sdk-r-kvstore/ChangeLog.txt +++ b/aliyun-python-sdk-r-kvstore/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-12-17 Version: 2.20.14 +- CreateInstance add ReplicaCount parameter. + 2024-08-28 Version: 2.20.13 - DescibePrice add ShardCount parameters. diff --git a/aliyun-python-sdk-r-kvstore/README.rst b/aliyun-python-sdk-r-kvstore/README.rst index e875fbcfb8..1c94643eb0 100644 --- a/aliyun-python-sdk-r-kvstore/README.rst +++ b/aliyun-python-sdk-r-kvstore/README.rst @@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy This module works on Python versions: -2.6.5 and greater +3.7 and greater **Documentation:** diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/__init__.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/__init__.py index dfbfe5bf39..ee89cc9b71 100644 --- a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/__init__.py +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/__init__.py @@ -1 +1 @@ -__version__ = '2.20.13' \ No newline at end of file +__version__ = '2.20.14' \ No newline at end of file diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CancelActiveOperationTasksRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CancelActiveOperationTasksRequest.py new file mode 100644 index 0000000000..57dc4048a4 --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CancelActiveOperationTasksRequest.py @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class CancelActiveOperationTasksRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'CancelActiveOperationTasks','redisa') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_Ids(self): # String + return self.get_query_params().get('Ids') + + def set_Ids(self, Ids): # String + self.add_query_param('Ids', Ids) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateInstanceRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateInstanceRequest.py index 17a3117e40..d6a941595b 100644 --- a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateInstanceRequest.py +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateInstanceRequest.py @@ -160,6 +160,11 @@ def get_ZoneId(self): # String def set_ZoneId(self, ZoneId): # String self.add_query_param('ZoneId', ZoneId) + def get_ReplicaCount(self): # Integer + return self.get_query_params().get('ReplicaCount') + + def set_ReplicaCount(self, ReplicaCount): # Integer + self.add_query_param('ReplicaCount', ReplicaCount) def get_Appendonly(self): # String return self.get_query_params().get('Appendonly') @@ -255,6 +260,11 @@ def get_ChargeType(self): # String def set_ChargeType(self, ChargeType): # String self.add_query_param('ChargeType', ChargeType) + def get_SlaveReplicaCount(self): # Integer + return self.get_query_params().get('SlaveReplicaCount') + + def set_SlaveReplicaCount(self, SlaveReplicaCount): # Integer + self.add_query_param('SlaveReplicaCount', SlaveReplicaCount) def get_ClusterBackupId(self): # String return self.get_query_params().get('ClusterBackupId') diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTCInstanceRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTCInstanceRequest.py new file mode 100644 index 0000000000..78d702d02d --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTCInstanceRequest.py @@ -0,0 +1,174 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class CreateTCInstanceRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'CreateTCInstance','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_CouponNo(self): # String + return self.get_query_params().get('CouponNo') + + def set_CouponNo(self, CouponNo): # String + self.add_query_param('CouponNo', CouponNo) + def get_NetworkType(self): # String + return self.get_query_params().get('NetworkType') + + def set_NetworkType(self, NetworkType): # String + self.add_query_param('NetworkType', NetworkType) + def get_NeedEni(self): # Boolean + return self.get_query_params().get('NeedEni') + + def set_NeedEni(self, NeedEni): # Boolean + self.add_query_param('NeedEni', NeedEni) + def get_ResourceGroupId(self): # String + return self.get_query_params().get('ResourceGroupId') + + def set_ResourceGroupId(self, ResourceGroupId): # String + self.add_query_param('ResourceGroupId', ResourceGroupId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_Tags(self): # RepeatList + return self.get_query_params().get('Tag') + + def set_Tags(self, Tag): # RepeatList + for depth1 in range(len(Tag)): + if Tag[depth1].get('Value') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) + if Tag[depth1].get('Key') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) + def get_BusinessInfo(self): # String + return self.get_query_params().get('BusinessInfo') + + def set_BusinessInfo(self, BusinessInfo): # String + self.add_query_param('BusinessInfo', BusinessInfo) + def get_AutoRenewPeriod(self): # String + return self.get_query_params().get('AutoRenewPeriod') + + def set_AutoRenewPeriod(self, AutoRenewPeriod): # String + self.add_query_param('AutoRenewPeriod', AutoRenewPeriod) + def get_Period(self): # String + return self.get_query_params().get('Period') + + def set_Period(self, Period): # String + self.add_query_param('Period', Period) + def get_DryRun(self): # Boolean + return self.get_query_params().get('DryRun') + + def set_DryRun(self, DryRun): # Boolean + self.add_query_param('DryRun', DryRun) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_VSwitchId(self): # String + return self.get_query_params().get('VSwitchId') + + def set_VSwitchId(self, VSwitchId): # String + self.add_query_param('VSwitchId', VSwitchId) + def get_InstanceName(self): # String + return self.get_query_params().get('InstanceName') + + def set_InstanceName(self, InstanceName): # String + self.add_query_param('InstanceName', InstanceName) + def get_AutoRenew(self): # String + return self.get_query_params().get('AutoRenew') + + def set_AutoRenew(self, AutoRenew): # String + self.add_query_param('AutoRenew', AutoRenew) + def get_ZoneId(self): # String + return self.get_query_params().get('ZoneId') + + def set_ZoneId(self, ZoneId): # String + self.add_query_param('ZoneId', ZoneId) + def get_ImageId(self): # String + return self.get_query_params().get('ImageId') + + def set_ImageId(self, ImageId): # String + self.add_query_param('ImageId', ImageId) + def get_ClientToken(self): # String + return self.get_query_params().get('ClientToken') + + def set_ClientToken(self, ClientToken): # String + self.add_query_param('ClientToken', ClientToken) + def get_SecurityGroupId(self): # String + return self.get_query_params().get('SecurityGroupId') + + def set_SecurityGroupId(self, SecurityGroupId): # String + self.add_query_param('SecurityGroupId', SecurityGroupId) + def get_AutoUseCoupon(self): # String + return self.get_query_params().get('AutoUseCoupon') + + def set_AutoUseCoupon(self, AutoUseCoupon): # String + self.add_query_param('AutoUseCoupon', AutoUseCoupon) + def get_InstanceClass(self): # String + return self.get_query_params().get('InstanceClass') + + def set_InstanceClass(self, InstanceClass): # String + self.add_query_param('InstanceClass', InstanceClass) + def get_InstanceChargeType(self): # String + return self.get_query_params().get('InstanceChargeType') + + def set_InstanceChargeType(self, InstanceChargeType): # String + self.add_query_param('InstanceChargeType', InstanceChargeType) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_DataDisks(self): # RepeatList + return self.get_query_params().get('DataDisk') + + def set_DataDisks(self, DataDisk): # RepeatList + for depth1 in range(len(DataDisk)): + if DataDisk[depth1].get('Size') is not None: + self.add_query_param('DataDisk.' + str(depth1 + 1) + '.Size', DataDisk[depth1].get('Size')) + if DataDisk[depth1].get('PerformanceLevel') is not None: + self.add_query_param('DataDisk.' + str(depth1 + 1) + '.PerformanceLevel', DataDisk[depth1].get('PerformanceLevel')) + if DataDisk[depth1].get('Category') is not None: + self.add_query_param('DataDisk.' + str(depth1 + 1) + '.Category', DataDisk[depth1].get('Category')) + def get_VpcId(self): # String + return self.get_query_params().get('VpcId') + + def set_VpcId(self, VpcId): # String + self.add_query_param('VpcId', VpcId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTairInstanceRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTairInstanceRequest.py index d2bd10de2c..c349be3d40 100644 --- a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTairInstanceRequest.py +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateTairInstanceRequest.py @@ -36,6 +36,11 @@ def get_ResourceOwnerId(self): # Long def set_ResourceOwnerId(self, ResourceOwnerId): # Long self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_ConnectionStringPrefix(self): # String + return self.get_query_params().get('ConnectionStringPrefix') + + def set_ConnectionStringPrefix(self, ConnectionStringPrefix): # String + self.add_query_param('ConnectionStringPrefix', ConnectionStringPrefix) def get_SecondaryZoneId(self): # String return self.get_query_params().get('SecondaryZoneId') @@ -160,6 +165,11 @@ def get_ZoneId(self): # String def set_ZoneId(self, ZoneId): # String self.add_query_param('ZoneId', ZoneId) + def get_ReplicaCount(self): # Integer + return self.get_query_params().get('ReplicaCount') + + def set_ReplicaCount(self, ReplicaCount): # Integer + self.add_query_param('ReplicaCount', ReplicaCount) def get_ClientToken(self): # String return self.get_query_params().get('ClientToken') @@ -240,6 +250,11 @@ def get_ChargeType(self): # String def set_ChargeType(self, ChargeType): # String self.add_query_param('ChargeType', ChargeType) + def get_SlaveReplicaCount(self): # Integer + return self.get_query_params().get('SlaveReplicaCount') + + def set_SlaveReplicaCount(self, SlaveReplicaCount): # Integer + self.add_query_param('SlaveReplicaCount', SlaveReplicaCount) def get_ClusterBackupId(self): # String return self.get_query_params().get('ClusterBackupId') diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstanceAttributeRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstanceAttributeRequest.py new file mode 100644 index 0000000000..6fe86c4db5 --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstanceAttributeRequest.py @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class DescribeTairKVCacheCustomInstanceAttributeRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'DescribeTairKVCacheCustomInstanceAttribute','redisa') + self.set_protocol_type('https') + self.set_method('GET') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstanceHistoryMonitorValuesRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstanceHistoryMonitorValuesRequest.py new file mode 100644 index 0000000000..b45cd4712b --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstanceHistoryMonitorValuesRequest.py @@ -0,0 +1,94 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class DescribeTairKVCacheCustomInstanceHistoryMonitorValuesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'DescribeTairKVCacheCustomInstanceHistoryMonitorValues','redisa') + self.set_protocol_type('https') + self.set_method('GET') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_Express(self): # String + return self.get_query_params().get('Express') + + def set_Express(self, Express): # String + self.add_query_param('Express', Express) + def get_StartTime(self): # String + return self.get_query_params().get('StartTime') + + def set_StartTime(self, StartTime): # String + self.add_query_param('StartTime', StartTime) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_MetricName(self): # String + return self.get_query_params().get('MetricName') + + def set_MetricName(self, MetricName): # String + self.add_query_param('MetricName', MetricName) + def get_Period(self): # String + return self.get_query_params().get('Period') + + def set_Period(self, Period): # String + self.add_query_param('Period', Period) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_Length(self): # String + return self.get_query_params().get('Length') + + def set_Length(self, Length): # String + self.add_query_param('Length', Length) + def get_EndTime(self): # String + return self.get_query_params().get('EndTime') + + def set_EndTime(self, EndTime): # String + self.add_query_param('EndTime', EndTime) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstancesRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstancesRequest.py new file mode 100644 index 0000000000..3dce7a9a9d --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstancesRequest.py @@ -0,0 +1,138 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class DescribeTairKVCacheCustomInstancesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'DescribeTairKVCacheCustomInstances','redisa') + self.set_protocol_type('https') + self.set_method('GET') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SearchKey(self): # String + return self.get_query_params().get('SearchKey') + + def set_SearchKey(self, SearchKey): # String + self.add_query_param('SearchKey', SearchKey) + def get_NetworkType(self): # String + return self.get_query_params().get('NetworkType') + + def set_NetworkType(self, NetworkType): # String + self.add_query_param('NetworkType', NetworkType) + def get_InstanceClass(self): # String + return self.get_query_params().get('InstanceClass') + + def set_InstanceClass(self, InstanceClass): # String + self.add_query_param('InstanceClass', InstanceClass) + def get_PageNumber(self): # Integer + return self.get_query_params().get('PageNumber') + + def set_PageNumber(self, PageNumber): # Integer + self.add_query_param('PageNumber', PageNumber) + def get_ResourceGroupId(self): # String + return self.get_query_params().get('ResourceGroupId') + + def set_ResourceGroupId(self, ResourceGroupId): # String + self.add_query_param('ResourceGroupId', ResourceGroupId) + def get_Expired(self): # String + return self.get_query_params().get('Expired') + + def set_Expired(self, Expired): # String + self.add_query_param('Expired', Expired) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_PageSize(self): # Integer + return self.get_query_params().get('PageSize') + + def set_PageSize(self, PageSize): # Integer + self.add_query_param('PageSize', PageSize) + def get_InstanceType(self): # String + return self.get_query_params().get('InstanceType') + + def set_InstanceType(self, InstanceType): # String + self.add_query_param('InstanceType', InstanceType) + def get_Tags(self): # RepeatList + return self.get_query_params().get('Tag') + + def set_Tags(self, Tag): # RepeatList + for depth1 in range(len(Tag)): + if Tag[depth1].get('Value') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) + if Tag[depth1].get('Key') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) + def get_InstanceStatus(self): # String + return self.get_query_params().get('InstanceStatus') + + def set_InstanceStatus(self, InstanceStatus): # String + self.add_query_param('InstanceStatus', InstanceStatus) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_VSwitchId(self): # String + return self.get_query_params().get('VSwitchId') + + def set_VSwitchId(self, VSwitchId): # String + self.add_query_param('VSwitchId', VSwitchId) + def get_InstanceIds(self): # String + return self.get_query_params().get('InstanceIds') + + def set_InstanceIds(self, InstanceIds): # String + self.add_query_param('InstanceIds', InstanceIds) + def get_VpcId(self): # String + return self.get_query_params().get('VpcId') + + def set_VpcId(self, VpcId): # String + self.add_query_param('VpcId', VpcId) + def get_ZoneId(self): # String + return self.get_query_params().get('ZoneId') + + def set_ZoneId(self, ZoneId): # String + self.add_query_param('ZoneId', ZoneId) + def get_ChargeType(self): # String + return self.get_query_params().get('ChargeType') + + def set_ChargeType(self, ChargeType): # String + self.add_query_param('ChargeType', ChargeType) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/MasterNodeShutDownFailOverRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/MasterNodeShutDownFailOverRequest.py new file mode 100644 index 0000000000..dfec6fca4b --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/MasterNodeShutDownFailOverRequest.py @@ -0,0 +1,69 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class MasterNodeShutDownFailOverRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'MasterNodeShutDownFailOver','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_FailMode(self): # String + return self.get_query_params().get('FailMode') + + def set_FailMode(self, FailMode): # String + self.add_query_param('FailMode', FailMode) + def get_ProxyFaultMode(self): # String + return self.get_query_params().get('ProxyFaultMode') + + def set_ProxyFaultMode(self, ProxyFaultMode): # String + self.add_query_param('ProxyFaultMode', ProxyFaultMode) + def get_ProxyInstanceIds(self): # String + return self.get_query_params().get('ProxyInstanceIds') + + def set_ProxyInstanceIds(self, ProxyInstanceIds): # String + self.add_query_param('ProxyInstanceIds', ProxyInstanceIds) + def get_DBNodes(self): # String + return self.get_query_params().get('DBNodes') + + def set_DBNodes(self, DBNodes): # String + self.add_query_param('DBNodes', DBNodes) + def get_DBFaultMode(self): # String + return self.get_query_params().get('DBFaultMode') + + def set_DBFaultMode(self, DBFaultMode): # String + self.add_query_param('DBFaultMode', DBFaultMode) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) + def get_Category(self): # String + return self.get_query_params().get('Category') + + def set_Category(self, Category): # String + self.add_query_param('Category', Category) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceBandwidthRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceBandwidthRequest.py new file mode 100644 index 0000000000..1983b97a9d --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceBandwidthRequest.py @@ -0,0 +1,69 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class ModifyInstanceBandwidthRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'ModifyInstanceBandwidth','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_TargetIntranetBandwidth(self): # String + return self.get_query_params().get('TargetIntranetBandwidth') + + def set_TargetIntranetBandwidth(self, TargetIntranetBandwidth): # String + self.add_query_param('TargetIntranetBandwidth', TargetIntranetBandwidth) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceConfigRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceConfigRequest.py index aa43c48fdd..9ee6c3ab1c 100644 --- a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceConfigRequest.py +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceConfigRequest.py @@ -36,11 +36,36 @@ def get_ResourceOwnerId(self): # Long def set_ResourceOwnerId(self, ResourceOwnerId): # Long self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_ParamSemisyncReplTimeout(self): # String + return self.get_query_params().get('ParamSemisyncReplTimeout') + + def set_ParamSemisyncReplTimeout(self, ParamSemisyncReplTimeout): # String + self.add_query_param('ParamSemisyncReplTimeout', ParamSemisyncReplTimeout) + def get_ParamNoLooseSentinelPasswordFreeCommands(self): # String + return self.get_query_params().get('ParamNoLooseSentinelPasswordFreeCommands') + + def set_ParamNoLooseSentinelPasswordFreeCommands(self, ParamNoLooseSentinelPasswordFreeCommands): # String + self.add_query_param('ParamNoLooseSentinelPasswordFreeCommands', ParamNoLooseSentinelPasswordFreeCommands) + def get_ParamNoLooseSentinelPasswordFreeAccess(self): # String + return self.get_query_params().get('ParamNoLooseSentinelPasswordFreeAccess') + + def set_ParamNoLooseSentinelPasswordFreeAccess(self, ParamNoLooseSentinelPasswordFreeAccess): # String + self.add_query_param('ParamNoLooseSentinelPasswordFreeAccess', ParamNoLooseSentinelPasswordFreeAccess) + def get_ParamReplMode(self): # String + return self.get_query_params().get('ParamReplMode') + + def set_ParamReplMode(self, ParamReplMode): # String + self.add_query_param('ParamReplMode', ParamReplMode) def get_SecurityToken(self): # String return self.get_query_params().get('SecurityToken') def set_SecurityToken(self, SecurityToken): # String self.add_query_param('SecurityToken', SecurityToken) + def get_ParamNoLooseSentinelEnabled(self): # String + return self.get_query_params().get('ParamNoLooseSentinelEnabled') + + def set_ParamNoLooseSentinelEnabled(self, ParamNoLooseSentinelEnabled): # String + self.add_query_param('ParamNoLooseSentinelEnabled', ParamNoLooseSentinelEnabled) def get_ResourceOwnerAccount(self): # String return self.get_query_params().get('ResourceOwnerAccount') @@ -51,6 +76,11 @@ def get_OwnerAccount(self): # String def set_OwnerAccount(self, OwnerAccount): # String self.add_query_param('OwnerAccount', OwnerAccount) + def get_ParamSentinelCompatEnable(self): # String + return self.get_query_params().get('ParamSentinelCompatEnable') + + def set_ParamSentinelCompatEnable(self, ParamSentinelCompatEnable): # String + self.add_query_param('ParamSentinelCompatEnable', ParamSentinelCompatEnable) def get_OwnerId(self): # Long return self.get_query_params().get('OwnerId') diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceSpecRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceSpecRequest.py index 557c7f88df..db6e3b035e 100644 --- a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceSpecRequest.py +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyInstanceSpecRequest.py @@ -56,11 +56,21 @@ def get_CouponNo(self): # String def set_CouponNo(self, CouponNo): # String self.add_query_param('CouponNo', CouponNo) + def get_Storage(self): # Integer + return self.get_query_params().get('Storage') + + def set_Storage(self, Storage): # Integer + self.add_query_param('Storage', Storage) def get_InstanceClass(self): # String return self.get_query_params().get('InstanceClass') def set_InstanceClass(self, InstanceClass): # String self.add_query_param('InstanceClass', InstanceClass) + def get_StorageType(self): # String + return self.get_query_params().get('StorageType') + + def set_StorageType(self, StorageType): # String + self.add_query_param('StorageType', StorageType) def get_SecurityToken(self): # String return self.get_query_params().get('SecurityToken') @@ -131,8 +141,18 @@ def get_ForceUpgrade(self): # Boolean def set_ForceUpgrade(self, ForceUpgrade): # Boolean self.add_query_param('ForceUpgrade', ForceUpgrade) + def get_SlaveReplicaCount(self): # Integer + return self.get_query_params().get('SlaveReplicaCount') + + def set_SlaveReplicaCount(self, SlaveReplicaCount): # Integer + self.add_query_param('SlaveReplicaCount', SlaveReplicaCount) def get_OrderType(self): # String return self.get_query_params().get('OrderType') def set_OrderType(self, OrderType): # String self.add_query_param('OrderType', OrderType) + def get_ReplicaCount(self): # Integer + return self.get_query_params().get('ReplicaCount') + + def set_ReplicaCount(self, ReplicaCount): # Integer + self.add_query_param('ReplicaCount', ReplicaCount) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyTairKVCacheCustomInstanceAttributeRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyTairKVCacheCustomInstanceAttributeRequest.py new file mode 100644 index 0000000000..9148a5481f --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyTairKVCacheCustomInstanceAttributeRequest.py @@ -0,0 +1,74 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class ModifyTairKVCacheCustomInstanceAttributeRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'ModifyTairKVCacheCustomInstanceAttribute','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_SourceBiz(self): # String + return self.get_query_params().get('SourceBiz') + + def set_SourceBiz(self, SourceBiz): # String + self.add_query_param('SourceBiz', SourceBiz) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) + def get_InstanceName(self): # String + return self.get_query_params().get('InstanceName') + + def set_InstanceName(self, InstanceName): # String + self.add_query_param('InstanceName', InstanceName) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyTaskInfoRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyTaskInfoRequest.py new file mode 100644 index 0000000000..6043b02f71 --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ModifyTaskInfoRequest.py @@ -0,0 +1,68 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class ModifyTaskInfoRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'ModifyTaskInfo','redisa') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_TaskId(self): # String + return self.get_query_params().get('TaskId') + + def set_TaskId(self, TaskId): # String + self.add_query_param('TaskId', TaskId) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_StepName(self): # String + return self.get_query_params().get('StepName') + + def set_StepName(self, StepName): # String + self.add_query_param('StepName', StepName) + def get_ActionParams(self): # String + return self.get_query_params().get('ActionParams') + + def set_ActionParams(self, ActionParams): # String + self.add_query_param('ActionParams', ActionParams) + def get_TaskAction(self): # String + return self.get_query_params().get('TaskAction') + + def set_TaskAction(self, TaskAction): # String + self.add_query_param('TaskAction', TaskAction) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ResetTairKVCacheCustomInstancePasswordRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ResetTairKVCacheCustomInstancePasswordRequest.py new file mode 100644 index 0000000000..f157d0f5cd --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ResetTairKVCacheCustomInstancePasswordRequest.py @@ -0,0 +1,74 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class ResetTairKVCacheCustomInstancePasswordRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'ResetTairKVCacheCustomInstancePassword','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_Password(self): # String + return self.get_query_params().get('Password') + + def set_Password(self, Password): # String + self.add_query_param('Password', Password) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_SourceBiz(self): # String + return self.get_query_params().get('SourceBiz') + + def set_SourceBiz(self, SourceBiz): # String + self.add_query_param('SourceBiz', SourceBiz) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ResizeTairKVCacheCustomInstanceDiskRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ResizeTairKVCacheCustomInstanceDiskRequest.py new file mode 100644 index 0000000000..df667de3e6 --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/ResizeTairKVCacheCustomInstanceDiskRequest.py @@ -0,0 +1,79 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class ResizeTairKVCacheCustomInstanceDiskRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'ResizeTairKVCacheCustomInstanceDisk','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_DiskId(self): # String + return self.get_query_params().get('DiskId') + + def set_DiskId(self, DiskId): # String + self.add_query_param('DiskId', DiskId) + def get_AutoPay(self): # Boolean + return self.get_query_params().get('AutoPay') + + def set_AutoPay(self, AutoPay): # Boolean + self.add_query_param('AutoPay', AutoPay) + def get_DiskSize(self): # String + return self.get_query_params().get('DiskSize') + + def set_DiskSize(self, DiskSize): # String + self.add_query_param('DiskSize', DiskSize) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/RestartTairKVCacheCustomInstanceRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/RestartTairKVCacheCustomInstanceRequest.py new file mode 100644 index 0000000000..9a1eaba31a --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/RestartTairKVCacheCustomInstanceRequest.py @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class RestartTairKVCacheCustomInstanceRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'RestartTairKVCacheCustomInstance','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/StartTairKVCacheCustomInstanceRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/StartTairKVCacheCustomInstanceRequest.py new file mode 100644 index 0000000000..fb472f565a --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/StartTairKVCacheCustomInstanceRequest.py @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class StartTairKVCacheCustomInstanceRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'StartTairKVCacheCustomInstance','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/StopTairKVCacheCustomInstanceRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/StopTairKVCacheCustomInstanceRequest.py new file mode 100644 index 0000000000..1ff7f64835 --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/StopTairKVCacheCustomInstanceRequest.py @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class StopTairKVCacheCustomInstanceRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'StopTairKVCacheCustomInstance','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_ResourceOwnerId(self): # Long + return self.get_query_params().get('ResourceOwnerId') + + def set_ResourceOwnerId(self, ResourceOwnerId): # Long + self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_SecurityToken(self): # String + return self.get_query_params().get('SecurityToken') + + def set_SecurityToken(self, SecurityToken): # String + self.add_query_param('SecurityToken', SecurityToken) + def get_ResourceOwnerAccount(self): # String + return self.get_query_params().get('ResourceOwnerAccount') + + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) + def get_OwnerAccount(self): # String + return self.get_query_params().get('OwnerAccount') + + def set_OwnerAccount(self, OwnerAccount): # String + self.add_query_param('OwnerAccount', OwnerAccount) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/SwitchInstanceZoneFailOverRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/SwitchInstanceZoneFailOverRequest.py new file mode 100644 index 0000000000..ffaa4ad20a --- /dev/null +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/SwitchInstanceZoneFailOverRequest.py @@ -0,0 +1,49 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RpcRequest +from aliyunsdkr_kvstore.endpoint import endpoint_data + +class SwitchInstanceZoneFailOverRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'SwitchInstanceZoneFailOver','redisa') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_SiteFaultTime(self): # String + return self.get_query_params().get('SiteFaultTime') + + def set_SiteFaultTime(self, SiteFaultTime): # String + self.add_query_param('SiteFaultTime', SiteFaultTime) + def get_TargetZoneId(self): # String + return self.get_query_params().get('TargetZoneId') + + def set_TargetZoneId(self, TargetZoneId): # String + self.add_query_param('TargetZoneId', TargetZoneId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/TransformToPrePaidRequest.py b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/TransformToPrePaidRequest.py index baaea58109..17e60d5726 100644 --- a/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/TransformToPrePaidRequest.py +++ b/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/TransformToPrePaidRequest.py @@ -41,6 +41,11 @@ def get_SecurityToken(self): # String def set_SecurityToken(self, SecurityToken): # String self.add_query_param('SecurityToken', SecurityToken) + def get_AutoRenewPeriod(self): # Long + return self.get_query_params().get('AutoRenewPeriod') + + def set_AutoRenewPeriod(self, AutoRenewPeriod): # Long + self.add_query_param('AutoRenewPeriod', AutoRenewPeriod) def get_Period(self): # Long return self.get_query_params().get('Period') @@ -71,3 +76,8 @@ def get_InstanceId(self): # String def set_InstanceId(self, InstanceId): # String self.add_query_param('InstanceId', InstanceId) + def get_AutoRenew(self): # String + return self.get_query_params().get('AutoRenew') + + def set_AutoRenew(self, AutoRenew): # String + self.add_query_param('AutoRenew', AutoRenew) diff --git a/aliyun-python-sdk-r-kvstore/setup.py b/aliyun-python-sdk-r-kvstore/setup.py index 1ad9c499cb..444ef731b3 100644 --- a/aliyun-python-sdk-r-kvstore/setup.py +++ b/aliyun-python-sdk-r-kvstore/setup.py @@ -65,13 +65,13 @@ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 2.6", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development", )