Skip to content

Commit

Permalink
由丰鲁成发起的KMS SDK自动发布, 版本号:2.5.0
Browse files Browse the repository at this point in the history
发布日志:
1, Add APIs: CreateAlias, UpdateAlias, DeleteAlias, ListAliases, ListAliasesByKeyId.
2, Add APIs: GetParametersForImport, ImportKeyMaterial, DeleteKeyMaterial.
3, Update KeyMetadata for CreateKey and DescribeKey.
  • Loading branch information
Qingtang-SDK committed Mar 29, 2018
1 parent 53aaa02 commit a468a58
Show file tree
Hide file tree
Showing 20 changed files with 658 additions and 97 deletions.
5 changes: 5 additions & 0 deletions aliyun-php-sdk-kms/ChangeLog.txt
@@ -0,0 +1,5 @@
2018-03-29 Version: 2.5.0
1, Add APIs: CreateAlias, UpdateAlias, DeleteAlias, ListAliases, ListAliasesByKeyId.
2, Add APIs: GetParametersForImport, ImportKeyMaterial, DeleteKeyMaterial.
3, Update KeyMetadata for CreateKey and DescribeKey.

5 changes: 3 additions & 2 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/CancelKeyDeletionRequest.php 100644 → 100755
Expand Up @@ -23,8 +23,9 @@ class CancelKeyDeletionRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "CancelKeyDeletion");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "CancelKeyDeletion", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $keyId;
Expand Down
64 changes: 64 additions & 0 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/CreateAliasRequest.php
@@ -0,0 +1,64 @@
<?php
/*
* 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.
*/
namespace Kms\Request\V20160120;

class CreateAliasRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "CreateAlias", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $aliasName;

private $keyId;

private $sTSToken;

public function getAliasName() {
return $this->aliasName;
}

public function setAliasName($aliasName) {
$this->aliasName = $aliasName;
$this->queryParameters["AliasName"]=$aliasName;
}

public function getKeyId() {
return $this->keyId;
}

public function setKeyId($keyId) {
$this->keyId = $keyId;
$this->queryParameters["KeyId"]=$keyId;
}

public function getSTSToken() {
return $this->sTSToken;
}

public function setSTSToken($sTSToken) {
$this->sTSToken = $sTSToken;
$this->queryParameters["STSToken"]=$sTSToken;
}

}
36 changes: 24 additions & 12 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/CreateKeyRequest.php 100644 → 100755
Expand Up @@ -23,24 +23,18 @@ class CreateKeyRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "CreateKey");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "CreateKey", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $description;

private $keyUsage;

private $sTSToken;
private $origin;

public function getDescription() {
return $this->description;
}
private $description;

public function setDescription($description) {
$this->description = $description;
$this->queryParameters["Description"]=$description;
}
private $sTSToken;

public function getKeyUsage() {
return $this->keyUsage;
Expand All @@ -51,6 +45,24 @@ public function setKeyUsage($keyUsage) {
$this->queryParameters["KeyUsage"]=$keyUsage;
}

public function getOrigin() {
return $this->origin;
}

public function setOrigin($origin) {
$this->origin = $origin;
$this->queryParameters["Origin"]=$origin;
}

public function getDescription() {
return $this->description;
}

public function setDescription($description) {
$this->description = $description;
$this->queryParameters["Description"]=$description;
}

public function getSTSToken() {
return $this->sTSToken;
}
Expand Down
29 changes: 15 additions & 14 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/DecryptRequest.php 100644 → 100755
Expand Up @@ -23,23 +23,24 @@ class DecryptRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "Decrypt");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "Decrypt", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $ciphertextBlob;
private $encryptionContext;

private $sTSToken;

private $encryptionContext;
private $ciphertextBlob;

public function getCiphertextBlob() {
return $this->ciphertextBlob;
public function getEncryptionContext() {
return $this->encryptionContext;
}

public function setCiphertextBlob($ciphertextBlob) {
$this->ciphertextBlob = $ciphertextBlob;
$this->queryParameters["CiphertextBlob"]=$ciphertextBlob;
public function setEncryptionContext($encryptionContext) {
$this->encryptionContext = $encryptionContext;
$this->queryParameters["EncryptionContext"]=$encryptionContext;
}

public function getSTSToken() {
Expand All @@ -51,13 +52,13 @@ public function setSTSToken($sTSToken) {
$this->queryParameters["STSToken"]=$sTSToken;
}

public function getEncryptionContext() {
return $this->encryptionContext;
public function getCiphertextBlob() {
return $this->ciphertextBlob;
}

public function setEncryptionContext($encryptionContext) {
$this->encryptionContext = $encryptionContext;
$this->queryParameters["EncryptionContext"]=$encryptionContext;
public function setCiphertextBlob($ciphertextBlob) {
$this->ciphertextBlob = $ciphertextBlob;
$this->queryParameters["CiphertextBlob"]=$ciphertextBlob;
}

}
53 changes: 53 additions & 0 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/DeleteAliasRequest.php
@@ -0,0 +1,53 @@
<?php
/*
* 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.
*/
namespace Kms\Request\V20160120;

class DeleteAliasRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "DeleteAlias", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $aliasName;

private $sTSToken;

public function getAliasName() {
return $this->aliasName;
}

public function setAliasName($aliasName) {
$this->aliasName = $aliasName;
$this->queryParameters["AliasName"]=$aliasName;
}

public function getSTSToken() {
return $this->sTSToken;
}

public function setSTSToken($sTSToken) {
$this->sTSToken = $sTSToken;
$this->queryParameters["STSToken"]=$sTSToken;
}

}
@@ -0,0 +1,53 @@
<?php
/*
* 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.
*/
namespace Kms\Request\V20160120;

class DeleteKeyMaterialRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "DeleteKeyMaterial", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $keyId;

private $sTSToken;

public function getKeyId() {
return $this->keyId;
}

public function setKeyId($keyId) {
$this->keyId = $keyId;
$this->queryParameters["KeyId"]=$keyId;
}

public function getSTSToken() {
return $this->sTSToken;
}

public function setSTSToken($sTSToken) {
$this->sTSToken = $sTSToken;
$this->queryParameters["STSToken"]=$sTSToken;
}

}
5 changes: 3 additions & 2 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/DescribeKeyRequest.php 100644 → 100755
Expand Up @@ -23,8 +23,9 @@ class DescribeKeyRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "DescribeKey");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "DescribeKey", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $keyId;
Expand Down
5 changes: 3 additions & 2 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/DescribeRegionsRequest.php 100644 → 100755
Expand Up @@ -23,8 +23,9 @@ class DescribeRegionsRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "DescribeRegions");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "DescribeRegions", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $sTSToken;
Expand Down
5 changes: 3 additions & 2 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/DisableKeyRequest.php 100644 → 100755
Expand Up @@ -23,8 +23,9 @@ class DisableKeyRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "DisableKey");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "DisableKey", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $keyId;
Expand Down
5 changes: 3 additions & 2 deletions aliyun-php-sdk-kms/Kms/Request/V20160120/EnableKeyRequest.php 100644 → 100755
Expand Up @@ -23,8 +23,9 @@ class EnableKeyRequest extends \RpcAcsRequest
{
function __construct()
{
parent::__construct("Kms", "2016-01-20", "EnableKey");
$this->setProtocol("https");
parent::__construct("Kms", "2016-01-20", "EnableKey", "kms", "openAPI");
$this->setProtocol("https");
$this->setMethod("POST");
}

private $keyId;
Expand Down

0 comments on commit a468a58

Please sign in to comment.