Skip to content

Commit

Permalink
fix: added Partial Name and Status to deployment freeze query (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
benPearce1 authored Nov 28, 2024
1 parent b692e57 commit d53c52f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit d53c52f

Please sign in to comment.