-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supported APIs DescribeSDG,PreloadRegionSDG,UnloadRegionSDG,DeployIns…
…tanceSDG,RemoveInstanceSDG.
- Loading branch information
Showing
19 changed files
with
401 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '3.0.15' | ||
__version__ = '3.0.16' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeployInstanceSDGRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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 | ||
import json | ||
|
||
class DeployInstanceSDGRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DeployInstanceSDG','ens') | ||
self.set_method('POST') | ||
|
||
def get_DeploymentType(self): # String | ||
return self.get_query_params().get('DeploymentType') | ||
|
||
def set_DeploymentType(self, DeploymentType): # String | ||
self.add_query_param('DeploymentType', DeploymentType) | ||
def get_SDGId(self): # String | ||
return self.get_query_params().get('SDGId') | ||
|
||
def set_SDGId(self, SDGId): # String | ||
self.add_query_param('SDGId', SDGId) | ||
def get_InstanceIds(self): # Array | ||
return self.get_query_params().get('InstanceIds') | ||
|
||
def set_InstanceIds(self, InstanceIds): # Array | ||
self.add_query_param("InstanceIds", json.dumps(InstanceIds)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeSDGRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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 | ||
import json | ||
|
||
class DescribeSDGRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeSDG','ens') | ||
self.set_method('POST') | ||
|
||
def get_PageNumber(self): # Integer | ||
return self.get_query_params().get('PageNumber') | ||
|
||
def set_PageNumber(self, PageNumber): # Integer | ||
self.add_query_param('PageNumber', PageNumber) | ||
def get_PageSize(self): # Integer | ||
return self.get_query_params().get('PageSize') | ||
|
||
def set_PageSize(self, PageSize): # Integer | ||
self.add_query_param('PageSize', PageSize) | ||
def get_SDGIds(self): # Array | ||
return self.get_query_params().get('SDGIds') | ||
|
||
def set_SDGIds(self, SDGIds): # Array | ||
self.add_query_param("SDGIds", json.dumps(SDGIds)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/ListTagResourcesRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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 | ||
|
||
class ListTagResourcesRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'ListTagResources','ens') | ||
self.set_method('POST') | ||
|
||
def get_NextToken(self): # String | ||
return self.get_query_params().get('NextToken') | ||
|
||
def set_NextToken(self, NextToken): # String | ||
self.add_query_param('NextToken', NextToken) | ||
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_ResourceIds(self): # RepeatList | ||
return self.get_query_params().get('ResourceId') | ||
|
||
def set_ResourceIds(self, ResourceId): # RepeatList | ||
for depth1 in range(len(ResourceId)): | ||
self.add_query_param('ResourceId.' + str(depth1 + 1), ResourceId[depth1]) | ||
def get_ResourceType(self): # String | ||
return self.get_query_params().get('ResourceType') | ||
|
||
def set_ResourceType(self, ResourceType): # String | ||
self.add_query_param('ResourceType', ResourceType) |
49 changes: 49 additions & 0 deletions
49
aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/PreloadRegionSDGRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 | ||
import json | ||
|
||
class PreloadRegionSDGRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'PreloadRegionSDG','ens') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_DestinationRegionIds(self): # Array | ||
return self.get_query_params().get('DestinationRegionIds') | ||
|
||
def set_DestinationRegionIds(self, DestinationRegionIds): # Array | ||
self.add_query_param("DestinationRegionIds", json.dumps(DestinationRegionIds)) | ||
def get_SDGId(self): # String | ||
return self.get_query_params().get('SDGId') | ||
|
||
def set_SDGId(self, SDGId): # String | ||
self.add_query_param('SDGId', SDGId) | ||
def get_RedundantNum(self): # Integer | ||
return self.get_query_params().get('RedundantNum') | ||
|
||
def set_RedundantNum(self, RedundantNum): # Integer | ||
self.add_query_param('RedundantNum', RedundantNum) | ||
def get_Namespaces(self): # Array | ||
return self.get_query_params().get('Namespaces') | ||
|
||
def set_Namespaces(self, Namespaces): # Array | ||
self.add_query_param("Namespaces", json.dumps(Namespaces)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/RemoveInstanceSDGRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 | ||
import json | ||
|
||
class RemoveInstanceSDGRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'RemoveInstanceSDG','ens') | ||
self.set_method('POST') | ||
|
||
def get_InstanceIds(self): # Array | ||
return self.get_query_params().get('InstanceIds') | ||
|
||
def set_InstanceIds(self, InstanceIds): # Array | ||
self.add_query_param("InstanceIds", json.dumps(InstanceIds)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/TagResourcesRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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 | ||
|
||
class TagResourcesRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'TagResources','ens') | ||
self.set_method('POST') | ||
|
||
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_ResourceIds(self): # RepeatList | ||
return self.get_query_params().get('ResourceId') | ||
|
||
def set_ResourceIds(self, ResourceId): # RepeatList | ||
for depth1 in range(len(ResourceId)): | ||
self.add_query_param('ResourceId.' + str(depth1 + 1), ResourceId[depth1]) | ||
def get_ResourceType(self): # String | ||
return self.get_query_params().get('ResourceType') | ||
|
||
def set_ResourceType(self, ResourceType): # String | ||
self.add_query_param('ResourceType', ResourceType) |
Oops, something went wrong.