CoreService

<back to all web services

GetIpAddress

IpAddress - CRUD

Get an ip address

Requires Authentication
Required role:TenantReader
The following routes are available for this service:
GET/api/ipaddresses/{Id}returns an ip address by its id
GET/ipaddresses/{Id}returns an ip address by its id
<?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};


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 TagDto 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 PathItemDto 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 LinkDto implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $caption='',
        /** @var string */
        public string $rel='',
        /** @var string */
        public string $hRef='',
        /** @var string */
        public string $method=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['caption'])) $this->caption = $o['caption'];
        if (isset($o['rel'])) $this->rel = $o['rel'];
        if (isset($o['hRef'])) $this->hRef = $o['hRef'];
        if (isset($o['method'])) $this->method = $o['method'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->caption)) $o['caption'] = $this->caption;
        if (isset($this->rel)) $o['rel'] = $this->rel;
        if (isset($this->hRef)) $o['hRef'] = $this->hRef;
        if (isset($this->method)) $o['method'] = $this->method;
        return empty($o) ? new class(){} : $o;
    }
}

class ConfigItemDto implements IConfigItem, JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $id='',
        /** @var string */
        public string $name='',
        /** @var string */
        public string $displayName='',
        /** @var string|null */
        public ?string $description=null,
        /** @var ObjectTypes|null */
        public ?ObjectTypes $objectType=null,
        /** @var string */
        public string $selfLink='',
        /** @var array<TagDto>|null */
        public ?array $tags=null,
        /** @var array<PathItemDto>|null */
        public ?array $path=null,
        /** @var DateTime */
        public DateTime $created=new DateTime(),
        /** @var string */
        public string $createUser='',
        /** @var string */
        public string $createUserId='',
        /** @var DateTime */
        public DateTime $modified=new DateTime(),
        /** @var string */
        public string $modifyUser='',
        /** @var string */
        public string $modifyUserId='',
        /** @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,
        /** @var array<LinkDto>|null */
        public ?array $links=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        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('TagDto', $o['tags']);
        if (isset($o['path'])) $this->path = JsonConverters::fromArray('PathItemDto', $o['path']);
        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'];
        if (isset($o['links'])) $this->links = JsonConverters::fromArray('LinkDto', $o['links']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        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('TagDto', $this->tags);
        if (isset($this->path)) $o['path'] = JsonConverters::toArray('PathItemDto', $this->path);
        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;
        if (isset($this->links)) $o['links'] = JsonConverters::toArray('LinkDto', $this->links);
        return empty($o) ? new class(){} : $o;
    }
}

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';
}

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 Environments : string
{
    case Lab = 'Lab';
    case Poc = 'Poc';
    case Dev = 'Dev';
    case Test = 'Test';
    case Int = 'Int';
    case Uat = 'Uat';
    case Prod = 'Prod';
}

enum ParameterValueType : string
{
    case String = 'String';
    case Number = 'Number';
    case Boolean = 'Boolean';
    case SecureString = 'SecureString';
}

class ParameterDto implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $name='',
        /** @var string|null */
        public ?string $description=null,
        /** @description Value in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false). Note: string values need extra quotes */
        /** @var string|null */
        public ?string $value=null,
        /** @description Optional default value for the frontend. Needs to be in the same format as the value */
        /** @var string|null */
        public ?string $default=null,
        /** @description Optional parameters do not need to have a value. Default -> Optional=false */
        /** @var bool|null */
        public ?bool $optional=null,
        /** @description The data type of the value and default property */
        /** @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 VariableDto implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $name='',
        /** @description Value in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false, List = [1,2,3,4]). Note: string values need extra quotes */
        /** @var string */
        public string $value='',
        /** @description The data type of the value property */
        /** @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;
    }
}

enum ResourceCompositions : string
{
    case Native = 'Native';
    case Foreign = 'Foreign';
    case Mixed = 'Mixed';
}

class DeploymentDto extends ConfigItemDto implements IHasParentDto, IHasTenantId, IEnvironmentSpecific, JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @description The operational state of the deployment (Running, Stopped, None, Unknown) */
        /** @var OperationalStates|null */
        public ?OperationalStates $operationalState=null,
        /** @description How many start/stop-capable resources are currently running */
        /** @var int */
        public int $resourcesRunning=0,
        /** @description Total number of start/stop-capable resources in this deployment */
        /** @var int */
        public int $resourcesTotal=0,
        /** @description Shorter id than the guid which can be used for automation (tenant wide unique) prefixed with a 'd'. E.g. dr36x3 */
        /** @var string */
        public string $shortId='',
        /** @description The user defined part of the name property {userDefined}_{environment} */
        /** @var string */
        public string $nameUserDefinedPart='',
        /** @description The id of the tenant */
        /** @var string */
        public string $tenantId='',
        /** @description The state of the deployment */
        /** @var LifecycleStates|null */
        public ?LifecycleStates $state=null,
        /** @description The environment the deployment is deployed in */
        /** @var Environments|null */
        public ?Environments $environment=null,
        /** @description The id of the template which was used to create the deployment */
        /** @var string|null */
        public ?string $templateId=null,
        /** @description Shows if a deployment was rolled out through a dune template or not */
        /** @var bool|null */
        public ?bool $isTemplateBased=null,
        /** @description The parameters which were used to create this deployment */
        /** @var array<ParameterDto>|null */
        public ?array $parameters=null,
        /** @description A deployment scoped list of variables used for deployment of resources */
        /** @var array<VariableDto>|null */
        public ?array $variables=null,
        /** @description A snapshot of the varialbs used to create the deployment */
        /** @var array<VariableDto>|null */
        public ?array $variablesSnapshot=null,
        /** @description The id of the parent (collection) of the deployment */
        /** @var string */
        public string $parentId='',
        /** @description The parent (collection) of the deployment */
        /** @var ConfigItemDto|null */
        public ?ConfigItemDto $parent=null,
        /** @description The Date when the resources got deployed */
        /** @var DateTime */
        public DateTime $validFrom=new DateTime(),
        /** @description The Date when the deployment expires and has to be reevaluated */
        /** @var DateTime|null */
        public ?DateTime $validUntil=null,
        /** @description The deployment will never expire */
        /** @var bool|null */
        public ?bool $isNeverExpiring=null,
        /** @description The date, when the deployments resources will receive updates */
        /** @var DateTime|null */
        public ?DateTime $nextPatchDate=null,
        /** @description The default resource provider where the resources are deployed */
        /** @var string */
        public string $defaultResourceProviderId='',
        /** @description Deployments which have issues in Jobs are marked with NeedsAttention */
        /** @var bool|null */
        public ?bool $needsAttention=null,
        /** @description Composition show if all resources in the deployment are dune native, dune foreign or a mix of both */
        /** @var ResourceCompositions|null */
        public ?ResourceCompositions $composition=null,
        /** @description The monthly cost budget for the whole collection */
        /** @var float|null */
        public ?float $monthlyBudget=null,
        /** @description Whether to send budget information mails to the collection owners */
        /** @var bool|null */
        public ?bool $sendBudgetNotificationMails=null,
        /** @description A threshold, when to send the first budget warning mail */
        /** @var int|null */
        public ?int $budgetWarningThresholdPercent=null
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        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'];
        if (isset($o['shortId'])) $this->shortId = $o['shortId'];
        if (isset($o['nameUserDefinedPart'])) $this->nameUserDefinedPart = $o['nameUserDefinedPart'];
        if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
        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['isTemplateBased'])) $this->isTemplateBased = $o['isTemplateBased'];
        if (isset($o['parameters'])) $this->parameters = JsonConverters::fromArray('ParameterDto', $o['parameters']);
        if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('VariableDto', $o['variables']);
        if (isset($o['variablesSnapshot'])) $this->variablesSnapshot = JsonConverters::fromArray('VariableDto', $o['variablesSnapshot']);
        if (isset($o['parentId'])) $this->parentId = $o['parentId'];
        if (isset($o['parent'])) $this->parent = JsonConverters::from('ConfigItemDto', $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['links'])) $this->links = JsonConverters::fromArray('LinkDto', $o['links']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        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;
        if (isset($this->shortId)) $o['shortId'] = $this->shortId;
        if (isset($this->nameUserDefinedPart)) $o['nameUserDefinedPart'] = $this->nameUserDefinedPart;
        if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
        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->isTemplateBased)) $o['isTemplateBased'] = $this->isTemplateBased;
        if (isset($this->parameters)) $o['parameters'] = JsonConverters::toArray('ParameterDto', $this->parameters);
        if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('VariableDto', $this->variables);
        if (isset($this->variablesSnapshot)) $o['variablesSnapshot'] = JsonConverters::toArray('VariableDto', $this->variablesSnapshot);
        if (isset($this->parentId)) $o['parentId'] = $this->parentId;
        if (isset($this->parent)) $o['parent'] = JsonConverters::to('ConfigItemDto', $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->links)) $o['links'] = JsonConverters::toArray('LinkDto', $this->links);
        return empty($o) ? new class(){} : $o;
    }
}

class TenantDto extends ConfigItemDto implements JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @description Variables defined on tenant level */
        /** @var array<VariableDto>|null */
        public ?array $variables=null,
        /** @description Allowed email domains used for authentication */
        /** @var array<string>|null */
        public ?array $allowedMailDomains=null,
        /** @description List of licensed modules for this tenant */
        /** @var array<string>|null */
        public ?array $licensedModules=null,
        /** @description Amount of days until a Deployment expires */
        /** @var int */
        public int $defaultDeploymentLifetimeDays=0,
        /** @description Max amount of days until a Deployment expires */
        /** @var int */
        public int $maxDeploymentLifetimeDays=0,
        /** @description Amount of days without patching until a unpatched warning is shown */
        /** @var int */
        public int $systemUnpatchedWarningDays=0,
        /** @description Amount of hours without backup until a backup missing warning is shown */
        /** @var int */
        public int $systemBackupMissingWarningHours=0,
        /** @description Amount of days until a vulnerable resource is getting stopped */
        /** @var int */
        public int $stopVulnerableResourceAfterDays=0,
        /** @description Amount of days before deployment expiration, which triggers the expiration warning */
        /** @var int */
        public int $deploymentExpirationWarningDays=0,
        /** @description Amount of days the patch notification is sent out prior to the patch date */
        /** @var int */
        public int $patchNotificationDays=0,
        /** @description Use a pool with your own hostnames (true) or let the hostname be auto generated (false) */
        /** @var bool|null */
        public ?bool $useCustomHostnames=null,
        /** @description After how many days inactive vulnerabilities will be purged from database */
        /** @var int */
        public int $removeInactiveVulnerabilitiesAfterDays=0
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('VariableDto', $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'];
        if (isset($o['links'])) $this->links = JsonConverters::fromArray('LinkDto', $o['links']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('VariableDto', $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;
        if (isset($this->links)) $o['links'] = JsonConverters::toArray('LinkDto', $this->links);
        return empty($o) ? new class(){} : $o;
    }
}

class DeploymentCollectionDto extends ConfigItemDto implements IHasTenantId, JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @var string */
        public string $tenantId='',
        /** @var TenantDto|null */
        public ?TenantDto $tenant=null,
        /** @description A collection scoped list of variables */
        /** @var array<VariableDto>|null */
        public ?array $variables=null,
        /** @description Defines the collection where scanned but not deployed resources will be stored */
        /** @var bool|null */
        public ?bool $isLostAndFound=null,
        /** @description The monthly cost budget for the whole collection */
        /** @var float|null */
        public ?float $monthlyBudget=null,
        /** @description Whether to send budget information mails to the collection owners */
        /** @var bool|null */
        public ?bool $sendBudgetNotificationMails=null,
        /** @description A threshold, when to send the first budget warning mail */
        /** @var int|null */
        public ?int $budgetWarningThresholdPercent=null
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
        if (isset($o['tenant'])) $this->tenant = JsonConverters::from('TenantDto', $o['tenant']);
        if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('VariableDto', $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'];
        if (isset($o['links'])) $this->links = JsonConverters::fromArray('LinkDto', $o['links']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->tenantId)) $o['tenantId'] = $this->tenantId;
        if (isset($this->tenant)) $o['tenant'] = JsonConverters::to('TenantDto', $this->tenant);
        if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('VariableDto', $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;
        if (isset($this->links)) $o['links'] = JsonConverters::toArray('LinkDto', $this->links);
        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 ProviderConfigEntryDto 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 ResourceProviderDto extends ConfigItemDto implements IHasTenantId, JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @var string */
        public string $tenantId='',
        /** @description If environment cannot be detected while scanning, default environment will be used */
        /** @var Environments|null */
        public ?Environments $defaultEnvironment=null,
        /** @description List off all allowed environments for this resource provider */
        /** @var array<Environments>|null */
        public ?array $allowedEnvironments=null,
        /** @description Defines the provider type (e.g. Azure, Aws) */
        /** @var ResourceProviderTypes|null */
        public ?ResourceProviderTypes $type=null,
        /** @description Additional generic data which varies depending on ProviderType */
        /** @var array<ProviderConfigEntryDto>|null */
        public ?array $config=null,
        /** @description Disabled ResourceProviders cannot be selected for new deployments */
        /** @var bool|null */
        public ?bool $isDisabled=null,
        /** @description Shows if a ResourceProvider has been initialized and can accept deployments (resources) */
        /** @var bool|null */
        public ?bool $isReadyForDeployments=null,
        /** @description The cost for the current month */
        /** @var float */
        public float $costCurrentMonth=0.0,
        /** @description The cost for the last month */
        /** @var float */
        public float $costLastMonth=0.0,
        /** @description The cost currency */
        /** @var string */
        public string $costCurrency=''
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['tenantId'])) $this->tenantId = $o['tenantId'];
        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['type'])) $this->type = JsonConverters::from('ResourceProviderTypes', $o['type']);
        if (isset($o['config'])) $this->config = JsonConverters::fromArray('ProviderConfigEntryDto', $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->defaultEnvironment)) $o['defaultEnvironment'] = JsonConverters::to('Environments', $this->defaultEnvironment);
        if (isset($this->allowedEnvironments)) $o['allowedEnvironments'] = JsonConverters::toArray('Environments', $this->allowedEnvironments);
        if (isset($this->type)) $o['type'] = JsonConverters::to('ResourceProviderTypes', $this->type);
        if (isset($this->config)) $o['config'] = JsonConverters::toArray('ProviderConfigEntryDto', $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 ResourceDto extends ConfigItemDto implements IResourceDto, JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @description Free text field to store an external resource id */
        /** @var string|null */
        public ?string $extId=null,
        /** @description Free text field to store an external resource type */
        /** @var string|null */
        public ?string $extType=null,
        /** @description Free text field to store an external resource name */
        /** @var string|null */
        public ?string $extName=null,
        /** @description The id of the tenant */
        /** @var string */
        public string $tenantId='',
        /** @description The id of the parent (ResourceGroup) */
        /** @var string */
        public string $parentId='',
        /** @description The parent (ResourceGroup */
        /** @var ConfigItemDto|null */
        public ?ConfigItemDto $parent=null,
        /** @description The id of the parent (Deployment */
        /** @var string */
        public string $deploymentId='',
        /** @description The parent (Deployement */
        /** @var DeploymentDto|null */
        public ?DeploymentDto $deployment=null,
        /** @description The id of the collection the resource belongs to */
        /** @var string */
        public string $collectionId='',
        /** @description The collection the resource belongs to */
        /** @var DeploymentCollectionDto|null */
        public ?DeploymentCollectionDto $collection=null,
        /** @description The environment the resourcegroup is deployed in */
        /** @var Environments|null */
        public ?Environments $environment=null,
        /** @description The id of the provider of the resource (e.g. Azure, AWS, other DC provider */
        /** @var string */
        public string $resourceProviderId='',
        /** @description The provider of the resource (e.g. Azure, AWS, other DC provider */
        /** @var ResourceProviderDto|null */
        public ?ResourceProviderDto $resourceProvider=null,
        /** @description State of the resource */
        /** @var OperationalStates|null */
        public ?OperationalStates $state=null,
        /** @var array<VariableDto>|null */
        public ?array $variables=null,
        /** @description Can be used for dc location */
        /** @var string|null */
        public ?string $location=null,
        /** @description Last time the resource was seen/updated by a scan/cfgmgmt run etc. */
        /** @var DateTime|null */
        public ?DateTime $lastSeen=null,
        /** @description Last time the resource has been patched successfully */
        /** @var DateTime|null */
        public ?DateTime $lastPatchDate=null,
        /** @description Scheduled time for the next patching window */
        /** @var DateTime|null */
        public ?DateTime $nextPatchDate=null,
        /** @description Time of the last successfull backup */
        /** @var DateTime|null */
        public ?DateTime $lastBackupDate=null,
        /** @description True = scanned (not deployed from dune template), False = deployed from dune with template */
        /** @var bool|null */
        public ?bool $isForeign=null,
        /** @description Is alerting in external monitoring activated */
        /** @var bool|null */
        public ?bool $isAlerting=null,
        /** @description Used to identify external monitoring maintenance/downtime id */
        /** @var string|null */
        public ?string $alertingDisabledId=null,
        /** @description Reason why alerting is disabled */
        /** @var string|null */
        public ?string $alertingDisabledReason=null,
        /** @description Identifies the resource as vulnerable (security) */
        /** @var bool|null */
        public ?bool $isVulnerable=null,
        /** @description Reason why the resource is vulnerable */
        /** @var string|null */
        public ?string $vulnerabilityReason=null,
        /** @description True if resource is in cmdb but missing on provider/infra */
        /** @var bool|null */
        public ?bool $isMissingOnProvider=null,
        /** @description Shows if a resource can be started/stopped */
        /** @var bool|null */
        public ?bool $supportsStartStop=null,
        /** @description The cost for the current month */
        /** @var float */
        public float $costCurrentMonth=0.0,
        /** @description The cost for the last month */
        /** @var float */
        public float $costLastMonth=0.0,
        /** @description The cost currency */
        /** @var string */
        public string $costCurrency='',
        /** @description Additional generic configs */
        /** @var array<string,Object>|null */
        public ?array $config=null
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        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['tenantId'])) $this->tenantId = $o['tenantId'];
        if (isset($o['parentId'])) $this->parentId = $o['parentId'];
        if (isset($o['parent'])) $this->parent = JsonConverters::from('ConfigItemDto', $o['parent']);
        if (isset($o['deploymentId'])) $this->deploymentId = $o['deploymentId'];
        if (isset($o['deployment'])) $this->deployment = JsonConverters::from('DeploymentDto', $o['deployment']);
        if (isset($o['collectionId'])) $this->collectionId = $o['collectionId'];
        if (isset($o['collection'])) $this->collection = JsonConverters::from('DeploymentCollectionDto', $o['collection']);
        if (isset($o['environment'])) $this->environment = JsonConverters::from('Environments', $o['environment']);
        if (isset($o['resourceProviderId'])) $this->resourceProviderId = $o['resourceProviderId'];
        if (isset($o['resourceProvider'])) $this->resourceProvider = JsonConverters::from('ResourceProviderDto', $o['resourceProvider']);
        if (isset($o['state'])) $this->state = JsonConverters::from('OperationalStates', $o['state']);
        if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('VariableDto', $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['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']);
        if (isset($o['links'])) $this->links = JsonConverters::fromArray('LinkDto', $o['links']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        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->tenantId)) $o['tenantId'] = $this->tenantId;
        if (isset($this->parentId)) $o['parentId'] = $this->parentId;
        if (isset($this->parent)) $o['parent'] = JsonConverters::to('ConfigItemDto', $this->parent);
        if (isset($this->deploymentId)) $o['deploymentId'] = $this->deploymentId;
        if (isset($this->deployment)) $o['deployment'] = JsonConverters::to('DeploymentDto', $this->deployment);
        if (isset($this->collectionId)) $o['collectionId'] = $this->collectionId;
        if (isset($this->collection)) $o['collection'] = JsonConverters::to('DeploymentCollectionDto', $this->collection);
        if (isset($this->environment)) $o['environment'] = JsonConverters::to('Environments', $this->environment);
        if (isset($this->resourceProviderId)) $o['resourceProviderId'] = $this->resourceProviderId;
        if (isset($this->resourceProvider)) $o['resourceProvider'] = JsonConverters::to('ResourceProviderDto', $this->resourceProvider);
        if (isset($this->state)) $o['state'] = JsonConverters::to('OperationalStates', $this->state);
        if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('VariableDto', $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->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);
        if (isset($this->links)) $o['links'] = JsonConverters::toArray('LinkDto', $this->links);
        return empty($o) ? new class(){} : $o;
    }
}

enum IpVersion : string
{
    case V4 = 'V4';
    case V6 = 'V6';
}

class SubnetDto extends ConfigItemDto implements IResourceDto, JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @var string */
        public string $tenantId='',
        /** @var string|null */
        public ?string $extId=null,
        /** @var string|null */
        public ?string $extType=null,
        /** @var string|null */
        public ?string $extName=null,
        /** @description The id of the parent (ResourceGroup) */
        /** @var string */
        public string $parentId='',
        /** @description The parent (ResourceGroup */
        /** @var ConfigItemDto|null */
        public ?ConfigItemDto $parent=null,
        /** @description The id of the parent (Deployment */
        /** @var string */
        public string $deploymentId='',
        /** @description The parent (Deployement */
        /** @var DeploymentDto|null */
        public ?DeploymentDto $deployment=null,
        /** @description The id of the collection the resource belongs to */
        /** @var string */
        public string $collectionId='',
        /** @description The collection the resource belongs to */
        /** @var DeploymentCollectionDto|null */
        public ?DeploymentCollectionDto $collection=null,
        /** @var Environments|null */
        public ?Environments $environment=null,
        /** @description The id of the provider of the resource (e.g. Azure Subscription, AWS, other DC provider */
        /** @var string */
        public string $resourceProviderId='',
        /** @description The provider of the resource (e.g. Azure Subscription, AWS, other DC provider */
        /** @var ResourceProviderDto|null */
        public ?ResourceProviderDto $resourceProvider=null,
        /** @var OperationalStates|null */
        public ?OperationalStates $state=null,
        /** @var array<VariableDto>|null */
        public ?array $variables=null,
        /** @description Can be used for dc location */
        /** @var string|null */
        public ?string $location=null,
        /** @description Last time the resource was seen/updated by a scan/cfgmgmt run etc. */
        /** @var DateTime|null */
        public ?DateTime $lastSeen=null,
        /** @description True = scanned (not deployed from dune template), False = deployed from dune with template */
        /** @var bool|null */
        public ?bool $isForeign=null,
        /** @description Either a V4 or V6 address (network address) */
        /** @var string */
        public string $networkAddress='',
        /** @description Bits defining the subnet mask (together with NetworkAddress it defines the subnet range) */
        /** @var int */
        public int $subnetBits=0,
        /** @description NetworkAddress and subnet bits */
        /** @var string */
        public string $cidr='',
        /** @description Either V4 or V6 */
        /** @var IpVersion|null */
        public ?IpVersion $version=null,
        /** @description Can hold additional generic data */
        /** @var array<string,Object>|null */
        public ?array $config=null,
        /** @description Is alerting in external monitoring activated */
        /** @var bool|null */
        public ?bool $isAlerting=null,
        /** @description Used to identify external monitoring maintenance/downtime id */
        /** @var string|null */
        public ?string $alertingDisabledId=null,
        /** @description Reason why alerting is disabled */
        /** @var string|null */
        public ?string $alertingDisabledReason=null,
        /** @description Identifies the resource as vulnerable (security) */
        /** @var bool|null */
        public ?bool $isVulnerable=null,
        /** @description Reason why the resource is vulnerable */
        /** @var string|null */
        public ?string $vulnerabilityReason=null,
        /** @description True if resource is in cmdb but missing on provider/infra */
        /** @var bool|null */
        public ?bool $isMissingOnProvider=null,
        /** @description Shows if a resource can be started/stopped */
        /** @var bool|null */
        public ?bool $supportsStartStop=null,
        /** @description The cost for the current month */
        /** @var float */
        public float $costCurrentMonth=0.0,
        /** @description The cost for the last month */
        /** @var float */
        public float $costLastMonth=0.0,
        /** @description The cost currency */
        /** @var string */
        public string $costCurrency=''
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @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['parentId'])) $this->parentId = $o['parentId'];
        if (isset($o['parent'])) $this->parent = JsonConverters::from('ConfigItemDto', $o['parent']);
        if (isset($o['deploymentId'])) $this->deploymentId = $o['deploymentId'];
        if (isset($o['deployment'])) $this->deployment = JsonConverters::from('DeploymentDto', $o['deployment']);
        if (isset($o['collectionId'])) $this->collectionId = $o['collectionId'];
        if (isset($o['collection'])) $this->collection = JsonConverters::from('DeploymentCollectionDto', $o['collection']);
        if (isset($o['environment'])) $this->environment = JsonConverters::from('Environments', $o['environment']);
        if (isset($o['resourceProviderId'])) $this->resourceProviderId = $o['resourceProviderId'];
        if (isset($o['resourceProvider'])) $this->resourceProvider = JsonConverters::from('ResourceProviderDto', $o['resourceProvider']);
        if (isset($o['state'])) $this->state = JsonConverters::from('OperationalStates', $o['state']);
        if (isset($o['variables'])) $this->variables = JsonConverters::fromArray('VariableDto', $o['variables']);
        if (isset($o['location'])) $this->location = $o['location'];
        if (isset($o['lastSeen'])) $this->lastSeen = JsonConverters::from('DateTime', $o['lastSeen']);
        if (isset($o['isForeign'])) $this->isForeign = $o['isForeign'];
        if (isset($o['networkAddress'])) $this->networkAddress = $o['networkAddress'];
        if (isset($o['subnetBits'])) $this->subnetBits = $o['subnetBits'];
        if (isset($o['cidr'])) $this->cidr = $o['cidr'];
        if (isset($o['version'])) $this->version = JsonConverters::from('IpVersion', $o['version']);
        if (isset($o['config'])) $this->config = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','Object']), $o['config']);
        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['isMissingOnProvider'])) $this->isMissingOnProvider = $o['isMissingOnProvider'];
        if (isset($o['supportsStartStop'])) $this->supportsStartStop = $o['supportsStartStop'];
        if (isset($o['links'])) $this->links = JsonConverters::fromArray('LinkDto', $o['links']);
        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->extId)) $o['extId'] = $this->extId;
        if (isset($this->extType)) $o['extType'] = $this->extType;
        if (isset($this->extName)) $o['extName'] = $this->extName;
        if (isset($this->parentId)) $o['parentId'] = $this->parentId;
        if (isset($this->parent)) $o['parent'] = JsonConverters::to('ConfigItemDto', $this->parent);
        if (isset($this->deploymentId)) $o['deploymentId'] = $this->deploymentId;
        if (isset($this->deployment)) $o['deployment'] = JsonConverters::to('DeploymentDto', $this->deployment);
        if (isset($this->collectionId)) $o['collectionId'] = $this->collectionId;
        if (isset($this->collection)) $o['collection'] = JsonConverters::to('DeploymentCollectionDto', $this->collection);
        if (isset($this->environment)) $o['environment'] = JsonConverters::to('Environments', $this->environment);
        if (isset($this->resourceProviderId)) $o['resourceProviderId'] = $this->resourceProviderId;
        if (isset($this->resourceProvider)) $o['resourceProvider'] = JsonConverters::to('ResourceProviderDto', $this->resourceProvider);
        if (isset($this->state)) $o['state'] = JsonConverters::to('OperationalStates', $this->state);
        if (isset($this->variables)) $o['variables'] = JsonConverters::toArray('VariableDto', $this->variables);
        if (isset($this->location)) $o['location'] = $this->location;
        if (isset($this->lastSeen)) $o['lastSeen'] = JsonConverters::to('DateTime', $this->lastSeen);
        if (isset($this->isForeign)) $o['isForeign'] = $this->isForeign;
        if (isset($this->networkAddress)) $o['networkAddress'] = $this->networkAddress;
        if (isset($this->subnetBits)) $o['subnetBits'] = $this->subnetBits;
        if (isset($this->cidr)) $o['cidr'] = $this->cidr;
        if (isset($this->version)) $o['version'] = JsonConverters::to('IpVersion', $this->version);
        if (isset($this->config)) $o['config'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','Object']), $this->config);
        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->isMissingOnProvider)) $o['isMissingOnProvider'] = $this->isMissingOnProvider;
        if (isset($this->supportsStartStop)) $o['supportsStartStop'] = $this->supportsStartStop;
        if (isset($this->links)) $o['links'] = JsonConverters::toArray('LinkDto', $this->links);
        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 IpAddressDto extends ConfigItemDto implements IHasTenantId, JsonSerializable
{
    /**
     * @param string $id
     * @param string $name
     * @param string $displayName
     * @param string|null $description
     * @param ObjectTypes|null $objectType
     * @param string $selfLink
     * @param array<TagDto>|null $tags
     * @param array<PathItemDto>|null $path
     * @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 array<LinkDto>|null $links
     */
    public function __construct(
        string $id='',
        string $name='',
        string $displayName='',
        ?string $description=null,
        ?ObjectTypes $objectType=null,
        string $selfLink='',
        ?array $tags=null,
        ?array $path=null,
        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,
        ?array $links=null,
        /** @var string */
        public string $tenantId='',
        /** @var string|null */
        public ?string $extId=null,
        /** @var string */
        public string $resourceId='',
        /** @var ResourceDto|null */
        public ?ResourceDto $resource=null,
        /** @var string|null */
        public ?string $subnetId=null,
        /** @var SubnetDto|null */
        public ?SubnetDto $subnet=null,
        /** @description Either a V4 or V6 address */
        /** @var string */
        public string $address='',
        /** @description Bits defining the subnet mask */
        /** @var int|null */
        public ?int $subnetBits=null,
        /** @description Address and subnet bits */
        /** @var string */
        public string $cidr='',
        /** @var bool|null */
        public ?bool $isPrimary=null,
        /** @var IpVersion|null */
        public ?IpVersion $version=null,
        /** @var string|null */
        public ?string $resourceProviderId=null
    ) {
        parent::__construct($id,$name,$displayName,$description,$objectType,$selfLink,$tags,$path,$created,$createUser,$createUserId,$modified,$modifyUser,$modifyUserId,$isDeleted,$deleted,$deleteUser,$deleteUserId,$links);
    }

    /** @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['resourceId'])) $this->resourceId = $o['resourceId'];
        if (isset($o['resource'])) $this->resource = JsonConverters::from('ResourceDto', $o['resource']);
        if (isset($o['subnetId'])) $this->subnetId = $o['subnetId'];
        if (isset($o['subnet'])) $this->subnet = JsonConverters::from('SubnetDto', $o['subnet']);
        if (isset($o['address'])) $this->address = $o['address'];
        if (isset($o['subnetBits'])) $this->subnetBits = $o['subnetBits'];
        if (isset($o['cidr'])) $this->cidr = $o['cidr'];
        if (isset($o['isPrimary'])) $this->isPrimary = $o['isPrimary'];
        if (isset($o['version'])) $this->version = JsonConverters::from('IpVersion', $o['version']);
        if (isset($o['resourceProviderId'])) $this->resourceProviderId = $o['resourceProviderId'];
    }
    
    /** @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->resourceId)) $o['resourceId'] = $this->resourceId;
        if (isset($this->resource)) $o['resource'] = JsonConverters::to('ResourceDto', $this->resource);
        if (isset($this->subnetId)) $o['subnetId'] = $this->subnetId;
        if (isset($this->subnet)) $o['subnet'] = JsonConverters::to('SubnetDto', $this->subnet);
        if (isset($this->address)) $o['address'] = $this->address;
        if (isset($this->subnetBits)) $o['subnetBits'] = $this->subnetBits;
        if (isset($this->cidr)) $o['cidr'] = $this->cidr;
        if (isset($this->isPrimary)) $o['isPrimary'] = $this->isPrimary;
        if (isset($this->version)) $o['version'] = JsonConverters::to('IpVersion', $this->version);
        if (isset($this->resourceProviderId)) $o['resourceProviderId'] = $this->resourceProviderId;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Get an ip address */
// @Api(Description="Get an ip address")
// @ApiResponse(Description="The request ended successfully", IsDefaultResponse=true, ResponseType="typeof(CoreService.ServiceModel.Dtos.Resources.Network.Responses.IpAddressDto)", StatusCode=200)
class GetIpAddress implements IGetSingleRequest, IHasTenantName, IGet, JsonSerializable
{
    public function __construct(
        // @ApiMember(DataType="string", Format="guid", IsRequired=true, ParameterType="path")
        /** @var string */
        public string $id='',

        // @ApiMember(DataType="string", IsRequired=true, ParameterType="header")
        // @Validate(Validator="NotEmpty")
        /** @var string */
        public string $tenantName='',

        /** @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,

        // @ApiMember(ParameterType="query", Verb="GET")
        /** @var bool|null */
        public ?bool $includeReferencedObjects=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['tenantName'])) $this->tenantName = $o['tenantName'];
        if (isset($o['includeDeleted'])) $this->includeDeleted = $o['includeDeleted'];
        if (isset($o['includeReferencedObjects'])) $this->includeReferencedObjects = $o['includeReferencedObjects'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->tenantName)) $o['tenantName'] = $this->tenantName;
        if (isset($this->includeDeleted)) $o['includeDeleted'] = $this->includeDeleted;
        if (isset($this->includeReferencedObjects)) $o['includeReferencedObjects'] = $this->includeReferencedObjects;
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetIpAddress DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/ipaddresses/{Id} HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"tenantId":"00000000-0000-0000-0000-000000000000","extId":"String","resourceId":"00000000-0000-0000-0000-000000000000","resource":{"extId":"String","extType":"String","extName":"String","tenantId":"00000000-0000-0000-0000-000000000000","parentId":"00000000-0000-0000-0000-000000000000","parent":{"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null},"deploymentId":"00000000-0000-0000-0000-000000000000","deployment":{"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"shortId":"String","nameUserDefinedPart":"String","tenantId":"00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","isTemplateBased":true,"parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null},"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,"links":[{"caption":"Index","rel":"index","hRef":"/deployments/","method":"GET"},{"caption":"Collection","rel":"up","hRef":"/collections/00000000-0000-0000-0000-000000000000","method":"GET"},{"caption":"Resourcegroups","rel":"down","hRef":"/resourcegroups?parentId=00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","tenant":{"variables":null,"allowedMailDomains":null,"licensedModules":null,"defaultDeploymentLifetimeDays":0,"maxDeploymentLifetimeDays":0,"systemUnpatchedWarningDays":0,"systemBackupMissingWarningHours":0,"stopVulnerableResourceAfterDays":0,"deploymentExpirationWarningDays":0,"patchNotificationDays":0,"useCustomHostnames":false,"removeInactiveVulnerabilitiesAfterDays":0,"links":[{"caption":"Collections","rel":"down","hRef":"/collections/","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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"},"variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"links":[{"caption":"Index","rel":"up","hRef":"/collections/","method":"GET"},{"caption":"Deployments","rel":"down","hRef":"/deployments?parentId=00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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"},"environment":"Lab","resourceProviderId":"00000000-0000-0000-0000-000000000000","resourceProvider":{"tenantId":"00000000-0000-0000-0000-000000000000","defaultEnvironment":"Lab","allowedEnvironments":null,"type":"Azure","config":null,"isDisabled":false,"isReadyForDeployments":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null},"state":"None","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","isMissingOnProvider":false,"supportsStartStop":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","config":{"String":{}},"links":[{"caption":"Index","rel":"index","hRef":"/resources/","method":"GET"},{"caption":"ResourceGroup","rel":"up","hRef":"/resourcegroups/00000000-0000-0000-0000-000000000000","method":"GET"},{"caption":"Deployment","rel":"up","hRef":"/deployments/00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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"},"subnetId":"00000000-0000-0000-0000-000000000000","subnet":{"tenantId":"00000000-0000-0000-0000-000000000000","extId":"String","extType":"String","extName":"String","parentId":"00000000-0000-0000-0000-000000000000","parent":{"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null},"deploymentId":"00000000-0000-0000-0000-000000000000","deployment":{"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"shortId":"String","nameUserDefinedPart":"String","tenantId":"00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","isTemplateBased":true,"parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null},"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,"links":[{"caption":"Index","rel":"index","hRef":"/deployments/","method":"GET"},{"caption":"Collection","rel":"up","hRef":"/collections/00000000-0000-0000-0000-000000000000","method":"GET"},{"caption":"Resourcegroups","rel":"down","hRef":"/resourcegroups?parentId=00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","tenant":{"variables":null,"allowedMailDomains":null,"licensedModules":null,"defaultDeploymentLifetimeDays":0,"maxDeploymentLifetimeDays":0,"systemUnpatchedWarningDays":0,"systemBackupMissingWarningHours":0,"stopVulnerableResourceAfterDays":0,"deploymentExpirationWarningDays":0,"patchNotificationDays":0,"useCustomHostnames":false,"removeInactiveVulnerabilitiesAfterDays":0,"links":[{"caption":"Collections","rel":"down","hRef":"/collections/","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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"},"variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"links":[{"caption":"Index","rel":"up","hRef":"/collections/","method":"GET"},{"caption":"Deployments","rel":"down","hRef":"/deployments?parentId=00000000-0000-0000-0000-000000000000","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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"},"environment":"Lab","resourceProviderId":"00000000-0000-0000-0000-000000000000","resourceProvider":{"tenantId":"00000000-0000-0000-0000-000000000000","defaultEnvironment":"Lab","allowedEnvironments":null,"type":"Azure","config":null,"isDisabled":false,"isReadyForDeployments":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null},"state":"None","variables":null,"location":"String","lastSeen":"0001-01-01T00:00:00.0000000Z","isForeign":false,"networkAddress":"String","subnetBits":0,"cidr":"String/0","version":"V4","config":{"String":{}},"isAlerting":false,"alertingDisabledId":"String","alertingDisabledReason":"String","isVulnerable":false,"vulnerabilityReason":"String","isMissingOnProvider":false,"supportsStartStop":false,"links":[{"caption":"Index","rel":"index","hRef":"/subnets/","method":"GET"},{"caption":"ResourceGroup","rel":"up","hRef":"/resourcegroups/00000000-0000-0000-0000-000000000000","method":"GET"},{"caption":"Deployment","rel":"up","hRef":"/deployments/00000000-0000-0000-0000-000000000000","method":"GET"}],"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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"},"address":"String","subnetBits":0,"cidr":"String/0","isPrimary":false,"version":"V4","resourceProviderId":"00000000-0000-0000-0000-000000000000","id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"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","links":null}