diff --git a/replication_types.go b/replication_types.go index f0e09ff..9ff8d85 100644 --- a/replication_types.go +++ b/replication_types.go @@ -1,6 +1,6 @@ /* * - * Copyright © 2021-2023 Dell Inc. or its subsidiaries. All Rights Reserved. + * Copyright © 2021-2024 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. @@ -140,12 +140,12 @@ type ProtectionPolicy struct { PerformanceRules []PerformanceRules `json:"performance_rules"` ReplicationRules []ReplicationRule `json:"replication_rules"` SnapshotRules []SnapshotRule `json:"snapshot_rules"` - Volumes []Volume `json:"volume"` - VolumeGroups []VolumeGroup `json:"volume_group"` + Volumes []Volume `json:"volumes"` + VolumeGroups []VolumeGroup `json:"volume_groups"` } func (policy *ProtectionPolicy) Fields() []string { - return []string{"*", "replication_rules(*)", "snapshot_rules(*)", "virtual_machines(*)", "file_systems(*)", "performance_rules(*)", "volume(*)", "volume_group(*)"} + return []string{"*", "replication_rules(*)", "snapshot_rules(*)", "virtual_machines(*)", "file_systems(*)", "performance_rules(*)", "volumes(*)", "volume_groups(*)"} } type StorageElementPair struct { diff --git a/volume_group.go b/volume_group.go index 4bf95b4..97051e2 100644 --- a/volume_group.go +++ b/volume_group.go @@ -1,6 +1,6 @@ /* * - * Copyright © 2021-2022 Dell Inc. or its subsidiaries. All Rights Reserved. + * Copyright © 2021-2024 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. @@ -116,7 +116,7 @@ func (c *ClientIMPL) CreateVolumeGroup(ctx context.Context, func (c *ClientIMPL) GetVolumeGroupsByVolumeID(ctx context.Context, id string) (resp VolumeGroups, err error) { qp := c.API.QueryParams() - qp.Select("volume_group.volume_group_membership(id,name,protection_policy_id)") + qp.Select("volume_groups(id,name,protection_policy_id)") _, err = c.APIClient().Query( ctx, RequestConfig{ diff --git a/volume_group_types.go b/volume_group_types.go index c29dfc0..36a2934 100644 --- a/volume_group_types.go +++ b/volume_group_types.go @@ -1,6 +1,6 @@ /* * - * Copyright © 2021-2023 Dell Inc. or its subsidiaries. All Rights Reserved. + * Copyright © 2021-2024 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. @@ -94,7 +94,7 @@ func (v *VolumeGroup) Fields() []string { } type VolumeGroups struct { - VolumeGroup []VolumeGroup `json:"volume_group,omitempty"` + VolumeGroup []VolumeGroup `json:"volume_groups,omitempty"` } type VolumeGroupMembers struct {