CoreService

<back to all web services

GetPatchingWindowAssignment

Patching - CRUD

Returns a single patching window assignment by its id

Requires Authentication
Requires the role:TenantReader
The following routes are available for this service:
GET/api/patching/windows/assignments/{Id}Returns a single patching window assignment by its id
GET/patching/windows/assignments/{Id}Returns a single patching window assignment by its id
import 'package:servicestack/servicestack.dart';

enum ObjectTypes
{
    None,
    ConfigItem,
    Tenant,
    Collection,
    Resource,
    ComputeNode,
    VirtualMachine,
    PhysicalMachine,
    Disk,
    Subnet,
    IPAddress,
    Job,
    JobEvent,
    FreezePeriod,
    ResourceGroup,
    Deployment,
    ResourceGroupTemplate,
    DeploymentTemplate,
    ResourceProvider,
    GenericResource,
    Role,
    Permission,
    User,
    PatchingWindow,
    Update,
    ReportDefinition,
    TimeSeries,
    DataPoint,
    Action,
    ActionAssignment,
    UserNote,
}

class TagDto implements IConvertible
{
    String name = "";
    String? value;
    bool isProtected;

    TagDto({this.name,this.value,this.isProtected});
    TagDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        value = json['value'];
        isProtected = json['isProtected'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'value': value,
        'isProtected': isProtected
    };

    getTypeName() => "TagDto";
    TypeContext? context = _ctx;
}

class PathItemDto implements IConvertible
{
    String label = "";
    String link = "";
    ObjectTypes objectType;
    String objectId = "";

    PathItemDto({this.label,this.link,this.objectType,this.objectId});
    PathItemDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        label = json['label'];
        link = json['link'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        objectId = json['objectId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'label': label,
        'link': link,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'objectId': objectId
    };

    getTypeName() => "PathItemDto";
    TypeContext? context = _ctx;
}

class LinkDto implements IConvertible
{
    String caption = "";
    String rel = "";
    String hRef = "";
    String method = "";

    LinkDto({this.caption,this.rel,this.hRef,this.method});
    LinkDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        caption = json['caption'];
        rel = json['rel'];
        hRef = json['hRef'];
        method = json['method'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'caption': caption,
        'rel': rel,
        'hRef': hRef,
        'method': method
    };

    getTypeName() => "LinkDto";
    TypeContext? context = _ctx;
}

class ConfigItemDto implements IConfigItem, IConvertible
{
    String id = "";
    String name = "";
    String displayName = "";
    String? description;
    ObjectTypes objectType;
    String selfLink = "";
    List<TagDto>? tags;
    List<PathItemDto>? path;
    DateTime created = DateTime(0);
    String createUser = "";
    String createUserId = "";
    DateTime modified = DateTime(0);
    String modifyUser = "";
    String modifyUserId = "";
    bool isDeleted;
    DateTime? deleted;
    String? deleteUser;
    String? deleteUserId;
    List<LinkDto>? links;

    ConfigItemDto({this.id,this.name,this.displayName,this.description,this.objectType,this.selfLink,this.tags,this.path,this.created,this.createUser,this.createUserId,this.modified,this.modifyUser,this.modifyUserId,this.isDeleted,this.deleted,this.deleteUser,this.deleteUserId,this.links});
    ConfigItemDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        displayName = json['displayName'];
        description = json['description'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        selfLink = json['selfLink'];
        tags = JsonConverters.fromJson(json['tags'],'List<TagDto>',context!);
        path = JsonConverters.fromJson(json['path'],'List<PathItemDto>',context!);
        created = JsonConverters.fromJson(json['created'],'DateTime',context!);
        createUser = json['createUser'];
        createUserId = json['createUserId'];
        modified = JsonConverters.fromJson(json['modified'],'DateTime',context!);
        modifyUser = json['modifyUser'];
        modifyUserId = json['modifyUserId'];
        isDeleted = json['isDeleted'];
        deleted = JsonConverters.fromJson(json['deleted'],'DateTime',context!);
        deleteUser = json['deleteUser'];
        deleteUserId = json['deleteUserId'];
        links = JsonConverters.fromJson(json['links'],'List<LinkDto>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'displayName': displayName,
        'description': description,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'tags': JsonConverters.toJson(tags,'List<TagDto>',context!),
        'path': JsonConverters.toJson(path,'List<PathItemDto>',context!),
        'created': JsonConverters.toJson(created,'DateTime',context!),
        'createUser': createUser,
        'createUserId': createUserId,
        'modified': JsonConverters.toJson(modified,'DateTime',context!),
        'modifyUser': modifyUser,
        'modifyUserId': modifyUserId,
        'isDeleted': isDeleted,
        'deleted': JsonConverters.toJson(deleted,'DateTime',context!),
        'deleteUser': deleteUser,
        'deleteUserId': deleteUserId,
        'links': JsonConverters.toJson(links,'List<LinkDto>',context!)
    };

    getTypeName() => "ConfigItemDto";
    TypeContext? context = _ctx;
}

enum OperationalStates
{
    None,
    Starting,
    Running,
    Stopping,
    Stopped,
    Restarting,
    Deleting,
    Unknown,
}

enum LifecycleStates
{
    New,
    Deploying,
    Deployed,
    Removing,
    Removed,
    Failure,
    Imported,
}

enum Environments
{
    Lab,
    Poc,
    Dev,
    Test,
    Int,
    Uat,
    Prod,
}

enum ParameterValueType
{
    String,
    Number,
    Boolean,
    SecureString,
}

class ParameterDto implements IConvertible
{
    String name = "";
    String? description;
    /**
    * Value in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false). Note: string values need extra quotes
    */
    String? value;
    /**
    * Optional default value for the frontend. Needs to be in the same format as the value
    */
    String? Default;
    /**
    * Optional parameters do not need to have a value. Default -> Optional=false
    */
    bool optional;
    /**
    * The data type of the value and default property
    */
    ParameterValueType type;
    String? validation;

    ParameterDto({this.name,this.description,this.value,this.Default,this.optional,this.type,this.validation});
    ParameterDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        description = json['description'];
        value = json['value'];
        Default = json['default'];
        optional = json['optional'];
        type = JsonConverters.fromJson(json['type'],'ParameterValueType',context!);
        validation = json['validation'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'description': description,
        'value': value,
        'default': Default,
        'optional': optional,
        'type': JsonConverters.toJson(type,'ParameterValueType',context!),
        'validation': validation
    };

    getTypeName() => "ParameterDto";
    TypeContext? context = _ctx;
}

enum ValueDataType
{
    String,
    Number,
    Boolean,
    List,
}

class VariableDto implements IConvertible
{
    String name = "";
    /**
    * 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
    */
    String value = "";
    /**
    * The data type of the value property
    */
    ValueDataType type;
    String? description;
    bool isInherited;
    Environments? environment;

    VariableDto({this.name,this.value,this.type,this.description,this.isInherited,this.environment});
    VariableDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        value = json['value'];
        type = JsonConverters.fromJson(json['type'],'ValueDataType',context!);
        description = json['description'];
        isInherited = json['isInherited'];
        environment = JsonConverters.fromJson(json['environment'],'Environments',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'value': value,
        'type': JsonConverters.toJson(type,'ValueDataType',context!),
        'description': description,
        'isInherited': isInherited,
        'environment': JsonConverters.toJson(environment,'Environments',context!)
    };

    getTypeName() => "VariableDto";
    TypeContext? context = _ctx;
}

enum ResourceCompositions
{
    Native,
    Foreign,
    Mixed,
}

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

    DeploymentDto({this.operationalState,this.resourcesRunning,this.resourcesTotal,this.shortId,this.nameUserDefinedPart,this.tenantId,this.state,this.environment,this.templateId,this.isTemplateBased,this.parameters,this.variables,this.variablesSnapshot,this.parentId,this.parent,this.validFrom,this.validUntil,this.isNeverExpiring,this.nextPatchDate,this.defaultResourceProviderId,this.needsAttention,this.composition,this.monthlyBudget,this.sendBudgetNotificationMails,this.budgetWarningThresholdPercent,this.links});
    DeploymentDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        operationalState = JsonConverters.fromJson(json['operationalState'],'OperationalStates',context!);
        resourcesRunning = json['resourcesRunning'];
        resourcesTotal = json['resourcesTotal'];
        shortId = json['shortId'];
        nameUserDefinedPart = json['nameUserDefinedPart'];
        tenantId = json['tenantId'];
        state = JsonConverters.fromJson(json['state'],'LifecycleStates',context!);
        environment = JsonConverters.fromJson(json['environment'],'Environments',context!);
        templateId = json['templateId'];
        isTemplateBased = json['isTemplateBased'];
        parameters = JsonConverters.fromJson(json['parameters'],'List<ParameterDto>',context!);
        variables = JsonConverters.fromJson(json['variables'],'List<VariableDto>',context!);
        variablesSnapshot = JsonConverters.fromJson(json['variablesSnapshot'],'List<VariableDto>',context!);
        parentId = json['parentId'];
        parent = JsonConverters.fromJson(json['parent'],'ConfigItemDto',context!);
        validFrom = JsonConverters.fromJson(json['validFrom'],'DateTime',context!);
        validUntil = JsonConverters.fromJson(json['validUntil'],'DateTime',context!);
        isNeverExpiring = json['isNeverExpiring'];
        nextPatchDate = JsonConverters.fromJson(json['nextPatchDate'],'DateTime',context!);
        defaultResourceProviderId = json['defaultResourceProviderId'];
        needsAttention = json['needsAttention'];
        composition = JsonConverters.fromJson(json['composition'],'ResourceCompositions',context!);
        monthlyBudget = JsonConverters.toDouble(json['monthlyBudget']);
        sendBudgetNotificationMails = json['sendBudgetNotificationMails'];
        budgetWarningThresholdPercent = json['budgetWarningThresholdPercent'];
        links = JsonConverters.fromJson(json['links'],'List<LinkDto>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'operationalState': JsonConverters.toJson(operationalState,'OperationalStates',context!),
        'resourcesRunning': resourcesRunning,
        'resourcesTotal': resourcesTotal,
        'shortId': shortId,
        'nameUserDefinedPart': nameUserDefinedPart,
        'tenantId': tenantId,
        'state': JsonConverters.toJson(state,'LifecycleStates',context!),
        'environment': JsonConverters.toJson(environment,'Environments',context!),
        'templateId': templateId,
        'isTemplateBased': isTemplateBased,
        'parameters': JsonConverters.toJson(parameters,'List<ParameterDto>',context!),
        'variables': JsonConverters.toJson(variables,'List<VariableDto>',context!),
        'variablesSnapshot': JsonConverters.toJson(variablesSnapshot,'List<VariableDto>',context!),
        'parentId': parentId,
        'parent': JsonConverters.toJson(parent,'ConfigItemDto',context!),
        'validFrom': JsonConverters.toJson(validFrom,'DateTime',context!),
        'validUntil': JsonConverters.toJson(validUntil,'DateTime',context!),
        'isNeverExpiring': isNeverExpiring,
        'nextPatchDate': JsonConverters.toJson(nextPatchDate,'DateTime',context!),
        'defaultResourceProviderId': defaultResourceProviderId,
        'needsAttention': needsAttention,
        'composition': JsonConverters.toJson(composition,'ResourceCompositions',context!),
        'monthlyBudget': monthlyBudget,
        'sendBudgetNotificationMails': sendBudgetNotificationMails,
        'budgetWarningThresholdPercent': budgetWarningThresholdPercent,
        'links': JsonConverters.toJson(links,'List<LinkDto>',context!)
    });

    getTypeName() => "DeploymentDto";
    TypeContext? context = _ctx;
}

class TenantDto extends ConfigItemDto implements IConvertible
{
    /**
    * Variables defined on tenant level
    */
    List<VariableDto>? variables;
    /**
    * Allowed email domains used for authentication
    */
    List<String>? allowedMailDomains;
    /**
    * List of licensed modules for this tenant
    */
    List<String>? licensedModules;
    /**
    * Amount of days until a Deployment expires
    */
    int defaultDeploymentLifetimeDays = 0;
    /**
    * Max amount of days until a Deployment expires
    */
    int maxDeploymentLifetimeDays = 0;
    /**
    * Amount of days without patching until a unpatched warning is shown
    */
    int systemUnpatchedWarningDays = 0;
    /**
    * Amount of hours without backup until a backup missing warning is shown
    */
    int systemBackupMissingWarningHours = 0;
    /**
    * Amount of days until a vulnerable resource is getting stopped
    */
    int stopVulnerableResourceAfterDays = 0;
    /**
    * Amount of days before deployment expiration, which triggers the expiration warning
    */
    int deploymentExpirationWarningDays = 0;
    /**
    * Amount of days the patch notification is sent out prior to the patch date
    */
    int patchNotificationDays = 0;
    /**
    * Use a pool with your own hostnames (true) or let the hostname be auto generated (false)
    */
    bool useCustomHostnames;
    /**
    * After how many days inactive vulnerabilities will be purged from database
    */
    int removeInactiveVulnerabilitiesAfterDays = 0;
    List<LinkDto>? links;

    TenantDto({this.variables,this.allowedMailDomains,this.licensedModules,this.defaultDeploymentLifetimeDays,this.maxDeploymentLifetimeDays,this.systemUnpatchedWarningDays,this.systemBackupMissingWarningHours,this.stopVulnerableResourceAfterDays,this.deploymentExpirationWarningDays,this.patchNotificationDays,this.useCustomHostnames,this.removeInactiveVulnerabilitiesAfterDays,this.links});
    TenantDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        variables = JsonConverters.fromJson(json['variables'],'List<VariableDto>',context!);
        allowedMailDomains = JsonConverters.fromJson(json['allowedMailDomains'],'List<String>',context!);
        licensedModules = JsonConverters.fromJson(json['licensedModules'],'List<String>',context!);
        defaultDeploymentLifetimeDays = json['defaultDeploymentLifetimeDays'];
        maxDeploymentLifetimeDays = json['maxDeploymentLifetimeDays'];
        systemUnpatchedWarningDays = json['systemUnpatchedWarningDays'];
        systemBackupMissingWarningHours = json['systemBackupMissingWarningHours'];
        stopVulnerableResourceAfterDays = json['stopVulnerableResourceAfterDays'];
        deploymentExpirationWarningDays = json['deploymentExpirationWarningDays'];
        patchNotificationDays = json['patchNotificationDays'];
        useCustomHostnames = json['useCustomHostnames'];
        removeInactiveVulnerabilitiesAfterDays = json['removeInactiveVulnerabilitiesAfterDays'];
        links = JsonConverters.fromJson(json['links'],'List<LinkDto>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'variables': JsonConverters.toJson(variables,'List<VariableDto>',context!),
        'allowedMailDomains': JsonConverters.toJson(allowedMailDomains,'List<String>',context!),
        'licensedModules': JsonConverters.toJson(licensedModules,'List<String>',context!),
        'defaultDeploymentLifetimeDays': defaultDeploymentLifetimeDays,
        'maxDeploymentLifetimeDays': maxDeploymentLifetimeDays,
        'systemUnpatchedWarningDays': systemUnpatchedWarningDays,
        'systemBackupMissingWarningHours': systemBackupMissingWarningHours,
        'stopVulnerableResourceAfterDays': stopVulnerableResourceAfterDays,
        'deploymentExpirationWarningDays': deploymentExpirationWarningDays,
        'patchNotificationDays': patchNotificationDays,
        'useCustomHostnames': useCustomHostnames,
        'removeInactiveVulnerabilitiesAfterDays': removeInactiveVulnerabilitiesAfterDays,
        'links': JsonConverters.toJson(links,'List<LinkDto>',context!)
    });

    getTypeName() => "TenantDto";
    TypeContext? context = _ctx;
}

class DeploymentCollectionDto extends ConfigItemDto implements IHasTenantId, IConvertible
{
    String tenantId = "";
    TenantDto? tenant;
    /**
    * A collection scoped list of variables
    */
    List<VariableDto>? variables;
    /**
    * Defines the collection where scanned but not deployed resources will be stored
    */
    bool isLostAndFound;
    /**
    * The monthly cost budget for the whole collection
    */
    double? monthlyBudget;
    /**
    * Whether to send budget information mails to the collection owners
    */
    bool? sendBudgetNotificationMails;
    /**
    * A threshold, when to send the first budget warning mail
    */
    int? budgetWarningThresholdPercent;
    List<LinkDto>? links;

    DeploymentCollectionDto({this.tenantId,this.tenant,this.variables,this.isLostAndFound,this.monthlyBudget,this.sendBudgetNotificationMails,this.budgetWarningThresholdPercent,this.links});
    DeploymentCollectionDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        tenantId = json['tenantId'];
        tenant = JsonConverters.fromJson(json['tenant'],'TenantDto',context!);
        variables = JsonConverters.fromJson(json['variables'],'List<VariableDto>',context!);
        isLostAndFound = json['isLostAndFound'];
        monthlyBudget = JsonConverters.toDouble(json['monthlyBudget']);
        sendBudgetNotificationMails = json['sendBudgetNotificationMails'];
        budgetWarningThresholdPercent = json['budgetWarningThresholdPercent'];
        links = JsonConverters.fromJson(json['links'],'List<LinkDto>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'tenantId': tenantId,
        'tenant': JsonConverters.toJson(tenant,'TenantDto',context!),
        'variables': JsonConverters.toJson(variables,'List<VariableDto>',context!),
        'isLostAndFound': isLostAndFound,
        'monthlyBudget': monthlyBudget,
        'sendBudgetNotificationMails': sendBudgetNotificationMails,
        'budgetWarningThresholdPercent': budgetWarningThresholdPercent,
        'links': JsonConverters.toJson(links,'List<LinkDto>',context!)
    });

    getTypeName() => "DeploymentCollectionDto";
    TypeContext? context = _ctx;
}

enum ResourceProviderTypes
{
    Azure,
    AmazonWebServices,
    GoogleCloudPlatform,
    ActiveDirectoryServices,
    DomainNameSystem,
    SwisscomESC,
    AzureKeyVault,
}

class ProviderConfigEntryDto implements IConvertible
{
    String name = "";
    String value = "";
    bool isSecure;

    ProviderConfigEntryDto({this.name,this.value,this.isSecure});
    ProviderConfigEntryDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        value = json['value'];
        isSecure = json['isSecure'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'value': value,
        'isSecure': isSecure
    };

    getTypeName() => "ProviderConfigEntryDto";
    TypeContext? context = _ctx;
}

class ResourceProviderDto extends ConfigItemDto implements IHasTenantId, IConvertible
{
    String tenantId = "";
    /**
    * If environment cannot be detected while scanning, default environment will be used
    */
    Environments defaultEnvironment;
    /**
    * List off all allowed environments for this resource provider
    */
    List<Environments>? allowedEnvironments;
    /**
    * Defines the provider type (e.g. Azure, Aws)
    */
    ResourceProviderTypes type;
    /**
    * Additional generic data which varies depending on ProviderType
    */
    List<ProviderConfigEntryDto>? config;
    /**
    * Disabled ResourceProviders cannot be selected for new deployments
    */
    bool isDisabled;
    /**
    * Shows if a ResourceProvider has been initialized and can accept deployments (resources)
    */
    bool isReadyForDeployments;
    /**
    * The cost for the current month
    */
    double costCurrentMonth = 0;
    /**
    * The cost for the last month
    */
    double costLastMonth = 0;
    /**
    * The cost currency
    */
    String costCurrency = "";

    ResourceProviderDto({this.tenantId,this.defaultEnvironment,this.allowedEnvironments,this.type,this.config,this.isDisabled,this.isReadyForDeployments,this.costCurrentMonth,this.costLastMonth,this.costCurrency});
    ResourceProviderDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        tenantId = json['tenantId'];
        defaultEnvironment = JsonConverters.fromJson(json['defaultEnvironment'],'Environments',context!);
        allowedEnvironments = JsonConverters.fromJson(json['allowedEnvironments'],'List<Environments>',context!);
        type = JsonConverters.fromJson(json['type'],'ResourceProviderTypes',context!);
        config = JsonConverters.fromJson(json['config'],'List<ProviderConfigEntryDto>',context!);
        isDisabled = json['isDisabled'];
        isReadyForDeployments = json['isReadyForDeployments'];
        costCurrentMonth = JsonConverters.toDouble(json['costCurrentMonth']);
        costLastMonth = JsonConverters.toDouble(json['costLastMonth']);
        costCurrency = json['costCurrency'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'tenantId': tenantId,
        'defaultEnvironment': JsonConverters.toJson(defaultEnvironment,'Environments',context!),
        'allowedEnvironments': JsonConverters.toJson(allowedEnvironments,'List<Environments>',context!),
        'type': JsonConverters.toJson(type,'ResourceProviderTypes',context!),
        'config': JsonConverters.toJson(config,'List<ProviderConfigEntryDto>',context!),
        'isDisabled': isDisabled,
        'isReadyForDeployments': isReadyForDeployments,
        'costCurrentMonth': costCurrentMonth,
        'costLastMonth': costLastMonth,
        'costCurrency': costCurrency
    });

    getTypeName() => "ResourceProviderDto";
    TypeContext? context = _ctx;
}

class ResourceDto extends ConfigItemDto implements IResourceDto, IConvertible
{
    /**
    * Free text field to store an external resource id
    */
    String? extId;
    /**
    * Free text field to store an external resource type
    */
    String? extType;
    /**
    * Free text field to store an external resource name
    */
    String? extName;
    /**
    * The id of the tenant
    */
    String tenantId = "";
    /**
    * The id of the parent (ResourceGroup)
    */
    String parentId = "";
    /**
    * The parent (ResourceGroup
    */
    ConfigItemDto? parent;
    /**
    * The id of the parent (Deployment
    */
    String deploymentId = "";
    /**
    * The parent (Deployement
    */
    DeploymentDto? deployment;
    /**
    * The id of the collection the resource belongs to
    */
    String collectionId = "";
    /**
    * The collection the resource belongs to
    */
    DeploymentCollectionDto? collection;
    /**
    * The environment the resourcegroup is deployed in
    */
    Environments environment;
    /**
    * The id of the provider of the resource (e.g. Azure, AWS, other DC provider
    */
    String resourceProviderId = "";
    /**
    * The provider of the resource (e.g. Azure, AWS, other DC provider
    */
    ResourceProviderDto? resourceProvider;
    /**
    * State of the resource
    */
    OperationalStates state;
    List<VariableDto>? variables;
    /**
    * Can be used for dc location
    */
    String? location;
    /**
    * Last time the resource was seen/updated by a scan/cfgmgmt run etc.
    */
    DateTime? lastSeen;
    /**
    * Last time the resource has been patched successfully
    */
    DateTime? lastPatchDate;
    /**
    * Scheduled time for the next patching window
    */
    DateTime? nextPatchDate;
    /**
    * Time of the last successfull backup
    */
    DateTime? lastBackupDate;
    /**
    * True = scanned (not deployed from dune template), False = deployed from dune with template
    */
    bool isForeign;
    /**
    * Is alerting in external monitoring activated
    */
    bool isAlerting;
    /**
    * Used to identify external monitoring maintenance/downtime id
    */
    String? alertingDisabledId;
    /**
    * Reason why alerting is disabled
    */
    String? alertingDisabledReason;
    /**
    * Identifies the resource as vulnerable (security)
    */
    bool isVulnerable;
    /**
    * Reason why the resource is vulnerable
    */
    String? vulnerabilityReason;
    /**
    * True if resource is in cmdb but missing on provider/infra
    */
    bool isMissingOnProvider;
    /**
    * Shows if a resource can be started/stopped
    */
    bool supportsStartStop;
    /**
    * The cost for the current month
    */
    double costCurrentMonth = 0;
    /**
    * The cost for the last month
    */
    double costLastMonth = 0;
    /**
    * The cost currency
    */
    String costCurrency = "";
    /**
    * Additional generic configs
    */
    Map<String,dynamic?> config = {};
    List<LinkDto>? links;

    ResourceDto({this.extId,this.extType,this.extName,this.tenantId,this.parentId,this.parent,this.deploymentId,this.deployment,this.collectionId,this.collection,this.environment,this.resourceProviderId,this.resourceProvider,this.state,this.variables,this.location,this.lastSeen,this.lastPatchDate,this.nextPatchDate,this.lastBackupDate,this.isForeign,this.isAlerting,this.alertingDisabledId,this.alertingDisabledReason,this.isVulnerable,this.vulnerabilityReason,this.isMissingOnProvider,this.supportsStartStop,this.costCurrentMonth,this.costLastMonth,this.costCurrency,this.config,this.links});
    ResourceDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        extId = json['extId'];
        extType = json['extType'];
        extName = json['extName'];
        tenantId = json['tenantId'];
        parentId = json['parentId'];
        parent = JsonConverters.fromJson(json['parent'],'ConfigItemDto',context!);
        deploymentId = json['deploymentId'];
        deployment = JsonConverters.fromJson(json['deployment'],'DeploymentDto',context!);
        collectionId = json['collectionId'];
        collection = JsonConverters.fromJson(json['collection'],'DeploymentCollectionDto',context!);
        environment = JsonConverters.fromJson(json['environment'],'Environments',context!);
        resourceProviderId = json['resourceProviderId'];
        resourceProvider = JsonConverters.fromJson(json['resourceProvider'],'ResourceProviderDto',context!);
        state = JsonConverters.fromJson(json['state'],'OperationalStates',context!);
        variables = JsonConverters.fromJson(json['variables'],'List<VariableDto>',context!);
        location = json['location'];
        lastSeen = JsonConverters.fromJson(json['lastSeen'],'DateTime',context!);
        lastPatchDate = JsonConverters.fromJson(json['lastPatchDate'],'DateTime',context!);
        nextPatchDate = JsonConverters.fromJson(json['nextPatchDate'],'DateTime',context!);
        lastBackupDate = JsonConverters.fromJson(json['lastBackupDate'],'DateTime',context!);
        isForeign = json['isForeign'];
        isAlerting = json['isAlerting'];
        alertingDisabledId = json['alertingDisabledId'];
        alertingDisabledReason = json['alertingDisabledReason'];
        isVulnerable = json['isVulnerable'];
        vulnerabilityReason = json['vulnerabilityReason'];
        isMissingOnProvider = json['isMissingOnProvider'];
        supportsStartStop = json['supportsStartStop'];
        costCurrentMonth = JsonConverters.toDouble(json['costCurrentMonth']);
        costLastMonth = JsonConverters.toDouble(json['costLastMonth']);
        costCurrency = json['costCurrency'];
        config = JsonConverters.fromJson(json['config'],'Map<String,dynamic?>',context!);
        links = JsonConverters.fromJson(json['links'],'List<LinkDto>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'extId': extId,
        'extType': extType,
        'extName': extName,
        'tenantId': tenantId,
        'parentId': parentId,
        'parent': JsonConverters.toJson(parent,'ConfigItemDto',context!),
        'deploymentId': deploymentId,
        'deployment': JsonConverters.toJson(deployment,'DeploymentDto',context!),
        'collectionId': collectionId,
        'collection': JsonConverters.toJson(collection,'DeploymentCollectionDto',context!),
        'environment': JsonConverters.toJson(environment,'Environments',context!),
        'resourceProviderId': resourceProviderId,
        'resourceProvider': JsonConverters.toJson(resourceProvider,'ResourceProviderDto',context!),
        'state': JsonConverters.toJson(state,'OperationalStates',context!),
        'variables': JsonConverters.toJson(variables,'List<VariableDto>',context!),
        'location': location,
        'lastSeen': JsonConverters.toJson(lastSeen,'DateTime',context!),
        'lastPatchDate': JsonConverters.toJson(lastPatchDate,'DateTime',context!),
        'nextPatchDate': JsonConverters.toJson(nextPatchDate,'DateTime',context!),
        'lastBackupDate': JsonConverters.toJson(lastBackupDate,'DateTime',context!),
        'isForeign': isForeign,
        'isAlerting': isAlerting,
        'alertingDisabledId': alertingDisabledId,
        'alertingDisabledReason': alertingDisabledReason,
        'isVulnerable': isVulnerable,
        'vulnerabilityReason': vulnerabilityReason,
        'isMissingOnProvider': isMissingOnProvider,
        'supportsStartStop': supportsStartStop,
        'costCurrentMonth': costCurrentMonth,
        'costLastMonth': costLastMonth,
        'costCurrency': costCurrency,
        'config': JsonConverters.toJson(config,'Map<String,dynamic?>',context!),
        'links': JsonConverters.toJson(links,'List<LinkDto>',context!)
    });

    getTypeName() => "ResourceDto";
    TypeContext? context = _ctx;
}

enum MonthlyDayOccurence
{
    First,
    Second,
    Third,
    Fourth,
}

class PatchingWindowDto implements IConvertible
{
    String id = "";
    String name = "";
    DayOfWeek dayOfWeek;
    MonthlyDayOccurence monthlyOccurence;
    Duration timeOfDay;
    Duration duration;
    bool isDefault;

    PatchingWindowDto({this.id,this.name,this.dayOfWeek,this.monthlyOccurence,this.timeOfDay,this.duration,this.isDefault});
    PatchingWindowDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        dayOfWeek = JsonConverters.fromJson(json['dayOfWeek'],'DayOfWeek',context!);
        monthlyOccurence = JsonConverters.fromJson(json['monthlyOccurence'],'MonthlyDayOccurence',context!);
        timeOfDay = JsonConverters.fromJson(json['timeOfDay'],'Duration',context!);
        duration = JsonConverters.fromJson(json['duration'],'Duration',context!);
        isDefault = json['isDefault'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'dayOfWeek': JsonConverters.toJson(dayOfWeek,'DayOfWeek',context!),
        'monthlyOccurence': JsonConverters.toJson(monthlyOccurence,'MonthlyDayOccurence',context!),
        'timeOfDay': JsonConverters.toJson(timeOfDay,'Duration',context!),
        'duration': JsonConverters.toJson(duration,'Duration',context!),
        'isDefault': isDefault
    };

    getTypeName() => "PatchingWindowDto";
    TypeContext? context = _ctx;
}

class PatchingWindowAssignmentDto implements IConvertible
{
    String id = "";
    String resourceId = "";
    ResourceDto? resource;
    String patchingWindowId = "";
    PatchingWindowDto? patchingWindow;

    PatchingWindowAssignmentDto({this.id,this.resourceId,this.resource,this.patchingWindowId,this.patchingWindow});
    PatchingWindowAssignmentDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        resourceId = json['resourceId'];
        resource = JsonConverters.fromJson(json['resource'],'ResourceDto',context!);
        patchingWindowId = json['patchingWindowId'];
        patchingWindow = JsonConverters.fromJson(json['patchingWindow'],'PatchingWindowDto',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'resourceId': resourceId,
        'resource': JsonConverters.toJson(resource,'ResourceDto',context!),
        'patchingWindowId': patchingWindowId,
        'patchingWindow': JsonConverters.toJson(patchingWindow,'PatchingWindowDto',context!)
    };

    getTypeName() => "PatchingWindowAssignmentDto";
    TypeContext? context = _ctx;
}

/**
* Returns a single patching window assignment by its id
*/
// @Api(Description="Returns a single patching window assignment by its id")
// @ApiResponse(Description="Success", IsDefaultResponse=true, ResponseType=typeof(PatchingWindowAssignmentDto), StatusCode=200)
class GetPatchingWindowAssignment implements IBaseRequest, IHasId, IHasTenantName, IGet, IConvertible
{
    /**
    * The primary key of every config item
    */
    // @ApiMember(DataType="string", Description="The primary key of every config item", Format="guid", IsRequired=true, ParameterType="path")
    String id = "";

    // @ApiMember(DataType="string", IsRequired=true, ParameterType="header")
    // @Validate(Validator="NotEmpty")
    String tenantName = "";

    GetPatchingWindowAssignment({this.id,this.tenantName});
    GetPatchingWindowAssignment.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        tenantName = json['tenantName'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'tenantName': tenantName
    };

    getTypeName() => "GetPatchingWindowAssignment";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'duneframework.com', types: <String, TypeInfo> {
    'ObjectTypes': TypeInfo(TypeOf.Enum, enumValues:ObjectTypes.values),
    'TagDto': TypeInfo(TypeOf.Class, create:() => TagDto()),
    'PathItemDto': TypeInfo(TypeOf.Class, create:() => PathItemDto()),
    'LinkDto': TypeInfo(TypeOf.Class, create:() => LinkDto()),
    'ConfigItemDto': TypeInfo(TypeOf.Class, create:() => ConfigItemDto()),
    'List<TagDto>': TypeInfo(TypeOf.Class, create:() => <TagDto>[]),
    'List<PathItemDto>': TypeInfo(TypeOf.Class, create:() => <PathItemDto>[]),
    'List<LinkDto>': TypeInfo(TypeOf.Class, create:() => <LinkDto>[]),
    'OperationalStates': TypeInfo(TypeOf.Enum, enumValues:OperationalStates.values),
    'LifecycleStates': TypeInfo(TypeOf.Enum, enumValues:LifecycleStates.values),
    'Environments': TypeInfo(TypeOf.Enum, enumValues:Environments.values),
    'ParameterValueType': TypeInfo(TypeOf.Enum, enumValues:ParameterValueType.values),
    'ParameterDto': TypeInfo(TypeOf.Class, create:() => ParameterDto()),
    'ValueDataType': TypeInfo(TypeOf.Enum, enumValues:ValueDataType.values),
    'VariableDto': TypeInfo(TypeOf.Class, create:() => VariableDto()),
    'ResourceCompositions': TypeInfo(TypeOf.Enum, enumValues:ResourceCompositions.values),
    'DeploymentDto': TypeInfo(TypeOf.Class, create:() => DeploymentDto()),
    'List<ParameterDto>': TypeInfo(TypeOf.Class, create:() => <ParameterDto>[]),
    'List<VariableDto>': TypeInfo(TypeOf.Class, create:() => <VariableDto>[]),
    'TenantDto': TypeInfo(TypeOf.Class, create:() => TenantDto()),
    'DeploymentCollectionDto': TypeInfo(TypeOf.Class, create:() => DeploymentCollectionDto()),
    'ResourceProviderTypes': TypeInfo(TypeOf.Enum, enumValues:ResourceProviderTypes.values),
    'ProviderConfigEntryDto': TypeInfo(TypeOf.Class, create:() => ProviderConfigEntryDto()),
    'ResourceProviderDto': TypeInfo(TypeOf.Class, create:() => ResourceProviderDto()),
    'List<Environments>': TypeInfo(TypeOf.Class, create:() => <Environments>[]),
    'List<ProviderConfigEntryDto>': TypeInfo(TypeOf.Class, create:() => <ProviderConfigEntryDto>[]),
    'ResourceDto': TypeInfo(TypeOf.Class, create:() => ResourceDto()),
    'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
    'MonthlyDayOccurence': TypeInfo(TypeOf.Enum, enumValues:MonthlyDayOccurence.values),
    'PatchingWindowDto': TypeInfo(TypeOf.Class, create:() => PatchingWindowDto()),
    'DayOfWeek': TypeInfo(TypeOf.Class, create:() => DayOfWeek()),
    'PatchingWindowAssignmentDto': TypeInfo(TypeOf.Class, create:() => PatchingWindowAssignmentDto()),
    'GetPatchingWindowAssignment': TypeInfo(TypeOf.Class, create:() => GetPatchingWindowAssignment()),
});

Dart GetPatchingWindowAssignment 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/patching/windows/assignments/{Id} HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"00000000-0000-0000-0000-000000000000","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"},"patchingWindowId":"00000000-0000-0000-0000-000000000000","patchingWindow":{"id":"00000000-0000-0000-0000-000000000000","name":"String","dayOfWeek":"Sunday","monthlyOccurence":"First","timeOfDay":"00:00:00","duration":"00:00:00","isDefault":false}}