From 28cdfae7ce3ab47b5094e74952a9b925e88ab362 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 15 Sep 2025 03:57:31 +0000 Subject: [PATCH] Add CreateExternalCACertificate. --- aliyun-python-sdk-cas/ChangeLog.txt | 4 + aliyun-python-sdk-cas/README.rst | 2 +- .../aliyunsdkcas/__init__.py | 2 +- ...ncelCertificateForPackageRequestRequest.py | 38 ------ ...eateCertificateForPackageRequestRequest.py | 73 ----------- .../CreateCertificateRequestRequest.py | 63 ---------- .../CreateCertificateWithCsrRequestRequest.py | 63 ---------- .../request/v20200407/DecryptRequest.py | 53 -------- .../DescribeCertificateStateRequest.py | 38 ------ .../v20200407/DescribePackageStateRequest.py | 38 ------ .../request/v20200407/SignRequest.py | 53 -------- .../request/v20200407/UploadPCACertRequest.py | 53 -------- .../v20200407/UploadUserCertificateRequest.py | 73 ----------- .../request/v20200407/VerifyRequest.py | 58 --------- .../CreateClientCertificateRequest.py | 118 ++++++++++++++++++ .../CreateClientCertificateWithCsrRequest.py} | 95 +++++++------- .../CreateCustomCertificateRequest.py | 113 +++++++++++++++++ .../CreateExternalCACertificateRequest.py} | 38 +++--- .../CreateRevokeClientCertificateRequest.py} | 12 +- .../CreateRootCACertificateRequest.py | 78 ++++++++++++ .../CreateServerCertificateRequest.py | 113 +++++++++++++++++ .../CreateServerCertificateWithCsrRequest.py | 118 ++++++++++++++++++ .../CreateSubCACertificateRequest.py | 99 +++++++++++++++ .../DeleteClientCertificateRequest.py} | 12 +- .../DescribeCACertificateCountRequest.py} | 4 +- .../DescribeCACertificateListRequest.py} | 46 +++---- .../DescribeCACertificateRequest.py} | 4 +- .../DescribeCertificatePrivateKeyRequest.py | 43 +++++++ .../DescribeClientCertificateRequest.py} | 4 +- .../DescribeClientCertificateStatusRequest.py | 38 ++++++ .../GetCAInstanceStatusRequest.py} | 20 +-- .../ListCertRequest.py} | 56 ++++++--- .../ListClientCertificateRequest.py} | 34 ++--- .../v20200630/ListPcaCaCertificateRequest.py | 44 +++++++ .../ListRevokeCertificateRequest.py} | 20 +-- .../UpdateCACertificateStatusRequest.py | 48 +++++++ .../UploadPcaCertToCasRequest.py} | 13 +- .../{v20200407 => v20200630}/__init__.py | 0 aliyun-python-sdk-cas/setup.py | 12 +- 39 files changed, 1010 insertions(+), 783 deletions(-) delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelCertificateForPackageRequestRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateForPackageRequestRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateRequestRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateWithCsrRequestRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DecryptRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribeCertificateStateRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribePackageStateRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/SignRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadPCACertRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadUserCertificateRequest.py delete mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/VerifyRequest.py create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/CreateWHClientCertificateRequest.py => v20200630/CreateClientCertificateWithCsrRequest.py} (82%) create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateCustomCertificateRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/EncryptRequest.py => v20200630/CreateExternalCACertificateRequest.py} (55%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/DeleteCertificateRequestRequest.py => v20200630/CreateRevokeClientCertificateRequest.py} (77%) create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRootCACertificateRequest.py create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateRequest.py create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateWithCsrRequest.py create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateSubCACertificateRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/CancelOrderRequestRequest.py => v20200630/DeleteClientCertificateRequest.py} (78%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/GetCertWarehouseQuotaRequest.py => v20200630/DescribeCACertificateCountRequest.py} (89%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/ListCertRequest.py => v20200630/DescribeCACertificateListRequest.py} (58%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/DeletePCACertRequest.py => v20200630/DescribeCACertificateRequest.py} (90%) create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCertificatePrivateKeyRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/RevokeWHClientCertificateRequest.py => v20200630/DescribeClientCertificateRequest.py} (91%) create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateStatusRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/GetUserCertificateDetailRequest.py => v20200630/GetCAInstanceStatusRequest.py} (69%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/ListUserCertificateOrderRequest.py => v20200630/ListCertRequest.py} (51%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/ListCertWarehouseRequest.py => v20200630/ListClientCertificateRequest.py} (63%) create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListPcaCaCertificateRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/RenewCertificateOrderForPackageRequestRequest.py => v20200630/ListRevokeCertificateRequest.py} (69%) create mode 100644 aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UpdateCACertificateStatusRequest.py rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407/DeleteUserCertificateRequest.py => v20200630/UploadPcaCertToCasRequest.py} (78%) rename aliyun-python-sdk-cas/aliyunsdkcas/request/{v20200407 => v20200630}/__init__.py (100%) diff --git a/aliyun-python-sdk-cas/ChangeLog.txt b/aliyun-python-sdk-cas/ChangeLog.txt index d6989eb8b5..1866ba0e45 100644 --- a/aliyun-python-sdk-cas/ChangeLog.txt +++ b/aliyun-python-sdk-cas/ChangeLog.txt @@ -1,3 +1,7 @@ +2025-09-15 Version: 1.0.0 +- Add CreateExternalCACertificate. +- Add ListPcaCaCertificate. + 2023-12-20 Version: 1.0.18 - Fix some bugs. diff --git a/aliyun-python-sdk-cas/README.rst b/aliyun-python-sdk-cas/README.rst index bbca5b2869..fd16ae619a 100644 --- a/aliyun-python-sdk-cas/README.rst +++ b/aliyun-python-sdk-cas/README.rst @@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy This module works on Python versions: -2.6.5 and greater +3.7 and greater **Documentation:** diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/__init__.py b/aliyun-python-sdk-cas/aliyunsdkcas/__init__.py index 8cf732be4d..75977e6f41 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/__init__.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/__init__.py @@ -1 +1 @@ -__version__ = '1.0.18' \ No newline at end of file +__version__ = '1.0.0' \ No newline at end of file diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelCertificateForPackageRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelCertificateForPackageRequestRequest.py deleted file mode 100644 index 649d9e6b90..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelCertificateForPackageRequestRequest.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class CancelCertificateForPackageRequestRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'CancelCertificateForPackageRequest','cas') - 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_OrderId(self): # Long - return self.get_query_params().get('OrderId') - - def set_OrderId(self, OrderId): # Long - self.add_query_param('OrderId', OrderId) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateForPackageRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateForPackageRequestRequest.py deleted file mode 100644 index b3c6689907..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateForPackageRequestRequest.py +++ /dev/null @@ -1,73 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class CreateCertificateForPackageRequestRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'CreateCertificateForPackageRequest','cas') - 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_ProductCode(self): # String - return self.get_query_params().get('ProductCode') - - def set_ProductCode(self, ProductCode): # String - self.add_query_param('ProductCode', ProductCode) - def get_Csr(self): # String - return self.get_query_params().get('Csr') - - def set_Csr(self, Csr): # String - self.add_query_param('Csr', Csr) - def get_ValidateType(self): # String - return self.get_query_params().get('ValidateType') - - def set_ValidateType(self, ValidateType): # String - self.add_query_param('ValidateType', ValidateType) - def get_Email(self): # String - return self.get_query_params().get('Email') - - def set_Email(self, Email): # String - self.add_query_param('Email', Email) - def get_Phone(self): # String - return self.get_query_params().get('Phone') - - def set_Phone(self, Phone): # String - self.add_query_param('Phone', Phone) - def get_CompanyName(self): # String - return self.get_query_params().get('CompanyName') - - def set_CompanyName(self, CompanyName): # String - self.add_query_param('CompanyName', CompanyName) - def get_Domain(self): # String - return self.get_query_params().get('Domain') - - def set_Domain(self, Domain): # String - self.add_query_param('Domain', Domain) - def get_Username(self): # String - return self.get_query_params().get('Username') - - def set_Username(self, Username): # String - self.add_query_param('Username', Username) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateRequestRequest.py deleted file mode 100644 index c746a36e72..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateRequestRequest.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class CreateCertificateRequestRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'CreateCertificateRequest','cas') - 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_ProductCode(self): # String - return self.get_query_params().get('ProductCode') - - def set_ProductCode(self, ProductCode): # String - self.add_query_param('ProductCode', ProductCode) - def get_Username(self): # String - return self.get_query_params().get('Username') - - def set_Username(self, Username): # String - self.add_query_param('Username', Username) - def get_Phone(self): # String - return self.get_query_params().get('Phone') - - def set_Phone(self, Phone): # String - self.add_query_param('Phone', Phone) - def get_Email(self): # String - return self.get_query_params().get('Email') - - def set_Email(self, Email): # String - self.add_query_param('Email', Email) - def get_Domain(self): # String - return self.get_query_params().get('Domain') - - def set_Domain(self, Domain): # String - self.add_query_param('Domain', Domain) - def get_ValidateType(self): # String - return self.get_query_params().get('ValidateType') - - def set_ValidateType(self, ValidateType): # String - self.add_query_param('ValidateType', ValidateType) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateWithCsrRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateWithCsrRequestRequest.py deleted file mode 100644 index 38cb023e84..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateCertificateWithCsrRequestRequest.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class CreateCertificateWithCsrRequestRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'CreateCertificateWithCsrRequest','cas') - 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_Csr(self): # String - return self.get_query_params().get('Csr') - - def set_Csr(self, Csr): # String - self.add_query_param('Csr', Csr) - def get_ProductCode(self): # String - return self.get_query_params().get('ProductCode') - - def set_ProductCode(self, ProductCode): # String - self.add_query_param('ProductCode', ProductCode) - def get_Username(self): # String - return self.get_query_params().get('Username') - - def set_Username(self, Username): # String - self.add_query_param('Username', Username) - def get_Phone(self): # String - return self.get_query_params().get('Phone') - - def set_Phone(self, Phone): # String - self.add_query_param('Phone', Phone) - def get_Email(self): # String - return self.get_query_params().get('Email') - - def set_Email(self, Email): # String - self.add_query_param('Email', Email) - def get_ValidateType(self): # String - return self.get_query_params().get('ValidateType') - - def set_ValidateType(self, ValidateType): # String - self.add_query_param('ValidateType', ValidateType) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DecryptRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DecryptRequest.py deleted file mode 100644 index 1c3f7ace45..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DecryptRequest.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class DecryptRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'Decrypt','cas') - 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_MessageType(self): # String - return self.get_query_params().get('MessageType') - - def set_MessageType(self, MessageType): # String - self.add_query_param('MessageType', MessageType) - def get_CertIdentifier(self): # String - return self.get_query_params().get('CertIdentifier') - - def set_CertIdentifier(self, CertIdentifier): # String - self.add_query_param('CertIdentifier', CertIdentifier) - def get_Algorithm(self): # String - return self.get_query_params().get('Algorithm') - - def set_Algorithm(self, Algorithm): # String - self.add_query_param('Algorithm', Algorithm) - def get_CiphertextBlob(self): # String - return self.get_query_params().get('CiphertextBlob') - - def set_CiphertextBlob(self, CiphertextBlob): # String - self.add_query_param('CiphertextBlob', CiphertextBlob) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribeCertificateStateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribeCertificateStateRequest.py deleted file mode 100644 index 9bebe4a94f..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribeCertificateStateRequest.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class DescribeCertificateStateRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'DescribeCertificateState','cas') - 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_OrderId(self): # Long - return self.get_query_params().get('OrderId') - - def set_OrderId(self, OrderId): # Long - self.add_query_param('OrderId', OrderId) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribePackageStateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribePackageStateRequest.py deleted file mode 100644 index 3629f4b4b0..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DescribePackageStateRequest.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class DescribePackageStateRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'DescribePackageState','cas') - 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_ProductCode(self): # String - return self.get_query_params().get('ProductCode') - - def set_ProductCode(self, ProductCode): # String - self.add_query_param('ProductCode', ProductCode) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/SignRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/SignRequest.py deleted file mode 100644 index 8b2c2a5286..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/SignRequest.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class SignRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'Sign','cas') - 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_MessageType(self): # String - return self.get_query_params().get('MessageType') - - def set_MessageType(self, MessageType): # String - self.add_query_param('MessageType', MessageType) - def get_SigningAlgorithm(self): # String - return self.get_query_params().get('SigningAlgorithm') - - def set_SigningAlgorithm(self, SigningAlgorithm): # String - self.add_query_param('SigningAlgorithm', SigningAlgorithm) - def get_Message(self): # String - return self.get_query_params().get('Message') - - def set_Message(self, Message): # String - self.add_query_param('Message', Message) - def get_CertIdentifier(self): # String - return self.get_query_params().get('CertIdentifier') - - def set_CertIdentifier(self, CertIdentifier): # String - self.add_query_param('CertIdentifier', CertIdentifier) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadPCACertRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadPCACertRequest.py deleted file mode 100644 index fabe8c143f..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadPCACertRequest.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class UploadPCACertRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'UploadPCACert','cas') - 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_Cert(self): # String - return self.get_query_params().get('Cert') - - def set_Cert(self, Cert): # String - self.add_query_param('Cert', Cert) - def get_PrivateKey(self): # String - return self.get_query_params().get('PrivateKey') - - def set_PrivateKey(self, PrivateKey): # String - self.add_query_param('PrivateKey', PrivateKey) - def get_WarehouseId(self): # Long - return self.get_query_params().get('WarehouseId') - - def set_WarehouseId(self, WarehouseId): # Long - self.add_query_param('WarehouseId', WarehouseId) - def get_Name(self): # String - return self.get_query_params().get('Name') - - def set_Name(self, Name): # String - self.add_query_param('Name', Name) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadUserCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadUserCertificateRequest.py deleted file mode 100644 index 689f00a6aa..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/UploadUserCertificateRequest.py +++ /dev/null @@ -1,73 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class UploadUserCertificateRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'UploadUserCertificate','cas') - 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_EncryptCert(self): # String - return self.get_query_params().get('EncryptCert') - - def set_EncryptCert(self, EncryptCert): # String - self.add_query_param('EncryptCert', EncryptCert) - def get_Cert(self): # String - return self.get_query_params().get('Cert') - - def set_Cert(self, Cert): # String - self.add_query_param('Cert', Cert) - 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_Key(self): # String - return self.get_query_params().get('Key') - - def set_Key(self, Key): # String - self.add_query_param('Key', Key) - def get_EncryptPrivateKey(self): # String - return self.get_query_params().get('EncryptPrivateKey') - - def set_EncryptPrivateKey(self, EncryptPrivateKey): # String - self.add_query_param('EncryptPrivateKey', EncryptPrivateKey) - def get_SignPrivateKey(self): # String - return self.get_query_params().get('SignPrivateKey') - - def set_SignPrivateKey(self, SignPrivateKey): # String - self.add_query_param('SignPrivateKey', SignPrivateKey) - def get_SignCert(self): # String - return self.get_query_params().get('SignCert') - - def set_SignCert(self, SignCert): # String - self.add_query_param('SignCert', SignCert) - def get_Name(self): # String - return self.get_query_params().get('Name') - - def set_Name(self, Name): # String - self.add_query_param('Name', Name) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/VerifyRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/VerifyRequest.py deleted file mode 100644 index 2814db7375..0000000000 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/VerifyRequest.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 aliyunsdkcas.endpoint import endpoint_data - -class VerifyRequest(RpcRequest): - - def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'Verify','cas') - 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_MessageType(self): # String - return self.get_query_params().get('MessageType') - - def set_MessageType(self, MessageType): # String - self.add_query_param('MessageType', MessageType) - def get_SigningAlgorithm(self): # String - return self.get_query_params().get('SigningAlgorithm') - - def set_SigningAlgorithm(self, SigningAlgorithm): # String - self.add_query_param('SigningAlgorithm', SigningAlgorithm) - def get_Message(self): # String - return self.get_query_params().get('Message') - - def set_Message(self, Message): # String - self.add_query_param('Message', Message) - def get_SignatureValue(self): # String - return self.get_query_params().get('SignatureValue') - - def set_SignatureValue(self, SignatureValue): # String - self.add_query_param('SignatureValue', SignatureValue) - def get_CertIdentifier(self): # String - return self.get_query_params().get('CertIdentifier') - - def set_CertIdentifier(self, CertIdentifier): # String - self.add_query_param('CertIdentifier', CertIdentifier) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateRequest.py new file mode 100644 index 0000000000..6f076af878 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateRequest.py @@ -0,0 +1,118 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class CreateClientCertificateRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateClientCertificate','cas') + 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_Country(self): # String + return self.get_query_params().get('Country') + + def set_Country(self, Country): # String + self.add_query_param('Country', Country) + def get_Months(self): # Integer + return self.get_query_params().get('Months') + + def set_Months(self, Months): # Integer + self.add_query_param('Months', Months) + def get_EnableCrl(self): # Long + return self.get_query_params().get('EnableCrl') + + def set_EnableCrl(self, EnableCrl): # Long + self.add_query_param('EnableCrl', EnableCrl) + def get_AfterTime(self): # Long + return self.get_query_params().get('AfterTime') + + def set_AfterTime(self, AfterTime): # Long + self.add_query_param('AfterTime', AfterTime) + def get_Locality(self): # String + return self.get_query_params().get('Locality') + + def set_Locality(self, Locality): # String + self.add_query_param('Locality', Locality) + def get_Immediately(self): # Integer + return self.get_query_params().get('Immediately') + + def set_Immediately(self, Immediately): # Integer + self.add_query_param('Immediately', Immediately) + def get_Years(self): # Integer + return self.get_query_params().get('Years') + + def set_Years(self, Years): # Integer + self.add_query_param('Years', Years) + def get_CommonName(self): # String + return self.get_query_params().get('CommonName') + + def set_CommonName(self, CommonName): # String + self.add_query_param('CommonName', CommonName) + def get_Organization(self): # String + return self.get_query_params().get('Organization') + + def set_Organization(self, Organization): # String + self.add_query_param('Organization', Organization) + def get_Days(self): # Integer + return self.get_query_params().get('Days') + + def set_Days(self, Days): # Integer + self.add_query_param('Days', Days) + def get_BeforeTime(self): # Long + return self.get_query_params().get('BeforeTime') + + def set_BeforeTime(self, BeforeTime): # Long + self.add_query_param('BeforeTime', BeforeTime) + def get_State(self): # String + return self.get_query_params().get('State') + + def set_State(self, State): # String + self.add_query_param('State', State) + def get_ParentIdentifier(self): # String + return self.get_query_params().get('ParentIdentifier') + + def set_ParentIdentifier(self, ParentIdentifier): # String + self.add_query_param('ParentIdentifier', ParentIdentifier) + def get_OrganizationUnit(self): # String + return self.get_query_params().get('OrganizationUnit') + + def set_OrganizationUnit(self, OrganizationUnit): # String + self.add_query_param('OrganizationUnit', OrganizationUnit) + def get_Algorithm(self): # String + return self.get_query_params().get('Algorithm') + + def set_Algorithm(self, Algorithm): # String + self.add_query_param('Algorithm', Algorithm) + def get_SanType(self): # Integer + return self.get_query_params().get('SanType') + + def set_SanType(self, SanType): # Integer + self.add_query_param('SanType', SanType) + def get_SanValue(self): # String + return self.get_query_params().get('SanValue') + + def set_SanValue(self, SanValue): # String + self.add_query_param('SanValue', SanValue) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateWHClientCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateWithCsrRequest.py similarity index 82% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateWHClientCertificateRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateWithCsrRequest.py index 5a64316fcc..c856ca9853 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CreateWHClientCertificateRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateClientCertificateWithCsrRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class CreateWHClientCertificateRequest(RpcRequest): +class CreateClientCertificateWithCsrRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'CreateWHClientCertificate','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateClientCertificateWithCsr','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -36,46 +36,16 @@ def get_Country(self): # String def set_Country(self, Country): # String self.add_query_param('Country', Country) - def get_Csr(self): # String - return self.get_query_params().get('Csr') - - def set_Csr(self, Csr): # String - self.add_query_param('Csr', Csr) - def get_Immediately(self): # Long - return self.get_query_params().get('Immediately') - - def set_Immediately(self, Immediately): # Long - self.add_query_param('Immediately', Immediately) - def get_Years(self): # Long - return self.get_query_params().get('Years') - - def set_Years(self, Years): # Long - self.add_query_param('Years', Years) - def get_CommonName(self): # String - return self.get_query_params().get('CommonName') - - def set_CommonName(self, CommonName): # String - self.add_query_param('CommonName', CommonName) - def get_SanValue(self): # String - return self.get_query_params().get('SanValue') - - def set_SanValue(self, SanValue): # String - self.add_query_param('SanValue', SanValue) - def get_State(self): # String - return self.get_query_params().get('State') - - def set_State(self, State): # String - self.add_query_param('State', State) - def get_Algorithm(self): # String - return self.get_query_params().get('Algorithm') - - def set_Algorithm(self, Algorithm): # String - self.add_query_param('Algorithm', Algorithm) - def get_Months(self): # Long + def get_Months(self): # Integer return self.get_query_params().get('Months') - def set_Months(self, Months): # Long + def set_Months(self, Months): # Integer self.add_query_param('Months', Months) + def get_EnableCrl(self): # Long + return self.get_query_params().get('EnableCrl') + + def set_EnableCrl(self, EnableCrl): # Long + self.add_query_param('EnableCrl', EnableCrl) def get_AfterTime(self): # Long return self.get_query_params().get('AfterTime') @@ -86,26 +56,41 @@ def get_Locality(self): # String def set_Locality(self, Locality): # String self.add_query_param('Locality', Locality) - def get_SanType(self): # Long - return self.get_query_params().get('SanType') + def get_Immediately(self): # Integer + return self.get_query_params().get('Immediately') - def set_SanType(self, SanType): # Long - self.add_query_param('SanType', SanType) + def set_Immediately(self, Immediately): # Integer + self.add_query_param('Immediately', Immediately) + def get_Years(self): # Integer + return self.get_query_params().get('Years') + + def set_Years(self, Years): # Integer + self.add_query_param('Years', Years) + def get_CommonName(self): # String + return self.get_query_params().get('CommonName') + + def set_CommonName(self, CommonName): # String + self.add_query_param('CommonName', CommonName) def get_Organization(self): # String return self.get_query_params().get('Organization') def set_Organization(self, Organization): # String self.add_query_param('Organization', Organization) - def get_Days(self): # Long + def get_Days(self): # Integer return self.get_query_params().get('Days') - def set_Days(self, Days): # Long + def set_Days(self, Days): # Integer self.add_query_param('Days', Days) def get_BeforeTime(self): # Long return self.get_query_params().get('BeforeTime') def set_BeforeTime(self, BeforeTime): # Long self.add_query_param('BeforeTime', BeforeTime) + def get_State(self): # String + return self.get_query_params().get('State') + + def set_State(self, State): # String + self.add_query_param('State', State) def get_ParentIdentifier(self): # String return self.get_query_params().get('ParentIdentifier') @@ -116,3 +101,23 @@ def get_OrganizationUnit(self): # String def set_OrganizationUnit(self, OrganizationUnit): # String self.add_query_param('OrganizationUnit', OrganizationUnit) + def get_Algorithm(self): # String + return self.get_query_params().get('Algorithm') + + def set_Algorithm(self, Algorithm): # String + self.add_query_param('Algorithm', Algorithm) + def get_Csr(self): # String + return self.get_query_params().get('Csr') + + def set_Csr(self, Csr): # String + self.add_query_param('Csr', Csr) + def get_SanType(self): # Integer + return self.get_query_params().get('SanType') + + def set_SanType(self, SanType): # Integer + self.add_query_param('SanType', SanType) + def get_SanValue(self): # String + return self.get_query_params().get('SanValue') + + def set_SanValue(self, SanValue): # String + self.add_query_param('SanValue', SanValue) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateCustomCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateCustomCertificateRequest.py new file mode 100644 index 0000000000..7cd1da8d19 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateCustomCertificateRequest.py @@ -0,0 +1,113 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class CreateCustomCertificateRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateCustomCertificate','cas') + 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_Csr(self): # String + return self.get_query_params().get('Csr') + + def set_Csr(self, Csr): # String + self.add_query_param('Csr', Csr) + def get_EnableCrl(self): # Long + return self.get_query_params().get('EnableCrl') + + def set_EnableCrl(self, EnableCrl): # Long + self.add_query_param('EnableCrl', EnableCrl) + def get_Immediately(self): # Integer + return self.get_query_params().get('Immediately') + + def set_Immediately(self, Immediately): # Integer + self.add_query_param('Immediately', Immediately) + def get_ParentIdentifier(self): # String + return self.get_query_params().get('ParentIdentifier') + + def set_ParentIdentifier(self, ParentIdentifier): # String + self.add_query_param('ParentIdentifier', ParentIdentifier) + def get_Validity(self): # String + return self.get_query_params().get('Validity') + + def set_Validity(self, Validity): # String + self.add_query_param('Validity', Validity) + def get_ApiPassthrough(self): # Struct + return self.get_query_params().get('ApiPassthrough') + + def set_ApiPassthrough(self, ApiPassthrough): # Struct + if ApiPassthrough.get('Subject') is not None: + if ApiPassthrough.get('Subject').get('Country') is not None: + self.add_query_param('ApiPassthrough.Subject.Country', ApiPassthrough.get('Subject').get('Country')) + if ApiPassthrough.get('Subject').get('State') is not None: + self.add_query_param('ApiPassthrough.Subject.State', ApiPassthrough.get('Subject').get('State')) + if ApiPassthrough.get('Subject').get('Locality') is not None: + self.add_query_param('ApiPassthrough.Subject.Locality', ApiPassthrough.get('Subject').get('Locality')) + if ApiPassthrough.get('Subject').get('Organization') is not None: + self.add_query_param('ApiPassthrough.Subject.Organization', ApiPassthrough.get('Subject').get('Organization')) + if ApiPassthrough.get('Subject').get('OrganizationUnit') is not None: + self.add_query_param('ApiPassthrough.Subject.OrganizationUnit', ApiPassthrough.get('Subject').get('OrganizationUnit')) + if ApiPassthrough.get('Subject').get('CommonName') is not None: + self.add_query_param('ApiPassthrough.Subject.CommonName', ApiPassthrough.get('Subject').get('CommonName')) + if ApiPassthrough.get('Subject').get('CustomAttributes') is not None: + for index1, value1 in enumerate(ApiPassthrough.get('Subject').get('CustomAttributes')): + if value1.get('ObjectIdentifier') is not None: + self.add_query_param('ApiPassthrough.Subject.CustomAttributes.' + str(index1 + 1) + '.ObjectIdentifier', value1.get('ObjectIdentifier')) + if value1.get('Value') is not None: + self.add_query_param('ApiPassthrough.Subject.CustomAttributes.' + str(index1 + 1) + '.Value', value1.get('Value')) + if ApiPassthrough.get('Extensions') is not None: + if ApiPassthrough.get('Extensions').get('KeyUsage') is not None: + if ApiPassthrough.get('Extensions').get('KeyUsage').get('DigitalSignature') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.DigitalSignature', ApiPassthrough.get('Extensions').get('KeyUsage').get('DigitalSignature')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('ContentCommitment') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.ContentCommitment', ApiPassthrough.get('Extensions').get('KeyUsage').get('ContentCommitment')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('NonRepudiation') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.NonRepudiation', ApiPassthrough.get('Extensions').get('KeyUsage').get('NonRepudiation')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('KeyEncipherment') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.KeyEncipherment', ApiPassthrough.get('Extensions').get('KeyUsage').get('KeyEncipherment')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('DataEncipherment') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.DataEncipherment', ApiPassthrough.get('Extensions').get('KeyUsage').get('DataEncipherment')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('KeyAgreement') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.KeyAgreement', ApiPassthrough.get('Extensions').get('KeyUsage').get('KeyAgreement')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('EncipherOnly') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.EncipherOnly', ApiPassthrough.get('Extensions').get('KeyUsage').get('EncipherOnly')) + if ApiPassthrough.get('Extensions').get('KeyUsage').get('DecipherOnly') is not None: + self.add_query_param('ApiPassthrough.Extensions.KeyUsage.DecipherOnly', ApiPassthrough.get('Extensions').get('KeyUsage').get('DecipherOnly')) + if ApiPassthrough.get('Extensions').get('ExtendedKeyUsages') is not None: + for index1, value1 in enumerate(ApiPassthrough.get('Extensions').get('ExtendedKeyUsages')): + self.add_query_param('ApiPassthrough.Extensions.ExtendedKeyUsages.' + str(index1 + 1), value1) + if ApiPassthrough.get('Extensions').get('SubjectAlternativeNames') is not None: + for index1, value1 in enumerate(ApiPassthrough.get('Extensions').get('SubjectAlternativeNames')): + if value1.get('Type') is not None: + self.add_query_param('ApiPassthrough.Extensions.SubjectAlternativeNames.' + str(index1 + 1) + '.Type', value1.get('Type')) + if value1.get('Value') is not None: + self.add_query_param('ApiPassthrough.Extensions.SubjectAlternativeNames.' + str(index1 + 1) + '.Value', value1.get('Value')) + if ApiPassthrough.get('Extensions').get('Criticals') is not None: + for index1, value1 in enumerate(ApiPassthrough.get('Extensions').get('Criticals')): + self.add_query_param('ApiPassthrough.Extensions.Criticals.' + str(index1 + 1), value1) + if ApiPassthrough.get('SerialNumber') is not None: + self.add_query_param('ApiPassthrough.SerialNumber', ApiPassthrough.get('SerialNumber')) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/EncryptRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateExternalCACertificateRequest.py similarity index 55% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/EncryptRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateExternalCACertificateRequest.py index c6b1a4e024..aa5798c443 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/EncryptRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateExternalCACertificateRequest.py @@ -19,11 +19,13 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data +import json -class EncryptRequest(RpcRequest): +class CreateExternalCACertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'Encrypt','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateExternalCACertificate','cas') + self.set_protocol_type('https') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,23 +33,23 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_MessageType(self): # String - return self.get_query_params().get('MessageType') + def get_Csr(self): # String + return self.get_query_params().get('Csr') - def set_MessageType(self, MessageType): # String - self.add_query_param('MessageType', MessageType) - def get_Plaintext(self): # String - return self.get_query_params().get('Plaintext') + def set_Csr(self, Csr): # String + self.add_query_param('Csr', Csr) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') - def set_Plaintext(self, Plaintext): # String - self.add_query_param('Plaintext', Plaintext) - def get_CertIdentifier(self): # String - return self.get_query_params().get('CertIdentifier') + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) + def get_Validity(self): # String + return self.get_query_params().get('Validity') - def set_CertIdentifier(self, CertIdentifier): # String - self.add_query_param('CertIdentifier', CertIdentifier) - def get_Algorithm(self): # String - return self.get_query_params().get('Algorithm') + def set_Validity(self, Validity): # String + self.add_query_param('Validity', Validity) + def get_ApiPassthrough(self): # Struct + return self.get_query_params().get('ApiPassthrough') - def set_Algorithm(self, Algorithm): # String - self.add_query_param('Algorithm', Algorithm) + def set_ApiPassthrough(self, ApiPassthrough): # Struct + self.add_query_param("ApiPassthrough", json.dumps(ApiPassthrough)) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeleteCertificateRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRevokeClientCertificateRequest.py similarity index 77% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeleteCertificateRequestRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRevokeClientCertificateRequest.py index 64a0a45022..fe6f5999b2 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeleteCertificateRequestRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRevokeClientCertificateRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class DeleteCertificateRequestRequest(RpcRequest): +class CreateRevokeClientCertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'DeleteCertificateRequest','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateRevokeClientCertificate','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,8 +31,8 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_OrderId(self): # Long - return self.get_query_params().get('OrderId') + def get_Identifier(self): # String + return self.get_query_params().get('Identifier') - def set_OrderId(self, OrderId): # Long - self.add_query_param('OrderId', OrderId) + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRootCACertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRootCACertificateRequest.py new file mode 100644 index 0000000000..bca6320094 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateRootCACertificateRequest.py @@ -0,0 +1,78 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class CreateRootCACertificateRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateRootCACertificate','cas') + 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_CountryCode(self): # String + return self.get_query_params().get('CountryCode') + + def set_CountryCode(self, CountryCode): # String + self.add_query_param('CountryCode', CountryCode) + def get_Locality(self): # String + return self.get_query_params().get('Locality') + + def set_Locality(self, Locality): # String + self.add_query_param('Locality', Locality) + def get_Years(self): # Integer + return self.get_query_params().get('Years') + + def set_Years(self, Years): # Integer + self.add_query_param('Years', Years) + def get_CommonName(self): # String + return self.get_query_params().get('CommonName') + + def set_CommonName(self, CommonName): # String + self.add_query_param('CommonName', CommonName) + def get_Organization(self): # String + return self.get_query_params().get('Organization') + + def set_Organization(self, Organization): # String + self.add_query_param('Organization', Organization) + def get_State(self): # String + return self.get_query_params().get('State') + + def set_State(self, State): # String + self.add_query_param('State', State) + def get_OrganizationUnit(self): # String + return self.get_query_params().get('OrganizationUnit') + + def set_OrganizationUnit(self, OrganizationUnit): # String + self.add_query_param('OrganizationUnit', OrganizationUnit) + def get_Algorithm(self): # String + return self.get_query_params().get('Algorithm') + + def set_Algorithm(self, Algorithm): # String + self.add_query_param('Algorithm', Algorithm) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateRequest.py new file mode 100644 index 0000000000..483619f3a8 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateRequest.py @@ -0,0 +1,113 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class CreateServerCertificateRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateServerCertificate','cas') + 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_Country(self): # String + return self.get_query_params().get('Country') + + def set_Country(self, Country): # String + self.add_query_param('Country', Country) + def get_Months(self): # Integer + return self.get_query_params().get('Months') + + def set_Months(self, Months): # Integer + self.add_query_param('Months', Months) + def get_EnableCrl(self): # Long + return self.get_query_params().get('EnableCrl') + + def set_EnableCrl(self, EnableCrl): # Long + self.add_query_param('EnableCrl', EnableCrl) + def get_AfterTime(self): # Long + return self.get_query_params().get('AfterTime') + + def set_AfterTime(self, AfterTime): # Long + self.add_query_param('AfterTime', AfterTime) + def get_Locality(self): # String + return self.get_query_params().get('Locality') + + def set_Locality(self, Locality): # String + self.add_query_param('Locality', Locality) + def get_Immediately(self): # Integer + return self.get_query_params().get('Immediately') + + def set_Immediately(self, Immediately): # Integer + self.add_query_param('Immediately', Immediately) + def get_Years(self): # Integer + return self.get_query_params().get('Years') + + def set_Years(self, Years): # Integer + self.add_query_param('Years', Years) + def get_CommonName(self): # String + return self.get_query_params().get('CommonName') + + def set_CommonName(self, CommonName): # String + self.add_query_param('CommonName', CommonName) + def get_Organization(self): # String + return self.get_query_params().get('Organization') + + def set_Organization(self, Organization): # String + self.add_query_param('Organization', Organization) + def get_Days(self): # Integer + return self.get_query_params().get('Days') + + def set_Days(self, Days): # Integer + self.add_query_param('Days', Days) + def get_BeforeTime(self): # Long + return self.get_query_params().get('BeforeTime') + + def set_BeforeTime(self, BeforeTime): # Long + self.add_query_param('BeforeTime', BeforeTime) + def get_State(self): # String + return self.get_query_params().get('State') + + def set_State(self, State): # String + self.add_query_param('State', State) + def get_ParentIdentifier(self): # String + return self.get_query_params().get('ParentIdentifier') + + def set_ParentIdentifier(self, ParentIdentifier): # String + self.add_query_param('ParentIdentifier', ParentIdentifier) + def get_OrganizationUnit(self): # String + return self.get_query_params().get('OrganizationUnit') + + def set_OrganizationUnit(self, OrganizationUnit): # String + self.add_query_param('OrganizationUnit', OrganizationUnit) + def get_Algorithm(self): # String + return self.get_query_params().get('Algorithm') + + def set_Algorithm(self, Algorithm): # String + self.add_query_param('Algorithm', Algorithm) + def get_Domain(self): # String + return self.get_query_params().get('Domain') + + def set_Domain(self, Domain): # String + self.add_query_param('Domain', Domain) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateWithCsrRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateWithCsrRequest.py new file mode 100644 index 0000000000..08ab10c0b1 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateServerCertificateWithCsrRequest.py @@ -0,0 +1,118 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class CreateServerCertificateWithCsrRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateServerCertificateWithCsr','cas') + 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_Country(self): # String + return self.get_query_params().get('Country') + + def set_Country(self, Country): # String + self.add_query_param('Country', Country) + def get_Months(self): # Integer + return self.get_query_params().get('Months') + + def set_Months(self, Months): # Integer + self.add_query_param('Months', Months) + def get_EnableCrl(self): # Long + return self.get_query_params().get('EnableCrl') + + def set_EnableCrl(self, EnableCrl): # Long + self.add_query_param('EnableCrl', EnableCrl) + def get_AfterTime(self): # Long + return self.get_query_params().get('AfterTime') + + def set_AfterTime(self, AfterTime): # Long + self.add_query_param('AfterTime', AfterTime) + def get_Locality(self): # String + return self.get_query_params().get('Locality') + + def set_Locality(self, Locality): # String + self.add_query_param('Locality', Locality) + def get_Immediately(self): # Integer + return self.get_query_params().get('Immediately') + + def set_Immediately(self, Immediately): # Integer + self.add_query_param('Immediately', Immediately) + def get_Years(self): # Integer + return self.get_query_params().get('Years') + + def set_Years(self, Years): # Integer + self.add_query_param('Years', Years) + def get_CommonName(self): # String + return self.get_query_params().get('CommonName') + + def set_CommonName(self, CommonName): # String + self.add_query_param('CommonName', CommonName) + def get_Organization(self): # String + return self.get_query_params().get('Organization') + + def set_Organization(self, Organization): # String + self.add_query_param('Organization', Organization) + def get_Days(self): # Integer + return self.get_query_params().get('Days') + + def set_Days(self, Days): # Integer + self.add_query_param('Days', Days) + def get_BeforeTime(self): # Long + return self.get_query_params().get('BeforeTime') + + def set_BeforeTime(self, BeforeTime): # Long + self.add_query_param('BeforeTime', BeforeTime) + def get_State(self): # String + return self.get_query_params().get('State') + + def set_State(self, State): # String + self.add_query_param('State', State) + def get_ParentIdentifier(self): # String + return self.get_query_params().get('ParentIdentifier') + + def set_ParentIdentifier(self, ParentIdentifier): # String + self.add_query_param('ParentIdentifier', ParentIdentifier) + def get_OrganizationUnit(self): # String + return self.get_query_params().get('OrganizationUnit') + + def set_OrganizationUnit(self, OrganizationUnit): # String + self.add_query_param('OrganizationUnit', OrganizationUnit) + def get_Algorithm(self): # String + return self.get_query_params().get('Algorithm') + + def set_Algorithm(self, Algorithm): # String + self.add_query_param('Algorithm', Algorithm) + def get_Csr(self): # String + return self.get_query_params().get('Csr') + + def set_Csr(self, Csr): # String + self.add_query_param('Csr', Csr) + def get_Domain(self): # String + return self.get_query_params().get('Domain') + + def set_Domain(self, Domain): # String + self.add_query_param('Domain', Domain) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateSubCACertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateSubCACertificateRequest.py new file mode 100644 index 0000000000..f940ae1dfe --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/CreateSubCACertificateRequest.py @@ -0,0 +1,99 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class CreateSubCACertificateRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'CreateSubCACertificate','cas') + 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_ExtendedKeyUsagess(self): # RepeatList + return self.get_query_params().get('ExtendedKeyUsages') + + def set_ExtendedKeyUsagess(self, ExtendedKeyUsages): # RepeatList + for depth1 in range(len(ExtendedKeyUsages)): + self.add_query_param('ExtendedKeyUsages.' + str(depth1 + 1), ExtendedKeyUsages[depth1]) + def get_EnableCrl(self): # Boolean + return self.get_query_params().get('EnableCrl') + + def set_EnableCrl(self, EnableCrl): # Boolean + self.add_query_param('EnableCrl', EnableCrl) + def get_CountryCode(self): # String + return self.get_query_params().get('CountryCode') + + def set_CountryCode(self, CountryCode): # String + self.add_query_param('CountryCode', CountryCode) + def get_Locality(self): # String + return self.get_query_params().get('Locality') + + def set_Locality(self, Locality): # String + self.add_query_param('Locality', Locality) + def get_PathLenConstraint(self): # Integer + return self.get_query_params().get('PathLenConstraint') + + def set_PathLenConstraint(self, PathLenConstraint): # Integer + self.add_query_param('PathLenConstraint', PathLenConstraint) + def get_Years(self): # Integer + return self.get_query_params().get('Years') + + def set_Years(self, Years): # Integer + self.add_query_param('Years', Years) + def get_CommonName(self): # String + return self.get_query_params().get('CommonName') + + def set_CommonName(self, CommonName): # String + self.add_query_param('CommonName', CommonName) + def get_Organization(self): # String + return self.get_query_params().get('Organization') + + def set_Organization(self, Organization): # String + self.add_query_param('Organization', Organization) + def get_CrlDay(self): # Integer + return self.get_query_params().get('CrlDay') + + def set_CrlDay(self, CrlDay): # Integer + self.add_query_param('CrlDay', CrlDay) + def get_ParentIdentifier(self): # String + return self.get_query_params().get('ParentIdentifier') + + def set_ParentIdentifier(self, ParentIdentifier): # String + self.add_query_param('ParentIdentifier', ParentIdentifier) + def get_State(self): # String + return self.get_query_params().get('State') + + def set_State(self, State): # String + self.add_query_param('State', State) + def get_OrganizationUnit(self): # String + return self.get_query_params().get('OrganizationUnit') + + def set_OrganizationUnit(self, OrganizationUnit): # String + self.add_query_param('OrganizationUnit', OrganizationUnit) + def get_Algorithm(self): # String + return self.get_query_params().get('Algorithm') + + def set_Algorithm(self, Algorithm): # String + self.add_query_param('Algorithm', Algorithm) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelOrderRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DeleteClientCertificateRequest.py similarity index 78% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelOrderRequestRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DeleteClientCertificateRequest.py index d2f892b0f5..5eb3d28bc5 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/CancelOrderRequestRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DeleteClientCertificateRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class CancelOrderRequestRequest(RpcRequest): +class DeleteClientCertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'CancelOrderRequest','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DeleteClientCertificate','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,8 +31,8 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_OrderId(self): # Long - return self.get_query_params().get('OrderId') + def get_Identifier(self): # String + return self.get_query_params().get('Identifier') - def set_OrderId(self, OrderId): # Long - self.add_query_param('OrderId', OrderId) + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/GetCertWarehouseQuotaRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateCountRequest.py similarity index 89% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/GetCertWarehouseQuotaRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateCountRequest.py index dcfa972fcc..98d495fce3 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/GetCertWarehouseQuotaRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateCountRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class GetCertWarehouseQuotaRequest(RpcRequest): +class DescribeCACertificateCountRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'GetCertWarehouseQuota','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DescribeCACertificateCount','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListCertRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateListRequest.py similarity index 58% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListCertRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateListRequest.py index 535fe8b2e8..bcf6e55d2e 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListCertRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateListRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class ListCertRequest(RpcRequest): +class DescribeCACertificateListRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'ListCert','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DescribeCACertificateList','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,38 +31,38 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_WarehouseId(self): # Long - return self.get_query_params().get('WarehouseId') + def get_CaStatus(self): # String + return self.get_query_params().get('CaStatus') - def set_WarehouseId(self, WarehouseId): # Long - self.add_query_param('WarehouseId', WarehouseId) + def set_CaStatus(self, CaStatus): # String + self.add_query_param('CaStatus', CaStatus) def get_CertType(self): # String return self.get_query_params().get('CertType') def set_CertType(self, CertType): # String self.add_query_param('CertType', CertType) - def get_SourceType(self): # String - return self.get_query_params().get('SourceType') + def get_ValidStatus(self): # String + return self.get_query_params().get('ValidStatus') - def set_SourceType(self, SourceType): # String - self.add_query_param('SourceType', SourceType) - def get_KeyWord(self): # String - return self.get_query_params().get('KeyWord') + def set_ValidStatus(self, ValidStatus): # String + self.add_query_param('ValidStatus', ValidStatus) + def get_IssuerType(self): # String + return self.get_query_params().get('IssuerType') - def set_KeyWord(self, KeyWord): # String - self.add_query_param('KeyWord', KeyWord) - def get_ShowSize(self): # Long + def set_IssuerType(self, IssuerType): # String + self.add_query_param('IssuerType', IssuerType) + def get_Identifier(self): # String + return self.get_query_params().get('Identifier') + + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) + def get_ShowSize(self): # Integer return self.get_query_params().get('ShowSize') - def set_ShowSize(self, ShowSize): # Long + def set_ShowSize(self, ShowSize): # Integer self.add_query_param('ShowSize', ShowSize) - def get_CurrentPage(self): # Long + def get_CurrentPage(self): # Integer return self.get_query_params().get('CurrentPage') - def set_CurrentPage(self, CurrentPage): # Long + def set_CurrentPage(self, CurrentPage): # Integer self.add_query_param('CurrentPage', CurrentPage) - def get_Status(self): # String - return self.get_query_params().get('Status') - - def set_Status(self, Status): # String - self.add_query_param('Status', Status) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeletePCACertRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateRequest.py similarity index 90% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeletePCACertRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateRequest.py index a7dd1b44fe..b41f10256b 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeletePCACertRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCACertificateRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class DeletePCACertRequest(RpcRequest): +class DescribeCACertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'DeletePCACert','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DescribeCACertificate','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCertificatePrivateKeyRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCertificatePrivateKeyRequest.py new file mode 100644 index 0000000000..e5f35bbb15 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeCertificatePrivateKeyRequest.py @@ -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 +from aliyunsdkcas.endpoint import endpoint_data + +class DescribeCertificatePrivateKeyRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DescribeCertificatePrivateKey','cas') + 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_Identifier(self): # String + return self.get_query_params().get('Identifier') + + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) + def get_EncryptedCode(self): # String + return self.get_query_params().get('EncryptedCode') + + def set_EncryptedCode(self, EncryptedCode): # String + self.add_query_param('EncryptedCode', EncryptedCode) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/RevokeWHClientCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateRequest.py similarity index 91% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/RevokeWHClientCertificateRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateRequest.py index e689cb549b..190e7f72b4 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/RevokeWHClientCertificateRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class RevokeWHClientCertificateRequest(RpcRequest): +class DescribeClientCertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'RevokeWHClientCertificate','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DescribeClientCertificate','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateStatusRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateStatusRequest.py new file mode 100644 index 0000000000..383aaca919 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/DescribeClientCertificateStatusRequest.py @@ -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 +from aliyunsdkcas.endpoint import endpoint_data + +class DescribeClientCertificateStatusRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'DescribeClientCertificateStatus','cas') + 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_Identifier(self): # String + return self.get_query_params().get('Identifier') + + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/GetUserCertificateDetailRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/GetCAInstanceStatusRequest.py similarity index 69% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/GetUserCertificateDetailRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/GetCAInstanceStatusRequest.py index 17c5825807..83e529a09f 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/GetUserCertificateDetailRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/GetCAInstanceStatusRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class GetUserCertificateDetailRequest(RpcRequest): +class GetCAInstanceStatusRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'GetUserCertificateDetail','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'GetCAInstanceStatus','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,13 +31,13 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_CertId(self): # Long - return self.get_query_params().get('CertId') + def get_Identifier(self): # String + return self.get_query_params().get('Identifier') - def set_CertId(self, CertId): # Long - self.add_query_param('CertId', CertId) - def get_CertFilter(self): # Boolean - return self.get_query_params().get('CertFilter') + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') - def set_CertFilter(self, CertFilter): # Boolean - self.add_query_param('CertFilter', CertFilter) + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListUserCertificateOrderRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListCertRequest.py similarity index 51% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListUserCertificateOrderRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListCertRequest.py index 4e46a44104..8bffff91f6 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListUserCertificateOrderRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListCertRequest.py @@ -20,10 +20,11 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class ListUserCertificateOrderRequest(RpcRequest): +class ListCertRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'ListUserCertificateOrder','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'ListCert','cas') + self.set_protocol_type('https') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,33 +32,48 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_ResourceGroupId(self): # String - return self.get_query_params().get('ResourceGroupId') + def get_BeforeDate(self): # String + return self.get_query_params().get('BeforeDate') - def set_ResourceGroupId(self, ResourceGroupId): # String - self.add_query_param('ResourceGroupId', ResourceGroupId) - def get_Keyword(self): # String - return self.get_query_params().get('Keyword') - - def set_Keyword(self, Keyword): # String - self.add_query_param('Keyword', Keyword) - def get_ShowSize(self): # Long + def set_BeforeDate(self, BeforeDate): # String + self.add_query_param('BeforeDate', BeforeDate) + def get_ShowSize(self): # Integer return self.get_query_params().get('ShowSize') - def set_ShowSize(self, ShowSize): # Long + def set_ShowSize(self, ShowSize): # Integer self.add_query_param('ShowSize', ShowSize) - def get_CurrentPage(self): # Long + def get_InstanceUuid(self): # String + return self.get_query_params().get('InstanceUuid') + + def set_InstanceUuid(self, InstanceUuid): # String + self.add_query_param('InstanceUuid', InstanceUuid) + def get_CurrentPage(self): # Integer return self.get_query_params().get('CurrentPage') - def set_CurrentPage(self, CurrentPage): # Long + def set_CurrentPage(self, CurrentPage): # Integer self.add_query_param('CurrentPage', CurrentPage) + 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_AfterDate(self): # String + return self.get_query_params().get('AfterDate') + + def set_AfterDate(self, AfterDate): # String + self.add_query_param('AfterDate', AfterDate) + 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_MaxResults(self): # Integer + return self.get_query_params().get('MaxResults') + + def set_MaxResults(self, MaxResults): # Integer + self.add_query_param('MaxResults', MaxResults) def get_Status(self): # String return self.get_query_params().get('Status') def set_Status(self, Status): # String self.add_query_param('Status', Status) - def get_OrderType(self): # String - return self.get_query_params().get('OrderType') - - def set_OrderType(self, OrderType): # String - self.add_query_param('OrderType', OrderType) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListCertWarehouseRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListClientCertificateRequest.py similarity index 63% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListCertWarehouseRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListClientCertificateRequest.py index a452d167d2..c6606f3201 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/ListCertWarehouseRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListClientCertificateRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class ListCertWarehouseRequest(RpcRequest): +class ListClientCertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'ListCertWarehouse','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'ListClientCertificate','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,28 +31,18 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_ShowSize(self): # Long - return self.get_query_params().get('ShowSize') + def get_Identifier(self): # String + return self.get_query_params().get('Identifier') - def set_ShowSize(self, ShowSize): # Long - self.add_query_param('ShowSize', ShowSize) - def get_CurrentPage(self): # Long + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) + def get_CurrentPage(self): # Integer return self.get_query_params().get('CurrentPage') - def set_CurrentPage(self, CurrentPage): # Long + def set_CurrentPage(self, CurrentPage): # Integer self.add_query_param('CurrentPage', CurrentPage) - 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_InstanceId(self): # String - return self.get_query_params().get('InstanceId') - - def set_InstanceId(self, InstanceId): # String - self.add_query_param('InstanceId', InstanceId) - def get_Name(self): # String - return self.get_query_params().get('Name') + def get_ShowSize(self): # Integer + return self.get_query_params().get('ShowSize') - def set_Name(self, Name): # String - self.add_query_param('Name', Name) + def set_ShowSize(self, ShowSize): # Integer + self.add_query_param('ShowSize', ShowSize) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListPcaCaCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListPcaCaCertificateRequest.py new file mode 100644 index 0000000000..327f8f7006 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListPcaCaCertificateRequest.py @@ -0,0 +1,44 @@ +# 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 aliyunsdkcas.endpoint import endpoint_data + +class ListPcaCaCertificateRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'ListPcaCaCertificate','cas') + self.set_protocol_type('https') + 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_NextToken(self): # String + return self.get_query_params().get('NextToken') + + def set_NextToken(self, NextToken): # String + self.add_query_param('NextToken', NextToken) + def get_MaxResults(self): # Integer + return self.get_query_params().get('MaxResults') + + def set_MaxResults(self, MaxResults): # Integer + self.add_query_param('MaxResults', MaxResults) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/RenewCertificateOrderForPackageRequestRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListRevokeCertificateRequest.py similarity index 69% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/RenewCertificateOrderForPackageRequestRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListRevokeCertificateRequest.py index 92b9237065..a524c86a24 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/RenewCertificateOrderForPackageRequestRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/ListRevokeCertificateRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class RenewCertificateOrderForPackageRequestRequest(RpcRequest): +class ListRevokeCertificateRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'RenewCertificateOrderForPackageRequest','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'ListRevokeCertificate','cas') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,13 +31,13 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_Csr(self): # String - return self.get_query_params().get('Csr') + def get_CurrentPage(self): # Integer + return self.get_query_params().get('CurrentPage') - def set_Csr(self, Csr): # String - self.add_query_param('Csr', Csr) - def get_OrderId(self): # Long - return self.get_query_params().get('OrderId') + def set_CurrentPage(self, CurrentPage): # Integer + self.add_query_param('CurrentPage', CurrentPage) + def get_ShowSize(self): # Integer + return self.get_query_params().get('ShowSize') - def set_OrderId(self, OrderId): # Long - self.add_query_param('OrderId', OrderId) + def set_ShowSize(self, ShowSize): # Integer + self.add_query_param('ShowSize', ShowSize) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UpdateCACertificateStatusRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UpdateCACertificateStatusRequest.py new file mode 100644 index 0000000000..5009579fe2 --- /dev/null +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UpdateCACertificateStatusRequest.py @@ -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 aliyunsdkcas.endpoint import endpoint_data + +class UpdateCACertificateStatusRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'cas', '2020-06-30', 'UpdateCACertificateStatus','cas') + 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_Identifier(self): # String + return self.get_query_params().get('Identifier') + + def set_Identifier(self, Identifier): # String + self.add_query_param('Identifier', Identifier) + 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_Status(self): # String + return self.get_query_params().get('Status') + + def set_Status(self, Status): # String + self.add_query_param('Status', Status) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeleteUserCertificateRequest.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UploadPcaCertToCasRequest.py similarity index 78% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeleteUserCertificateRequest.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UploadPcaCertToCasRequest.py index 77b1bb62f4..0682cad375 100644 --- a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/DeleteUserCertificateRequest.py +++ b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/UploadPcaCertToCasRequest.py @@ -20,10 +20,11 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkcas.endpoint import endpoint_data -class DeleteUserCertificateRequest(RpcRequest): +class UploadPcaCertToCasRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'cas', '2020-04-07', 'DeleteUserCertificate','cas') + RpcRequest.__init__(self, 'cas', '2020-06-30', 'UploadPcaCertToCas','cas') + self.set_protocol_type('https') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -31,8 +32,8 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) - def get_CertId(self): # Long - return self.get_query_params().get('CertId') + def get_Ids(self): # String + return self.get_query_params().get('Ids') - def set_CertId(self, CertId): # Long - self.add_query_param('CertId', CertId) + def set_Ids(self, Ids): # String + self.add_query_param('Ids', Ids) diff --git a/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/__init__.py b/aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/__init__.py similarity index 100% rename from aliyun-python-sdk-cas/aliyunsdkcas/request/v20200407/__init__.py rename to aliyun-python-sdk-cas/aliyunsdkcas/request/v20200630/__init__.py diff --git a/aliyun-python-sdk-cas/setup.py b/aliyun-python-sdk-cas/setup.py index b04b302453..7175567a20 100644 --- a/aliyun-python-sdk-cas/setup.py +++ b/aliyun-python-sdk-cas/setup.py @@ -65,13 +65,13 @@ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 2.6", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development", )