Skip to content

Commit 76350a9

Browse files
committed
Add inline doc to Compute Api
1 parent 9f355c9 commit 76350a9

35 files changed

Lines changed: 425 additions & 195 deletions

src/corelib/Compute/v2_1/FlavorExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// ReSharper disable once CheckNamespace
55
namespace OpenStack.Synchronous
66
{
7-
/// <summary />
7+
/// <summary>
8+
/// Provides synchronous extention methods for a <see cref="Flavor"/> instance.
9+
/// </summary>
810
public static class FlavorExtensions_v2_1
911
{
1012
/// <inheritdoc cref="FlavorReference.GetFlavorAsync"/>

src/corelib/Compute/v2_1/FlavorSummary.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace OpenStack.Compute.v2_1
44
{
5-
/// <summary />
5+
/// <summary>
6+
/// Summary information for a flavor.
7+
/// </summary>
68
public class FlavorSummary : FlavorReference
79
{
810
/// <summary>

src/corelib/Compute/v2_1/ImageExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
// ReSharper disable once CheckNamespace
66
namespace OpenStack.Synchronous
77
{
8-
/// <summary />
8+
/// <summary>
9+
/// Provides synchronous extention methods for a <see cref="Image"/> instance.
10+
/// </summary>
911
public static class ImageExtensions_v2_1
1012
{
1113
/// <inheritdoc cref="ImageReference.GetImageAsync"/>

src/corelib/Compute/v2_1/ImageMetadataExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// ReSharper disable once CheckNamespace
55
namespace OpenStack.Synchronous
66
{
7-
/// <summary />
7+
/// <summary>
8+
/// Provides synchronous extention methods for a <see cref="ImageMetadata"/> instance.
9+
/// </summary>
810
public static class ImageMetadataExtensions_v2_1
911
{
1012
/// <inheritdoc cref="ImageMetadata.CreateAsync"/>

src/corelib/Compute/v2_1/ImageSummary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace OpenStack.Compute.v2_1
44
{
55
/// <summary>
6-
/// Summary data for an image.
6+
/// Summary information for an image.
77
/// </summary>
88
public class ImageSummary : ImageReference
99
{

src/corelib/Compute/v2_1/KeyPairDefinition.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace OpenStack.Compute.v2_1
55
{
66
/// <summary>
7-
/// Defines a key pair which can be imported into the compute service.
7+
/// Defines an existing public key.
88
/// </summary>
99
[JsonConverter(typeof(KeyPairConverter))]
1010
public class KeyPairDefinition
@@ -20,15 +20,11 @@ public KeyPairDefinition(string name, string publicKey)
2020
PublicKey = publicKey;
2121
}
2222

23-
/// <summary>
24-
/// The key pair name.
25-
/// </summary>
23+
/// <inheritdoc cref="KeyPairSummary.Name" />
2624
[JsonProperty("name")]
2725
public string Name { get; set; }
2826

29-
/// <summary>
30-
/// The public ssh key to import.
31-
/// </summary>
27+
/// <inheritdoc cref="KeyPairSummary.PublicKey" />
3228
[JsonProperty("public_key")]
3329
public string PublicKey { get; set; }
3430
}

src/corelib/Compute/v2_1/KeyPairExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// ReSharper disable once CheckNamespace
55
namespace OpenStack.Synchronous
66
{
7-
/// <summary />
7+
/// <summary>
8+
/// Provides synchronous extention methods for a <see cref="KeyPair"/> instance.
9+
/// </summary>
810
public static class KeypairExtensions_v2_1
911
{
1012
/// <inheritdoc cref="KeyPairSummary.DeleteAsync" />

src/corelib/Compute/v2_1/RemoteConsoleType.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
namespace OpenStack.Compute.v2_1
44
{
5-
/// <summary>
6-
/// The remote console type
7-
/// </summary>
5+
/// <inheritdoc />
86
public class RemoteConsoleType : RemoteConsoleType<RemoteConsoleType>
97
{
108
}

src/corelib/Compute/v2_1/SchedulerHints.cs

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
namespace OpenStack.Compute.v2_1
77
{
8-
/// <summary />
8+
/// <summary>
9+
/// Hints passed to the compute scheduler when creating a server.
10+
/// <para>These may be used by the scheduler to determine how and where the server instance is created.</para>
11+
/// <para>Custom hints can be set via the <see cref="Add"/> method.</para>
12+
/// </summary>
13+
/// <seealso href="http://docs.openstack.org/developer/nova/filter_scheduler.html"/>
914
public class SchedulerHints : IHaveExtraData
1015
{
1116
/// <summary />
@@ -15,29 +20,43 @@ public SchedulerHints()
1520
SameHost = new List<string>();
1621
}
1722

18-
/// <summary />
23+
/// <summary>
24+
/// Specifies a custom filter by passing a scheduler hint in JSON format.
25+
/// </summary>
26+
/// <seealso href="http://docs.openstack.org/liberty/config-reference/content/section_compute-scheduler.html#jsonfilter"/>
1927
[JsonProperty("query")]
2028
public string Query { get; set; }
2129

22-
/// <summary />
30+
/// <summary>
31+
/// Schedules the instance based on host IP subnet range. Specifies the CIDR that corresponds to the subnet.
32+
/// <para>Must also specify <see cref="BuildNearHostIP"/>.</para>
33+
/// </summary>
2334
[JsonProperty("build_near_host_ip")]
2435
public string BuildNearHostIP { get; set; }
2536

2637
/// <summary>
27-
/// Classless Inter-Domain Routing (CIDR). A method for allocating IP addresses and routing Internet Protocol packets.
38+
/// Schedules the instance based on host IP subnet range. Specifies the first IP address in the subnet.
39+
/// <para>Must also specify <see cref="BuildNearHostIP"/>.</para>
2840
/// </summary>
2941
[JsonProperty("cidr")]
3042
public string CIDR { get; set; }
3143

32-
/// <summary />
44+
/// <summary>
45+
/// Schedules the instance on a different host from a set of instances.
46+
/// </summary>
3347
[JsonProperty("different_host")]
3448
public IList<string> DifferentHost { get; set; }
3549

36-
/// <summary />
50+
/// <summary>
51+
/// Schedules the instance on the same host as another instance in a set of instances.
52+
/// </summary>
3753
[JsonProperty("same_host")]
3854
public IList<string> SameHost { get; set; }
3955

40-
/// <summary />
56+
/// <summary>
57+
/// Specifies additional custom hints to pass to the scheduler.
58+
/// <para>Use the <see cref="Add"/> method instead of accessing this property directly.</para>
59+
/// </summary>
4160
[JsonExtensionData]
4261
public IDictionary<string, JToken> Data { get; set; } = new Dictionary<string, JToken>();
4362

src/corelib/Compute/v2_1/SecurityGroup.cs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,36 @@
99

1010
namespace OpenStack.Compute.v2_1
1111
{
12-
/// <summary />
12+
/// <summary>
13+
/// Security groups are sets of IP filter rules that are applied to an instance's networking.
14+
/// </summary>
15+
/// <seealso href="http://docs.openstack.org/openstack-ops/content/security_groups.html"/>
1316
[JsonConverterWithConstructor(typeof(RootWrapperConverter), "security_group")]
1417
public class SecurityGroup : SecurityGroupReference
1518
{
16-
/// <summary />
19+
/// <summary>
20+
/// Initializes a new instance of the <see cref="SecurityGroup"/> class.
21+
/// </summary>
1722
public SecurityGroup()
1823
{
1924
Rules = new List<SecurityGroupRule>();
2025
}
2126

22-
/// <summary />
27+
/// <summary>
28+
/// The security group identifier.
29+
/// </summary>
2330
[JsonProperty("id")]
2431
public Identifier Id { get; set; }
2532

26-
/// <summary />
33+
/// <summary>
34+
/// The security group description.
35+
/// </summary>
2736
[JsonProperty("description")]
2837
public string Description { get; set; }
2938

30-
/// <summary />
39+
/// <summary>
40+
/// The security group rules.
41+
/// </summary>
3142
[JsonProperty("rules")]
3243
public IList<SecurityGroupRule> Rules { get; set; }
3344

0 commit comments

Comments
 (0)