| Required role: | TenantReader |
| GET | /api/computenodes/ | returns compute nodes | |
|---|---|---|---|
| GET | /computenodes/ | returns compute nodes |
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
// @DataContract
class QueryBase implements JsonSerializable
{
public function __construct(
// @DataMember(Order=1)
/** @var int|null */
public ?int $skip=null,
// @DataMember(Order=2)
/** @var int|null */
public ?int $take=null,
// @DataMember(Order=3)
/** @var string|null */
public ?string $orderBy=null,
// @DataMember(Order=4)
/** @var string|null */
public ?string $orderByDesc=null,
// @DataMember(Order=5)
/** @var string|null */
public ?string $include=null,
// @DataMember(Order=6)
/** @var string|null */
public ?string $fields=null,
// @DataMember(Order=7)
/** @var array<string,string>|null */
public ?array $meta=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['skip'])) $this->skip = $o['skip'];
if (isset($o['take'])) $this->take = $o['take'];
if (isset($o['orderBy'])) $this->orderBy = $o['orderBy'];
if (isset($o['orderByDesc'])) $this->orderByDesc = $o['orderByDesc'];
if (isset($o['include'])) $this->include = $o['include'];
if (isset($o['fields'])) $this->fields = $o['fields'];
if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->skip)) $o['skip'] = $this->skip;
if (isset($this->take)) $o['take'] = $this->take;
if (isset($this->orderBy)) $o['orderBy'] = $this->orderBy;
if (isset($this->orderByDesc)) $o['orderByDesc'] = $this->orderByDesc;
if (isset($this->include)) $o['include'] = $this->include;
if (isset($this->fields)) $o['fields'] = $this->fields;
if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
return empty($o) ? new class(){} : $o;
}
}
/**
* @template T
*/
class QueryDb extends QueryBase implements JsonSerializable
{
public array $genericArgs = [];
public static function create(array $genericArgs=[]): QueryDb {
$to = new QueryDb();
$to->genericArgs = $genericArgs;
return $to;
}
/**
* @param int|null $skip
* @param int|null $take
* @param string|null $orderBy
* @param string|null $orderByDesc
* @param string|null $include
* @param string|null $fields
* @param array<string,string>|null $meta
*/
public function __construct(
mixed $skip=null,
mixed $take=null,
mixed $orderBy=null,
mixed $orderByDesc=null,
mixed $include=null,
mixed $fields=null,
mixed $meta=null
) {
parent::__construct($skip,$take,$orderBy,$orderByDesc,$include,$fields,$meta);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
return empty($o) ? new class(){} : $o;
}
}
class Auditable implements IAuditable, JsonSerializable
{
public function __construct(
// @Required()
/** @var DateTime */
public DateTime $created=new DateTime(),
// @Required()
/** @var string */
public string $createUser='',
// @Required()
/** @var string */
public string $createUserId='',
// @Required()
/** @var DateTime */
public DateTime $modified=new DateTime(),
// @Required()
/** @var string */
public string $modifyUser='',
// @Required()
/** @var string */
public string $modifyUserId='',
// @Required()
/** @var bool|null */
public ?bool $isDeleted=null,
/** @var DateTime|null */
public ?DateTime $deleted=null,
/** @var string|null */
public ?string $deleteUser=null,
/** @var string|null */
public ?string $deleteUserId=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['created'])) $this->created = JsonConverters::from('DateTime', $o['created']);
if (isset($o['createUser'])) $this->createUser = $o['createUser'];
if (isset($o['createUserId'])) $this->createUserId = $o['createUserId'];
if (isset($o['modified'])) $this->modified = JsonConverters::from('DateTime', $o['modified']);
if (isset($o['modifyUser'])) $this->modifyUser = $o['modifyUser'];
if (isset($o['modifyUserId'])) $this->modifyUserId = $o['modifyUserId'];
if (isset($o['isDeleted'])) $this->isDeleted = $o['isDeleted'];
if (isset($o['deleted'])) $this->deleted = JsonConverters::from('DateTime', $o['deleted']);
if (isset($o['deleteUser'])) $this->deleteUser = $o['deleteUser'];
if (isset($o['deleteUserId'])) $this->deleteUserId = $o['deleteUserId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->created)) $o['created'] = JsonConverters::to('DateTime', $this->created);
if (isset($this->createUser)) $o['createUser'] = $this->createUser;
if (isset($this->createUserId)) $o['createUserId'] = $this->createUserId;
if (isset($this->modified)) $o['modified'] = JsonConverters::to('DateTime', $this->modified);
if (isset($this->modifyUser)) $o['modifyUser'] = $this->modifyUser;
if (isset($this->modifyUserId)) $o['modifyUserId'] = $this->modifyUserId;
if (isset($this->isDeleted)) $o['isDeleted'] = $this->isDeleted;
if (isset($this->deleted)) $o['deleted'] = JsonConverters::to('DateTime', $this->deleted);
if (isset($this->deleteUser)) $o['deleteUser'] = $this->deleteUser;
if (isset($this->deleteUserId)) $o['deleteUserId'] = $this->deleteUserId;
return empty($o) ? new class(){} : $o;
}
}
enum ObjectTypes : string
{
case None = 'None';
case ConfigItem = 'ConfigItem';
case Tenant = 'Tenant';
case Collection = 'Collection';
case Resource = 'Resource';
case ComputeNode = 'ComputeNode';
case VirtualMachine = 'VirtualMachine';
case PhysicalMachine = 'PhysicalMachine';
case Disk = 'Disk';
case Subnet = 'Subnet';
case IPAddress = 'IPAddress';
case Job = 'Job';
case JobEvent = 'JobEvent';
case FreezePeriod = 'FreezePeriod';
case ResourceGroup = 'ResourceGroup';
case Deployment = 'Deployment';
case ResourceGroupTemplate = 'ResourceGroupTemplate';
case DeploymentTemplate = 'DeploymentTemplate';
case ResourceProvider = 'ResourceProvider';
case GenericResource = 'GenericResource';
case Role = 'Role';
case Permission = 'Permission';
case User = 'User';
case PatchingWindow = 'PatchingWindow';
case Update = 'Update';
case ReportDefinition = 'ReportDefinition';
case TimeSeries = 'TimeSeries';
case DataPoint = 'DataPoint';
case Action = 'Action';
case ActionAssignment = 'ActionAssignment';
case UserNote = 'UserNote';
}
class Tag implements JsonSerializable
{
public function __construct(
/** @var string */
public string $name='',
/** @var string|null */
public ?string $value=null,
/** @var bool|null */
public ?bool $isProtected=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['value'])) $this->value = $o['value'];
if (isset($o['isProtected'])) $this->isProtected = $o['isProtected'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->value)) $o['value'] = $this->value;
if (isset($this->isProtected)) $o['isProtected'] = $this->isProtected;
return empty($o) ? new class(){} : $o;
}
}
class PathItem implements JsonSerializable
{
public function __construct(
/** @var string */
public string $label='',
/** @var string */
public string $link='',
/** @var ObjectTypes|null */
public ?ObjectTypes $objectType=null,
/** @var string */
public string $objectId=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['label'])) $this->label = $o['label'];
if (isset($o['link'])) $this->link = $o['link'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['objectId'])) $this->objectId = $o['objectId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->label)) $o['label'] = $this->label;
if (isset($this->link)) $o['link'] = $this->link;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->objectId)) $o['objectId'] = $this->objectId;
return empty($o) ? new class(){} : $o;
}
}
class ConfigItem extends Auditable implements IConfigItem, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
/** @var string */
public string $id='',
// @Required()
/** @var string */
public string $name='',
// @Required()
// @StringLength(250)
/** @var string */
public string $displayName='',
// @StringLength(8000)
/** @var string|null */
public ?string $description=null,
/** @var ObjectTypes|null */
public ?ObjectTypes $objectType=null,
// @Ignore()
/** @var string */
public string $selfLink='',
// @Required()
/** @var array<Tag>|null */
public ?array $tags=null,
// @Required()
/** @var array<PathItem>|null */
public ?array $path=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['displayName'])) $this->displayName = $o['displayName'];
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['tags'])) $this->tags = JsonConverters::fromArray('Tag', $o['tags']);
if (isset($o['path'])) $this->path = JsonConverters::fromArray('PathItem', $o['path']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->displayName)) $o['displayName'] = $this->displayName;
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->tags)) $o['tags'] = JsonConverters::toArray('Tag', $this->tags);
if (isset($this->path)) $o['path'] = JsonConverters::toArray('PathItem', $this->path);
return empty($o) ? new class(){} : $o;
}
}
enum Environments : string
{
case Lab = 'Lab';
case Poc = 'Poc';
case Dev = 'Dev';
case Test = 'Test';
case Int = 'Int';
case Uat = 'Uat';
case Prod = 'Prod';
}
enum LifecycleStates : string
{
case New = 'New';
case Deploying = 'Deploying';
case Deployed = 'Deployed';
case Removing = 'Removing';
case Removed = 'Removed';
case Failure = 'Failure';
case Imported = 'Imported';
}
enum ParameterValueType : string
{
case String = 'String';
case Number = 'Number';
case Boolean = 'Boolean';
case SecureString = 'SecureString';
}
class Parameter implements JsonSerializable
{
public function __construct(
/** @var string */
public string $name='',
/** @var string|null */
public ?string $description=null,
/** @var string|null */
public ?string $value=null,
/** @var string|null */
public ?string $default=null,
/** @var bool|null */
public ?bool $optional=null,
/** @var ParameterValueType|null */
public ?ParameterValueType $type=null,
/** @var string|null */
public ?string $validation=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['value'])) $this->value = $o['value'];
if (isset($o['default'])) $this->default = $o['default'];
if (isset($o['optional'])) $this->optional = $o['optional'];
if (isset($o['type'])) $this->type = JsonConverters::from('ParameterValueType', $o['type']);
if (isset($o['validation'])) $this->validation = $o['validation'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->value)) $o['value'] = $this->value;
if (isset($this->default)) $o['default'] = $this->default;
if (isset($this->optional)) $o['optional'] = $this->optional;
if (isset($this->type)) $o['type'] = JsonConverters::to('ParameterValueType', $this->type);
if (isset($this->validation)) $o['validation'] = $this->validation;
return empty($o) ? new class(){} : $o;
}
}
enum ValueDataType : string
{
case String = 'String';
case Number = 'Number';
case Boolean = 'Boolean';
case List = 'List';
}
class Variable implements JsonSerializable
{
public function __construct(
/** @var string */
public string $name='',
/** @var string */
public string $value='',
/** @var ValueDataType|null */
public ?ValueDataType $type=null,
/** @var string|null */
public ?string $description=null,
/** @var bool|null */
public ?bool $isInherited=null,
/** @var Environments|null */
public ?Environments $environment=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['value'])) $this->value = $o['value'];
if (isset($o['type'])) $this->type = JsonConverters::from('ValueDataType', $o['type']);
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['isInherited'])) $this->isInherited = $o['isInherited'];
if (isset($o['environment'])) $this->environment = JsonConverters::from('Environments', $o['environment']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->value)) $o['value'] = $this->value;
if (isset($this->type)) $o['type'] = JsonConverters::to('ValueDataType', $this->type);
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->isInherited)) $o['isInherited'] = $this->isInherited;
if (isset($this->environment)) $o['environment'] = JsonConverters::to('Environments', $this->environment);
return empty($o) ? new class(){} : $o;
}
}
class DeploymentCollection extends ConfigItem implements IHasTenantId, IHasVariables, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
/** @var string */
public string $tenantId='',
// @Required()
/** @var array<Variable>|null */
public ?array $variables=null,
// @Required()
/** @var bool|null */
public ?bool $isLostAndFound=null,
/** @var float */
public float $monthlyBudget=0.0,
/** @var bool|null */
public ?bool $sendBudgetNotificationMails=null,
/** @var int */
public int $budgetWarningThresholdPercent=0
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('Variable', $o['variables']);
if (isset($o['isLostAndFound'])) $this->isLostAndFound = $o['isLostAndFound'];
if (isset($o['monthlyBudget'])) $this->monthlyBudget = $o['monthlyBudget'];
if (isset($o['sendBudgetNotificationMails'])) $this->sendBudgetNotificationMails = $o['sendBudgetNotificationMails'];
if (isset($o['budgetWarningThresholdPercent'])) $this->budgetWarningThresholdPercent = $o['budgetWarningThresholdPercent'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('Variable', $this->variables);
if (isset($this->isLostAndFound)) $o['isLostAndFound'] = $this->isLostAndFound;
if (isset($this->monthlyBudget)) $o['monthlyBudget'] = $this->monthlyBudget;
if (isset($this->sendBudgetNotificationMails)) $o['sendBudgetNotificationMails'] = $this->sendBudgetNotificationMails;
if (isset($this->budgetWarningThresholdPercent)) $o['budgetWarningThresholdPercent'] = $this->budgetWarningThresholdPercent;
return empty($o) ? new class(){} : $o;
}
}
enum ResourceCompositions : string
{
case Native = 'Native';
case Foreign = 'Foreign';
case Mixed = 'Mixed';
}
enum OperationalStates : string
{
case None = 'None';
case Starting = 'Starting';
case Running = 'Running';
case Stopping = 'Stopping';
case Stopped = 'Stopped';
case Restarting = 'Restarting';
case Deleting = 'Deleting';
case Unknown = 'Unknown';
}
class Deployment extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IHasSequence, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
/** @var string */
public string $shortId='',
// @Required()
/** @var string */
public string $tenantId='',
// @Required()
/** @var string */
public string $nameUserDefinedPart='',
// @Required()
/** @var LifecycleStates|null */
public ?LifecycleStates $state=null,
// @Required()
/** @var Environments|null */
public ?Environments $environment=null,
/** @var string|null */
public ?string $templateId=null,
// @Required()
/** @var array<Parameter>|null */
public ?array $parameters=null,
// @Required()
/** @var array<Variable>|null */
public ?array $variables=null,
// @Required()
/** @var array<Variable>|null */
public ?array $variablesSnapshot=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.DeploymentCollection)")
/** @var string */
public string $parentId='',
/** @var DeploymentCollection|null */
public ?DeploymentCollection $parent=null,
// @Required()
/** @var DateTime */
public DateTime $validFrom=new DateTime(),
/** @var DateTime|null */
public ?DateTime $validUntil=null,
// @Required()
/** @var bool|null */
public ?bool $isNeverExpiring=null,
/** @var DateTime|null */
public ?DateTime $nextPatchDate=null,
// @Required()
/** @var string */
public string $defaultResourceProviderId='',
// @Required()
/** @var bool|null */
public ?bool $needsAttention=null,
/** @var ResourceCompositions|null */
public ?ResourceCompositions $composition=null,
/** @var float */
public float $monthlyBudget=0.0,
/** @var bool|null */
public ?bool $sendBudgetNotificationMails=null,
/** @var int */
public int $budgetWarningThresholdPercent=0,
/** @var OperationalStates|null */
public ?OperationalStates $operationalState=null,
/** @var int */
public int $resourcesRunning=0,
/** @var int */
public int $resourcesTotal=0
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['shortId'])) $this->shortId = $o['shortId'];
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['nameUserDefinedPart'])) $this->nameUserDefinedPart = $o['nameUserDefinedPart'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['state'])) $this->state = JsonConverters::from('LifecycleStates', $o['state']);
if (isset($o['environment'])) $this->environment = JsonConverters::from('Environments', $o['environment']);
if (isset($o['templateId'])) $this->templateId = $o['templateId'];
if (isset($o['parameters'])) $this->parameters = JsonConverters::fromArray('Parameter', $o['parameters']);
if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('Variable', $o['variables']);
if (isset($o['variablesSnapshot'])) $this->variablesSnapshot = JsonConverters::fromArray('Variable', $o['variablesSnapshot']);
if (isset($o['parentId'])) $this->parentId = $o['parentId'];
if (isset($o['parent'])) $this->parent = JsonConverters::from('DeploymentCollection', $o['parent']);
if (isset($o['validFrom'])) $this->validFrom = JsonConverters::from('DateTime', $o['validFrom']);
if (isset($o['validUntil'])) $this->validUntil = JsonConverters::from('DateTime', $o['validUntil']);
if (isset($o['isNeverExpiring'])) $this->isNeverExpiring = $o['isNeverExpiring'];
if (isset($o['nextPatchDate'])) $this->nextPatchDate = JsonConverters::from('DateTime', $o['nextPatchDate']);
if (isset($o['defaultResourceProviderId'])) $this->defaultResourceProviderId = $o['defaultResourceProviderId'];
if (isset($o['needsAttention'])) $this->needsAttention = $o['needsAttention'];
if (isset($o['composition'])) $this->composition = JsonConverters::from('ResourceCompositions', $o['composition']);
if (isset($o['monthlyBudget'])) $this->monthlyBudget = $o['monthlyBudget'];
if (isset($o['sendBudgetNotificationMails'])) $this->sendBudgetNotificationMails = $o['sendBudgetNotificationMails'];
if (isset($o['budgetWarningThresholdPercent'])) $this->budgetWarningThresholdPercent = $o['budgetWarningThresholdPercent'];
if (isset($o['operationalState'])) $this->operationalState = JsonConverters::from('OperationalStates', $o['operationalState']);
if (isset($o['resourcesRunning'])) $this->resourcesRunning = $o['resourcesRunning'];
if (isset($o['resourcesTotal'])) $this->resourcesTotal = $o['resourcesTotal'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->shortId)) $o['shortId'] = $this->shortId;
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->nameUserDefinedPart)) $o['nameUserDefinedPart'] = $this->nameUserDefinedPart;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->state)) $o['state'] = JsonConverters::to('LifecycleStates', $this->state);
if (isset($this->environment)) $o['environment'] = JsonConverters::to('Environments', $this->environment);
if (isset($this->templateId)) $o['templateId'] = $this->templateId;
if (isset($this->parameters)) $o['parameters'] = JsonConverters::toArray('Parameter', $this->parameters);
if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('Variable', $this->variables);
if (isset($this->variablesSnapshot)) $o['variablesSnapshot'] = JsonConverters::toArray('Variable', $this->variablesSnapshot);
if (isset($this->parentId)) $o['parentId'] = $this->parentId;
if (isset($this->parent)) $o['parent'] = JsonConverters::to('DeploymentCollection', $this->parent);
if (isset($this->validFrom)) $o['validFrom'] = JsonConverters::to('DateTime', $this->validFrom);
if (isset($this->validUntil)) $o['validUntil'] = JsonConverters::to('DateTime', $this->validUntil);
if (isset($this->isNeverExpiring)) $o['isNeverExpiring'] = $this->isNeverExpiring;
if (isset($this->nextPatchDate)) $o['nextPatchDate'] = JsonConverters::to('DateTime', $this->nextPatchDate);
if (isset($this->defaultResourceProviderId)) $o['defaultResourceProviderId'] = $this->defaultResourceProviderId;
if (isset($this->needsAttention)) $o['needsAttention'] = $this->needsAttention;
if (isset($this->composition)) $o['composition'] = JsonConverters::to('ResourceCompositions', $this->composition);
if (isset($this->monthlyBudget)) $o['monthlyBudget'] = $this->monthlyBudget;
if (isset($this->sendBudgetNotificationMails)) $o['sendBudgetNotificationMails'] = $this->sendBudgetNotificationMails;
if (isset($this->budgetWarningThresholdPercent)) $o['budgetWarningThresholdPercent'] = $this->budgetWarningThresholdPercent;
if (isset($this->operationalState)) $o['operationalState'] = JsonConverters::to('OperationalStates', $this->operationalState);
if (isset($this->resourcesRunning)) $o['resourcesRunning'] = $this->resourcesRunning;
if (isset($this->resourcesTotal)) $o['resourcesTotal'] = $this->resourcesTotal;
return empty($o) ? new class(){} : $o;
}
}
class ResourceGroup extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IHasSequence, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
/** @var string */
public string $shortId='',
// @Required()
/** @var string */
public string $tenantId='',
// @Required()
/** @var Environments|null */
public ?Environments $environment=null,
// @Required()
/** @var LifecycleStates|null */
public ?LifecycleStates $state=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.Deployment)")
/** @var string */
public string $parentId='',
/** @var Deployment|null */
public ?Deployment $parent=null,
/** @var string|null */
public ?string $templateId=null,
// @Required()
/** @var array<Parameter>|null */
public ?array $parameters=null,
// @Required()
/** @var array<Variable>|null */
public ?array $variables=null,
/** @var DateTime|null */
public ?DateTime $nextPatchDate=null,
/** @var ResourceCompositions|null */
public ?ResourceCompositions $composition=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['shortId'])) $this->shortId = $o['shortId'];
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['environment'])) $this->environment = JsonConverters::from('Environments', $o['environment']);
if (isset($o['state'])) $this->state = JsonConverters::from('LifecycleStates', $o['state']);
if (isset($o['parentId'])) $this->parentId = $o['parentId'];
if (isset($o['parent'])) $this->parent = JsonConverters::from('Deployment', $o['parent']);
if (isset($o['templateId'])) $this->templateId = $o['templateId'];
if (isset($o['parameters'])) $this->parameters = JsonConverters::fromArray('Parameter', $o['parameters']);
if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('Variable', $o['variables']);
if (isset($o['nextPatchDate'])) $this->nextPatchDate = JsonConverters::from('DateTime', $o['nextPatchDate']);
if (isset($o['composition'])) $this->composition = JsonConverters::from('ResourceCompositions', $o['composition']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->shortId)) $o['shortId'] = $this->shortId;
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->environment)) $o['environment'] = JsonConverters::to('Environments', $this->environment);
if (isset($this->state)) $o['state'] = JsonConverters::to('LifecycleStates', $this->state);
if (isset($this->parentId)) $o['parentId'] = $this->parentId;
if (isset($this->parent)) $o['parent'] = JsonConverters::to('Deployment', $this->parent);
if (isset($this->templateId)) $o['templateId'] = $this->templateId;
if (isset($this->parameters)) $o['parameters'] = JsonConverters::toArray('Parameter', $this->parameters);
if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('Variable', $this->variables);
if (isset($this->nextPatchDate)) $o['nextPatchDate'] = JsonConverters::to('DateTime', $this->nextPatchDate);
if (isset($this->composition)) $o['composition'] = JsonConverters::to('ResourceCompositions', $this->composition);
return empty($o) ? new class(){} : $o;
}
}
enum ResourceProviderTypes : string
{
case Azure = 'Azure';
case AmazonWebServices = 'AmazonWebServices';
case GoogleCloudPlatform = 'GoogleCloudPlatform';
case ActiveDirectoryServices = 'ActiveDirectoryServices';
case DomainNameSystem = 'DomainNameSystem';
case SwisscomESC = 'SwisscomESC';
case AzureKeyVault = 'AzureKeyVault';
}
class ProviderConfigEntry implements JsonSerializable
{
public function __construct(
/** @var string */
public string $name='',
/** @var string */
public string $value='',
/** @var bool|null */
public ?bool $isSecure=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['value'])) $this->value = $o['value'];
if (isset($o['isSecure'])) $this->isSecure = $o['isSecure'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->value)) $o['value'] = $this->value;
if (isset($this->isSecure)) $o['isSecure'] = $this->isSecure;
return empty($o) ? new class(){} : $o;
}
}
class ResourceProvider extends ConfigItem implements IHasTenantId, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
/** @var string */
public string $tenantId='',
// @Required()
/** @var Environments|null */
public ?Environments $defaultEnvironment=null,
// @Required()
/** @var array<Environments>|null */
public ?array $allowedEnvironments=null,
// @Required()
/** @var ResourceProviderTypes|null */
public ?ResourceProviderTypes $type=null,
// @Required()
/** @var array<ProviderConfigEntry>|null */
public ?array $config=null,
// @Required()
/** @var bool|null */
public ?bool $isDisabled=null,
// @Required()
/** @var bool|null */
public ?bool $isReadyForDeployments=null,
/** @var float */
public float $costCurrentMonth=0.0,
/** @var float */
public float $costLastMonth=0.0,
/** @var string */
public string $costCurrency=''
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['defaultEnvironment'])) $this->defaultEnvironment = JsonConverters::from('Environments', $o['defaultEnvironment']);
if (isset($o['allowedEnvironments'])) $this->allowedEnvironments = JsonConverters::fromArray('Environments', $o['allowedEnvironments']);
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['type'])) $this->type = JsonConverters::from('ResourceProviderTypes', $o['type']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['config'])) $this->config = JsonConverters::fromArray('ProviderConfigEntry', $o['config']);
if (isset($o['isDisabled'])) $this->isDisabled = $o['isDisabled'];
if (isset($o['isReadyForDeployments'])) $this->isReadyForDeployments = $o['isReadyForDeployments'];
if (isset($o['costCurrentMonth'])) $this->costCurrentMonth = $o['costCurrentMonth'];
if (isset($o['costLastMonth'])) $this->costLastMonth = $o['costLastMonth'];
if (isset($o['costCurrency'])) $this->costCurrency = $o['costCurrency'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->defaultEnvironment)) $o['defaultEnvironment'] = JsonConverters::to('Environments', $this->defaultEnvironment);
if (isset($this->allowedEnvironments)) $o['allowedEnvironments'] = JsonConverters::toArray('Environments', $this->allowedEnvironments);
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->type)) $o['type'] = JsonConverters::to('ResourceProviderTypes', $this->type);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->config)) $o['config'] = JsonConverters::toArray('ProviderConfigEntry', $this->config);
if (isset($this->isDisabled)) $o['isDisabled'] = $this->isDisabled;
if (isset($this->isReadyForDeployments)) $o['isReadyForDeployments'] = $this->isReadyForDeployments;
if (isset($this->costCurrentMonth)) $o['costCurrentMonth'] = $this->costCurrentMonth;
if (isset($this->costLastMonth)) $o['costLastMonth'] = $this->costLastMonth;
if (isset($this->costCurrency)) $o['costCurrency'] = $this->costCurrency;
return empty($o) ? new class(){} : $o;
}
}
class Resource extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
/** @var string */
public string $tenantId='',
// @StringLength(350)
/** @var string|null */
public ?string $extId=null,
// @StringLength(350)
/** @var string|null */
public ?string $extType=null,
// @StringLength(350)
/** @var string|null */
public ?string $extName=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.ResourceGroup)")
/** @var string */
public string $parentId='',
/** @var ResourceGroup|null */
public ?ResourceGroup $parent=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.Deployment)")
/** @var string */
public string $deploymentId='',
/** @var Deployment|null */
public ?Deployment $deployment=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.DeploymentCollection)")
/** @var string */
public string $collectionId='',
/** @var DeploymentCollection|null */
public ?DeploymentCollection $collection=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Base.ResourceProvider)")
/** @var string */
public string $resourceProviderId='',
/** @var ResourceProvider|null */
public ?ResourceProvider $resourceProvider=null,
// @Required()
/** @var OperationalStates|null */
public ?OperationalStates $state=null,
// @Required()
/** @var Environments|null */
public ?Environments $environment=null,
// @Required()
/** @var array<Variable>|null */
public ?array $variables=null,
// @StringLength(350)
/** @var string|null */
public ?string $location=null,
/** @var DateTime|null */
public ?DateTime $lastSeen=null,
/** @var DateTime|null */
public ?DateTime $lastPatchDate=null,
/** @var DateTime|null */
public ?DateTime $nextPatchDate=null,
/** @var DateTime|null */
public ?DateTime $lastBackupDate=null,
// @Required()
/** @var bool|null */
public ?bool $isForeign=null,
// @Required()
/** @var bool|null */
public ?bool $isAlerting=null,
// @StringLength(200)
/** @var string|null */
public ?string $alertingDisabledId=null,
// @StringLength(1000)
/** @var string|null */
public ?string $alertingDisabledReason=null,
// @Required()
/** @var bool|null */
public ?bool $isVulnerable=null,
// @StringLength(1000)
/** @var string|null */
public ?string $vulnerabilityReason=null,
/** @var DateTime|null */
public ?DateTime $vulnerableSince=null,
// @Required()
/** @var bool|null */
public ?bool $isMissingOnProvider=null,
// @Required()
/** @var bool|null */
public ?bool $supportsStartStop=null,
/** @var float */
public float $costCurrentMonth=0.0,
/** @var float */
public float $costLastMonth=0.0,
/** @var string */
public string $costCurrency='',
// @Required()
/** @var array<string,Object>|null */
public ?array $config=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['extId'])) $this->extId = $o['extId'];
if (isset($o['extType'])) $this->extType = $o['extType'];
if (isset($o['extName'])) $this->extName = $o['extName'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['parentId'])) $this->parentId = $o['parentId'];
if (isset($o['parent'])) $this->parent = JsonConverters::from('ResourceGroup', $o['parent']);
if (isset($o['deploymentId'])) $this->deploymentId = $o['deploymentId'];
if (isset($o['deployment'])) $this->deployment = JsonConverters::from('Deployment', $o['deployment']);
if (isset($o['collectionId'])) $this->collectionId = $o['collectionId'];
if (isset($o['collection'])) $this->collection = JsonConverters::from('DeploymentCollection', $o['collection']);
if (isset($o['resourceProviderId'])) $this->resourceProviderId = $o['resourceProviderId'];
if (isset($o['resourceProvider'])) $this->resourceProvider = JsonConverters::from('ResourceProvider', $o['resourceProvider']);
if (isset($o['state'])) $this->state = JsonConverters::from('OperationalStates', $o['state']);
if (isset($o['environment'])) $this->environment = JsonConverters::from('Environments', $o['environment']);
if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('Variable', $o['variables']);
if (isset($o['location'])) $this->location = $o['location'];
if (isset($o['lastSeen'])) $this->lastSeen = JsonConverters::from('DateTime', $o['lastSeen']);
if (isset($o['lastPatchDate'])) $this->lastPatchDate = JsonConverters::from('DateTime', $o['lastPatchDate']);
if (isset($o['nextPatchDate'])) $this->nextPatchDate = JsonConverters::from('DateTime', $o['nextPatchDate']);
if (isset($o['lastBackupDate'])) $this->lastBackupDate = JsonConverters::from('DateTime', $o['lastBackupDate']);
if (isset($o['isForeign'])) $this->isForeign = $o['isForeign'];
if (isset($o['isAlerting'])) $this->isAlerting = $o['isAlerting'];
if (isset($o['alertingDisabledId'])) $this->alertingDisabledId = $o['alertingDisabledId'];
if (isset($o['alertingDisabledReason'])) $this->alertingDisabledReason = $o['alertingDisabledReason'];
if (isset($o['isVulnerable'])) $this->isVulnerable = $o['isVulnerable'];
if (isset($o['vulnerabilityReason'])) $this->vulnerabilityReason = $o['vulnerabilityReason'];
if (isset($o['vulnerableSince'])) $this->vulnerableSince = JsonConverters::from('DateTime', $o['vulnerableSince']);
if (isset($o['isMissingOnProvider'])) $this->isMissingOnProvider = $o['isMissingOnProvider'];
if (isset($o['supportsStartStop'])) $this->supportsStartStop = $o['supportsStartStop'];
if (isset($o['costCurrentMonth'])) $this->costCurrentMonth = $o['costCurrentMonth'];
if (isset($o['costLastMonth'])) $this->costLastMonth = $o['costLastMonth'];
if (isset($o['costCurrency'])) $this->costCurrency = $o['costCurrency'];
if (isset($o['config'])) $this->config = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','Object']), $o['config']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->extId)) $o['extId'] = $this->extId;
if (isset($this->extType)) $o['extType'] = $this->extType;
if (isset($this->extName)) $o['extName'] = $this->extName;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->parentId)) $o['parentId'] = $this->parentId;
if (isset($this->parent)) $o['parent'] = JsonConverters::to('ResourceGroup', $this->parent);
if (isset($this->deploymentId)) $o['deploymentId'] = $this->deploymentId;
if (isset($this->deployment)) $o['deployment'] = JsonConverters::to('Deployment', $this->deployment);
if (isset($this->collectionId)) $o['collectionId'] = $this->collectionId;
if (isset($this->collection)) $o['collection'] = JsonConverters::to('DeploymentCollection', $this->collection);
if (isset($this->resourceProviderId)) $o['resourceProviderId'] = $this->resourceProviderId;
if (isset($this->resourceProvider)) $o['resourceProvider'] = JsonConverters::to('ResourceProvider', $this->resourceProvider);
if (isset($this->state)) $o['state'] = JsonConverters::to('OperationalStates', $this->state);
if (isset($this->environment)) $o['environment'] = JsonConverters::to('Environments', $this->environment);
if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('Variable', $this->variables);
if (isset($this->location)) $o['location'] = $this->location;
if (isset($this->lastSeen)) $o['lastSeen'] = JsonConverters::to('DateTime', $this->lastSeen);
if (isset($this->lastPatchDate)) $o['lastPatchDate'] = JsonConverters::to('DateTime', $this->lastPatchDate);
if (isset($this->nextPatchDate)) $o['nextPatchDate'] = JsonConverters::to('DateTime', $this->nextPatchDate);
if (isset($this->lastBackupDate)) $o['lastBackupDate'] = JsonConverters::to('DateTime', $this->lastBackupDate);
if (isset($this->isForeign)) $o['isForeign'] = $this->isForeign;
if (isset($this->isAlerting)) $o['isAlerting'] = $this->isAlerting;
if (isset($this->alertingDisabledId)) $o['alertingDisabledId'] = $this->alertingDisabledId;
if (isset($this->alertingDisabledReason)) $o['alertingDisabledReason'] = $this->alertingDisabledReason;
if (isset($this->isVulnerable)) $o['isVulnerable'] = $this->isVulnerable;
if (isset($this->vulnerabilityReason)) $o['vulnerabilityReason'] = $this->vulnerabilityReason;
if (isset($this->vulnerableSince)) $o['vulnerableSince'] = JsonConverters::to('DateTime', $this->vulnerableSince);
if (isset($this->isMissingOnProvider)) $o['isMissingOnProvider'] = $this->isMissingOnProvider;
if (isset($this->supportsStartStop)) $o['supportsStartStop'] = $this->supportsStartStop;
if (isset($this->costCurrentMonth)) $o['costCurrentMonth'] = $this->costCurrentMonth;
if (isset($this->costLastMonth)) $o['costLastMonth'] = $this->costLastMonth;
if (isset($this->costCurrency)) $o['costCurrency'] = $this->costCurrency;
if (isset($this->config)) $o['config'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','Object']), $this->config);
return empty($o) ? new class(){} : $o;
}
}
class DiskVolume implements JsonSerializable
{
public function __construct(
/** @var string */
public string $extId='',
/** @var string|null */
public ?string $label=null,
/** @var string|null */
public ?string $mountPoint=null,
/** @var int */
public int $sizeMb=0,
/** @var int|null */
public ?int $freeSpaceMb=null,
/** @var string|null */
public ?string $fileSystem=null,
/** @var int|null */
public ?int $blockSize=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['extId'])) $this->extId = $o['extId'];
if (isset($o['label'])) $this->label = $o['label'];
if (isset($o['mountPoint'])) $this->mountPoint = $o['mountPoint'];
if (isset($o['sizeMb'])) $this->sizeMb = $o['sizeMb'];
if (isset($o['freeSpaceMb'])) $this->freeSpaceMb = $o['freeSpaceMb'];
if (isset($o['fileSystem'])) $this->fileSystem = $o['fileSystem'];
if (isset($o['blockSize'])) $this->blockSize = $o['blockSize'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->extId)) $o['extId'] = $this->extId;
if (isset($this->label)) $o['label'] = $this->label;
if (isset($this->mountPoint)) $o['mountPoint'] = $this->mountPoint;
if (isset($this->sizeMb)) $o['sizeMb'] = $this->sizeMb;
if (isset($this->freeSpaceMb)) $o['freeSpaceMb'] = $this->freeSpaceMb;
if (isset($this->fileSystem)) $o['fileSystem'] = $this->fileSystem;
if (isset($this->blockSize)) $o['blockSize'] = $this->blockSize;
return empty($o) ? new class(){} : $o;
}
}
class Disk extends Resource implements JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
* @param string $tenantId
* @param string|null $extId
* @param string|null $extType
* @param string|null $extName
* @param string $name
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param string $parentId
* @param ResourceGroup|null $parent
* @param string $deploymentId
* @param Deployment|null $deployment
* @param string $collectionId
* @param DeploymentCollection|null $collection
* @param string $resourceProviderId
* @param ResourceProvider|null $resourceProvider
* @param OperationalStates|null $state
* @param Environments|null $environment
* @param array<Variable>|null $variables
* @param string|null $location
* @param DateTime|null $lastSeen
* @param DateTime|null $lastPatchDate
* @param DateTime|null $nextPatchDate
* @param DateTime|null $lastBackupDate
* @param bool|null $isForeign
* @param bool|null $isAlerting
* @param string|null $alertingDisabledId
* @param string|null $alertingDisabledReason
* @param bool|null $isVulnerable
* @param string|null $vulnerabilityReason
* @param DateTime|null $vulnerableSince
* @param bool|null $isMissingOnProvider
* @param bool|null $supportsStartStop
* @param float $costCurrentMonth
* @param float $costLastMonth
* @param string $costCurrency
* @param array<string,Object>|null $config
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
string $tenantId='',
?string $extId=null,
?string $extType=null,
?string $extName=null,
string $name='',
?ObjectTypes $objectType=null,
string $selfLink='',
string $parentId='',
?ResourceGroup $parent=null,
string $deploymentId='',
?Deployment $deployment=null,
string $collectionId='',
?DeploymentCollection $collection=null,
string $resourceProviderId='',
?ResourceProvider $resourceProvider=null,
?OperationalStates $state=null,
?Environments $environment=null,
?array $variables=null,
?string $location=null,
?DateTime $lastSeen=null,
?DateTime $lastPatchDate=null,
?DateTime $nextPatchDate=null,
?DateTime $lastBackupDate=null,
?bool $isForeign=null,
?bool $isAlerting=null,
?string $alertingDisabledId=null,
?string $alertingDisabledReason=null,
?bool $isVulnerable=null,
?string $vulnerabilityReason=null,
?DateTime $vulnerableSince=null,
?bool $isMissingOnProvider=null,
?bool $supportsStartStop=null,
float $costCurrentMonth=0.0,
float $costLastMonth=0.0,
string $costCurrency='',
?array $config=null,
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Resource.Resource)")
/** @var string|null */
public ?string $resourceId=null,
/** @var Resource|null */
public ?Resource $resource=null,
/** @var string|null */
public ?string $lunIndex=null,
// @Required()
/** @var int */
public int $sizeMb=0,
// @Required()
/** @var array<DiskVolume>|null */
public ?array $volumes=null,
// @Required()
/** @var bool|null */
public ?bool $isOsDisk=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$tenantId,$extId,$extType,$extName,$name,$objectType,$selfLink,$parentId,$parent,$deploymentId,$deployment,$collectionId,$collection,$resourceProviderId,$resourceProvider,$state,$environment,$variables,$location,$lastSeen,$lastPatchDate,$nextPatchDate,$lastBackupDate,$isForeign,$isAlerting,$alertingDisabledId,$alertingDisabledReason,$isVulnerable,$vulnerabilityReason,$vulnerableSince,$isMissingOnProvider,$supportsStartStop,$costCurrentMonth,$costLastMonth,$costCurrency,$config);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['resourceId'])) $this->resourceId = $o['resourceId'];
if (isset($o['resource'])) $this->resource = JsonConverters::from('Resource', $o['resource']);
if (isset($o['lunIndex'])) $this->lunIndex = $o['lunIndex'];
if (isset($o['sizeMb'])) $this->sizeMb = $o['sizeMb'];
if (isset($o['volumes'])) $this->volumes = JsonConverters::fromArray('DiskVolume', $o['volumes']);
if (isset($o['isOsDisk'])) $this->isOsDisk = $o['isOsDisk'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->resourceId)) $o['resourceId'] = $this->resourceId;
if (isset($this->resource)) $o['resource'] = JsonConverters::to('Resource', $this->resource);
if (isset($this->lunIndex)) $o['lunIndex'] = $this->lunIndex;
if (isset($this->sizeMb)) $o['sizeMb'] = $this->sizeMb;
if (isset($this->volumes)) $o['volumes'] = JsonConverters::toArray('DiskVolume', $this->volumes);
if (isset($this->isOsDisk)) $o['isOsDisk'] = $this->isOsDisk;
return empty($o) ? new class(){} : $o;
}
}
enum IpVersion : string
{
case V4 = 'V4';
case V6 = 'V6';
}
class Subnet extends Resource implements JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
* @param string $tenantId
* @param string|null $extId
* @param string|null $extType
* @param string|null $extName
* @param string $name
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param string $parentId
* @param ResourceGroup|null $parent
* @param string $deploymentId
* @param Deployment|null $deployment
* @param string $collectionId
* @param DeploymentCollection|null $collection
* @param string $resourceProviderId
* @param ResourceProvider|null $resourceProvider
* @param OperationalStates|null $state
* @param Environments|null $environment
* @param array<Variable>|null $variables
* @param string|null $location
* @param DateTime|null $lastSeen
* @param DateTime|null $lastPatchDate
* @param DateTime|null $nextPatchDate
* @param DateTime|null $lastBackupDate
* @param bool|null $isForeign
* @param bool|null $isAlerting
* @param string|null $alertingDisabledId
* @param string|null $alertingDisabledReason
* @param bool|null $isVulnerable
* @param string|null $vulnerabilityReason
* @param DateTime|null $vulnerableSince
* @param bool|null $isMissingOnProvider
* @param bool|null $supportsStartStop
* @param float $costCurrentMonth
* @param float $costLastMonth
* @param string $costCurrency
* @param array<string,Object>|null $config
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
string $tenantId='',
?string $extId=null,
?string $extType=null,
?string $extName=null,
string $name='',
?ObjectTypes $objectType=null,
string $selfLink='',
string $parentId='',
?ResourceGroup $parent=null,
string $deploymentId='',
?Deployment $deployment=null,
string $collectionId='',
?DeploymentCollection $collection=null,
string $resourceProviderId='',
?ResourceProvider $resourceProvider=null,
?OperationalStates $state=null,
?Environments $environment=null,
?array $variables=null,
?string $location=null,
?DateTime $lastSeen=null,
?DateTime $lastPatchDate=null,
?DateTime $nextPatchDate=null,
?DateTime $lastBackupDate=null,
?bool $isForeign=null,
?bool $isAlerting=null,
?string $alertingDisabledId=null,
?string $alertingDisabledReason=null,
?bool $isVulnerable=null,
?string $vulnerabilityReason=null,
?DateTime $vulnerableSince=null,
?bool $isMissingOnProvider=null,
?bool $supportsStartStop=null,
float $costCurrentMonth=0.0,
float $costLastMonth=0.0,
string $costCurrency='',
?array $config=null,
// @Required()
// @StringLength(45)
/** @var string */
public string $networkAddress='',
// @Required()
/** @var int */
public int $subnetBits=0,
// @Required()
/** @var IpVersion|null */
public ?IpVersion $version=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$tenantId,$extId,$extType,$extName,$name,$objectType,$selfLink,$parentId,$parent,$deploymentId,$deployment,$collectionId,$collection,$resourceProviderId,$resourceProvider,$state,$environment,$variables,$location,$lastSeen,$lastPatchDate,$nextPatchDate,$lastBackupDate,$isForeign,$isAlerting,$alertingDisabledId,$alertingDisabledReason,$isVulnerable,$vulnerabilityReason,$vulnerableSince,$isMissingOnProvider,$supportsStartStop,$costCurrentMonth,$costLastMonth,$costCurrency,$config);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['networkAddress'])) $this->networkAddress = $o['networkAddress'];
if (isset($o['subnetBits'])) $this->subnetBits = $o['subnetBits'];
if (isset($o['version'])) $this->version = JsonConverters::from('IpVersion', $o['version']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->networkAddress)) $o['networkAddress'] = $this->networkAddress;
if (isset($this->subnetBits)) $o['subnetBits'] = $this->subnetBits;
if (isset($this->version)) $o['version'] = JsonConverters::to('IpVersion', $this->version);
return empty($o) ? new class(){} : $o;
}
}
class IpAddress extends ConfigItem implements IHasTenantId, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.Tenant)")
/** @var string */
public string $tenantId='',
// @StringLength(350)
/** @var string|null */
public ?string $extId=null,
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Resource.Resource)")
/** @var string|null */
public ?string $resourceId=null,
/** @var Resource|null */
public ?Resource $resource=null,
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Resource.Subnet)")
/** @var string|null */
public ?string $subnetId=null,
/** @var Subnet|null */
public ?Subnet $subnet=null,
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Base.ResourceProvider)")
/** @var string|null */
public ?string $resourceProviderId=null,
/** @var ResourceProvider|null */
public ?ResourceProvider $resourceProvider=null,
/** @var int|null */
public ?int $subnetBits=null,
// @Required()
// @StringLength(45)
/** @var string */
public string $address='',
// @Required()
/** @var bool|null */
public ?bool $isPrimary=null,
// @Required()
/** @var IpVersion|null */
public ?IpVersion $version=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['extId'])) $this->extId = $o['extId'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['resourceId'])) $this->resourceId = $o['resourceId'];
if (isset($o['resource'])) $this->resource = JsonConverters::from('Resource', $o['resource']);
if (isset($o['subnetId'])) $this->subnetId = $o['subnetId'];
if (isset($o['subnet'])) $this->subnet = JsonConverters::from('Subnet', $o['subnet']);
if (isset($o['resourceProviderId'])) $this->resourceProviderId = $o['resourceProviderId'];
if (isset($o['resourceProvider'])) $this->resourceProvider = JsonConverters::from('ResourceProvider', $o['resourceProvider']);
if (isset($o['subnetBits'])) $this->subnetBits = $o['subnetBits'];
if (isset($o['address'])) $this->address = $o['address'];
if (isset($o['isPrimary'])) $this->isPrimary = $o['isPrimary'];
if (isset($o['version'])) $this->version = JsonConverters::from('IpVersion', $o['version']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->extId)) $o['extId'] = $this->extId;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->resourceId)) $o['resourceId'] = $this->resourceId;
if (isset($this->resource)) $o['resource'] = JsonConverters::to('Resource', $this->resource);
if (isset($this->subnetId)) $o['subnetId'] = $this->subnetId;
if (isset($this->subnet)) $o['subnet'] = JsonConverters::to('Subnet', $this->subnet);
if (isset($this->resourceProviderId)) $o['resourceProviderId'] = $this->resourceProviderId;
if (isset($this->resourceProvider)) $o['resourceProvider'] = JsonConverters::to('ResourceProvider', $this->resourceProvider);
if (isset($this->subnetBits)) $o['subnetBits'] = $this->subnetBits;
if (isset($this->address)) $o['address'] = $this->address;
if (isset($this->isPrimary)) $o['isPrimary'] = $this->isPrimary;
if (isset($this->version)) $o['version'] = JsonConverters::to('IpVersion', $this->version);
return empty($o) ? new class(){} : $o;
}
}
class ComputeNode extends Resource implements JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
* @param string $tenantId
* @param string|null $extId
* @param string|null $extType
* @param string|null $extName
* @param string $name
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param string $parentId
* @param ResourceGroup|null $parent
* @param string $deploymentId
* @param Deployment|null $deployment
* @param string $collectionId
* @param DeploymentCollection|null $collection
* @param string $resourceProviderId
* @param ResourceProvider|null $resourceProvider
* @param OperationalStates|null $state
* @param Environments|null $environment
* @param array<Variable>|null $variables
* @param string|null $location
* @param DateTime|null $lastSeen
* @param DateTime|null $lastPatchDate
* @param DateTime|null $nextPatchDate
* @param DateTime|null $lastBackupDate
* @param bool|null $isForeign
* @param bool|null $isAlerting
* @param string|null $alertingDisabledId
* @param string|null $alertingDisabledReason
* @param bool|null $isVulnerable
* @param string|null $vulnerabilityReason
* @param DateTime|null $vulnerableSince
* @param bool|null $isMissingOnProvider
* @param bool|null $supportsStartStop
* @param float $costCurrentMonth
* @param float $costLastMonth
* @param string $costCurrency
* @param array<string,Object>|null $config
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
string $tenantId='',
?string $extId=null,
?string $extType=null,
?string $extName=null,
string $name='',
?ObjectTypes $objectType=null,
string $selfLink='',
string $parentId='',
?ResourceGroup $parent=null,
string $deploymentId='',
?Deployment $deployment=null,
string $collectionId='',
?DeploymentCollection $collection=null,
string $resourceProviderId='',
?ResourceProvider $resourceProvider=null,
?OperationalStates $state=null,
?Environments $environment=null,
?array $variables=null,
?string $location=null,
?DateTime $lastSeen=null,
?DateTime $lastPatchDate=null,
?DateTime $nextPatchDate=null,
?DateTime $lastBackupDate=null,
?bool $isForeign=null,
?bool $isAlerting=null,
?string $alertingDisabledId=null,
?string $alertingDisabledReason=null,
?bool $isVulnerable=null,
?string $vulnerabilityReason=null,
?DateTime $vulnerableSince=null,
?bool $isMissingOnProvider=null,
?bool $supportsStartStop=null,
float $costCurrentMonth=0.0,
float $costLastMonth=0.0,
string $costCurrency='',
?array $config=null,
// @Required()
/** @var int */
public int $logicalCpus=0,
// @Required()
/** @var int */
public int $memoryMb=0,
// @StringLength(250)
/** @var string|null */
public ?string $model=null,
// @Ignore()
/** @var array<Disk>|null */
public ?array $disks=null,
// @Required()
/** @var array<string>|null */
public ?array $alias=null,
// @Ignore()
/** @var array<IpAddress>|null */
public ?array $ipAddresses=null,
// @StringLength(250)
/** @var string|null */
public ?string $hostname=null,
// @StringLength(350)
/** @var string|null */
public ?string $fqdn=null,
// @StringLength(100)
/** @var string|null */
public ?string $dnsDomain=null,
// @StringLength(100)
/** @var string|null */
public ?string $operatingSystem=null,
// @StringLength(100)
/** @var string|null */
public ?string $operatingSystemVersion=null,
// @StringLength(100)
/** @var string|null */
public ?string $operatingSystemFamily=null,
// @Required()
/** @var bool|null */
public ?bool $isRebootPending=null
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$tenantId,$extId,$extType,$extName,$name,$objectType,$selfLink,$parentId,$parent,$deploymentId,$deployment,$collectionId,$collection,$resourceProviderId,$resourceProvider,$state,$environment,$variables,$location,$lastSeen,$lastPatchDate,$nextPatchDate,$lastBackupDate,$isForeign,$isAlerting,$alertingDisabledId,$alertingDisabledReason,$isVulnerable,$vulnerabilityReason,$vulnerableSince,$isMissingOnProvider,$supportsStartStop,$costCurrentMonth,$costLastMonth,$costCurrency,$config);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['logicalCpus'])) $this->logicalCpus = $o['logicalCpus'];
if (isset($o['memoryMb'])) $this->memoryMb = $o['memoryMb'];
if (isset($o['model'])) $this->model = $o['model'];
if (isset($o['disks'])) $this->disks = JsonConverters::fromArray('Disk', $o['disks']);
if (isset($o['alias'])) $this->alias = JsonConverters::fromArray('string', $o['alias']);
if (isset($o['ipAddresses'])) $this->ipAddresses = JsonConverters::fromArray('IpAddress', $o['ipAddresses']);
if (isset($o['hostname'])) $this->hostname = $o['hostname'];
if (isset($o['fqdn'])) $this->fqdn = $o['fqdn'];
if (isset($o['dnsDomain'])) $this->dnsDomain = $o['dnsDomain'];
if (isset($o['operatingSystem'])) $this->operatingSystem = $o['operatingSystem'];
if (isset($o['operatingSystemVersion'])) $this->operatingSystemVersion = $o['operatingSystemVersion'];
if (isset($o['operatingSystemFamily'])) $this->operatingSystemFamily = $o['operatingSystemFamily'];
if (isset($o['isRebootPending'])) $this->isRebootPending = $o['isRebootPending'];
if (isset($o['supportsStartStop'])) $this->supportsStartStop = $o['supportsStartStop'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->logicalCpus)) $o['logicalCpus'] = $this->logicalCpus;
if (isset($this->memoryMb)) $o['memoryMb'] = $this->memoryMb;
if (isset($this->model)) $o['model'] = $this->model;
if (isset($this->disks)) $o['disks'] = JsonConverters::toArray('Disk', $this->disks);
if (isset($this->alias)) $o['alias'] = JsonConverters::toArray('string', $this->alias);
if (isset($this->ipAddresses)) $o['ipAddresses'] = JsonConverters::toArray('IpAddress', $this->ipAddresses);
if (isset($this->hostname)) $o['hostname'] = $this->hostname;
if (isset($this->fqdn)) $o['fqdn'] = $this->fqdn;
if (isset($this->dnsDomain)) $o['dnsDomain'] = $this->dnsDomain;
if (isset($this->operatingSystem)) $o['operatingSystem'] = $this->operatingSystem;
if (isset($this->operatingSystemVersion)) $o['operatingSystemVersion'] = $this->operatingSystemVersion;
if (isset($this->operatingSystemFamily)) $o['operatingSystemFamily'] = $this->operatingSystemFamily;
if (isset($this->isRebootPending)) $o['isRebootPending'] = $this->isRebootPending;
if (isset($this->supportsStartStop)) $o['supportsStartStop'] = $this->supportsStartStop;
return empty($o) ? new class(){} : $o;
}
}
enum Aggregations : string
{
case None = 'None';
case Count = 'Count';
case DistinctCount = 'DistinctCount';
case Sum = 'Sum';
case Min = 'Min';
case Max = 'Max';
case Avg = 'Avg';
case First = 'First';
}
/** @description Returns compute nodes */
// @Api(Description="Returns compute nodes")
// @ApiResponse(Description="The request ended successfully", IsDefaultResponse=true, ResponseType="typeof(YCO.Dune.Models.Dtos.Common.Responses.ItemsResponse`1[[CoreService.ServiceModel.Dtos.Resources.ComputeNodes.Responses.ComputeNodeDto, CoreService.ServiceModel, Version=0.15.14.0, Culture=neutral, PublicKeyToken=null]])", StatusCode=200)
/**
* @template QueryDb of ComputeNode
*/
class QueryComputeNodes extends QueryDb implements IGetMultipleRequest, IHasTenantName, IGet, IGroupable, JsonSerializable
{
/**
* @param int|null $skip
* @param int|null $take
* @param string|null $orderBy
* @param string|null $orderByDesc
* @param string|null $include
* @param string|null $fields
* @param array<string,string>|null $meta
*/
public function __construct(
?int $skip=null,
?int $take=null,
?string $orderBy=null,
?string $orderByDesc=null,
?string $include=null,
?string $fields=null,
?array $meta=null,
// @ApiMember(DataType="string", IsRequired=true, ParameterType="header")
// @Validate(Validator="NotEmpty")
/** @var string */
public string $tenantName='',
/** @description the dns alias of the computenode */
// @ApiMember(DataType="string", Description="the dns alias of the computenode", ParameterType="query")
/** @var string|null */
public ?string $alias=null,
/** @description If true, also soft deleted items will be returned */
// @ApiMember(Description="If true, also soft deleted items will be returned", ParameterType="query")
/** @var bool|null */
public ?bool $includeDeleted=null,
/** @description The property, the data will be grouped on */
// @ApiMember(Description="The property, the data will be grouped on", ParameterType="query")
/** @var string|null */
public ?string $groupBy=null,
/** @description The property, used for aggregation */
// @ApiMember(Description="The property, used for aggregation", ParameterType="query")
/** @var string|null */
public ?string $aggregateOn=null,
/** @description The aggregation function to use */
// @ApiMember(Description="The aggregation function to use", ParameterType="query")
/** @var Aggregations|null */
public ?Aggregations $aggregation=null,
/** @description Returns all referenced object */
// @ApiMember(Description="Returns all referenced object", ParameterType="query")
/** @var bool|null */
public ?bool $includeReferencedObjects=null
) {
parent::__construct($skip,$take,$orderBy,$orderByDesc,$include,$fields,$meta);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['tenantName'])) $this->tenantName = $o['tenantName'];
if (isset($o['alias'])) $this->alias = $o['alias'];
if (isset($o['includeDeleted'])) $this->includeDeleted = $o['includeDeleted'];
if (isset($o['groupBy'])) $this->groupBy = $o['groupBy'];
if (isset($o['aggregateOn'])) $this->aggregateOn = $o['aggregateOn'];
if (isset($o['aggregation'])) $this->aggregation = JsonConverters::from('Aggregations', $o['aggregation']);
if (isset($o['includeReferencedObjects'])) $this->includeReferencedObjects = $o['includeReferencedObjects'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->tenantName)) $o['tenantName'] = $this->tenantName;
if (isset($this->alias)) $o['alias'] = $this->alias;
if (isset($this->includeDeleted)) $o['includeDeleted'] = $this->includeDeleted;
if (isset($this->groupBy)) $o['groupBy'] = $this->groupBy;
if (isset($this->aggregateOn)) $o['aggregateOn'] = $this->aggregateOn;
if (isset($this->aggregation)) $o['aggregation'] = JsonConverters::to('Aggregations', $this->aggregation);
if (isset($this->includeReferencedObjects)) $o['includeReferencedObjects'] = $this->includeReferencedObjects;
return empty($o) ? new class(){} : $o;
}
}
class Tenant extends ConfigItem implements IHasVariables, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
* @param string $id
* @param string $name
* @param string $displayName
* @param string|null $description
* @param ObjectTypes|null $objectType
* @param string $selfLink
* @param array<Tag>|null $tags
* @param array<PathItem>|null $path
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
string $id='',
string $name='',
string $displayName='',
?string $description=null,
?ObjectTypes $objectType=null,
string $selfLink='',
?array $tags=null,
?array $path=null,
// @Required()
/** @var array<Variable>|null */
public ?array $variables=null,
// @Required()
/** @var array<string>|null */
public ?array $allowedMailDomains=null,
// @Required()
/** @var array<string>|null */
public ?array $licensedModules=null,
// @Required()
/** @var int */
public int $defaultDeploymentLifetimeDays=0,
// @Required()
/** @var int */
public int $maxDeploymentLifetimeDays=0,
// @Required()
/** @var int */
public int $systemUnpatchedWarningDays=0,
// @Required()
/** @var int */
public int $systemBackupMissingWarningHours=0,
// @Required()
/** @var int */
public int $stopVulnerableResourceAfterDays=0,
// @Required()
/** @var int */
public int $deploymentExpirationWarningDays=0,
// @Required()
/** @var int */
public int $patchNotificationDays=0,
// @Required()
/** @var bool|null */
public ?bool $useCustomHostnames=null,
// @Required()
/** @var int */
public int $removeInactiveVulnerabilitiesAfterDays=0
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('Variable', $o['variables']);
if (isset($o['allowedMailDomains'])) $this->allowedMailDomains = JsonConverters::fromArray('string', $o['allowedMailDomains']);
if (isset($o['licensedModules'])) $this->licensedModules = JsonConverters::fromArray('string', $o['licensedModules']);
if (isset($o['defaultDeploymentLifetimeDays'])) $this->defaultDeploymentLifetimeDays = $o['defaultDeploymentLifetimeDays'];
if (isset($o['maxDeploymentLifetimeDays'])) $this->maxDeploymentLifetimeDays = $o['maxDeploymentLifetimeDays'];
if (isset($o['systemUnpatchedWarningDays'])) $this->systemUnpatchedWarningDays = $o['systemUnpatchedWarningDays'];
if (isset($o['systemBackupMissingWarningHours'])) $this->systemBackupMissingWarningHours = $o['systemBackupMissingWarningHours'];
if (isset($o['stopVulnerableResourceAfterDays'])) $this->stopVulnerableResourceAfterDays = $o['stopVulnerableResourceAfterDays'];
if (isset($o['deploymentExpirationWarningDays'])) $this->deploymentExpirationWarningDays = $o['deploymentExpirationWarningDays'];
if (isset($o['patchNotificationDays'])) $this->patchNotificationDays = $o['patchNotificationDays'];
if (isset($o['useCustomHostnames'])) $this->useCustomHostnames = $o['useCustomHostnames'];
if (isset($o['removeInactiveVulnerabilitiesAfterDays'])) $this->removeInactiveVulnerabilitiesAfterDays = $o['removeInactiveVulnerabilitiesAfterDays'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('Variable', $this->variables);
if (isset($this->allowedMailDomains)) $o['allowedMailDomains'] = JsonConverters::toArray('string', $this->allowedMailDomains);
if (isset($this->licensedModules)) $o['licensedModules'] = JsonConverters::toArray('string', $this->licensedModules);
if (isset($this->defaultDeploymentLifetimeDays)) $o['defaultDeploymentLifetimeDays'] = $this->defaultDeploymentLifetimeDays;
if (isset($this->maxDeploymentLifetimeDays)) $o['maxDeploymentLifetimeDays'] = $this->maxDeploymentLifetimeDays;
if (isset($this->systemUnpatchedWarningDays)) $o['systemUnpatchedWarningDays'] = $this->systemUnpatchedWarningDays;
if (isset($this->systemBackupMissingWarningHours)) $o['systemBackupMissingWarningHours'] = $this->systemBackupMissingWarningHours;
if (isset($this->stopVulnerableResourceAfterDays)) $o['stopVulnerableResourceAfterDays'] = $this->stopVulnerableResourceAfterDays;
if (isset($this->deploymentExpirationWarningDays)) $o['deploymentExpirationWarningDays'] = $this->deploymentExpirationWarningDays;
if (isset($this->patchNotificationDays)) $o['patchNotificationDays'] = $this->patchNotificationDays;
if (isset($this->useCustomHostnames)) $o['useCustomHostnames'] = $this->useCustomHostnames;
if (isset($this->removeInactiveVulnerabilitiesAfterDays)) $o['removeInactiveVulnerabilitiesAfterDays'] = $this->removeInactiveVulnerabilitiesAfterDays;
return empty($o) ? new class(){} : $o;
}
}
enum IntervalUnits : string
{
case Second = 'Second';
case Minute = 'Minute';
case Hour = 'Hour';
case Day = 'Day';
case Week = 'Week';
case Month = 'Month';
case Year = 'Year';
}
class TimeSeriesDefinition extends Auditable implements IHasIdName, IHasTenantId, IHasObjectType, JsonSerializable
{
/**
* @param DateTime $created
* @param string $createUser
* @param string $createUserId
* @param DateTime $modified
* @param string $modifyUser
* @param string $modifyUserId
* @param bool|null $isDeleted
* @param DateTime|null $deleted
* @param string|null $deleteUser
* @param string|null $deleteUserId
*/
public function __construct(
DateTime $created=new DateTime(),
string $createUser='',
string $createUserId='',
DateTime $modified=new DateTime(),
string $modifyUser='',
string $modifyUserId='',
?bool $isDeleted=null,
?DateTime $deleted=null,
?string $deleteUser=null,
?string $deleteUserId=null,
/** @var string */
public string $id='',
// @References("typeof(CoreService.ServiceModel.BusinessObjects.Structure.Tenant)")
/** @var string */
public string $tenantId='',
/** @var Tenant|null */
public ?Tenant $tenant=null,
/** @var string */
public string $name='',
/** @var string|null */
public ?string $displayName=null,
// @Ignore()
/** @var string */
public string $selfLink='',
// @Required()
/** @var ObjectTypes|null */
public ?ObjectTypes $objectType=null,
/** @var string|null */
public ?string $description=null,
/** @var ObjectTypes|null */
public ?ObjectTypes $sourceType=null,
/** @var bool|null */
public ?bool $autoCollection=null,
/** @var string|null */
public ?string $autoCollectionQuery=null,
/** @var int|null */
public ?int $autoCollectionInterval=null,
/** @var IntervalUnits|null */
public ?IntervalUnits $autoCollectionIntervalUnit=null,
/** @var DateInterval|null */
public ?DateInterval $autoCollectionTime=null,
/** @var DateTime|null */
public ?DateTime $lastAutoCollected=null,
/** @var int */
public int $retentionTimeMonths=0
) {
parent::__construct($created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
if (isset($o['tenant'])) $this->tenant = JsonConverters::from('Tenant', $o['tenant']);
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['displayName'])) $this->displayName = $o['displayName'];
if (isset($o['selfLink'])) $this->selfLink = $o['selfLink'];
if (isset($o['objectType'])) $this->objectType = JsonConverters::from('ObjectTypes', $o['objectType']);
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['sourceType'])) $this->sourceType = JsonConverters::from('ObjectTypes', $o['sourceType']);
if (isset($o['autoCollection'])) $this->autoCollection = $o['autoCollection'];
if (isset($o['autoCollectionQuery'])) $this->autoCollectionQuery = $o['autoCollectionQuery'];
if (isset($o['autoCollectionInterval'])) $this->autoCollectionInterval = $o['autoCollectionInterval'];
if (isset($o['autoCollectionIntervalUnit'])) $this->autoCollectionIntervalUnit = JsonConverters::from('IntervalUnits', $o['autoCollectionIntervalUnit']);
if (isset($o['autoCollectionTime'])) $this->autoCollectionTime = JsonConverters::from('TimeOnly', $o['autoCollectionTime']);
if (isset($o['lastAutoCollected'])) $this->lastAutoCollected = JsonConverters::from('DateTime', $o['lastAutoCollected']);
if (isset($o['retentionTimeMonths'])) $this->retentionTimeMonths = $o['retentionTimeMonths'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
if (isset($this->tenant)) $o['tenant'] = JsonConverters::to('Tenant', $this->tenant);
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->displayName)) $o['displayName'] = $this->displayName;
if (isset($this->selfLink)) $o['selfLink'] = $this->selfLink;
if (isset($this->objectType)) $o['objectType'] = JsonConverters::to('ObjectTypes', $this->objectType);
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->sourceType)) $o['sourceType'] = JsonConverters::to('ObjectTypes', $this->sourceType);
if (isset($this->autoCollection)) $o['autoCollection'] = $this->autoCollection;
if (isset($this->autoCollectionQuery)) $o['autoCollectionQuery'] = $this->autoCollectionQuery;
if (isset($this->autoCollectionInterval)) $o['autoCollectionInterval'] = $this->autoCollectionInterval;
if (isset($this->autoCollectionIntervalUnit)) $o['autoCollectionIntervalUnit'] = JsonConverters::to('IntervalUnits', $this->autoCollectionIntervalUnit);
if (isset($this->autoCollectionTime)) $o['autoCollectionTime'] = JsonConverters::to('TimeOnly', $this->autoCollectionTime);
if (isset($this->lastAutoCollected)) $o['lastAutoCollected'] = JsonConverters::to('DateTime', $this->lastAutoCollected);
if (isset($this->retentionTimeMonths)) $o['retentionTimeMonths'] = $this->retentionTimeMonths;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
/**
* @template T
*/
class QueryResponse implements JsonSerializable
{
public array $genericArgs = [];
public static function create(array $genericArgs=[]): QueryResponse {
$to = new QueryResponse();
$to->genericArgs = $genericArgs;
return $to;
}
public function __construct(
// @DataMember(Order=1)
/** @var int */
public mixed $offset=0,
// @DataMember(Order=2)
/** @var int */
public mixed $total=0,
// @DataMember(Order=3)
/** @var array<TimeSeriesDefinition>|null */
public mixed $results=null,
// @DataMember(Order=4)
/** @var array<string,string>|null */
public mixed $meta=null,
// @DataMember(Order=5)
/** @var ResponseStatus|null */
public mixed $responseStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['offset'])) $this->offset = $o['offset'];
if (isset($o['total'])) $this->total = $o['total'];
if (isset($o['results'])) $this->results = JsonConverters::fromArray('TimeSeriesDefinition', $o['results']);
if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->offset)) $o['offset'] = $this->offset;
if (isset($this->total)) $o['total'] = $this->total;
if (isset($this->results)) $o['results'] = JsonConverters::toArray('TimeSeriesDefinition', $this->results);
if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/computenodes/ HTTP/1.1 Host: core.starburst.svc Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"offset":0,"total":0,"results":[{"objectType":"None","selfLink":"/computenodes/00000000-0000-0000-0000-000000000000","logicalCpus":0,"memoryMb":0,"model":"String","disks":null,"alias":null,"ipAddresses":null,"hostname":"String","fqdn":"String","dnsDomain":"String","operatingSystem":"String","operatingSystemVersion":"String","operatingSystemFamily":"String","isRebootPending":false,"supportsStartStop":false,"tenantId":"00000000-0000-0000-0000-000000000000","extId":"String","extType":"String","extName":"String","name":"String","parentId":"00000000-0000-0000-0000-000000000000","parent":{"shortId":"String","tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"ResourceGroup","selfLink":"/resourcegroups/00000000-0000-0000-0000-000000000000","environment":"Lab","state":"New","parentId":"00000000-0000-0000-0000-000000000000","parent":{"shortId":"String","tenantId":"00000000-0000-0000-0000-000000000000","name":"String","nameUserDefinedPart":"String","objectType":"Deployment","selfLink":"/deployments/00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Collection","selfLink":"/collections/00000000-0000-0000-0000-000000000000","variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"validFrom":"0001-01-01T00:00:00.0000000Z","validUntil":"0001-01-01T00:00:00.0000000Z","isNeverExpiring":false,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","defaultResourceProviderId":"00000000-0000-0000-0000-000000000000","needsAttention":false,"composition":"Native","monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"templateId":"00000000-0000-0000-0000-000000000000","parameters":null,"variables":null,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","composition":"Native","id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"deploymentId":"00000000-0000-0000-0000-000000000000","deployment":{"shortId":"String","tenantId":"00000000-0000-0000-0000-000000000000","name":"String","nameUserDefinedPart":"String","objectType":"Deployment","selfLink":"/deployments/00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Collection","selfLink":"/collections/00000000-0000-0000-0000-000000000000","variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"validFrom":"0001-01-01T00:00:00.0000000Z","validUntil":"0001-01-01T00:00:00.0000000Z","isNeverExpiring":false,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","defaultResourceProviderId":"00000000-0000-0000-0000-000000000000","needsAttention":false,"composition":"Native","monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"collectionId":"00000000-0000-0000-0000-000000000000","collection":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Collection","selfLink":"/collections/00000000-0000-0000-0000-000000000000","variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"resourceProviderId":"00000000-0000-0000-0000-000000000000","resourceProvider":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","defaultEnvironment":"Lab","allowedEnvironments":null,"objectType":"ResourceProvider","type":"Azure","selfLink":"/resourceproviders/00000000-0000-0000-0000-000000000000","config":null,"isDisabled":false,"isReadyForDeployments":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"state":"None","environment":"Lab","variables":null,"location":"String","lastSeen":"0001-01-01T00:00:00.0000000Z","lastPatchDate":"0001-01-01T00:00:00.0000000Z","nextPatchDate":"0001-01-01T00:00:00.0000000Z","lastBackupDate":"0001-01-01T00:00:00.0000000Z","isForeign":false,"isAlerting":false,"alertingDisabledId":"String","alertingDisabledReason":"String","isVulnerable":false,"vulnerabilityReason":"String","vulnerableSince":"0001-01-01T00:00:00.0000000Z","isMissingOnProvider":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","config":{"String":{}},"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}