|
| 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.R_kvstore.Transform; |
| 26 | +using Aliyun.Acs.R_kvstore.Transform.V20150101; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.R_kvstore.Model.V20150101 |
| 29 | +{ |
| 30 | + public class CreateParameterGroupRequest : RpcAcsRequest<CreateParameterGroupResponse> |
| 31 | + { |
| 32 | + public CreateParameterGroupRequest() |
| 33 | + : base("R-kvstore", "2015-01-01", "CreateParameterGroup", "redisa", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.R_kvstore.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.R_kvstore.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private long? resourceOwnerId; |
| 44 | + |
| 45 | + private string engineVersion; |
| 46 | + |
| 47 | + private string securityToken; |
| 48 | + |
| 49 | + private string engineType; |
| 50 | + |
| 51 | + private string resourceOwnerAccount; |
| 52 | + |
| 53 | + private string ownerAccount; |
| 54 | + |
| 55 | + private long? ownerId; |
| 56 | + |
| 57 | + private string category; |
| 58 | + |
| 59 | + private string parameterGroupName; |
| 60 | + |
| 61 | + private string parameters; |
| 62 | + |
| 63 | + private string parameterGroupDesc; |
| 64 | + |
| 65 | + public long? ResourceOwnerId |
| 66 | + { |
| 67 | + get |
| 68 | + { |
| 69 | + return resourceOwnerId; |
| 70 | + } |
| 71 | + set |
| 72 | + { |
| 73 | + resourceOwnerId = value; |
| 74 | + DictionaryUtil.Add(QueryParameters, "ResourceOwnerId", value.ToString()); |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + public string EngineVersion |
| 79 | + { |
| 80 | + get |
| 81 | + { |
| 82 | + return engineVersion; |
| 83 | + } |
| 84 | + set |
| 85 | + { |
| 86 | + engineVersion = value; |
| 87 | + DictionaryUtil.Add(QueryParameters, "EngineVersion", value); |
| 88 | + } |
| 89 | + } |
| 90 | + |
| 91 | + public string SecurityToken |
| 92 | + { |
| 93 | + get |
| 94 | + { |
| 95 | + return securityToken; |
| 96 | + } |
| 97 | + set |
| 98 | + { |
| 99 | + securityToken = value; |
| 100 | + DictionaryUtil.Add(QueryParameters, "SecurityToken", value); |
| 101 | + } |
| 102 | + } |
| 103 | + |
| 104 | + public string EngineType |
| 105 | + { |
| 106 | + get |
| 107 | + { |
| 108 | + return engineType; |
| 109 | + } |
| 110 | + set |
| 111 | + { |
| 112 | + engineType = value; |
| 113 | + DictionaryUtil.Add(QueryParameters, "EngineType", value); |
| 114 | + } |
| 115 | + } |
| 116 | + |
| 117 | + public string ResourceOwnerAccount |
| 118 | + { |
| 119 | + get |
| 120 | + { |
| 121 | + return resourceOwnerAccount; |
| 122 | + } |
| 123 | + set |
| 124 | + { |
| 125 | + resourceOwnerAccount = value; |
| 126 | + DictionaryUtil.Add(QueryParameters, "ResourceOwnerAccount", value); |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + public string OwnerAccount |
| 131 | + { |
| 132 | + get |
| 133 | + { |
| 134 | + return ownerAccount; |
| 135 | + } |
| 136 | + set |
| 137 | + { |
| 138 | + ownerAccount = value; |
| 139 | + DictionaryUtil.Add(QueryParameters, "OwnerAccount", value); |
| 140 | + } |
| 141 | + } |
| 142 | + |
| 143 | + public long? OwnerId |
| 144 | + { |
| 145 | + get |
| 146 | + { |
| 147 | + return ownerId; |
| 148 | + } |
| 149 | + set |
| 150 | + { |
| 151 | + ownerId = value; |
| 152 | + DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString()); |
| 153 | + } |
| 154 | + } |
| 155 | + |
| 156 | + public string Category |
| 157 | + { |
| 158 | + get |
| 159 | + { |
| 160 | + return category; |
| 161 | + } |
| 162 | + set |
| 163 | + { |
| 164 | + category = value; |
| 165 | + DictionaryUtil.Add(QueryParameters, "Category", value); |
| 166 | + } |
| 167 | + } |
| 168 | + |
| 169 | + public string ParameterGroupName |
| 170 | + { |
| 171 | + get |
| 172 | + { |
| 173 | + return parameterGroupName; |
| 174 | + } |
| 175 | + set |
| 176 | + { |
| 177 | + parameterGroupName = value; |
| 178 | + DictionaryUtil.Add(QueryParameters, "ParameterGroupName", value); |
| 179 | + } |
| 180 | + } |
| 181 | + |
| 182 | + public string Parameters |
| 183 | + { |
| 184 | + get |
| 185 | + { |
| 186 | + return parameters; |
| 187 | + } |
| 188 | + set |
| 189 | + { |
| 190 | + parameters = value; |
| 191 | + DictionaryUtil.Add(QueryParameters, "Parameters", value); |
| 192 | + } |
| 193 | + } |
| 194 | + |
| 195 | + public string ParameterGroupDesc |
| 196 | + { |
| 197 | + get |
| 198 | + { |
| 199 | + return parameterGroupDesc; |
| 200 | + } |
| 201 | + set |
| 202 | + { |
| 203 | + parameterGroupDesc = value; |
| 204 | + DictionaryUtil.Add(QueryParameters, "ParameterGroupDesc", value); |
| 205 | + } |
| 206 | + } |
| 207 | + |
| 208 | + public override bool CheckShowJsonItemName() |
| 209 | + { |
| 210 | + return false; |
| 211 | + } |
| 212 | + |
| 213 | + public override CreateParameterGroupResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 214 | + { |
| 215 | + return CreateParameterGroupResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 216 | + } |
| 217 | + } |
| 218 | +} |
0 commit comments