File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -128,21 +128,6 @@ func (f *IBMPIVolumeGroupClient) DeleteVolumeGroup(id string) error {
128128 return nil
129129}
130130
131- // Delete a Volume Group with body
132- func (f * IBMPIVolumeGroupClient ) DeleteVolumeGroupWithBody (id string , body * models.VolumeGroupDelete ) error {
133- params := p_cloud_volume_groups .NewPcloudVolumegroupsDeleteParams ().
134- WithContext (f .ctx ).WithTimeout (helpers .PIDeleteTimeOut ).
135- WithCloudInstanceID (f .cloudInstanceID ).WithVolumeGroupID (id )
136- if body != nil {
137- params .SetBody (body )
138- }
139- _ , err := f .session .Power .PCloudVolumeGroups .PcloudVolumegroupsDelete (params , f .session .AuthInfo (f .cloudInstanceID ))
140- if err != nil {
141- return fmt .Errorf (errors .DeleteVolumeGroupOperationFailed , id , err )
142- }
143- return nil
144- }
145-
146131// Get live details of a Volume Group
147132func (f * IBMPIVolumeGroupClient ) GetVolumeGroupLiveDetails (id string ) (* models.VolumeGroupStorageDetails , error ) {
148133 params := p_cloud_volume_groups .NewPcloudVolumegroupsStorageDetailsGetParams ().
Original file line number Diff line number Diff line change @@ -126,21 +126,6 @@ func (f *IBMPIVolumeClient) DeleteVolume(id string) error {
126126 return nil
127127}
128128
129- // DeleteVolumeWithBody deletes a volume and optionally sends a JSON body
130- func (f * IBMPIVolumeClient ) DeleteVolumeWithBody (id string , body * models.DeleteDataVolume ) error {
131- params := p_cloud_volumes .NewPcloudCloudinstancesVolumesDeleteParams ().
132- WithContext (f .ctx ).WithTimeout (helpers .PIDeleteTimeOut ).
133- WithCloudInstanceID (f .cloudInstanceID ).WithVolumeID (id )
134- if body != nil {
135- params .SetBody (body )
136- }
137- _ , err := f .session .Power .PCloudVolumes .PcloudCloudinstancesVolumesDelete (params , f .session .AuthInfo (f .cloudInstanceID ))
138- if err != nil {
139- return fmt .Errorf (errors .DeleteVolumeOperationFailed , id , err )
140- }
141- return nil
142- }
143-
144129// Attach a Volume to an Instance
145130func (f * IBMPIVolumeClient ) Attach (id , volumename string ) error {
146131 params := p_cloud_volumes .NewPcloudPvminstancesVolumesPostParams ().
You can’t perform that action at this time.
0 commit comments