@@ -13,7 +13,7 @@ const containersPath = "groups/%s/containers"
1313// endpoints of the MongoDB Atlas API.
1414//See more: https://docs.atlas.mongodb.com/reference/api/vpc/
1515type ContainersService interface {
16- List (context.Context , string , * ListOptions ) ([]Container , * Response , error )
16+ List (context.Context , string , * ContainersListOptions ) ([]Container , * Response , error )
1717 Get (context.Context , string , string ) (* Container , * Response , error )
1818 Create (context.Context , string , * Container ) (* Container , * Response , error )
1919 Update (context.Context , string , string , * Container ) (* Container , * Response , error )
@@ -28,6 +28,11 @@ type ContainersServiceOp struct {
2828
2929var _ ContainersService = & ContainersServiceOp {}
3030
31+ type ContainersListOptions struct {
32+ ProviderName string `url:"providerName,omitempty"`
33+ ListOptions
34+ }
35+
3136// Container represents MongoDB network peering containter.
3237type Container struct {
3338 AtlasCIDRBlock string `json:"atlasCidrBlock,omitempty"`
@@ -52,7 +57,7 @@ type containersResponse struct {
5257
5358//List all containers in the project associated to {GROUP-ID}.
5459//See more: https://docs.atlas.mongodb.com/reference/api/vpc-get-containers-list/
55- func (s * ContainersServiceOp ) List (ctx context.Context , groupID string , listOptions * ListOptions ) ([]Container , * Response , error ) {
60+ func (s * ContainersServiceOp ) List (ctx context.Context , groupID string , listOptions * ContainersListOptions ) ([]Container , * Response , error ) {
5661 path := fmt .Sprintf (containersPath , groupID )
5762
5863 //Add query params from listOptions
0 commit comments