Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added Partial Name and Status to deployment freeze query #290

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/deploymentfreezes/deploymentfreeze_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package deploymentfreezes

type DeploymentFreezeQuery struct {
IncludeComplete bool `uri:"includeComplete,omitempty" url:"includeComplete,omitempty"`
PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"`
Status string `uri:"status,omitempty" url:"status,omitempty"`
ProjectIds []string `uri:"projectIds,omitempty" url:"projectIds,omitempty"`
EnvironmentIds []string `uri:"environmentIds,omitempty" url:"environmentIds,omitempty"`
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/deploymentfreezes/deploymentfreezes_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/newclient"
)

const template = "/api/deploymentfreezes{/id}{?skip,take,ids,projectIds,tenantIds,environmentIds,includeComplete,status}"
const template = "/api/deploymentfreezes{/id}{?skip,take,ids,partialName,projectIds,tenantIds,environmentIds,includeComplete,status}"

type DeploymentFreezeService struct {
}

func Get(client newclient.Client, deploymentFreezesQuery *DeploymentFreezeQuery) (*DeploymentFreezes, error) {
func Get(client newclient.Client, deploymentFreezesQuery DeploymentFreezeQuery) (*DeploymentFreezes, error) {
path, err := client.URITemplateCache().Expand(template, deploymentFreezesQuery)
if err != nil {
return nil, err
Expand Down
Loading