@@ -67,7 +67,7 @@ func (r *DeploymentService) Get(ctx context.Context, id string, opts ...option.R
6767 return
6868}
6969
70- // List deployments. Optionally filter by application name.
70+ // List deployments. Optionally filter by application name and version .
7171func (r * DeploymentService ) List (ctx context.Context , query DeploymentListParams , opts ... option.RequestOption ) (res * pagination.OffsetPagination [DeploymentListResponse ], err error ) {
7272 var raw * http.Response
7373 opts = slices .Concat (r .Options , opts )
@@ -85,7 +85,7 @@ func (r *DeploymentService) List(ctx context.Context, query DeploymentListParams
8585 return res , nil
8686}
8787
88- // List deployments. Optionally filter by application name.
88+ // List deployments. Optionally filter by application name and version .
8989func (r * DeploymentService ) ListAutoPaging (ctx context.Context , query DeploymentListParams , opts ... option.RequestOption ) * pagination.OffsetPaginationAutoPager [DeploymentListResponse ] {
9090 return pagination .NewOffsetPaginationAutoPager (r .List (ctx , query , opts ... ))
9191}
@@ -572,6 +572,8 @@ func init() {
572572type DeploymentListParams struct {
573573 // Filter results by application name.
574574 AppName param.Opt [string ] `query:"app_name,omitzero" json:"-"`
575+ // Filter results by application version. Requires app_name to be set.
576+ AppVersion param.Opt [string ] `query:"app_version,omitzero" json:"-"`
575577 // Limit the number of deployments to return.
576578 Limit param.Opt [int64 ] `query:"limit,omitzero" json:"-"`
577579 // Offset the number of deployments to return.
0 commit comments