Skip to content

Commit 3663ad2

Browse files
committed
Generated 2023-08-01 for AiMiaoBi.
1 parent b95962b commit 3663ad2

File tree

5 files changed

+303
-0
lines changed

5 files changed

+303
-0
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-01-16 Version: 1.0.0
2+
- Generated 2023-08-01 for `AiMiaoBi`.
3+
14
2024-01-16 Version: 3.9.45
25
- Update to support new apis.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.AiMiaoBi;
26+
using Aliyun.Acs.AiMiaoBi.Transform;
27+
using Aliyun.Acs.AiMiaoBi.Transform.V20230801;
28+
29+
namespace Aliyun.Acs.AiMiaoBi.Model.V20230801
30+
{
31+
public class CreateTokenRequest : RpcAcsRequest<CreateTokenResponse>
32+
{
33+
public CreateTokenRequest()
34+
: base("AiMiaoBi", "2023-08-01", "CreateToken")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string agentKey;
41+
42+
public string AgentKey
43+
{
44+
get
45+
{
46+
return agentKey;
47+
}
48+
set
49+
{
50+
agentKey = value;
51+
DictionaryUtil.Add(QueryParameters, "AgentKey", value);
52+
}
53+
}
54+
55+
public override bool CheckShowJsonItemName()
56+
{
57+
return false;
58+
}
59+
60+
public override CreateTokenResponse GetResponse(UnmarshallerContext unmarshallerContext)
61+
{
62+
return CreateTokenResponseUnmarshaller.Unmarshall(unmarshallerContext);
63+
}
64+
}
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
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.AiMiaoBi.Model.V20230801
24+
{
25+
public class CreateTokenResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private bool? success;
31+
32+
private string code;
33+
34+
private string message;
35+
36+
private int? httpStatusCode;
37+
38+
private CreateToken_Data data;
39+
40+
public string RequestId
41+
{
42+
get
43+
{
44+
return requestId;
45+
}
46+
set
47+
{
48+
requestId = value;
49+
}
50+
}
51+
52+
public bool? Success
53+
{
54+
get
55+
{
56+
return success;
57+
}
58+
set
59+
{
60+
success = value;
61+
}
62+
}
63+
64+
public string Code
65+
{
66+
get
67+
{
68+
return code;
69+
}
70+
set
71+
{
72+
code = value;
73+
}
74+
}
75+
76+
public string Message
77+
{
78+
get
79+
{
80+
return message;
81+
}
82+
set
83+
{
84+
message = value;
85+
}
86+
}
87+
88+
public int? HttpStatusCode
89+
{
90+
get
91+
{
92+
return httpStatusCode;
93+
}
94+
set
95+
{
96+
httpStatusCode = value;
97+
}
98+
}
99+
100+
public CreateToken_Data Data
101+
{
102+
get
103+
{
104+
return data;
105+
}
106+
set
107+
{
108+
data = value;
109+
}
110+
}
111+
112+
public class CreateToken_Data
113+
{
114+
115+
private string token;
116+
117+
private long? expiredTime;
118+
119+
public string Token
120+
{
121+
get
122+
{
123+
return token;
124+
}
125+
set
126+
{
127+
token = value;
128+
}
129+
}
130+
131+
public long? ExpiredTime
132+
{
133+
get
134+
{
135+
return expiredTime;
136+
}
137+
set
138+
{
139+
expiredTime = value;
140+
}
141+
}
142+
}
143+
}
144+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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;
20+
using System.Collections.Generic;
21+
22+
using Aliyun.Acs.Core.Transform;
23+
using Aliyun.Acs.AiMiaoBi.Model.V20230801;
24+
25+
namespace Aliyun.Acs.AiMiaoBi.Transform.V20230801
26+
{
27+
public class CreateTokenResponseUnmarshaller
28+
{
29+
public static CreateTokenResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
CreateTokenResponse createTokenResponse = new CreateTokenResponse();
32+
33+
createTokenResponse.HttpResponse = _ctx.HttpResponse;
34+
createTokenResponse.RequestId = _ctx.StringValue("CreateToken.RequestId");
35+
createTokenResponse.Success = _ctx.BooleanValue("CreateToken.Success");
36+
createTokenResponse.Code = _ctx.StringValue("CreateToken.Code");
37+
createTokenResponse.Message = _ctx.StringValue("CreateToken.Message");
38+
createTokenResponse.HttpStatusCode = _ctx.IntegerValue("CreateToken.HttpStatusCode");
39+
40+
CreateTokenResponse.CreateToken_Data data = new CreateTokenResponse.CreateToken_Data();
41+
data.Token = _ctx.StringValue("CreateToken.Data.Token");
42+
data.ExpiredTime = _ctx.LongValue("CreateToken.Data.ExpiredTime");
43+
createTokenResponse.Data = data;
44+
45+
return createTokenResponse;
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
5+
<RootNamespace>Aliyun.Acs.AiMiaoBi</RootNamespace>
6+
<Version>1.0.0</Version>
7+
<Authors>Alibaba Cloud</Authors>
8+
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
9+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
10+
<PackageLicenseUrl>https://raw.githubusercontent.com/aliyun/aliyun-openapi-net-sdk/master/LICENSE</PackageLicenseUrl>
11+
<PackageProjectUrl>https://github.com/aliyun/aliyun-openapi-net-sdk</PackageProjectUrl>
12+
<PackageIconUrl>https://www.alibabacloud.com/favicon.ico</PackageIconUrl>
13+
<Description>Alibaba Cloud SDK for .NET</Description>
14+
<PackageReleaseNotes/>
15+
<PackageTags>alibaba aliyun SDK AiMiaoBi</PackageTags>
16+
<AssemblyName>aliyun-net-sdk-aimiaobi</AssemblyName>
17+
</PropertyGroup>
18+
<ItemGroup>
19+
<ProjectReference Include="..\aliyun-net-sdk-core\aliyun-net-sdk-core.vs2017.csproj"/>
20+
</ItemGroup>
21+
<ItemGroup>
22+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
25+
</PackageReference>
26+
</ItemGroup>
27+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
28+
<PackageReference Include="Newtonsoft.Json" Version="[9.0.1,)"/>
29+
</ItemGroup>
30+
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
31+
<PackageReference Include="Newtonsoft.Json" Version="[6.0.1,)"/>
32+
<Reference Include="mscorlib"/>
33+
<Reference Include="System"/>
34+
<Reference Include="System.Core"/>
35+
<Reference Include="Microsoft.CSharp"/>
36+
<Reference Include="System.Data"/>
37+
<Reference Include="System.Web"/>
38+
<Reference Include="System.Drawing"/>
39+
<Reference Include="System.Security"/>
40+
<Reference Include="System.Xml"/>
41+
<Reference Include="System.Configuration"/>
42+
</ItemGroup>
43+
</Project>

0 commit comments

Comments
 (0)