|
| 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) |
0 commit comments