TenantProvisioningRequest
in package
FinalYes
Immutable tenant provisioning inputs shared by CLI and platform jobs.
Table of Contents
Constants
- STATUS_ACTIVE : mixed = 'active'
- STATUS_PROVISIONING : mixed = 'provisioning'
Properties
- $blobContainer : string|null
- $createDatabase : bool
- $dbName : string|null
- $dbRole : string|null
- $dbServer : string|null
- $displayName : string
- $finalStatus : string
- $host : string
- $initialSuperUserEmail : string|null
- $region : string
- $rotatePassword : bool
- $runMigrations : bool
- $skipCreateDatabase : bool
- $slug : string
- $smokeTable : string
- $tenantConfig : array<string|int, mixed>
Methods
- __construct() : mixed
- Constructor.
- fromArray() : self
- normalized() : self
- Return a copy with normalized, defaulted values.
- boolValue() : bool
- Normalize booleans from form, CLI, and JSON payload values.
- nullableString() : string|null
- Normalize nullable string input.
Constants
STATUS_ACTIVE
public
mixed
STATUS_ACTIVE
= 'active'
STATUS_PROVISIONING
public
mixed
STATUS_PROVISIONING
= 'provisioning'
Properties
$blobContainer read-only
public
string|null
$blobContainer
= null
$createDatabase read-only
public
bool
$createDatabase
= false
$dbName read-only
public
string|null
$dbName
= null
$dbRole read-only
public
string|null
$dbRole
= null
$dbServer read-only
public
string|null
$dbServer
= null
$displayName read-only
public
string
$displayName
$finalStatus read-only
public
string
$finalStatus
= self::STATUS_ACTIVE
$host read-only
public
string
$host
$initialSuperUserEmail read-only
public
string|null
$initialSuperUserEmail
= null
$region read-only
public
string
$region
= 'us'
$rotatePassword read-only
public
bool
$rotatePassword
= false
$runMigrations read-only
public
bool
$runMigrations
= true
$skipCreateDatabase read-only
public
bool
$skipCreateDatabase
= false
$slug read-only
public
string
$slug
$smokeTable read-only
public
string
$smokeTable
= 'members'
$tenantConfig read-only
public
array<string|int, mixed>
$tenantConfig
= []
Methods
__construct()
Constructor.
public
__construct(string $slug, string $displayName, string $host[, string|null $dbServer = null ][, string|null $dbName = null ][, string|null $dbRole = null ][, string|null $blobContainer = null ][, string $region = 'us' ][, array<string, mixed> $tenantConfig = [] ][, string $finalStatus = self::STATUS_ACTIVE ][, bool $createDatabase = false ][, bool $skipCreateDatabase = false ][, bool $runMigrations = true ][, string $smokeTable = 'members' ][, bool $rotatePassword = false ][, string|null $initialSuperUserEmail = null ]) : mixed
Parameters
- $slug : string
- $displayName : string
- $host : string
- $dbServer : string|null = null
- $dbName : string|null = null
- $dbRole : string|null = null
- $blobContainer : string|null = null
- $region : string = 'us'
- $tenantConfig : array<string, mixed> = []
-
Safe tenant config
- $finalStatus : string = self::STATUS_ACTIVE
- $createDatabase : bool = false
- $skipCreateDatabase : bool = false
- $runMigrations : bool = true
- $smokeTable : string = 'members'
- $rotatePassword : bool = false
- $initialSuperUserEmail : string|null = null
fromArray()
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
-
Request data
Return values
selfnormalized()
Return a copy with normalized, defaulted values.
public
normalized(string $defaultDbServer) : self
Parameters
- $defaultDbServer : string
Return values
selfboolValue()
Normalize booleans from form, CLI, and JSON payload values.
private
static boolValue(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolnullableString()
Normalize nullable string input.
private
static nullableString(mixed $value) : string|null
Parameters
- $value : mixed