Skip to content

Commit bfc02f7

Browse files
committed
Support share resource to service for RS.
1 parent ad52a2d commit bfc02f7

File tree

69 files changed

+6860
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+6860
-0
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-01-08 Version: 0.0.2
2+
- Support share resource to service for RS.
3+
- Support display precheck information.
4+
15
2024-01-05 Version: 1.8.19
26
- Support new feature.
37

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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.ResourceSharing
23+
{
24+
public class Endpoint
25+
{
26+
public static Dictionary<string, string> endpointMap = new Dictionary<string, string>()
27+
{};
28+
29+
public static string endpointRegionalType = "regional";
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.ResourceSharing.Transform;
26+
using Aliyun.Acs.ResourceSharing.Transform.V20200110;
27+
28+
namespace Aliyun.Acs.ResourceSharing.Model.V20200110
29+
{
30+
public class AcceptResourceShareInvitationRequest : RpcAcsRequest<AcceptResourceShareInvitationResponse>
31+
{
32+
public AcceptResourceShareInvitationRequest()
33+
: base("ResourceSharing", "2020-01-10", "AcceptResourceShareInvitation", "ressharing", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.ResourceSharing.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.ResourceSharing.Endpoint.endpointRegionalType, null);
39+
}
40+
Protocol = ProtocolType.HTTPS;
41+
Method = MethodType.POST;
42+
}
43+
44+
private string resourceShareInvitationId;
45+
46+
public string ResourceShareInvitationId
47+
{
48+
get
49+
{
50+
return resourceShareInvitationId;
51+
}
52+
set
53+
{
54+
resourceShareInvitationId = value;
55+
DictionaryUtil.Add(QueryParameters, "ResourceShareInvitationId", value);
56+
}
57+
}
58+
59+
public override bool CheckShowJsonItemName()
60+
{
61+
return false;
62+
}
63+
64+
public override AcceptResourceShareInvitationResponse GetResponse(UnmarshallerContext unmarshallerContext)
65+
{
66+
return AcceptResourceShareInvitationResponseUnmarshaller.Unmarshall(unmarshallerContext);
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
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.ResourceSharing.Model.V20200110
24+
{
25+
public class AcceptResourceShareInvitationResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private AcceptResourceShareInvitation_ResourceShareInvitation resourceShareInvitation;
31+
32+
public string RequestId
33+
{
34+
get
35+
{
36+
return requestId;
37+
}
38+
set
39+
{
40+
requestId = value;
41+
}
42+
}
43+
44+
public AcceptResourceShareInvitation_ResourceShareInvitation ResourceShareInvitation
45+
{
46+
get
47+
{
48+
return resourceShareInvitation;
49+
}
50+
set
51+
{
52+
resourceShareInvitation = value;
53+
}
54+
}
55+
56+
public class AcceptResourceShareInvitation_ResourceShareInvitation
57+
{
58+
59+
private string resourceShareInvitationId;
60+
61+
private string resourceShareId;
62+
63+
private string resourceShareName;
64+
65+
private string senderAccountId;
66+
67+
private string receiverAccountId;
68+
69+
private string createTime;
70+
71+
private string status;
72+
73+
private List<AcceptResourceShareInvitation_AcceptInvitationFailedDetail> acceptInvitationFailedDetails;
74+
75+
public string ResourceShareInvitationId
76+
{
77+
get
78+
{
79+
return resourceShareInvitationId;
80+
}
81+
set
82+
{
83+
resourceShareInvitationId = value;
84+
}
85+
}
86+
87+
public string ResourceShareId
88+
{
89+
get
90+
{
91+
return resourceShareId;
92+
}
93+
set
94+
{
95+
resourceShareId = value;
96+
}
97+
}
98+
99+
public string ResourceShareName
100+
{
101+
get
102+
{
103+
return resourceShareName;
104+
}
105+
set
106+
{
107+
resourceShareName = value;
108+
}
109+
}
110+
111+
public string SenderAccountId
112+
{
113+
get
114+
{
115+
return senderAccountId;
116+
}
117+
set
118+
{
119+
senderAccountId = value;
120+
}
121+
}
122+
123+
public string ReceiverAccountId
124+
{
125+
get
126+
{
127+
return receiverAccountId;
128+
}
129+
set
130+
{
131+
receiverAccountId = value;
132+
}
133+
}
134+
135+
public string CreateTime
136+
{
137+
get
138+
{
139+
return createTime;
140+
}
141+
set
142+
{
143+
createTime = value;
144+
}
145+
}
146+
147+
public string Status
148+
{
149+
get
150+
{
151+
return status;
152+
}
153+
set
154+
{
155+
status = value;
156+
}
157+
}
158+
159+
public List<AcceptResourceShareInvitation_AcceptInvitationFailedDetail> AcceptInvitationFailedDetails
160+
{
161+
get
162+
{
163+
return acceptInvitationFailedDetails;
164+
}
165+
set
166+
{
167+
acceptInvitationFailedDetails = value;
168+
}
169+
}
170+
171+
public class AcceptResourceShareInvitation_AcceptInvitationFailedDetail
172+
{
173+
174+
private string status;
175+
176+
private string statusMessage;
177+
178+
private string associateType;
179+
180+
private string resourceId;
181+
182+
private string resourceType;
183+
184+
public string Status
185+
{
186+
get
187+
{
188+
return status;
189+
}
190+
set
191+
{
192+
status = value;
193+
}
194+
}
195+
196+
public string StatusMessage
197+
{
198+
get
199+
{
200+
return statusMessage;
201+
}
202+
set
203+
{
204+
statusMessage = value;
205+
}
206+
}
207+
208+
public string AssociateType
209+
{
210+
get
211+
{
212+
return associateType;
213+
}
214+
set
215+
{
216+
associateType = value;
217+
}
218+
}
219+
220+
public string ResourceId
221+
{
222+
get
223+
{
224+
return resourceId;
225+
}
226+
set
227+
{
228+
resourceId = value;
229+
}
230+
}
231+
232+
public string ResourceType
233+
{
234+
get
235+
{
236+
return resourceType;
237+
}
238+
set
239+
{
240+
resourceType = value;
241+
}
242+
}
243+
}
244+
}
245+
}
246+
}

0 commit comments

Comments
 (0)