Skip to content

Commit

Permalink
CreateInstance add ReplicaCount parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 17, 2024
1 parent ffc47e5 commit d16df7a
Show file tree
Hide file tree
Showing 24 changed files with 1,303 additions and 8 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-r-kvstore/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-r-kvstore/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:**

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.20.13'
__version__ = '2.20.14'
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Loading

0 comments on commit d16df7a

Please sign in to comment.