Skip to content

Commit

Permalink
Generated 2016-01-20 for Kms.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 30, 2024
1 parent 8f97408 commit 0a680f4
Show file tree
Hide file tree
Showing 5 changed files with 314 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-30 Version: 2.15.5
- Generated 2016-01-20 for `Kms`.

2024-08-30 Version: 1.0.4
- QuotaApplication Add QuotaCategory.

Expand Down
139 changes: 139 additions & 0 deletions aliyun-net-sdk-kms/Kms/Model/V20160120/AdvanceEncryptRequest.cs
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 aliyun-net-sdk-kms/Kms/Model/V20160120/AdvanceEncryptResponse.cs
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;
}
}
}
}
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;
}
}
}
2 changes: 1 addition & 1 deletion aliyun-net-sdk-kms/aliyun-net-sdk-kms.vs2017.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<RootNamespace>Aliyun.Acs.Kms</RootNamespace>
<Version>2.15.4</Version>
<Version>2.15.5</Version>
<Authors>Alibaba Cloud</Authors>
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
Expand Down

0 comments on commit 0a680f4

Please sign in to comment.