Skip to content

Commit fd9cdf8

Browse files
committed
GetDomainFields add request field
1 parent a293885 commit fd9cdf8

File tree

6 files changed

+269
-0
lines changed

6 files changed

+269
-0
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-11-20 Version: 1.0.0
2+
- GetDomainFields add request field
3+
14
2023-11-15 Version: 2.16.19
25
- Latest version for php.
36

aliyun-net-sdk-oms/Oms/Endpoint.cs

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
20+
using System.Collections.Generic;
21+
22+
namespace Aliyun.Acs.Oms
23+
{
24+
public class Endpoint
25+
{
26+
public static Dictionary<string, string> endpointMap = new Dictionary<string, string>()
27+
{
28+
{ "ap-southeast-1", "oms.ap-southeast-1.aliyuncs.com" },
29+
{ "cn-hangzhou", "pre-oms.cn-hangzhou.aliyuncs.com" },
30+
};
31+
32+
public static string endpointRegionalType = "central";
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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.Oms;
26+
using Aliyun.Acs.Oms.Transform;
27+
using Aliyun.Acs.Oms.Transform.V20190527;
28+
29+
namespace Aliyun.Acs.Oms.Model.V20190527
30+
{
31+
public class GetDomainFieldsRequest : RpcAcsRequest<GetDomainFieldsResponse>
32+
{
33+
public GetDomainFieldsRequest()
34+
: base("Oms", "2019-05-27", "GetDomainFields")
35+
{
36+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
37+
{
38+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Oms.Endpoint.endpointMap, null);
39+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Oms.Endpoint.endpointRegionalType, null);
40+
}
41+
}
42+
43+
private string domainCode;
44+
45+
private bool? useCache;
46+
47+
public string DomainCode
48+
{
49+
get
50+
{
51+
return domainCode;
52+
}
53+
set
54+
{
55+
domainCode = value;
56+
DictionaryUtil.Add(QueryParameters, "DomainCode", value);
57+
}
58+
}
59+
60+
public bool? UseCache
61+
{
62+
get
63+
{
64+
return useCache;
65+
}
66+
set
67+
{
68+
useCache = value;
69+
DictionaryUtil.Add(QueryParameters, "UseCache", value.ToString());
70+
}
71+
}
72+
73+
public override GetDomainFieldsResponse GetResponse(UnmarshallerContext unmarshallerContext)
74+
{
75+
return GetDomainFieldsResponseUnmarshaller.Unmarshall(unmarshallerContext);
76+
}
77+
}
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.Oms.Model.V20190527
24+
{
25+
public class GetDomainFieldsResponse : AcsResponse
26+
{
27+
28+
private string data;
29+
30+
private string requestId;
31+
32+
private string domainCode;
33+
34+
public string Data
35+
{
36+
get
37+
{
38+
return data;
39+
}
40+
set
41+
{
42+
data = value;
43+
}
44+
}
45+
46+
public string RequestId
47+
{
48+
get
49+
{
50+
return requestId;
51+
}
52+
set
53+
{
54+
requestId = value;
55+
}
56+
}
57+
58+
public string DomainCode
59+
{
60+
get
61+
{
62+
return domainCode;
63+
}
64+
set
65+
{
66+
domainCode = value;
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.Oms.Model.V20190527;
24+
25+
namespace Aliyun.Acs.Oms.Transform.V20190527
26+
{
27+
public class GetDomainFieldsResponseUnmarshaller
28+
{
29+
public static GetDomainFieldsResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
GetDomainFieldsResponse getDomainFieldsResponse = new GetDomainFieldsResponse();
32+
33+
getDomainFieldsResponse.HttpResponse = _ctx.HttpResponse;
34+
getDomainFieldsResponse.Data = _ctx.StringValue("GetDomainFields.Data");
35+
getDomainFieldsResponse.RequestId = _ctx.StringValue("GetDomainFields.RequestId");
36+
getDomainFieldsResponse.DomainCode = _ctx.StringValue("GetDomainFields.DomainCode");
37+
38+
return getDomainFieldsResponse;
39+
}
40+
}
41+
}
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.Oms</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 Oms</PackageTags>
16+
<AssemblyName>aliyun-net-sdk-oms</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)