Skip to content

Commit

Permalink
Generated 2021-06-01 for ComputeNest.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Apr 23, 2024
1 parent 898237b commit 3037081
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 12 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-computenest/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-04-23 Version: 1.0.1
- Generated 2021-06-01 for `ComputeNest`.

2023-05-16 Version: 1.0.0
- Generate SDK for service instance APIs.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 aliyunsdkcomputenest.endpoint import endpoint_data

class ChangeResourceGroupRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'ChangeResourceGroup','computenest')
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_ResourceId(self): # String
return self.get_query_params().get('ResourceId')

def set_ResourceId(self, ResourceId): # String
self.add_query_param('ResourceId', ResourceId)
def get_ResourceType(self): # String
return self.get_query_params().get('ResourceType')

def set_ResourceType(self, ResourceType): # String
self.add_query_param('ResourceType', ResourceType)
def get_NewResourceGroupId(self): # String
return self.get_query_params().get('NewResourceGroupId')

def set_NewResourceGroupId(self, NewResourceGroupId): # String
self.add_query_param('NewResourceGroupId', NewResourceGroupId)
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def get_Commodity(self): # Struct
def set_Commodity(self, Commodity): # Struct
if Commodity.get('PayPeriod') is not None:
self.add_query_param('Commodity.PayPeriod', Commodity.get('PayPeriod'))
if Commodity.get('AutoPay') is not None:
self.add_query_param('Commodity.AutoPay', Commodity.get('AutoPay'))
if Commodity.get('AutoRenew') is not None:
self.add_query_param('Commodity.AutoRenew', Commodity.get('AutoRenew'))
if Commodity.get('PayPeriodUnit') is not None:
self.add_query_param('Commodity.PayPeriodUnit', Commodity.get('PayPeriodUnit'))
def get_ContactGroup(self): # String
Expand Down Expand Up @@ -118,11 +122,6 @@ def get_Parameters(self): # String

def set_Parameters(self, Parameters): # String
self.add_query_param('Parameters', Parameters)
def get_PayType(self): # Long
return self.get_query_params().get('PayType')

def set_PayType(self, PayType): # Long
self.add_query_param('PayType', PayType)
def get_OperationMetadata(self): # Struct
return self.get_query_params().get('OperationMetadata')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 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 aliyunsdkcomputenest.endpoint import endpoint_data

class GetServiceTemplateParameterConstraintsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'ComputeNest', '2021-06-01', 'GetServiceTemplateParameterConstraints','computenest')
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_ClientToken(self): # String
return self.get_query_params().get('ClientToken')

def set_ClientToken(self, ClientToken): # String
self.add_query_param('ClientToken', ClientToken)
def get_EnablePrivateVpcConnection(self): # Boolean
return self.get_query_params().get('EnablePrivateVpcConnection')

def set_EnablePrivateVpcConnection(self, EnablePrivateVpcConnection): # Boolean
self.add_query_param('EnablePrivateVpcConnection', EnablePrivateVpcConnection)
def get_TemplateName(self): # String
return self.get_query_params().get('TemplateName')

def set_TemplateName(self, TemplateName): # String
self.add_query_param('TemplateName', TemplateName)
def get_ServiceInstanceId(self): # String
return self.get_query_params().get('ServiceInstanceId')

def set_ServiceInstanceId(self, ServiceInstanceId): # String
self.add_query_param('ServiceInstanceId', ServiceInstanceId)
def get_DeployRegionId(self): # String
return self.get_query_params().get('DeployRegionId')

def set_DeployRegionId(self, DeployRegionId): # String
self.add_query_param('DeployRegionId', DeployRegionId)
def get_SpecificationName(self): # String
return self.get_query_params().get('SpecificationName')

def set_SpecificationName(self, SpecificationName): # String
self.add_query_param('SpecificationName', SpecificationName)
def get_TrialType(self): # String
return self.get_query_params().get('TrialType')

def set_TrialType(self, TrialType): # String
self.add_query_param('TrialType', TrialType)
def get_ServiceVersion(self): # String
return self.get_query_params().get('ServiceVersion')

def set_ServiceVersion(self, ServiceVersion): # String
self.add_query_param('ServiceVersion', ServiceVersion)
def get_ServiceId(self): # String
return self.get_query_params().get('ServiceId')

def set_ServiceId(self, ServiceId): # String
self.add_query_param('ServiceId', ServiceId)
def get_Parameterss(self): # RepeatList
return self.get_query_params().get('Parameters')

def set_Parameterss(self, Parameters): # RepeatList
for depth1 in range(len(Parameters)):
if Parameters[depth1].get('ParameterValue') is not None:
self.add_query_param('Parameters.' + str(depth1 + 1) + '.ParameterValue', Parameters[depth1].get('ParameterValue'))
if Parameters[depth1].get('ParameterKey') is not None:
self.add_query_param('Parameters.' + str(depth1 + 1) + '.ParameterKey', Parameters[depth1].get('ParameterKey'))
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,18 @@ def get_ServiceInstanceId(self): # String

def set_ServiceInstanceId(self, ServiceInstanceId): # String
self.add_query_param('ServiceInstanceId', ServiceInstanceId)
def get_MaxResults(self): # String
def get_LogSource(self): # String
return self.get_query_params().get('LogSource')

def set_LogSource(self, LogSource): # String
self.add_query_param('LogSource', LogSource)
def get_MaxResults(self): # Integer
return self.get_query_params().get('MaxResults')

def set_MaxResults(self, MaxResults): # String
def set_MaxResults(self, MaxResults): # Integer
self.add_query_param('MaxResults', MaxResults)
def get_Logstore(self): # String
return self.get_query_params().get('Logstore')

def set_Logstore(self, Logstore): # String
self.add_query_param('Logstore', Logstore)
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ def get_NextToken(self): # String

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_ServiceInstanceResourceType(self): # String
return self.get_query_params().get('ServiceInstanceResourceType')

def set_ServiceInstanceResourceType(self, ServiceInstanceResourceType): # String
self.add_query_param('ServiceInstanceResourceType', ServiceInstanceResourceType)
def get_ResourceARNs(self): # RepeatList
return self.get_query_params().get('ResourceARN')

Expand All @@ -66,10 +71,10 @@ def get_ExpireTimeStart(self): # String

def set_ExpireTimeStart(self, ExpireTimeStart): # String
self.add_query_param('ExpireTimeStart', ExpireTimeStart)
def get_MaxResults(self): # String
def get_MaxResults(self): # Integer
return self.get_query_params().get('MaxResults')

def set_MaxResults(self, MaxResults): # String
def set_MaxResults(self, MaxResults): # Integer
self.add_query_param('MaxResults', MaxResults)
def get_PayType(self): # String
return self.get_query_params().get('PayType')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def set_Filters(self, Filter): # RepeatList
if Filter[depth1].get('Value') is not None:
for depth2 in range(len(Filter[depth1].get('Value'))):
self.add_query_param('Filter.' + str(depth1 + 1) + '.Value.' + str(depth2 + 1), Filter[depth1].get('Value')[depth2])
def get_MaxResults(self): # String
def get_MaxResults(self): # Integer
return self.get_query_params().get('MaxResults')

def set_MaxResults(self, MaxResults): # String
def set_MaxResults(self, MaxResults): # Integer
self.add_query_param('MaxResults', MaxResults)

0 comments on commit 3037081

Please sign in to comment.