Skip to content

Commit

Permalink
Merge branch 'main' into grace/generic-oidc-account
Browse files Browse the repository at this point in the history
  • Loading branch information
grace-rehn committed Dec 2, 2024
2 parents 30bb66b + d53c52f commit bf16ec8
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 bf16ec8

Please sign in to comment.