@@ -14,7 +14,7 @@ const (
1414// endpoints of the MongoDB Atlas API.
1515// See more: https://docs.atlas.mongodb.com/reference/api/cloudProviderSnapshotRestoreJobs/
1616type CloudProviderSnapshotRestoreJobsService interface {
17- List (context.Context , * SnapshotReqPathParameters ) (* CloudProviderSnapshotRestoreJobs , * Response , error )
17+ List (context.Context , * SnapshotReqPathParameters , * ListOptions ) (* CloudProviderSnapshotRestoreJobs , * Response , error )
1818 Get (context.Context , * SnapshotReqPathParameters ) (* CloudProviderSnapshotRestoreJob , * Response , error )
1919 Create (context.Context , * SnapshotReqPathParameters , * CloudProviderSnapshotRestoreJob ) (* CloudProviderSnapshotRestoreJob , * Response , error )
2020 Delete (context.Context , * SnapshotReqPathParameters ) (* Response , error )
@@ -57,7 +57,7 @@ type CloudProviderSnapshotRestoreJobs struct {
5757
5858//List gets all cloud provider snapshot restore jobs for the specified cluster.
5959//See more: https://docs.atlas.mongodb.com/reference/api/cloud-provider-snapshot-restore-jobs-get-all/
60- func (s * CloudProviderSnapshotRestoreJobsServiceOp ) List (ctx context.Context , requestParameters * SnapshotReqPathParameters ) (* CloudProviderSnapshotRestoreJobs , * Response , error ) {
60+ func (s * CloudProviderSnapshotRestoreJobsServiceOp ) List (ctx context.Context , requestParameters * SnapshotReqPathParameters , listOptions * ListOptions ) (* CloudProviderSnapshotRestoreJobs , * Response , error ) {
6161 if requestParameters .GroupID == "" {
6262 return nil , nil , NewArgError ("groupId" , "must be set" )
6363 }
@@ -66,6 +66,10 @@ func (s *CloudProviderSnapshotRestoreJobsServiceOp) List(ctx context.Context, re
6666 }
6767
6868 path := fmt .Sprintf ("%s/%s/clusters/%s/backup/restoreJobs" , cloudProviderSnapshotsBasePath , requestParameters .GroupID , requestParameters .ClusterName )
69+ path , err := setListOptions (path , listOptions )
70+ if err != nil {
71+ return nil , nil , err
72+ }
6973
7074 req , err := s .Client .NewRequest (ctx , http .MethodGet , path , nil )
7175 if err != nil {
0 commit comments