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 3f00fcb commit 4787b97
Show file tree
Hide file tree
Showing 60 changed files with 2,063 additions and 154 deletions.
5 changes: 5 additions & 0 deletions aliyun-net-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.

2 changes: 1 addition & 1 deletion aliyun-net-sdk-kms/Kms/Model/V20160120/CancelKeyDeletionRequest.cs 100644 → 100755
Expand Up @@ -29,7 +29,7 @@ namespace Aliyun.Acs.Kms.Model.V20160120
public class CancelKeyDeletionRequest : RpcAcsRequest<CancelKeyDeletionResponse>
{
public CancelKeyDeletionRequest()
: base("Kms", "2016-01-20", "CancelKeyDeletion")
: base("Kms", "2016-01-20", "CancelKeyDeletion", "kms", "openAPI")
{
Protocol = ProtocolType.HTTPS;
}
Expand Down
14 changes: 14 additions & 0 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/CancelKeyDeletionResponse.cs 100644 → 100755
Expand Up @@ -23,5 +23,19 @@ namespace Aliyun.Acs.Kms.Model.V20160120
{
public class CancelKeyDeletionResponse : AcsResponse
{

private string requestId;

public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}
}
}
87 changes: 87 additions & 0 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/CreateAliasRequest.cs
@@ -0,0 +1,87 @@
/*
* 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.
*/
using Aliyun.Acs.Core;
using Aliyun.Acs.Core.Http;
using Aliyun.Acs.Core.Transform;
using Aliyun.Acs.Core.Utils;
using Aliyun.Acs.Kms.Transform;
using Aliyun.Acs.Kms.Transform.V20160120;
using System.Collections.Generic;

namespace Aliyun.Acs.Kms.Model.V20160120
{
public class CreateAliasRequest : RpcAcsRequest<CreateAliasResponse>
{
public CreateAliasRequest()
: base("Kms", "2016-01-20", "CreateAlias", "kms", "openAPI")
{
Protocol = ProtocolType.HTTPS;
}

private string aliasName;

private string keyId;

private string sTSToken;

public string AliasName
{
get
{
return aliasName;
}
set
{
aliasName = value;
DictionaryUtil.Add(QueryParameters, "AliasName", value);
}
}

public string KeyId
{
get
{
return keyId;
}
set
{
keyId = value;
DictionaryUtil.Add(QueryParameters, "KeyId", value);
}
}

public string STSToken
{
get
{
return sTSToken;
}
set
{
sTSToken = value;
DictionaryUtil.Add(QueryParameters, "STSToken", value);
}
}

public override CreateAliasResponse GetResponse(Core.Transform.UnmarshallerContext unmarshallerContext)
{
return CreateAliasResponseUnmarshaller.Unmarshall(unmarshallerContext);
}
}
}
41 changes: 41 additions & 0 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/CreateAliasResponse.cs
@@ -0,0 +1,41 @@
/*
* 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.
*/
using Aliyun.Acs.Core;
using System.Collections.Generic;

namespace Aliyun.Acs.Kms.Model.V20160120
{
public class CreateAliasResponse : AcsResponse
{

private string requestId;

public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}
}
}
37 changes: 26 additions & 11 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/CreateKeyRequest.cs 100644 → 100755
Expand Up @@ -29,40 +29,55 @@ namespace Aliyun.Acs.Kms.Model.V20160120
public class CreateKeyRequest : RpcAcsRequest<CreateKeyResponse>
{
public CreateKeyRequest()
: base("Kms", "2016-01-20", "CreateKey")
: base("Kms", "2016-01-20", "CreateKey", "kms", "openAPI")
{
Protocol = ProtocolType.HTTPS;
}

private string description;

private string keyUsage;

private string origin;

private string description;

private string sTSToken;

public string Description
public string KeyUsage
{
get
{
return description;
return keyUsage;
}
set
{
description = value;
DictionaryUtil.Add(QueryParameters, "Description", value);
keyUsage = value;
DictionaryUtil.Add(QueryParameters, "KeyUsage", value);
}
}

public string KeyUsage
public string Origin
{
get
{
return keyUsage;
return origin;
}
set
{
keyUsage = value;
DictionaryUtil.Add(QueryParameters, "KeyUsage", value);
origin = value;
DictionaryUtil.Add(QueryParameters, "Origin", value);
}
}

public string Description
{
get
{
return description;
}
set
{
description = value;
DictionaryUtil.Add(QueryParameters, "Description", value);
}
}

Expand Down
49 changes: 46 additions & 3 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/CreateKeyResponse.cs 100644 → 100755
Expand Up @@ -24,9 +24,23 @@ namespace Aliyun.Acs.Kms.Model.V20160120
public class CreateKeyResponse : AcsResponse
{

private KeyMetadata_ keyMetadata;
private string requestId;

public KeyMetadata_ KeyMetadata
private CreateKey_KeyMetadata keyMetadata;

public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}

public CreateKey_KeyMetadata KeyMetadata
{
get
{
Expand All @@ -38,7 +52,8 @@ public KeyMetadata_ KeyMetadata
}
}

public class KeyMetadata_{
public class CreateKey_KeyMetadata
{

private string creationDate;

Expand All @@ -56,6 +71,10 @@ public class KeyMetadata_{

private string arn;

private string origin;

private string materialExpireTime;

public string CreationDate
{
get
Expand Down Expand Up @@ -151,6 +170,30 @@ public string Arn
arn = value;
}
}

public string Origin
{
get
{
return origin;
}
set
{
origin = value;
}
}

public string MaterialExpireTime
{
get
{
return materialExpireTime;
}
set
{
materialExpireTime = value;
}
}
}
}
}
22 changes: 11 additions & 11 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/DecryptRequest.cs 100644 → 100755
Expand Up @@ -29,27 +29,27 @@ namespace Aliyun.Acs.Kms.Model.V20160120
public class DecryptRequest : RpcAcsRequest<DecryptResponse>
{
public DecryptRequest()
: base("Kms", "2016-01-20", "Decrypt")
: base("Kms", "2016-01-20", "Decrypt", "kms", "openAPI")
{
Protocol = ProtocolType.HTTPS;
}

private string ciphertextBlob;
private string encryptionContext;

private string sTSToken;

private string encryptionContext;
private string ciphertextBlob;

public string CiphertextBlob
public string EncryptionContext
{
get
{
return ciphertextBlob;
return encryptionContext;
}
set
{
ciphertextBlob = value;
DictionaryUtil.Add(QueryParameters, "CiphertextBlob", value);
encryptionContext = value;
DictionaryUtil.Add(QueryParameters, "EncryptionContext", value);
}
}

Expand All @@ -66,16 +66,16 @@ public string STSToken
}
}

public string EncryptionContext
public string CiphertextBlob
{
get
{
return encryptionContext;
return ciphertextBlob;
}
set
{
encryptionContext = value;
DictionaryUtil.Add(QueryParameters, "EncryptionContext", value);
ciphertextBlob = value;
DictionaryUtil.Add(QueryParameters, "CiphertextBlob", value);
}
}

Expand Down
14 changes: 14 additions & 0 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/DecryptResponse.cs 100644 → 100755
Expand Up @@ -28,6 +28,8 @@ public class DecryptResponse : AcsResponse

private string keyId;

private string requestId;

public string Plaintext
{
get
Expand All @@ -51,5 +53,17 @@ public string KeyId
keyId = value;
}
}

public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}
}
}

0 comments on commit 4787b97

Please sign in to comment.