MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewTenant

Function NewTenant

test/fixtures/projects.go:235–242  ·  view source on GitHub ↗
(spaceID string, tenantID string, name string, tenantTags ...string)

Source from the content-addressed store, hash-verified

233}
234
235func NewTenant(spaceID string, tenantID string, name string, tenantTags ...string) *tenants.Tenant {
236 result := tenants.NewTenant(name)
237 result.ID = tenantID
238 result.SpaceID = spaceID
239 result.TenantTags = tenantTags
240 // doesn't have any ProjectEnvironments, will need to add them externally
241 return result
242}
243
244func NewRunbook(spaceID string, projectID string, runbookID string, name string) *runbooks.Runbook {
245 result := runbooks.NewRunbook(name, projectID)

Callers 1

Calls

no outgoing calls

Tested by 1