Skip to content

Commit

Permalink
Generated 2021-05-21 for ComputeNestSupplier.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed May 30, 2024
1 parent 8f1492b commit a791699
Show file tree
Hide file tree
Showing 26 changed files with 956 additions and 56 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-computenestsupplier/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-05-30 Version: 1.0.6
- Generated 2021-05-21 for `ComputeNestSupplier`.

2023-05-23 Version: 1.0.5
- Add UpdateService GetService DeleteService.

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.5'
__version__ = '1.0.6'
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 aliyunsdkcomputenestsupplier.endpoint import endpoint_data

class AddServiceSharedAccountsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'ComputeNestSupplier', '2021-05-21', 'AddServiceSharedAccounts')
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_Type(self): # String
return self.get_query_params().get('Type')

def set_Type(self, Type): # String
self.add_query_param('Type', Type)
def get_SharedAccountss(self): # RepeatList
return self.get_query_params().get('SharedAccounts')

def set_SharedAccountss(self, SharedAccounts): # RepeatList
for depth1 in range(len(SharedAccounts)):
if SharedAccounts[depth1].get('UserAliUid') is not None:
self.add_query_param('SharedAccounts.' + str(depth1 + 1) + '.UserAliUid', SharedAccounts[depth1].get('UserAliUid'))
if SharedAccounts[depth1].get('Permission') is not None:
self.add_query_param('SharedAccounts.' + str(depth1 + 1) + '.Permission', SharedAccounts[depth1].get('Permission'))
def get_ServiceId(self): # String
return self.get_query_params().get('ServiceId')

def set_ServiceId(self, ServiceId): # String
self.add_query_param('ServiceId', ServiceId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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 aliyunsdkcomputenestsupplier.endpoint import endpoint_data

class ContinueDeployServiceInstanceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'ComputeNestSupplier', '2021-05-21', 'ContinueDeployServiceInstance')
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_ServiceInstanceId(self): # String
return self.get_query_params().get('ServiceInstanceId')

def set_ServiceInstanceId(self, ServiceInstanceId): # String
self.add_query_param('ServiceInstanceId', ServiceInstanceId)
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_Parameters(self): # String
return self.get_query_params().get('Parameters')

def set_Parameters(self, Parameters): # String
self.add_query_param('Parameters', Parameters)
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ def get_Description(self): # String

def set_Description(self, Description): # String
self.add_query_param('Description', Description)
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_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_SupportRegionIdss(self): # RepeatList
return self.get_query_params().get('SupportRegionIds')

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

class CreateServiceInstanceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'ComputeNestSupplier', '2021-05-21', 'CreateServiceInstance')
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_UserId(self): # String
return self.get_query_params().get('UserId')

def set_UserId(self, UserId): # String
self.add_query_param('UserId', UserId)
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_TemplateName(self): # String
return self.get_query_params().get('TemplateName')

def set_TemplateName(self, TemplateName): # String
self.add_query_param('TemplateName', TemplateName)
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_DryRun(self): # Boolean
return self.get_query_params().get('DryRun')

def set_DryRun(self, DryRun): # Boolean
self.add_query_param('DryRun', DryRun)
def get_EndTime(self): # String
return self.get_query_params().get('EndTime')

def set_EndTime(self, EndTime): # String
self.add_query_param('EndTime', EndTime)
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_Name(self): # String
return self.get_query_params().get('Name')

def set_Name(self, Name): # String
self.add_query_param('Name', Name)
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_Parameters(self): # String
return self.get_query_params().get('Parameters')

def set_Parameters(self, Parameters): # String
self.add_query_param('Parameters', Parameters)
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,11 @@ def __init__(self):
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_AlarmMetadata(self): # String
return self.get_query_params().get('AlarmMetadata')

def set_AlarmMetadata(self, AlarmMetadata): # String
self.add_query_param('AlarmMetadata', AlarmMetadata)
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_PolicyNames(self): # String
return self.get_query_params().get('PolicyNames')

def set_PolicyNames(self, PolicyNames): # String
self.add_query_param('PolicyNames', PolicyNames)
def get_LicenseMetadata(self): # String
return self.get_query_params().get('LicenseMetadata')

def set_LicenseMetadata(self, LicenseMetadata): # String
self.add_query_param('LicenseMetadata', LicenseMetadata)
def get_Duration(self): # Long
return self.get_query_params().get('Duration')

def set_Duration(self, Duration): # Long
self.add_query_param('Duration', Duration)
def get_ResourceGroupId(self): # String
return self.get_query_params().get('ResourceGroupId')

Expand All @@ -71,11 +51,6 @@ def get_TrialDuration(self): # Long

def set_TrialDuration(self, TrialDuration): # Long
self.add_query_param('TrialDuration', TrialDuration)
def get_ShareType(self): # String
return self.get_query_params().get('ShareType')

def set_ShareType(self, ShareType): # String
self.add_query_param('ShareType', ShareType)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

Expand All @@ -85,6 +60,61 @@ def set_Tags(self, Tag): # RepeatList
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_OperationMetadata(self): # String
return self.get_query_params().get('OperationMetadata')

def set_OperationMetadata(self, OperationMetadata): # String
self.add_query_param('OperationMetadata', OperationMetadata)
def get_DeployType(self): # String
return self.get_query_params().get('DeployType')

def set_DeployType(self, DeployType): # String
self.add_query_param('DeployType', DeployType)
def get_AlarmMetadata(self): # String
return self.get_query_params().get('AlarmMetadata')

def set_AlarmMetadata(self, AlarmMetadata): # String
self.add_query_param('AlarmMetadata', AlarmMetadata)
def get_Resellable(self): # Boolean
return self.get_query_params().get('Resellable')

def set_Resellable(self, Resellable): # Boolean
self.add_query_param('Resellable', Resellable)
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_SourceServiceId(self): # String
return self.get_query_params().get('SourceServiceId')

def set_SourceServiceId(self, SourceServiceId): # String
self.add_query_param('SourceServiceId', SourceServiceId)
def get_SourceServiceVersion(self): # String
return self.get_query_params().get('SourceServiceVersion')

def set_SourceServiceVersion(self, SourceServiceVersion): # String
self.add_query_param('SourceServiceVersion', SourceServiceVersion)
def get_LicenseMetadata(self): # String
return self.get_query_params().get('LicenseMetadata')

def set_LicenseMetadata(self, LicenseMetadata): # String
self.add_query_param('LicenseMetadata', LicenseMetadata)
def get_Duration(self): # Long
return self.get_query_params().get('Duration')

def set_Duration(self, Duration): # Long
self.add_query_param('Duration', Duration)
def get_ShareType(self): # String
return self.get_query_params().get('ShareType')

def set_ShareType(self, ShareType): # String
self.add_query_param('ShareType', ShareType)
def get_BuildParameters(self): # String
return self.get_query_params().get('BuildParameters')

def set_BuildParameters(self, BuildParameters): # String
self.add_query_param('BuildParameters', BuildParameters)
def get_UpgradeMetadata(self): # String
return self.get_query_params().get('UpgradeMetadata')

Expand All @@ -110,6 +140,11 @@ def get_TenantType(self): # String

def set_TenantType(self, TenantType): # String
self.add_query_param('TenantType', TenantType)
def get_LogMetadata(self): # String
return self.get_query_params().get('LogMetadata')

def set_LogMetadata(self, LogMetadata): # String
self.add_query_param('LogMetadata', LogMetadata)
def get_ServiceInfos(self): # RepeatList
return self.get_query_params().get('ServiceInfo')

Expand All @@ -121,8 +156,16 @@ def set_ServiceInfos(self, ServiceInfo): # RepeatList
self.add_query_param('ServiceInfo.' + str(depth1 + 1) + '.Image', ServiceInfo[depth1].get('Image'))
if ServiceInfo[depth1].get('Name') is not None:
self.add_query_param('ServiceInfo.' + str(depth1 + 1) + '.Name', ServiceInfo[depth1].get('Name'))
if ServiceInfo[depth1].get('Agreements') is not None:
for depth2 in range(len(ServiceInfo[depth1].get('Agreements'))):
if ServiceInfo[depth1].get('Agreements')[depth2].get('Name') is not None:
self.add_query_param('ServiceInfo.' + str(depth1 + 1) + '.Agreements.' + str(depth2 + 1) + '.Name', ServiceInfo[depth1].get('Agreements')[depth2].get('Name'))
if ServiceInfo[depth1].get('Agreements')[depth2].get('Url') is not None:
self.add_query_param('ServiceInfo.' + str(depth1 + 1) + '.Agreements.' + str(depth2 + 1) + '.Url', ServiceInfo[depth1].get('Agreements')[depth2].get('Url'))
if ServiceInfo[depth1].get('Locale') is not None:
self.add_query_param('ServiceInfo.' + str(depth1 + 1) + '.Locale', ServiceInfo[depth1].get('Locale'))
if ServiceInfo[depth1].get('LongDescriptionUrl') is not None:
self.add_query_param('ServiceInfo.' + str(depth1 + 1) + '.LongDescriptionUrl', ServiceInfo[depth1].get('LongDescriptionUrl'))
def get_ServiceId(self): # String
return self.get_query_params().get('ServiceId')

Expand All @@ -133,13 +176,3 @@ def get_VersionName(self): # String

def set_VersionName(self, VersionName): # String
self.add_query_param('VersionName', VersionName)
def get_OperationMetadata(self): # String
return self.get_query_params().get('OperationMetadata')

def set_OperationMetadata(self, OperationMetadata): # String
self.add_query_param('OperationMetadata', OperationMetadata)
def get_DeployType(self): # String
return self.get_query_params().get('DeployType')

def set_DeployType(self, DeployType): # String
self.add_query_param('DeployType', DeployType)
Loading

0 comments on commit a791699

Please sign in to comment.