deploymentfreezes

package
v2.124.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client newclient.Client, deploymentFreeze *DeploymentFreeze) error

Types

type DeploymentFreeze

type DeploymentFreeze struct {
	Name                          string                     `json:"Name" validate:"required"`
	Start                         *time.Time                 `json:"Start" validate:"required"`
	End                           *time.Time                 `json:"End" validate:"required"`
	ProjectEnvironmentScope       map[string][]string        `json:"ProjectEnvironmentScope,omitempty"`
	TenantProjectEnvironmentScope []TenantProjectEnvironment `json:"TenantProjectEnvironmentScope,omitempty"`
	RecurringSchedule             *RecurringSchedule         `json:"RecurringSchedule,omitempty"`
	OwnerId                       string                     `json:"OwnerId,omitempty"`

	resources.Resource
}

func Add

func Add(client newclient.Client, deploymentFreeze *DeploymentFreeze) (*DeploymentFreeze, error)

func GetById

func GetById(client newclient.Client, id string) (*DeploymentFreeze, error)

func Update

func Update(client newclient.Client, deploymentFreeze *DeploymentFreeze) (*DeploymentFreeze, error)

func (*DeploymentFreeze) GetName

func (d *DeploymentFreeze) GetName() string

func (*DeploymentFreeze) SetName

func (d *DeploymentFreeze) SetName(name string)

type DeploymentFreezeQuery

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"`
	TenantIds       []string `uri:"tenantIds,omitempty" url:"tenantIds,omitempty"`
	EnvironmentIds  []string `uri:"environmentIds,omitempty" url:"environmentIds,omitempty"`
	IDs             []string `uri:"ids,omitempty" url:"ids,omitempty"`
	Skip            int      `uri:"skip" url:"skip"`
	Take            int      `uri:"take,omitempty" url:"take,omitempty"`
}

type DeploymentFreezeService

type DeploymentFreezeService struct{}

type DeploymentFreezes

type DeploymentFreezes struct {
	DeploymentFreezes []DeploymentFreeze `json:"DeploymentFreezes"`
	Count             int                `json:"Count"`
}

func Get

func Get(client newclient.Client, deploymentFreezesQuery DeploymentFreezeQuery) (*DeploymentFreezes, error)

func GetAll

func GetAll(client newclient.Client) (*DeploymentFreezes, error)

type MonthlyScheduleType added in v2.62.4

type MonthlyScheduleType string
const (
	DayOfMonth  MonthlyScheduleType = "DayOfMonth"
	DateOfMonth MonthlyScheduleType = "DateOfMonth"
)

type RecurringSchedule added in v2.62.4

type RecurringSchedule struct {
	Type                   RecurringScheduleType    `json:"Type"`
	Unit                   int                      `json:"Unit"`
	UserUtcOffsetInMinutes int                      `json:"UserUtcOffsetInMinutes,omitempty"`
	EndType                RecurringScheduleEndType `json:"EndType"`
	EndOnDate              *time.Time               `json:"EndOnDate,omitempty"`
	EndAfterOccurrences    int                      `json:"EndAfterOccurrences,omitempty"`
	MonthlyScheduleType    string                   `json:"MonthlyScheduleType,omitempty"`
	DateOfMonth            string                   `json:"DateOfMonth,omitempty"`
	DayNumberOfMonth       string                   `json:"DayNumberOfMonth,omitempty"`
	DaysOfWeek             []string                 `json:"DaysOfWeek,omitempty"`
	DayOfWeek              string                   `json:"DayOfWeek,omitempty"`
}

type RecurringScheduleEndType added in v2.62.4

type RecurringScheduleEndType string
const (
	Never            RecurringScheduleEndType = "Never"
	OnDate           RecurringScheduleEndType = "OnDate"
	AfterOccurrences RecurringScheduleEndType = "AfterOccurrences"
)

type RecurringScheduleType added in v2.62.4

type RecurringScheduleType string
const (
	Daily    RecurringScheduleType = "Daily"
	Weekly   RecurringScheduleType = "Weekly"
	Monthly  RecurringScheduleType = "Monthly"
	Annually RecurringScheduleType = "Annually"
)

type TenantProjectEnvironment added in v2.62.4

type TenantProjectEnvironment struct {
	TenantId      string `json:"TenantId"`
	ProjectId     string `json:"ProjectId"`
	EnvironmentId string `json:"EnvironmentId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL