Skip to content

Commit

Permalink
update function arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Nov 7, 2024
1 parent 146e0cf commit ccfc805
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions pkg/client/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type InstancesAPIDeleteAnIstanceOpts struct {
}

func (a *InstancesAPIService) DeleteAnInstance(ctx context.Context,
instanceID int) (models.SuccessOrErrorMessage, error) {
instanceID int64) (models.SuccessOrErrorMessage, error) {
DelInstanceResp := models.SuccessOrErrorMessage{}

delInstanceAPI := &api{
Expand Down Expand Up @@ -177,7 +177,7 @@ Lists VMware Snapshot of the instance
- @param instanceID
*/
func (a *InstancesAPIService) GetListOfSnapshotsForAnInstance(ctx context.Context,
instanceID int) (models.ListSnapshotResponse, error) {
instanceID int64) (models.ListSnapshotResponse, error) {
ListSnapshotResp := models.ListSnapshotResponse{}

listSnapshotAPI := &api{
Expand Down Expand Up @@ -266,7 +266,7 @@ Creates VMware Snapshot of the instance
*/

func (a *InstancesAPIService) SnapshotAnInstance(ctx context.Context, instanceID int,
func (a *InstancesAPIService) SnapshotAnInstance(ctx context.Context, instanceID int64,
localVarOptionals *models.SnapshotBody) (models.Instances, error) {
SnapshotInstResp := models.Instances{}

Expand Down Expand Up @@ -365,7 +365,7 @@ func (a *InstancesAPIService) SuspendAnInstance(ctx context.Context,
return SuspendResp, err
}

func (a *InstancesAPIService) ResizeAnInstance(ctx context.Context, instanceID int,
func (a *InstancesAPIService) ResizeAnInstance(ctx context.Context, instanceID int64,
request *models.ResizeInstanceBody) (models.ResizeInstanceResponse, error) {
ResizeResp := models.ResizeInstanceResponse{}

Expand All @@ -386,7 +386,7 @@ func (a *InstancesAPIService) ResizeAnInstance(ctx context.Context, instanceID i

func (a *InstancesAPIService) UpdatingAnInstance(
ctx context.Context,
instanceID int,
instanceID int64,
request *models.UpdateInstanceBody,
) (models.UpdateInstanceResponse, error) {
Instance := models.UpdateInstanceResponse{}
Expand All @@ -407,7 +407,7 @@ func (a *InstancesAPIService) UpdatingAnInstance(
}

func (a *InstancesAPIService) GetInstanceHistory(
ctx context.Context, instanceID int) (models.GetInstanceHistory, error) {
ctx context.Context, instanceID int64) (models.GetInstanceHistory, error) {
History := models.GetInstanceHistory{}

historyAPI := &api{
Expand Down
12 changes: 6 additions & 6 deletions pkg/client/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func TestInstancesAPIService_DeleteAnInstance(t *testing.T) {
defer ctrl.Finish()
tests := []struct {
name string
instanceID int
instanceID int64
given func(m *MockAPIClientHandler)
want models.SuccessOrErrorMessage
wantErr bool
Expand Down Expand Up @@ -623,7 +623,7 @@ func TestInstancesAPIService_ResizeAnInstance(t *testing.T) {

tests := []struct {
name string
instanceID int
instanceID int64
param models.ResizeInstanceBody
given func(m *MockAPIClientHandler)
want models.ResizeInstanceResponse
Expand Down Expand Up @@ -801,7 +801,7 @@ func TestInstancesAPIService_SnapshotAnInstance(t *testing.T) {
defer ctrl.Finish()
tests := []struct {
name string
instanceID int
instanceID int64
param models.SnapshotBody
given func(m *MockAPIClientHandler)
want models.Instances
Expand Down Expand Up @@ -963,7 +963,7 @@ func TestInstancesAPIService_UpdatingAnInstance(t *testing.T) {
defer ctrl.Finish()
tests := []struct {
name string
instanceID int
instanceID int64
param models.UpdateInstanceBody
given func(m *MockAPIClientHandler)
want models.UpdateInstanceResponse
Expand Down Expand Up @@ -1369,7 +1369,7 @@ func TestInstancesAPIService_GetListOfSnapshotsForAnInstance(t *testing.T) {

tests := []struct {
name string
instanceID int
instanceID int64
given func(m *MockAPIClientHandler)
want models.ListSnapshotResponse
wantErr bool
Expand Down Expand Up @@ -1485,7 +1485,7 @@ func TestInstancesAPIService_GetInstanceHistory(t *testing.T) {

tests := []struct {
name string
instanceID int
instanceID int64
given func(m *MockAPIClientHandler)
want models.GetInstanceHistory
wantErr bool
Expand Down

0 comments on commit ccfc805

Please sign in to comment.