Skip to content

Commit f0306b7

Browse files
committed
Add status operation api.
1 parent f605055 commit f0306b7

16 files changed

+716
-1
lines changed

aliyun-python-sdk-computenest/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-07-22 Version: 1.0.3
2+
- Add status operation api.
3+
14
2024-06-18 Version: 1.0.2
25
- Add status operation api.
36

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.2'
1+
__version__ = '1.0.3'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 aliyunsdkcomputenest.endpoint import endpoint_data
22+
23+
class CancelServiceUsageRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'CancelServiceUsage','computenest')
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_NeedDelete(self): # Boolean
40+
return self.get_query_params().get('NeedDelete')
41+
42+
def set_NeedDelete(self, NeedDelete): # Boolean
43+
self.add_query_param('NeedDelete', NeedDelete)
44+
def get_ServiceId(self): # String
45+
return self.get_query_params().get('ServiceId')
46+
47+
def set_ServiceId(self, ServiceId): # String
48+
self.add_query_param('ServiceId', ServiceId)

aliyun-python-sdk-computenest/aliyunsdkcomputenest/request/v20210601/CreateServiceInstanceRequest.py

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ def get_ResourceGroupId(self): # String
6363

6464
def set_ResourceGroupId(self, ResourceGroupId): # String
6565
self.add_query_param('ResourceGroupId', ResourceGroupId)
66+
def get_ResourceAutoPay(self): # Boolean
67+
return self.get_query_params().get('ResourceAutoPay')
68+
69+
def set_ResourceAutoPay(self, ResourceAutoPay): # Boolean
70+
self.add_query_param('ResourceAutoPay', ResourceAutoPay)
6671
def get_EnableInstanceOps(self): # Boolean
6772
return self.get_query_params().get('EnableInstanceOps')
6873

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 aliyunsdkcomputenest.endpoint import endpoint_data
22+
import json
23+
24+
class CreateServiceUsageRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'CreateServiceUsage','computenest')
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_ClientToken(self): # String
36+
return self.get_query_params().get('ClientToken')
37+
38+
def set_ClientToken(self, ClientToken): # String
39+
self.add_query_param('ClientToken', ClientToken)
40+
def get_UserInformation(self): # Map
41+
return self.get_query_params().get('UserInformation')
42+
43+
def set_UserInformation(self, UserInformation): # Map
44+
self.add_query_param("UserInformation", json.dumps(UserInformation))
45+
def get_ServiceId(self): # String
46+
return self.get_query_params().get('ServiceId')
47+
48+
def set_ServiceId(self, ServiceId): # String
49+
self.add_query_param('ServiceId', ServiceId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 aliyunsdkcomputenest.endpoint import endpoint_data
22+
23+
class GenerateServicePolicyRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'GenerateServicePolicy','computenest')
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_TemplateName(self): # String
35+
return self.get_query_params().get('TemplateName')
36+
37+
def set_TemplateName(self, TemplateName): # String
38+
self.add_query_param('TemplateName', TemplateName)
39+
def get_OperationTypess(self): # RepeatList
40+
return self.get_query_params().get('OperationTypes')
41+
42+
def set_OperationTypess(self, OperationTypes): # RepeatList
43+
for depth1 in range(len(OperationTypes)):
44+
self.add_query_param('OperationTypes.' + str(depth1 + 1), OperationTypes[depth1])
45+
def get_TrialType(self): # String
46+
return self.get_query_params().get('TrialType')
47+
48+
def set_TrialType(self, TrialType): # String
49+
self.add_query_param('TrialType', TrialType)
50+
def get_ServiceVersion(self): # String
51+
return self.get_query_params().get('ServiceVersion')
52+
53+
def set_ServiceVersion(self, ServiceVersion): # String
54+
self.add_query_param('ServiceVersion', ServiceVersion)
55+
def get_ServiceId(self): # String
56+
return self.get_query_params().get('ServiceId')
57+
58+
def set_ServiceId(self, ServiceId): # String
59+
self.add_query_param('ServiceId', ServiceId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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 aliyunsdkcomputenest.endpoint import endpoint_data
22+
import json
23+
24+
class GetServiceEstimateCostRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'GetServiceEstimateCost','computenest')
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_Commodity(self): # Struct
36+
return self.get_query_params().get('Commodity')
37+
38+
def set_Commodity(self, Commodity): # Struct
39+
self.add_query_param("Commodity", json.dumps(Commodity))
40+
def get_ClientToken(self): # String
41+
return self.get_query_params().get('ClientToken')
42+
43+
def set_ClientToken(self, ClientToken): # String
44+
self.add_query_param('ClientToken', ClientToken)
45+
def get_TemplateName(self): # String
46+
return self.get_query_params().get('TemplateName')
47+
48+
def set_TemplateName(self, TemplateName): # String
49+
self.add_query_param('TemplateName', TemplateName)
50+
def get_ServiceInstanceId(self): # String
51+
return self.get_query_params().get('ServiceInstanceId')
52+
53+
def set_ServiceInstanceId(self, ServiceInstanceId): # String
54+
self.add_query_param('ServiceInstanceId', ServiceInstanceId)
55+
def get_SpecificationName(self): # String
56+
return self.get_query_params().get('SpecificationName')
57+
58+
def set_SpecificationName(self, SpecificationName): # String
59+
self.add_query_param('SpecificationName', SpecificationName)
60+
def get_TrialType(self): # String
61+
return self.get_query_params().get('TrialType')
62+
63+
def set_TrialType(self, TrialType): # String
64+
self.add_query_param('TrialType', TrialType)
65+
def get_OperationName(self): # String
66+
return self.get_query_params().get('OperationName')
67+
68+
def set_OperationName(self, OperationName): # String
69+
self.add_query_param('OperationName', OperationName)
70+
def get_ServiceVersion(self): # String
71+
return self.get_query_params().get('ServiceVersion')
72+
73+
def set_ServiceVersion(self, ServiceVersion): # String
74+
self.add_query_param('ServiceVersion', ServiceVersion)
75+
def get_ServiceId(self): # String
76+
return self.get_query_params().get('ServiceId')
77+
78+
def set_ServiceId(self, ServiceId): # String
79+
self.add_query_param('ServiceId', ServiceId)
80+
def get_Parameters(self): # String
81+
return self.get_query_params().get('Parameters')
82+
83+
def set_Parameters(self, Parameters): # String
84+
self.add_query_param('Parameters', Parameters)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 aliyunsdkcomputenest.endpoint import endpoint_data
22+
23+
class GetServiceProvisionsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'GetServiceProvisions','computenest')
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_TemplateName(self): # String
35+
return self.get_query_params().get('TemplateName')
36+
37+
def set_TemplateName(self, TemplateName): # String
38+
self.add_query_param('TemplateName', TemplateName)
39+
def get_TrialType(self): # String
40+
return self.get_query_params().get('TrialType')
41+
42+
def set_TrialType(self, TrialType): # String
43+
self.add_query_param('TrialType', TrialType)
44+
def get_ServiceVersion(self): # String
45+
return self.get_query_params().get('ServiceVersion')
46+
47+
def set_ServiceVersion(self, ServiceVersion): # String
48+
self.add_query_param('ServiceVersion', ServiceVersion)
49+
def get_ServiceId(self): # String
50+
return self.get_query_params().get('ServiceId')
51+
52+
def set_ServiceId(self, ServiceId): # String
53+
self.add_query_param('ServiceId', ServiceId)
54+
def get_Parameters(self): # String
55+
return self.get_query_params().get('Parameters')
56+
57+
def set_Parameters(self, Parameters): # String
58+
self.add_query_param('Parameters', Parameters)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 aliyunsdkcomputenest.endpoint import endpoint_data
22+
23+
class ListServiceCategoriesRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'ListServiceCategories','computenest')
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+

0 commit comments

Comments
 (0)