Skip to content

Commit

Permalink
Add volume labels to volume create request
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatsc committed Feb 11, 2020
1 parent 00bf0dc commit ec1c92e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ type CreateVolumeRequest struct {
RootGroupID string `json:"root_group_id,omitempty"`
ReplicaDeviceIDS []uint64 `json:"replica_device_ids,string,omitempty"`
ConfigurationName string `json:"configuration_name,omitempty"`
Labels []Label `json:"label,omitempty"`
AccessMode uint32 `json:"access_mode,uint32,omitempty"`
TenantID string `json:"tenant_id,omitempty"`
retryPolicy
}

type Label struct {
Name string `json:"name,string,omitempty"`
Value string `json:"value,string,omitempty"`
}

type resolveVolumeNameRequest struct {
VolumeName string `json:"volume_name,omitempty"`
TenantDomain string `json:"tenant_domain,omitempty"`
Expand Down

0 comments on commit ec1c92e

Please sign in to comment.