|
| 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.imageprocess.Transform; |
| 26 | +using Aliyun.Acs.imageprocess.Transform.V20200320; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.imageprocess.Model.V20200320 |
| 29 | +{ |
| 30 | + public class DetectLiverSteatosisRequest : RpcAcsRequest<DetectLiverSteatosisResponse> |
| 31 | + { |
| 32 | + public DetectLiverSteatosisRequest() |
| 33 | + : base("imageprocess", "2020-03-20", "DetectLiverSteatosis", "imageprocess", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.imageprocess.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.imageprocess.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private string orgName; |
| 44 | + |
| 45 | + private string sourceType; |
| 46 | + |
| 47 | + private string dataFormat; |
| 48 | + |
| 49 | + private List<string> uRLLists = new List<string>(){ }; |
| 50 | + |
| 51 | + private string orgId; |
| 52 | + |
| 53 | + public string OrgName |
| 54 | + { |
| 55 | + get |
| 56 | + { |
| 57 | + return orgName; |
| 58 | + } |
| 59 | + set |
| 60 | + { |
| 61 | + orgName = value; |
| 62 | + DictionaryUtil.Add(BodyParameters, "OrgName", value); |
| 63 | + } |
| 64 | + } |
| 65 | + |
| 66 | + public string SourceType |
| 67 | + { |
| 68 | + get |
| 69 | + { |
| 70 | + return sourceType; |
| 71 | + } |
| 72 | + set |
| 73 | + { |
| 74 | + sourceType = value; |
| 75 | + DictionaryUtil.Add(BodyParameters, "SourceType", value); |
| 76 | + } |
| 77 | + } |
| 78 | + |
| 79 | + public string DataFormat |
| 80 | + { |
| 81 | + get |
| 82 | + { |
| 83 | + return dataFormat; |
| 84 | + } |
| 85 | + set |
| 86 | + { |
| 87 | + dataFormat = value; |
| 88 | + DictionaryUtil.Add(BodyParameters, "DataFormat", value); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + public List<string> URLLists |
| 93 | + { |
| 94 | + get |
| 95 | + { |
| 96 | + return uRLLists; |
| 97 | + } |
| 98 | + |
| 99 | + set |
| 100 | + { |
| 101 | + uRLLists = value; |
| 102 | + if(uRLLists != null) |
| 103 | + { |
| 104 | + for (int depth1 = 0; depth1 < uRLLists.Count; depth1++) |
| 105 | + { |
| 106 | + DictionaryUtil.Add(BodyParameters,"URLList." + (depth1 + 1), uRLLists[depth1]); |
| 107 | + } |
| 108 | + } |
| 109 | + } |
| 110 | + } |
| 111 | + |
| 112 | + public string OrgId |
| 113 | + { |
| 114 | + get |
| 115 | + { |
| 116 | + return orgId; |
| 117 | + } |
| 118 | + set |
| 119 | + { |
| 120 | + orgId = value; |
| 121 | + DictionaryUtil.Add(BodyParameters, "OrgId", value); |
| 122 | + } |
| 123 | + } |
| 124 | + |
| 125 | + public class URLList |
| 126 | + { |
| 127 | + |
| 128 | + private string uRL; |
| 129 | + |
| 130 | + public string URL |
| 131 | + { |
| 132 | + get |
| 133 | + { |
| 134 | + return uRL; |
| 135 | + } |
| 136 | + set |
| 137 | + { |
| 138 | + uRL = value; |
| 139 | + } |
| 140 | + } |
| 141 | + } |
| 142 | + |
| 143 | + public override bool CheckShowJsonItemName() |
| 144 | + { |
| 145 | + return false; |
| 146 | + } |
| 147 | + |
| 148 | + public override DetectLiverSteatosisResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 149 | + { |
| 150 | + return DetectLiverSteatosisResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 151 | + } |
| 152 | + } |
| 153 | +} |
0 commit comments