55
66namespace 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
0 commit comments