|
| 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.documentAutoml.Transform; |
| 26 | +using Aliyun.Acs.documentAutoml.Transform.V20221229; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.documentAutoml.Model.V20221229 |
| 29 | +{ |
| 30 | + public class CreateModelAsyncPredictRequest : RpcAcsRequest<CreateModelAsyncPredictResponse> |
| 31 | + { |
| 32 | + public CreateModelAsyncPredictRequest() |
| 33 | + : base("documentAutoml", "2022-12-29", "CreateModelAsyncPredict", "documentAutoml", "openAPI") |
| 34 | + { |
| 35 | + Method = MethodType.POST; |
| 36 | + } |
| 37 | + |
| 38 | + private string body; |
| 39 | + |
| 40 | + private bool? binaryToText; |
| 41 | + |
| 42 | + private string content; |
| 43 | + |
| 44 | + private string serviceName; |
| 45 | + |
| 46 | + private long? modelId; |
| 47 | + |
| 48 | + private string serviceVersion; |
| 49 | + |
| 50 | + private string modelVersion; |
| 51 | + |
| 52 | + public string Body |
| 53 | + { |
| 54 | + get |
| 55 | + { |
| 56 | + return body; |
| 57 | + } |
| 58 | + set |
| 59 | + { |
| 60 | + body = value; |
| 61 | + DictionaryUtil.Add(BodyParameters, "body", value); |
| 62 | + } |
| 63 | + } |
| 64 | + |
| 65 | + public bool? BinaryToText |
| 66 | + { |
| 67 | + get |
| 68 | + { |
| 69 | + return binaryToText; |
| 70 | + } |
| 71 | + set |
| 72 | + { |
| 73 | + binaryToText = value; |
| 74 | + DictionaryUtil.Add(QueryParameters, "BinaryToText", value.ToString()); |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + public string Content |
| 79 | + { |
| 80 | + get |
| 81 | + { |
| 82 | + return content; |
| 83 | + } |
| 84 | + set |
| 85 | + { |
| 86 | + content = value; |
| 87 | + DictionaryUtil.Add(QueryParameters, "Content", value); |
| 88 | + } |
| 89 | + } |
| 90 | + |
| 91 | + public string ServiceName |
| 92 | + { |
| 93 | + get |
| 94 | + { |
| 95 | + return serviceName; |
| 96 | + } |
| 97 | + set |
| 98 | + { |
| 99 | + serviceName = value; |
| 100 | + DictionaryUtil.Add(QueryParameters, "ServiceName", value); |
| 101 | + } |
| 102 | + } |
| 103 | + |
| 104 | + public long? ModelId |
| 105 | + { |
| 106 | + get |
| 107 | + { |
| 108 | + return modelId; |
| 109 | + } |
| 110 | + set |
| 111 | + { |
| 112 | + modelId = value; |
| 113 | + DictionaryUtil.Add(QueryParameters, "ModelId", value.ToString()); |
| 114 | + } |
| 115 | + } |
| 116 | + |
| 117 | + public string ServiceVersion |
| 118 | + { |
| 119 | + get |
| 120 | + { |
| 121 | + return serviceVersion; |
| 122 | + } |
| 123 | + set |
| 124 | + { |
| 125 | + serviceVersion = value; |
| 126 | + DictionaryUtil.Add(QueryParameters, "ServiceVersion", value); |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + public string ModelVersion |
| 131 | + { |
| 132 | + get |
| 133 | + { |
| 134 | + return modelVersion; |
| 135 | + } |
| 136 | + set |
| 137 | + { |
| 138 | + modelVersion = value; |
| 139 | + DictionaryUtil.Add(QueryParameters, "ModelVersion", value); |
| 140 | + } |
| 141 | + } |
| 142 | + |
| 143 | + public override bool CheckShowJsonItemName() |
| 144 | + { |
| 145 | + return false; |
| 146 | + } |
| 147 | + |
| 148 | + public override CreateModelAsyncPredictResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 149 | + { |
| 150 | + return CreateModelAsyncPredictResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 151 | + } |
| 152 | + } |
| 153 | +} |
0 commit comments