Skip to content

Commit bbac90f

Browse files
committed
Generated 2019-06-01 for smc.
1 parent 7f4ac91 commit bbac90f

28 files changed

+1195
-509
lines changed

aliyun-python-sdk-smc/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-07 Version: 1.0.4
2+
- Generated 2019-06-01 for `smc`.
3+
14
2021-04-26 Version: 1.0.3
25
- Generated 2019-06-01 for `smc`.
36

aliyun-python-sdk-smc/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy
88

99
This module works on Python versions:
1010

11-
2.6.5 and greater
11+
3.7 and greater
1212

1313
**Documentation:**
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.3'
1+
__version__ = '1.0.4'
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdksmc.endpoint import endpoint_data
22+
23+
class AssociateSourceServersRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'smc', '2019-06-01', 'AssociateSourceServers','smc')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_SourceIds(self): # RepeatList
36+
return self.get_query_params().get('SourceId')
37+
38+
def set_SourceIds(self, SourceId): # RepeatList
39+
for depth1 in range(len(SourceId)):
40+
self.add_query_param('SourceId.' + str(depth1 + 1), SourceId[depth1])
41+
def get_ResourceOwnerAccount(self): # String
42+
return self.get_query_params().get('ResourceOwnerAccount')
43+
44+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
45+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
46+
def get_OwnerId(self): # Long
47+
return self.get_query_params().get('OwnerId')
48+
49+
def set_OwnerId(self, OwnerId): # Long
50+
self.add_query_param('OwnerId', OwnerId)
51+
def get_WorkgroupId(self): # String
52+
return self.get_query_params().get('WorkgroupId')
53+
54+
def set_WorkgroupId(self, WorkgroupId): # String
55+
self.add_query_param('WorkgroupId', WorkgroupId)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdksmc.endpoint import endpoint_data
22+
23+
class CreateAccessTokenRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'smc', '2019-06-01', 'CreateAccessToken','smc')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_TimeToLiveInDays(self): # String
35+
return self.get_query_params().get('TimeToLiveInDays')
36+
37+
def set_TimeToLiveInDays(self, TimeToLiveInDays): # String
38+
self.add_query_param('TimeToLiveInDays', TimeToLiveInDays)
39+
def get_Description(self): # String
40+
return self.get_query_params().get('Description')
41+
42+
def set_Description(self, Description): # String
43+
self.add_query_param('Description', Description)
44+
def get_ResourceOwnerAccount(self): # String
45+
return self.get_query_params().get('ResourceOwnerAccount')
46+
47+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
48+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
49+
def get_Count(self): # String
50+
return self.get_query_params().get('Count')
51+
52+
def set_Count(self, Count): # String
53+
self.add_query_param('Count', Count)
54+
def get_OwnerId(self): # Long
55+
return self.get_query_params().get('OwnerId')
56+
57+
def set_OwnerId(self, OwnerId): # Long
58+
self.add_query_param('OwnerId', OwnerId)
59+
def get_Name(self): # String
60+
return self.get_query_params().get('Name')
61+
62+
def set_Name(self, Name): # String
63+
self.add_query_param('Name', Name)
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdksmc.endpoint import endpoint_data
22+
23+
class CreateCrossZoneMigrationJobRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'smc', '2019-06-01', 'CreateCrossZoneMigrationJob','smc')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ClientToken(self): # String
35+
return self.get_query_params().get('ClientToken')
36+
37+
def set_ClientToken(self, ClientToken): # String
38+
self.add_query_param('ClientToken', ClientToken)
39+
def get_TargetInstanceType(self): # String
40+
return self.get_query_params().get('TargetInstanceType')
41+
42+
def set_TargetInstanceType(self, TargetInstanceType): # String
43+
self.add_query_param('TargetInstanceType', TargetInstanceType)
44+
def get_ResourceGroupId(self): # String
45+
return self.get_query_params().get('ResourceGroupId')
46+
47+
def set_ResourceGroupId(self, ResourceGroupId): # String
48+
self.add_query_param('ResourceGroupId', ResourceGroupId)
49+
def get_TargetZoneId(self): # String
50+
return self.get_query_params().get('TargetZoneId')
51+
52+
def set_TargetZoneId(self, TargetZoneId): # String
53+
self.add_query_param('TargetZoneId', TargetZoneId)
54+
def get_AutoPay(self): # Boolean
55+
return self.get_query_params().get('AutoPay')
56+
57+
def set_AutoPay(self, AutoPay): # Boolean
58+
self.add_query_param('AutoPay', AutoPay)
59+
def get_ResourceOwnerAccount(self): # String
60+
return self.get_query_params().get('ResourceOwnerAccount')
61+
62+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
63+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
64+
def get_TargetVSwitchId(self): # String
65+
return self.get_query_params().get('TargetVSwitchId')
66+
67+
def set_TargetVSwitchId(self, TargetVSwitchId): # String
68+
self.add_query_param('TargetVSwitchId', TargetVSwitchId)
69+
def get_OwnerId(self): # Long
70+
return self.get_query_params().get('OwnerId')
71+
72+
def set_OwnerId(self, OwnerId): # Long
73+
self.add_query_param('OwnerId', OwnerId)
74+
def get_Disks(self): # RepeatList
75+
return self.get_query_params().get('Disk')
76+
77+
def set_Disks(self, Disk): # RepeatList
78+
for depth1 in range(len(Disk)):
79+
if Disk[depth1].get('PerformanceLevel') is not None:
80+
self.add_query_param('Disk.' + str(depth1 + 1) + '.PerformanceLevel', Disk[depth1].get('PerformanceLevel'))
81+
if Disk[depth1].get('DiskId') is not None:
82+
self.add_query_param('Disk.' + str(depth1 + 1) + '.DiskId', Disk[depth1].get('DiskId'))
83+
if Disk[depth1].get('Category') is not None:
84+
self.add_query_param('Disk.' + str(depth1 + 1) + '.Category', Disk[depth1].get('Category'))
85+
def get_InstanceId(self): # String
86+
return self.get_query_params().get('InstanceId')
87+
88+
def set_InstanceId(self, InstanceId): # String
89+
self.add_query_param('InstanceId', InstanceId)

0 commit comments

Comments
 (0)