-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
314 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
aliyun-net-sdk-kms/Kms/Model/V20160120/AdvanceEncryptRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
/* | ||
* 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 System.Collections.Generic; | ||
|
||
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; | ||
|
||
namespace Aliyun.Acs.Kms.Model.V20160120 | ||
{ | ||
public class AdvanceEncryptRequest : RpcAcsRequest<AdvanceEncryptResponse> | ||
{ | ||
public AdvanceEncryptRequest() | ||
: base("Kms", "2016-01-20", "AdvanceEncrypt", "kms", "openAPI") | ||
{ | ||
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) | ||
{ | ||
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Kms.Endpoint.endpointMap, null); | ||
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Kms.Endpoint.endpointRegionalType, null); | ||
} | ||
Protocol = ProtocolType.HTTPS; | ||
Method = MethodType.POST; | ||
} | ||
|
||
private string paddingMode; | ||
|
||
private string aad; | ||
|
||
private string keyId; | ||
|
||
private string plaintext; | ||
|
||
private string iv; | ||
|
||
private string algorithm; | ||
|
||
public string PaddingMode | ||
{ | ||
get | ||
{ | ||
return paddingMode; | ||
} | ||
set | ||
{ | ||
paddingMode = value; | ||
DictionaryUtil.Add(QueryParameters, "PaddingMode", value); | ||
} | ||
} | ||
|
||
public string Aad | ||
{ | ||
get | ||
{ | ||
return aad; | ||
} | ||
set | ||
{ | ||
aad = value; | ||
DictionaryUtil.Add(QueryParameters, "Aad", value); | ||
} | ||
} | ||
|
||
public string KeyId | ||
{ | ||
get | ||
{ | ||
return keyId; | ||
} | ||
set | ||
{ | ||
keyId = value; | ||
DictionaryUtil.Add(QueryParameters, "KeyId", value); | ||
} | ||
} | ||
|
||
public string Plaintext | ||
{ | ||
get | ||
{ | ||
return plaintext; | ||
} | ||
set | ||
{ | ||
plaintext = value; | ||
DictionaryUtil.Add(QueryParameters, "Plaintext", value); | ||
} | ||
} | ||
|
||
public string Iv | ||
{ | ||
get | ||
{ | ||
return iv; | ||
} | ||
set | ||
{ | ||
iv = value; | ||
DictionaryUtil.Add(QueryParameters, "Iv", value); | ||
} | ||
} | ||
|
||
public string Algorithm | ||
{ | ||
get | ||
{ | ||
return algorithm; | ||
} | ||
set | ||
{ | ||
algorithm = value; | ||
DictionaryUtil.Add(QueryParameters, "Algorithm", value); | ||
} | ||
} | ||
|
||
public override AdvanceEncryptResponse GetResponse(UnmarshallerContext unmarshallerContext) | ||
{ | ||
return AdvanceEncryptResponseUnmarshaller.Unmarshall(unmarshallerContext); | ||
} | ||
} | ||
} |
126 changes: 126 additions & 0 deletions
126
aliyun-net-sdk-kms/Kms/Model/V20160120/AdvanceEncryptResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
* 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 System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using Aliyun.Acs.Core; | ||
|
||
namespace Aliyun.Acs.Kms.Model.V20160120 | ||
{ | ||
public class AdvanceEncryptResponse : AcsResponse | ||
{ | ||
|
||
private string requestId; | ||
|
||
private string ciphertextBlob; | ||
|
||
private string algorithm; | ||
|
||
private string keyId; | ||
|
||
private string keyVersionId; | ||
|
||
private string iv; | ||
|
||
private string paddingMode; | ||
|
||
public string RequestId | ||
{ | ||
get | ||
{ | ||
return requestId; | ||
} | ||
set | ||
{ | ||
requestId = value; | ||
} | ||
} | ||
|
||
public string CiphertextBlob | ||
{ | ||
get | ||
{ | ||
return ciphertextBlob; | ||
} | ||
set | ||
{ | ||
ciphertextBlob = value; | ||
} | ||
} | ||
|
||
public string Algorithm | ||
{ | ||
get | ||
{ | ||
return algorithm; | ||
} | ||
set | ||
{ | ||
algorithm = value; | ||
} | ||
} | ||
|
||
public string KeyId | ||
{ | ||
get | ||
{ | ||
return keyId; | ||
} | ||
set | ||
{ | ||
keyId = value; | ||
} | ||
} | ||
|
||
public string KeyVersionId | ||
{ | ||
get | ||
{ | ||
return keyVersionId; | ||
} | ||
set | ||
{ | ||
keyVersionId = value; | ||
} | ||
} | ||
|
||
public string Iv | ||
{ | ||
get | ||
{ | ||
return iv; | ||
} | ||
set | ||
{ | ||
iv = value; | ||
} | ||
} | ||
|
||
public string PaddingMode | ||
{ | ||
get | ||
{ | ||
return paddingMode; | ||
} | ||
set | ||
{ | ||
paddingMode = value; | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
aliyun-net-sdk-kms/Kms/Transform/V20160120/AdvanceEncryptResponseUnmarshaller.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* 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 System; | ||
using System.Collections.Generic; | ||
|
||
using Aliyun.Acs.Core.Transform; | ||
using Aliyun.Acs.Kms.Model.V20160120; | ||
|
||
namespace Aliyun.Acs.Kms.Transform.V20160120 | ||
{ | ||
public class AdvanceEncryptResponseUnmarshaller | ||
{ | ||
public static AdvanceEncryptResponse Unmarshall(UnmarshallerContext _ctx) | ||
{ | ||
AdvanceEncryptResponse advanceEncryptResponse = new AdvanceEncryptResponse(); | ||
|
||
advanceEncryptResponse.HttpResponse = _ctx.HttpResponse; | ||
advanceEncryptResponse.RequestId = _ctx.StringValue("AdvanceEncrypt.RequestId"); | ||
advanceEncryptResponse.CiphertextBlob = _ctx.StringValue("AdvanceEncrypt.CiphertextBlob"); | ||
advanceEncryptResponse.Algorithm = _ctx.StringValue("AdvanceEncrypt.Algorithm"); | ||
advanceEncryptResponse.KeyId = _ctx.StringValue("AdvanceEncrypt.KeyId"); | ||
advanceEncryptResponse.KeyVersionId = _ctx.StringValue("AdvanceEncrypt.KeyVersionId"); | ||
advanceEncryptResponse.Iv = _ctx.StringValue("AdvanceEncrypt.Iv"); | ||
advanceEncryptResponse.PaddingMode = _ctx.StringValue("AdvanceEncrypt.PaddingMode"); | ||
|
||
return advanceEncryptResponse; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters