Skip to content

Commit

Permalink
Allow empty string for protectionPolicyId for it to be unassigned fro…
Browse files Browse the repository at this point in the history
…m VolumeGroup #111
  • Loading branch information
santhoshatdell authored Aug 10, 2023
2 parents e0f94c9 + 64402f7 commit bc95a9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions volume_group_types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright © 2021-2022 Dell Inc. or its subsidiaries. All Rights Reserved.
* Copyright © 2021-2023 Dell Inc. or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -103,8 +103,7 @@ type VolumeGroupMembers struct {

// VolumeGroupModify modifies existing Volume Group
type VolumeGroupModify struct {
// empty to delete
ProtectionPolicyId string `json:"protection_policy_id,omitempty"`
ProtectionPolicyId string `json:"protection_policy_id"` // empty to unassign
Description string `json:"description"`
Name string `json:"name,omitempty"`
IsWriteOrderConsistent bool `json:"is_write_order_consistent,omitempty"`
Expand Down

0 comments on commit bc95a9a

Please sign in to comment.