|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +using System.Collections.Generic; |
| 20 | + |
| 21 | +using Aliyun.Acs.Core; |
| 22 | +using Aliyun.Acs.Core.Http; |
| 23 | +using Aliyun.Acs.Core.Transform; |
| 24 | +using Aliyun.Acs.Core.Utils; |
| 25 | +using Aliyun.Acs.Kms.Transform; |
| 26 | +using Aliyun.Acs.Kms.Transform.V20160120; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.Kms.Model.V20160120 |
| 29 | +{ |
| 30 | + public class AdvanceEncryptRequest : RpcAcsRequest<AdvanceEncryptResponse> |
| 31 | + { |
| 32 | + public AdvanceEncryptRequest() |
| 33 | + : base("Kms", "2016-01-20", "AdvanceEncrypt", "kms", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Kms.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Kms.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Protocol = ProtocolType.HTTPS; |
| 41 | + Method = MethodType.POST; |
| 42 | + } |
| 43 | + |
| 44 | + private string paddingMode; |
| 45 | + |
| 46 | + private string aad; |
| 47 | + |
| 48 | + private string keyId; |
| 49 | + |
| 50 | + private string plaintext; |
| 51 | + |
| 52 | + private string iv; |
| 53 | + |
| 54 | + private string algorithm; |
| 55 | + |
| 56 | + public string PaddingMode |
| 57 | + { |
| 58 | + get |
| 59 | + { |
| 60 | + return paddingMode; |
| 61 | + } |
| 62 | + set |
| 63 | + { |
| 64 | + paddingMode = value; |
| 65 | + DictionaryUtil.Add(QueryParameters, "PaddingMode", value); |
| 66 | + } |
| 67 | + } |
| 68 | + |
| 69 | + public string Aad |
| 70 | + { |
| 71 | + get |
| 72 | + { |
| 73 | + return aad; |
| 74 | + } |
| 75 | + set |
| 76 | + { |
| 77 | + aad = value; |
| 78 | + DictionaryUtil.Add(QueryParameters, "Aad", value); |
| 79 | + } |
| 80 | + } |
| 81 | + |
| 82 | + public string KeyId |
| 83 | + { |
| 84 | + get |
| 85 | + { |
| 86 | + return keyId; |
| 87 | + } |
| 88 | + set |
| 89 | + { |
| 90 | + keyId = value; |
| 91 | + DictionaryUtil.Add(QueryParameters, "KeyId", value); |
| 92 | + } |
| 93 | + } |
| 94 | + |
| 95 | + public string Plaintext |
| 96 | + { |
| 97 | + get |
| 98 | + { |
| 99 | + return plaintext; |
| 100 | + } |
| 101 | + set |
| 102 | + { |
| 103 | + plaintext = value; |
| 104 | + DictionaryUtil.Add(QueryParameters, "Plaintext", value); |
| 105 | + } |
| 106 | + } |
| 107 | + |
| 108 | + public string Iv |
| 109 | + { |
| 110 | + get |
| 111 | + { |
| 112 | + return iv; |
| 113 | + } |
| 114 | + set |
| 115 | + { |
| 116 | + iv = value; |
| 117 | + DictionaryUtil.Add(QueryParameters, "Iv", value); |
| 118 | + } |
| 119 | + } |
| 120 | + |
| 121 | + public string Algorithm |
| 122 | + { |
| 123 | + get |
| 124 | + { |
| 125 | + return algorithm; |
| 126 | + } |
| 127 | + set |
| 128 | + { |
| 129 | + algorithm = value; |
| 130 | + DictionaryUtil.Add(QueryParameters, "Algorithm", value); |
| 131 | + } |
| 132 | + } |
| 133 | + |
| 134 | + public override AdvanceEncryptResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 135 | + { |
| 136 | + return AdvanceEncryptResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 137 | + } |
| 138 | + } |
| 139 | +} |
0 commit comments