Skip to content

Commit 4174e1d

Browse files
committed
DocumentInit.
1 parent d5d0033 commit 4174e1d

17 files changed

+1231
-0
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-04-10 Version: 1.0.0
2+
- DocumentInit.
3+
14
2023-04-10 Version: 1.0.7
25
- Update SDK.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.documentAutoml.Model.V20221229
24+
{
25+
public class CreateModelAsyncPredictResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private int? code;
31+
32+
private string message;
33+
34+
private string data;
35+
36+
public string RequestId
37+
{
38+
get
39+
{
40+
return requestId;
41+
}
42+
set
43+
{
44+
requestId = value;
45+
}
46+
}
47+
48+
public int? Code
49+
{
50+
get
51+
{
52+
return code;
53+
}
54+
set
55+
{
56+
code = value;
57+
}
58+
}
59+
60+
public string Message
61+
{
62+
get
63+
{
64+
return message;
65+
}
66+
set
67+
{
68+
message = value;
69+
}
70+
}
71+
72+
public string Data
73+
{
74+
get
75+
{
76+
return data;
77+
}
78+
set
79+
{
80+
data = value;
81+
}
82+
}
83+
}
84+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 GetModelAsyncPredictRequest : RpcAcsRequest<GetModelAsyncPredictResponse>
31+
{
32+
public GetModelAsyncPredictRequest()
33+
: base("documentAutoml", "2022-12-29", "GetModelAsyncPredict", "documentAutoml", "openAPI")
34+
{
35+
Method = MethodType.POST;
36+
}
37+
38+
private long? asyncPredictId;
39+
40+
public long? AsyncPredictId
41+
{
42+
get
43+
{
44+
return asyncPredictId;
45+
}
46+
set
47+
{
48+
asyncPredictId = value;
49+
DictionaryUtil.Add(QueryParameters, "AsyncPredictId", value.ToString());
50+
}
51+
}
52+
53+
public override bool CheckShowJsonItemName()
54+
{
55+
return false;
56+
}
57+
58+
public override GetModelAsyncPredictResponse GetResponse(UnmarshallerContext unmarshallerContext)
59+
{
60+
return GetModelAsyncPredictResponseUnmarshaller.Unmarshall(unmarshallerContext);
61+
}
62+
}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.documentAutoml.Model.V20221229
24+
{
25+
public class GetModelAsyncPredictResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private int? code;
31+
32+
private string message;
33+
34+
private string data;
35+
36+
public string RequestId
37+
{
38+
get
39+
{
40+
return requestId;
41+
}
42+
set
43+
{
44+
requestId = value;
45+
}
46+
}
47+
48+
public int? Code
49+
{
50+
get
51+
{
52+
return code;
53+
}
54+
set
55+
{
56+
code = value;
57+
}
58+
}
59+
60+
public string Message
61+
{
62+
get
63+
{
64+
return message;
65+
}
66+
set
67+
{
68+
message = value;
69+
}
70+
}
71+
72+
public string Data
73+
{
74+
get
75+
{
76+
return data;
77+
}
78+
set
79+
{
80+
data = value;
81+
}
82+
}
83+
}
84+
}

0 commit comments

Comments
 (0)