Skip to content

Commit fc6a0e4

Browse files
committed
Exchange contents of ServerVolumeListResponse and ServerVolumeResponse
1 parent d8625c2 commit fc6a0e4

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
namespace net.openstack.Providers.Rackspace.Objects.Response
1+
namespace net.openstack.Providers.Rackspace.Objects.Response
22
{
3+
using System.Collections.Generic;
34
using net.openstack.Core.Domain;
45
using Newtonsoft.Json;
56

67
/// <summary>
7-
/// This models the JSON response used for the Attach Volume to Server and Get Volume Attachment Details requests.
8+
/// This models the JSON response used for the List Volume Attachments request.
89
/// </summary>
9-
/// <seealso href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Attach_Volume_to_Server.html">Attach Volume to Server (Rackspace Next Generation Cloud Servers Developer Guide - API v2)</seealso>
10-
/// <seealso href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Volume_Attachment_Details.html">Get Volume Attachment Details (Rackspace Next Generation Cloud Servers Developer Guide - API v2)</seealso>
10+
/// <seealso href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Volume_Attachments.html">List Volume Attachments (Rackspace Next Generation Cloud Servers Developer Guide - API v2)</seealso>
1111
/// <threadsafety static="true" instance="false"/>
1212
[JsonObject(MemberSerialization.OptIn)]
13-
internal class ServerVolumeResponse
13+
internal class ServerVolumeListResponse
1414
{
1515
/// <summary>
16-
/// Gets information about the volume attachment.
16+
/// Gets a collection of information about the volume attachments.
1717
/// </summary>
18-
[JsonProperty("volumeAttachment")]
19-
public ServerVolume ServerVolume { get; private set; }
18+
[JsonProperty("volumeAttachments")]
19+
public IEnumerable<ServerVolume> ServerVolumes { get; private set; }
2020
}
2121
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
namespace net.openstack.Providers.Rackspace.Objects.Response
1+
namespace net.openstack.Providers.Rackspace.Objects.Response
22
{
3-
using System.Collections.Generic;
43
using net.openstack.Core.Domain;
54
using Newtonsoft.Json;
65

76
/// <summary>
8-
/// This models the JSON response used for the List Volume Attachments request.
7+
/// This models the JSON response used for the Attach Volume to Server and Get Volume Attachment Details requests.
98
/// </summary>
10-
/// <seealso href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Volume_Attachments.html">List Volume Attachments (Rackspace Next Generation Cloud Servers Developer Guide - API v2)</seealso>
9+
/// <seealso href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Attach_Volume_to_Server.html">Attach Volume to Server (Rackspace Next Generation Cloud Servers Developer Guide - API v2)</seealso>
10+
/// <seealso href="http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Volume_Attachment_Details.html">Get Volume Attachment Details (Rackspace Next Generation Cloud Servers Developer Guide - API v2)</seealso>
1111
/// <threadsafety static="true" instance="false"/>
1212
[JsonObject(MemberSerialization.OptIn)]
13-
internal class ServerVolumeListResponse
13+
internal class ServerVolumeResponse
1414
{
1515
/// <summary>
16-
/// Gets a collection of information about the volume attachments.
16+
/// Gets information about the volume attachment.
1717
/// </summary>
18-
[JsonProperty("volumeAttachments")]
19-
public IEnumerable<ServerVolume> ServerVolumes { get; private set; }
18+
[JsonProperty("volumeAttachment")]
19+
public ServerVolume ServerVolume { get; private set; }
2020
}
2121
}

0 commit comments

Comments
 (0)