@@ -7,6 +7,22 @@ import (
77 "github.com/gophercloud/gophercloud/v2/pagination"
88)
99
10+ // SchedulerHints contains options for providing scheduler hints when creating
11+ // a Share.
12+ type SchedulerHints struct {
13+ // DifferentHost will place the share on a different back-end that does not
14+ // host the given shares.
15+ DifferentHost string `json:"different_host,omitempty"`
16+
17+ // SameHost will place the share on a back-end that hosts the given shares.
18+ SameHost string `json:"same_host,omitempty"`
19+
20+ // OnlyHost value must be a manage-share service host in
21+ // host@backend#POOL format (admin only). Only available in and beyond
22+ // API version 2.67
23+ OnlyHost string `json:"only_host,omitempty"`
24+ }
25+
1026// CreateOptsBuilder allows extensions to add additional parameters to the
1127// Create request.
1228type CreateOptsBuilder interface {
@@ -48,6 +64,9 @@ type CreateOpts struct {
4864 ConsistencyGroupID string `json:"consistency_group_id,omitempty"`
4965 // The availability zone of the share
5066 AvailabilityZone string `json:"availability_zone,omitempty"`
67+ // SchedulerHints are hints for the scheduler to select the share backend
68+ // Only available in and beyond API version 2.65
69+ SchedulerHints * SchedulerHints `json:"scheduler_hints,omitempty"`
5170}
5271
5372// ToShareCreateMap assembles a request body based on the contents of a
0 commit comments