|
| 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.oos.Transform; |
| 26 | +using Aliyun.Acs.oos.Transform.V20190601; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.oos.Model.V20190601 |
| 29 | +{ |
| 30 | + public class CreateOpsItemRequest : RpcAcsRequest<CreateOpsItemResponse> |
| 31 | + { |
| 32 | + public CreateOpsItemRequest() |
| 33 | + : base("oos", "2019-06-01", "CreateOpsItem", "oos", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.oos.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.oos.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private string clientToken; |
| 44 | + |
| 45 | + private string description; |
| 46 | + |
| 47 | + private string source; |
| 48 | + |
| 49 | + private string title; |
| 50 | + |
| 51 | + private string resourceGroupId; |
| 52 | + |
| 53 | + private string severity; |
| 54 | + |
| 55 | + private string solutions; |
| 56 | + |
| 57 | + private string resources; |
| 58 | + |
| 59 | + private int? priority; |
| 60 | + |
| 61 | + private string dedupString; |
| 62 | + |
| 63 | + private string tags; |
| 64 | + |
| 65 | + private string category; |
| 66 | + |
| 67 | + public string ClientToken |
| 68 | + { |
| 69 | + get |
| 70 | + { |
| 71 | + return clientToken; |
| 72 | + } |
| 73 | + set |
| 74 | + { |
| 75 | + clientToken = value; |
| 76 | + DictionaryUtil.Add(QueryParameters, "ClientToken", value); |
| 77 | + } |
| 78 | + } |
| 79 | + |
| 80 | + public string Description |
| 81 | + { |
| 82 | + get |
| 83 | + { |
| 84 | + return description; |
| 85 | + } |
| 86 | + set |
| 87 | + { |
| 88 | + description = value; |
| 89 | + DictionaryUtil.Add(QueryParameters, "Description", value); |
| 90 | + } |
| 91 | + } |
| 92 | + |
| 93 | + public string Source |
| 94 | + { |
| 95 | + get |
| 96 | + { |
| 97 | + return source; |
| 98 | + } |
| 99 | + set |
| 100 | + { |
| 101 | + source = value; |
| 102 | + DictionaryUtil.Add(QueryParameters, "Source", value); |
| 103 | + } |
| 104 | + } |
| 105 | + |
| 106 | + public string Title |
| 107 | + { |
| 108 | + get |
| 109 | + { |
| 110 | + return title; |
| 111 | + } |
| 112 | + set |
| 113 | + { |
| 114 | + title = value; |
| 115 | + DictionaryUtil.Add(QueryParameters, "Title", value); |
| 116 | + } |
| 117 | + } |
| 118 | + |
| 119 | + public string ResourceGroupId |
| 120 | + { |
| 121 | + get |
| 122 | + { |
| 123 | + return resourceGroupId; |
| 124 | + } |
| 125 | + set |
| 126 | + { |
| 127 | + resourceGroupId = value; |
| 128 | + DictionaryUtil.Add(QueryParameters, "ResourceGroupId", value); |
| 129 | + } |
| 130 | + } |
| 131 | + |
| 132 | + public string Severity |
| 133 | + { |
| 134 | + get |
| 135 | + { |
| 136 | + return severity; |
| 137 | + } |
| 138 | + set |
| 139 | + { |
| 140 | + severity = value; |
| 141 | + DictionaryUtil.Add(QueryParameters, "Severity", value); |
| 142 | + } |
| 143 | + } |
| 144 | + |
| 145 | + public string Solutions |
| 146 | + { |
| 147 | + get |
| 148 | + { |
| 149 | + return solutions; |
| 150 | + } |
| 151 | + set |
| 152 | + { |
| 153 | + solutions = value; |
| 154 | + DictionaryUtil.Add(QueryParameters, "Solutions", value); |
| 155 | + } |
| 156 | + } |
| 157 | + |
| 158 | + public string Resources |
| 159 | + { |
| 160 | + get |
| 161 | + { |
| 162 | + return resources; |
| 163 | + } |
| 164 | + set |
| 165 | + { |
| 166 | + resources = value; |
| 167 | + DictionaryUtil.Add(QueryParameters, "Resources", value); |
| 168 | + } |
| 169 | + } |
| 170 | + |
| 171 | + public int? Priority |
| 172 | + { |
| 173 | + get |
| 174 | + { |
| 175 | + return priority; |
| 176 | + } |
| 177 | + set |
| 178 | + { |
| 179 | + priority = value; |
| 180 | + DictionaryUtil.Add(QueryParameters, "Priority", value.ToString()); |
| 181 | + } |
| 182 | + } |
| 183 | + |
| 184 | + public string DedupString |
| 185 | + { |
| 186 | + get |
| 187 | + { |
| 188 | + return dedupString; |
| 189 | + } |
| 190 | + set |
| 191 | + { |
| 192 | + dedupString = value; |
| 193 | + DictionaryUtil.Add(QueryParameters, "DedupString", value); |
| 194 | + } |
| 195 | + } |
| 196 | + |
| 197 | + public string Tags |
| 198 | + { |
| 199 | + get |
| 200 | + { |
| 201 | + return tags; |
| 202 | + } |
| 203 | + set |
| 204 | + { |
| 205 | + tags = value; |
| 206 | + DictionaryUtil.Add(QueryParameters, "Tags", value); |
| 207 | + } |
| 208 | + } |
| 209 | + |
| 210 | + public string Category |
| 211 | + { |
| 212 | + get |
| 213 | + { |
| 214 | + return category; |
| 215 | + } |
| 216 | + set |
| 217 | + { |
| 218 | + category = value; |
| 219 | + DictionaryUtil.Add(QueryParameters, "Category", value); |
| 220 | + } |
| 221 | + } |
| 222 | + |
| 223 | + public override bool CheckShowJsonItemName() |
| 224 | + { |
| 225 | + return false; |
| 226 | + } |
| 227 | + |
| 228 | + public override CreateOpsItemResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 229 | + { |
| 230 | + return CreateOpsItemResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 231 | + } |
| 232 | + } |
| 233 | +} |
0 commit comments