-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
180 additions
and
1 deletion.
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
2 changes: 1 addition & 1 deletion
2
aliyun-python-sdk-ecs-workbench/aliyunsdkecs_workbench/__init__.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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.0.1' | ||
__version__ = '1.0.2' |
33 changes: 33 additions & 0 deletions
33
...-ecs-workbench/aliyunsdkecs_workbench/request/v20220220/GetInstanceRecordConfigRequest.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 | ||
|
||
class GetInstanceRecordConfigRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'ecs-workbench', '2022-02-20', 'GetInstanceRecordConfig','ecs-workbench') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_InstanceId(self): # String | ||
return self.get_body_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_body_params('InstanceId', InstanceId) |
43 changes: 43 additions & 0 deletions
43
...-sdk-ecs-workbench/aliyunsdkecs_workbench/request/v20220220/ListInstanceRecordsRequest.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 | ||
|
||
class ListInstanceRecordsRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'ecs-workbench', '2022-02-20', 'ListInstanceRecords','ecs-workbench') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_PageNumber(self): # Integer | ||
return self.get_body_params().get('PageNumber') | ||
|
||
def set_PageNumber(self, PageNumber): # Integer | ||
self.add_body_params('PageNumber', PageNumber) | ||
def get_InstanceId(self): # String | ||
return self.get_body_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_body_params('InstanceId', InstanceId) | ||
def get_PageSize(self): # Integer | ||
return self.get_body_params().get('PageSize') | ||
|
||
def set_PageSize(self, PageSize): # Integer | ||
self.add_body_params('PageSize', PageSize) |
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
48 changes: 48 additions & 0 deletions
48
...-ecs-workbench/aliyunsdkecs_workbench/request/v20220220/SetInstanceRecordConfigRequest.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,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 | ||
|
||
class SetInstanceRecordConfigRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'ecs-workbench', '2022-02-20', 'SetInstanceRecordConfig','ecs-workbench') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_Enabled(self): # Boolean | ||
return self.get_body_params().get('Enabled') | ||
|
||
def set_Enabled(self, Enabled): # Boolean | ||
self.add_body_params('Enabled', Enabled) | ||
def get_RecordStorageTarget(self): # String | ||
return self.get_body_params().get('RecordStorageTarget') | ||
|
||
def set_RecordStorageTarget(self, RecordStorageTarget): # String | ||
self.add_body_params('RecordStorageTarget', RecordStorageTarget) | ||
def get_InstanceId(self): # String | ||
return self.get_body_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_body_params('InstanceId', InstanceId) | ||
def get_ExpirationDays(self): # Integer | ||
return self.get_body_params().get('ExpirationDays') | ||
|
||
def set_ExpirationDays(self, ExpirationDays): # Integer | ||
self.add_body_params('ExpirationDays', ExpirationDays) |
38 changes: 38 additions & 0 deletions
38
...-sdk-ecs-workbench/aliyunsdkecs_workbench/request/v20220220/ViewInstanceRecordsRequest.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,38 @@ | ||
# 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 ViewInstanceRecordsRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'ecs-workbench', '2022-02-20', 'ViewInstanceRecords','ecs-workbench') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_InstanceId(self): # String | ||
return self.get_body_params().get('InstanceId') | ||
|
||
def set_InstanceId(self, InstanceId): # String | ||
self.add_body_params('InstanceId', InstanceId) | ||
def get_TerminalSessionToken(self): # String | ||
return self.get_body_params().get('TerminalSessionToken') | ||
|
||
def set_TerminalSessionToken(self, TerminalSessionToken): # String | ||
self.add_body_params('TerminalSessionToken', TerminalSessionToken) |