CoreService

<back to all web services

QueryResourceUpdates

Patching - CRUD

Returns a list of updates assigned to resources

Requires Authentication
Requires the role:TenantReader
The following routes are available for this service:
GET/api/patching/resourceupdatesReturns a list of updates assigned to resources
GET/patching/resourceupdatesReturns a list of updates assigned to resources
import 'package:servicestack/servicestack.dart';

// @DataContract
abstract class QueryBase
{
    // @DataMember(Order=1)
    int? skip;

    // @DataMember(Order=2)
    int? take;

    // @DataMember(Order=3)
    String? orderBy;

    // @DataMember(Order=4)
    String? orderByDesc;

    // @DataMember(Order=5)
    String? include;

    // @DataMember(Order=6)
    String? fields;

    // @DataMember(Order=7)
    Map<String,String?>? meta;

    QueryBase({this.skip,this.take,this.orderBy,this.orderByDesc,this.include,this.fields,this.meta});
    QueryBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        skip = json['skip'];
        take = json['take'];
        orderBy = json['orderBy'];
        orderByDesc = json['orderByDesc'];
        include = json['include'];
        fields = json['fields'];
        meta = JsonConverters.toStringMap(json['meta']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'skip': skip,
        'take': take,
        'orderBy': orderBy,
        'orderByDesc': orderByDesc,
        'include': include,
        'fields': fields,
        'meta': meta
    };

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

abstract class QueryDb<T> extends QueryBase
{
    QueryDb();
    QueryDb.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "QueryDb<$T>";
    TypeContext? context = _ctx;
}

class Auditable implements IAuditable, IConvertible
{
    // @required()
    DateTime created = DateTime(0);

    // @required()
    String createUser = "";

    // @required()
    String createUserId = "";

    // @required()
    DateTime modified = DateTime(0);

    // @required()
    String modifyUser = "";

    // @required()
    String modifyUserId = "";

    // @required()
    bool isDeleted;

    DateTime? deleted;
    String? deleteUser;
    String? deleteUserId;

    Auditable({this.created,this.createUser,this.createUserId,this.modified,this.modifyUser,this.modifyUserId,this.isDeleted,this.deleted,this.deleteUser,this.deleteUserId});
    Auditable.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        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'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        '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
    };

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

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 Tag implements IConvertible
{
    String name = "";
    String? value;
    bool isProtected;

    Tag({this.name,this.value,this.isProtected});
    Tag.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() => "Tag";
    TypeContext? context = _ctx;
}

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

    PathItem({this.label,this.link,this.objectType,this.objectId});
    PathItem.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() => "PathItem";
    TypeContext? context = _ctx;
}

class ConfigItem extends Auditable implements IConfigItem, IConvertible
{
    String id = "";
    // @required()
    String name = "";

    // @required()
    // @StringLength(250)
    String displayName = "";

    // @StringLength(8000)
    String? description;

    ObjectTypes objectType;
    // @ignore()
    String selfLink = "";

    // @required()
    List<Tag>? tags;

    // @required()
    List<PathItem>? path;

    ConfigItem({this.id,this.name,this.displayName,this.description,this.objectType,this.selfLink,this.tags,this.path});
    ConfigItem.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(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<Tag>',context!);
        path = JsonConverters.fromJson(json['path'],'List<PathItem>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'id': id,
        'name': name,
        'displayName': displayName,
        'description': description,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'tags': JsonConverters.toJson(tags,'List<Tag>',context!),
        'path': JsonConverters.toJson(path,'List<PathItem>',context!)
    });

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

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

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

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

class Parameter implements IConvertible
{
    String name = "";
    String? description;
    String? value;
    String? Default;
    bool optional;
    ParameterValueType type;
    String? validation;

    Parameter({this.name,this.description,this.value,this.Default,this.optional,this.type,this.validation});
    Parameter.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() => "Parameter";
    TypeContext? context = _ctx;
}

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

class Variable implements IConvertible
{
    String name = "";
    String value = "";
    ValueDataType type;
    String? description;
    bool isInherited;
    Environments? environment;

    Variable({this.name,this.value,this.type,this.description,this.isInherited,this.environment});
    Variable.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() => "Variable";
    TypeContext? context = _ctx;
}

class DeploymentCollection extends ConfigItem implements IHasTenantId, IHasVariables, IConvertible
{
    // @required()
    String tenantId = "";

    // @required()
    // @StringLength(50)
    String name = "";

    // @required()
    ObjectTypes objectType;

    // @ignore()
    String selfLink = "";

    // @required()
    List<Variable>? variables;

    // @required()
    bool isLostAndFound;

    double monthlyBudget = 0;
    bool sendBudgetNotificationMails;
    int budgetWarningThresholdPercent = 0;

    DeploymentCollection({this.tenantId,this.name,this.objectType,this.selfLink,this.variables,this.isLostAndFound,this.monthlyBudget,this.sendBudgetNotificationMails,this.budgetWarningThresholdPercent});
    DeploymentCollection.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        tenantId = json['tenantId'];
        name = json['name'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        selfLink = json['selfLink'];
        variables = JsonConverters.fromJson(json['variables'],'List<Variable>',context!);
        isLostAndFound = json['isLostAndFound'];
        monthlyBudget = JsonConverters.toDouble(json['monthlyBudget']);
        sendBudgetNotificationMails = json['sendBudgetNotificationMails'];
        budgetWarningThresholdPercent = json['budgetWarningThresholdPercent'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'tenantId': tenantId,
        'name': name,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'variables': JsonConverters.toJson(variables,'List<Variable>',context!),
        'isLostAndFound': isLostAndFound,
        'monthlyBudget': monthlyBudget,
        'sendBudgetNotificationMails': sendBudgetNotificationMails,
        'budgetWarningThresholdPercent': budgetWarningThresholdPercent
    });

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

enum ResourceCompositions
{
    Native,
    Foreign,
    Mixed,
}

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

class Deployment extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IHasSequence, IConvertible
{
    // @required()
    String shortId = "";

    // @required()
    String tenantId = "";

    // @required()
    // @StringLength(100)
    String name = "";

    // @required()
    String nameUserDefinedPart = "";

    // @required()
    ObjectTypes objectType;

    // @ignore()
    String selfLink = "";

    // @required()
    LifecycleStates state;

    // @required()
    Environments environment;

    String? templateId;
    // @required()
    List<Parameter>? parameters;

    // @required()
    List<Variable>? variables;

    // @required()
    List<Variable>? variablesSnapshot;

    // @required()
    // @References(typeof(DeploymentCollection))
    String parentId = "";

    DeploymentCollection? parent;
    // @required()
    DateTime validFrom = DateTime(0);

    DateTime? validUntil;
    // @required()
    bool isNeverExpiring;

    DateTime? nextPatchDate;
    // @required()
    String defaultResourceProviderId = "";

    // @required()
    bool needsAttention;

    ResourceCompositions composition;
    double monthlyBudget = 0;
    bool sendBudgetNotificationMails;
    int budgetWarningThresholdPercent = 0;
    OperationalStates operationalState;
    int resourcesRunning = 0;
    int resourcesTotal = 0;

    Deployment({this.shortId,this.tenantId,this.name,this.nameUserDefinedPart,this.objectType,this.selfLink,this.state,this.environment,this.templateId,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.operationalState,this.resourcesRunning,this.resourcesTotal});
    Deployment.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        shortId = json['shortId'];
        tenantId = json['tenantId'];
        name = json['name'];
        nameUserDefinedPart = json['nameUserDefinedPart'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        selfLink = json['selfLink'];
        state = JsonConverters.fromJson(json['state'],'LifecycleStates',context!);
        environment = JsonConverters.fromJson(json['environment'],'Environments',context!);
        templateId = json['templateId'];
        parameters = JsonConverters.fromJson(json['parameters'],'List<Parameter>',context!);
        variables = JsonConverters.fromJson(json['variables'],'List<Variable>',context!);
        variablesSnapshot = JsonConverters.fromJson(json['variablesSnapshot'],'List<Variable>',context!);
        parentId = json['parentId'];
        parent = JsonConverters.fromJson(json['parent'],'DeploymentCollection',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'];
        operationalState = JsonConverters.fromJson(json['operationalState'],'OperationalStates',context!);
        resourcesRunning = json['resourcesRunning'];
        resourcesTotal = json['resourcesTotal'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'shortId': shortId,
        'tenantId': tenantId,
        'name': name,
        'nameUserDefinedPart': nameUserDefinedPart,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'state': JsonConverters.toJson(state,'LifecycleStates',context!),
        'environment': JsonConverters.toJson(environment,'Environments',context!),
        'templateId': templateId,
        'parameters': JsonConverters.toJson(parameters,'List<Parameter>',context!),
        'variables': JsonConverters.toJson(variables,'List<Variable>',context!),
        'variablesSnapshot': JsonConverters.toJson(variablesSnapshot,'List<Variable>',context!),
        'parentId': parentId,
        'parent': JsonConverters.toJson(parent,'DeploymentCollection',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,
        'operationalState': JsonConverters.toJson(operationalState,'OperationalStates',context!),
        'resourcesRunning': resourcesRunning,
        'resourcesTotal': resourcesTotal
    });

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

class ResourceGroup extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IHasSequence, IConvertible
{
    // @required()
    String shortId = "";

    // @required()
    String tenantId = "";

    // @required()
    // @StringLength(50)
    String name = "";

    // @required()
    ObjectTypes objectType;

    // @ignore()
    String selfLink = "";

    // @required()
    Environments environment;

    // @required()
    LifecycleStates state;

    // @required()
    // @References(typeof(Deployment))
    String parentId = "";

    Deployment? parent;
    String? templateId;
    // @required()
    List<Parameter>? parameters;

    // @required()
    List<Variable>? variables;

    DateTime? nextPatchDate;
    ResourceCompositions composition;

    ResourceGroup({this.shortId,this.tenantId,this.name,this.objectType,this.selfLink,this.environment,this.state,this.parentId,this.parent,this.templateId,this.parameters,this.variables,this.nextPatchDate,this.composition});
    ResourceGroup.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        shortId = json['shortId'];
        tenantId = json['tenantId'];
        name = json['name'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        selfLink = json['selfLink'];
        environment = JsonConverters.fromJson(json['environment'],'Environments',context!);
        state = JsonConverters.fromJson(json['state'],'LifecycleStates',context!);
        parentId = json['parentId'];
        parent = JsonConverters.fromJson(json['parent'],'Deployment',context!);
        templateId = json['templateId'];
        parameters = JsonConverters.fromJson(json['parameters'],'List<Parameter>',context!);
        variables = JsonConverters.fromJson(json['variables'],'List<Variable>',context!);
        nextPatchDate = JsonConverters.fromJson(json['nextPatchDate'],'DateTime',context!);
        composition = JsonConverters.fromJson(json['composition'],'ResourceCompositions',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'shortId': shortId,
        'tenantId': tenantId,
        'name': name,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'environment': JsonConverters.toJson(environment,'Environments',context!),
        'state': JsonConverters.toJson(state,'LifecycleStates',context!),
        'parentId': parentId,
        'parent': JsonConverters.toJson(parent,'Deployment',context!),
        'templateId': templateId,
        'parameters': JsonConverters.toJson(parameters,'List<Parameter>',context!),
        'variables': JsonConverters.toJson(variables,'List<Variable>',context!),
        'nextPatchDate': JsonConverters.toJson(nextPatchDate,'DateTime',context!),
        'composition': JsonConverters.toJson(composition,'ResourceCompositions',context!)
    });

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

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

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

    ProviderConfigEntry({this.name,this.value,this.isSecure});
    ProviderConfigEntry.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() => "ProviderConfigEntry";
    TypeContext? context = _ctx;
}

class ResourceProvider extends ConfigItem implements IHasTenantId, IConvertible
{
    // @required()
    String tenantId = "";

    // @required()
    // @StringLength(50)
    String name = "";

    // @required()
    Environments defaultEnvironment;

    // @required()
    List<Environments>? allowedEnvironments;

    // @required()
    ObjectTypes objectType;

    // @required()
    ResourceProviderTypes type;

    // @ignore()
    String selfLink = "";

    // @required()
    List<ProviderConfigEntry>? config;

    // @required()
    bool isDisabled;

    // @required()
    bool isReadyForDeployments;

    double costCurrentMonth = 0;
    double costLastMonth = 0;
    String costCurrency = "";

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

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        tenantId = json['tenantId'];
        name = json['name'];
        defaultEnvironment = JsonConverters.fromJson(json['defaultEnvironment'],'Environments',context!);
        allowedEnvironments = JsonConverters.fromJson(json['allowedEnvironments'],'List<Environments>',context!);
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        type = JsonConverters.fromJson(json['type'],'ResourceProviderTypes',context!);
        selfLink = json['selfLink'];
        config = JsonConverters.fromJson(json['config'],'List<ProviderConfigEntry>',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,
        'name': name,
        'defaultEnvironment': JsonConverters.toJson(defaultEnvironment,'Environments',context!),
        'allowedEnvironments': JsonConverters.toJson(allowedEnvironments,'List<Environments>',context!),
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'type': JsonConverters.toJson(type,'ResourceProviderTypes',context!),
        'selfLink': selfLink,
        'config': JsonConverters.toJson(config,'List<ProviderConfigEntry>',context!),
        'isDisabled': isDisabled,
        'isReadyForDeployments': isReadyForDeployments,
        'costCurrentMonth': costCurrentMonth,
        'costLastMonth': costLastMonth,
        'costCurrency': costCurrency
    });

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

class Resource extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IConvertible
{
    // @required()
    String tenantId = "";

    // @StringLength(350)
    String? extId;

    // @StringLength(350)
    String? extType;

    // @StringLength(350)
    String? extName;

    // @required()
    // @StringLength(50)
    String name = "";

    // @required()
    ObjectTypes objectType;

    // @required()
    String selfLink = "";

    // @required()
    // @References(typeof(ResourceGroup))
    String parentId = "";

    ResourceGroup? parent;
    // @required()
    // @References(typeof(Deployment))
    String deploymentId = "";

    Deployment? deployment;
    // @required()
    // @References(typeof(DeploymentCollection))
    String collectionId = "";

    DeploymentCollection? collection;
    // @required()
    // @References(typeof(ResourceProvider))
    String resourceProviderId = "";

    ResourceProvider? resourceProvider;
    // @required()
    OperationalStates state;

    // @required()
    Environments environment;

    // @required()
    List<Variable>? variables;

    // @StringLength(350)
    String? location;

    DateTime? lastSeen;
    DateTime? lastPatchDate;
    DateTime? nextPatchDate;
    DateTime? lastBackupDate;
    // @required()
    bool isForeign;

    // @required()
    bool isAlerting;

    // @StringLength(200)
    String? alertingDisabledId;

    // @StringLength(1000)
    String? alertingDisabledReason;

    // @required()
    bool isVulnerable;

    // @StringLength(1000)
    String? vulnerabilityReason;

    DateTime? vulnerableSince;
    // @required()
    bool isMissingOnProvider;

    // @required()
    bool supportsStartStop;

    double costCurrentMonth = 0;
    double costLastMonth = 0;
    String costCurrency = "";
    // @required()
    Map<String,dynamic?> config = {};

    Resource({this.tenantId,this.extId,this.extType,this.extName,this.name,this.objectType,this.selfLink,this.parentId,this.parent,this.deploymentId,this.deployment,this.collectionId,this.collection,this.resourceProviderId,this.resourceProvider,this.state,this.environment,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.vulnerableSince,this.isMissingOnProvider,this.supportsStartStop,this.costCurrentMonth,this.costLastMonth,this.costCurrency,this.config});
    Resource.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        tenantId = json['tenantId'];
        extId = json['extId'];
        extType = json['extType'];
        extName = json['extName'];
        name = json['name'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        selfLink = json['selfLink'];
        parentId = json['parentId'];
        parent = JsonConverters.fromJson(json['parent'],'ResourceGroup',context!);
        deploymentId = json['deploymentId'];
        deployment = JsonConverters.fromJson(json['deployment'],'Deployment',context!);
        collectionId = json['collectionId'];
        collection = JsonConverters.fromJson(json['collection'],'DeploymentCollection',context!);
        resourceProviderId = json['resourceProviderId'];
        resourceProvider = JsonConverters.fromJson(json['resourceProvider'],'ResourceProvider',context!);
        state = JsonConverters.fromJson(json['state'],'OperationalStates',context!);
        environment = JsonConverters.fromJson(json['environment'],'Environments',context!);
        variables = JsonConverters.fromJson(json['variables'],'List<Variable>',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'];
        vulnerableSince = JsonConverters.fromJson(json['vulnerableSince'],'DateTime',context!);
        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!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'tenantId': tenantId,
        'extId': extId,
        'extType': extType,
        'extName': extName,
        'name': name,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'parentId': parentId,
        'parent': JsonConverters.toJson(parent,'ResourceGroup',context!),
        'deploymentId': deploymentId,
        'deployment': JsonConverters.toJson(deployment,'Deployment',context!),
        'collectionId': collectionId,
        'collection': JsonConverters.toJson(collection,'DeploymentCollection',context!),
        'resourceProviderId': resourceProviderId,
        'resourceProvider': JsonConverters.toJson(resourceProvider,'ResourceProvider',context!),
        'state': JsonConverters.toJson(state,'OperationalStates',context!),
        'environment': JsonConverters.toJson(environment,'Environments',context!),
        'variables': JsonConverters.toJson(variables,'List<Variable>',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,
        'vulnerableSince': JsonConverters.toJson(vulnerableSince,'DateTime',context!),
        'isMissingOnProvider': isMissingOnProvider,
        'supportsStartStop': supportsStartStop,
        'costCurrentMonth': costCurrentMonth,
        'costLastMonth': costLastMonth,
        'costCurrency': costCurrency,
        'config': JsonConverters.toJson(config,'Map<String,dynamic?>',context!)
    });

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

class Update implements IHasIdName, IHasObjectType, INotSoftDeletable, IConvertible
{
    String id = "";
    // @required()
    // @StringLength(512)
    String name = "";

    // @required()
    ObjectTypes objectType;

    // @StringLength(50)
    String? severity;

    // @required()
    DateTime published = DateTime(0);

    List<String>? classifications;
    // @required()
    bool isRebootRequired;

    // @StringLength(350)
    String? extId;

    // @StringLength(200)
    String? version;

    // @ignore()
    String selfLink = "";

    Update({this.id,this.name,this.objectType,this.severity,this.published,this.classifications,this.isRebootRequired,this.extId,this.version,this.selfLink});
    Update.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        severity = json['severity'];
        published = JsonConverters.fromJson(json['published'],'DateTime',context!);
        classifications = JsonConverters.fromJson(json['classifications'],'List<String>',context!);
        isRebootRequired = json['isRebootRequired'];
        extId = json['extId'];
        version = json['version'];
        selfLink = json['selfLink'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'severity': severity,
        'published': JsonConverters.toJson(published,'DateTime',context!),
        'classifications': JsonConverters.toJson(classifications,'List<String>',context!),
        'isRebootRequired': isRebootRequired,
        'extId': extId,
        'version': version,
        'selfLink': selfLink
    };

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

class ResourceUpdate implements IHasId, INotSoftDeletable, IConvertible
{
    String id = "";
    // @References(typeof(Resource))
    String resourceId = "";

    Resource? resource;
    // @References(typeof(Update))
    String updateId = "";

    Update? update;
    bool isPending;
    DateTime? installDate;
    // @ignore()
    String selfLink = "";

    ResourceUpdate({this.id,this.resourceId,this.resource,this.updateId,this.update,this.isPending,this.installDate,this.selfLink});
    ResourceUpdate.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        resourceId = json['resourceId'];
        resource = JsonConverters.fromJson(json['resource'],'Resource',context!);
        updateId = json['updateId'];
        update = JsonConverters.fromJson(json['update'],'Update',context!);
        isPending = json['isPending'];
        installDate = JsonConverters.fromJson(json['installDate'],'DateTime',context!);
        selfLink = json['selfLink'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'resourceId': resourceId,
        'resource': JsonConverters.toJson(resource,'Resource',context!),
        'updateId': updateId,
        'update': JsonConverters.toJson(update,'Update',context!),
        'isPending': isPending,
        'installDate': JsonConverters.toJson(installDate,'DateTime',context!),
        'selfLink': selfLink
    };

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

enum Aggregations
{
    None,
    Count,
    DistinctCount,
    Sum,
    Min,
    Max,
    Avg,
    First,
}

/**
* Returns a list of updates assigned to resources
*/
// @Api(Description="Returns a list of updates assigned to resources")
// @ApiResponse(Description="Success", IsDefaultResponse=true, ResponseType=typeof(0, Culture=neutral, PublicKeyToken=null]]), StatusCode=200)
class QueryResourceUpdates extends QueryDb<ResourceUpdate> implements IHasTenantName, IGet, IGroupable, IConvertible
{
    // @ApiMember(DataType="string", IsRequired=true, ParameterType="header")
    // @Validate(Validator="NotEmpty")
    String tenantName = "";

    /**
    * The property, the data will be grouped on
    */
    // @ApiMember(Description="The property, the data will be grouped on", ParameterType="query")
    String? groupBy;

    /**
    * The property, used for aggregation
    */
    // @ApiMember(Description="The property, used for aggregation", ParameterType="query")
    String? aggregateOn;

    /**
    * The aggregation function to use
    */
    // @ApiMember(Description="The aggregation function to use", ParameterType="query")
    Aggregations? aggregation;

    /**
    * Includes the full resource details
    */
    // @ApiMember(Description="Includes the full resource details", ParameterType="query")
    bool? includeResource;

    /**
    * Includes the full update details
    */
    // @ApiMember(Description="Includes the full update details", ParameterType="query")
    bool? includeUpdate;

    QueryResourceUpdates({this.tenantName,this.groupBy,this.aggregateOn,this.aggregation,this.includeResource,this.includeUpdate});
    QueryResourceUpdates.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        tenantName = json['tenantName'];
        groupBy = json['groupBy'];
        aggregateOn = json['aggregateOn'];
        aggregation = JsonConverters.fromJson(json['aggregation'],'Aggregations',context!);
        includeResource = json['includeResource'];
        includeUpdate = json['includeUpdate'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'tenantName': tenantName,
        'groupBy': groupBy,
        'aggregateOn': aggregateOn,
        'aggregation': JsonConverters.toJson(aggregation,'Aggregations',context!),
        'includeResource': includeResource,
        'includeUpdate': includeUpdate
    });

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

class Tenant extends ConfigItem implements IHasVariables, IConvertible
{
    // @required()
    // @StringLength(10)
    String name = "";

    // @required()
    ObjectTypes objectType;

    // @ignore()
    String selfLink = "";

    // @required()
    List<Variable>? variables;

    // @required()
    List<String>? allowedMailDomains;

    // @required()
    List<String>? licensedModules;

    // @required()
    int defaultDeploymentLifetimeDays = 0;

    // @required()
    int maxDeploymentLifetimeDays = 0;

    // @required()
    int systemUnpatchedWarningDays = 0;

    // @required()
    int systemBackupMissingWarningHours = 0;

    // @required()
    int stopVulnerableResourceAfterDays = 0;

    // @required()
    int deploymentExpirationWarningDays = 0;

    // @required()
    int patchNotificationDays = 0;

    // @required()
    bool useCustomHostnames;

    // @required()
    int removeInactiveVulnerabilitiesAfterDays = 0;

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

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        name = json['name'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        selfLink = json['selfLink'];
        variables = JsonConverters.fromJson(json['variables'],'List<Variable>',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'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'name': name,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'selfLink': selfLink,
        'variables': JsonConverters.toJson(variables,'List<Variable>',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
    });

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

enum IntervalUnits
{
    Second,
    Minute,
    Hour,
    Day,
    Week,
    Month,
    Year,
}

class TimeSeriesDefinition extends Auditable implements IHasIdName, IHasTenantId, IHasObjectType, IConvertible
{
    String id = "";
    // @References(typeof(Tenant))
    String tenantId = "";

    Tenant? tenant;
    String name = "";
    String? displayName;
    // @ignore()
    String selfLink = "";

    // @required()
    ObjectTypes objectType;

    String? description;
    ObjectTypes sourceType;
    bool autoCollection;
    String? autoCollectionQuery;
    int? autoCollectionInterval;
    IntervalUnits? autoCollectionIntervalUnit;
    Duration? autoCollectionTime;
    DateTime? lastAutoCollected;
    int retentionTimeMonths = 0;

    TimeSeriesDefinition({this.id,this.tenantId,this.tenant,this.name,this.displayName,this.selfLink,this.objectType,this.description,this.sourceType,this.autoCollection,this.autoCollectionQuery,this.autoCollectionInterval,this.autoCollectionIntervalUnit,this.autoCollectionTime,this.lastAutoCollected,this.retentionTimeMonths});
    TimeSeriesDefinition.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        id = json['id'];
        tenantId = json['tenantId'];
        tenant = JsonConverters.fromJson(json['tenant'],'Tenant',context!);
        name = json['name'];
        displayName = json['displayName'];
        selfLink = json['selfLink'];
        objectType = JsonConverters.fromJson(json['objectType'],'ObjectTypes',context!);
        description = json['description'];
        sourceType = JsonConverters.fromJson(json['sourceType'],'ObjectTypes',context!);
        autoCollection = json['autoCollection'];
        autoCollectionQuery = json['autoCollectionQuery'];
        autoCollectionInterval = json['autoCollectionInterval'];
        autoCollectionIntervalUnit = JsonConverters.fromJson(json['autoCollectionIntervalUnit'],'IntervalUnits',context!);
        autoCollectionTime = JsonConverters.fromJson(json['autoCollectionTime'],'Duration',context!);
        lastAutoCollected = JsonConverters.fromJson(json['lastAutoCollected'],'DateTime',context!);
        retentionTimeMonths = json['retentionTimeMonths'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'id': id,
        'tenantId': tenantId,
        'tenant': JsonConverters.toJson(tenant,'Tenant',context!),
        'name': name,
        'displayName': displayName,
        'selfLink': selfLink,
        'objectType': JsonConverters.toJson(objectType,'ObjectTypes',context!),
        'description': description,
        'sourceType': JsonConverters.toJson(sourceType,'ObjectTypes',context!),
        'autoCollection': autoCollection,
        'autoCollectionQuery': autoCollectionQuery,
        'autoCollectionInterval': autoCollectionInterval,
        'autoCollectionIntervalUnit': JsonConverters.toJson(autoCollectionIntervalUnit,'IntervalUnits',context!),
        'autoCollectionTime': JsonConverters.toJson(autoCollectionTime,'Duration',context!),
        'lastAutoCollected': JsonConverters.toJson(lastAutoCollected,'DateTime',context!),
        'retentionTimeMonths': retentionTimeMonths
    });

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

// @DataContract
class QueryResponse<T> implements IConvertible
{
    // @DataMember(Order=1)
    int offset = 0;

    // @DataMember(Order=2)
    int total = 0;

    // @DataMember(Order=3)
    List<TimeSeriesDefinition> results = [];

    // @DataMember(Order=4)
    Map<String,String?>? meta;

    // @DataMember(Order=5)
    ResponseStatus? responseStatus;

    QueryResponse({this.offset,this.total,this.results,this.meta,this.responseStatus});
    QueryResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        offset = json['offset'];
        total = json['total'];
        results = JsonConverters.fromJson(json['results'],'List<TimeSeriesDefinition>',context!);
        meta = JsonConverters.toStringMap(json['meta']);
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'offset': offset,
        'total': total,
        'results': JsonConverters.toJson(results,'List<TimeSeriesDefinition>',context!),
        'meta': meta,
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "QueryResponse<$T>";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'duneframework.com', types: <String, TypeInfo> {
    'Auditable': TypeInfo(TypeOf.Class, create:() => Auditable()),
    'ObjectTypes': TypeInfo(TypeOf.Enum, enumValues:ObjectTypes.values),
    'Tag': TypeInfo(TypeOf.Class, create:() => Tag()),
    'PathItem': TypeInfo(TypeOf.Class, create:() => PathItem()),
    'ConfigItem': TypeInfo(TypeOf.Class, create:() => ConfigItem()),
    'List<Tag>': TypeInfo(TypeOf.Class, create:() => <Tag>[]),
    'List<PathItem>': TypeInfo(TypeOf.Class, create:() => <PathItem>[]),
    'Environments': TypeInfo(TypeOf.Enum, enumValues:Environments.values),
    'LifecycleStates': TypeInfo(TypeOf.Enum, enumValues:LifecycleStates.values),
    'ParameterValueType': TypeInfo(TypeOf.Enum, enumValues:ParameterValueType.values),
    'Parameter': TypeInfo(TypeOf.Class, create:() => Parameter()),
    'ValueDataType': TypeInfo(TypeOf.Enum, enumValues:ValueDataType.values),
    'Variable': TypeInfo(TypeOf.Class, create:() => Variable()),
    'DeploymentCollection': TypeInfo(TypeOf.Class, create:() => DeploymentCollection()),
    'List<Variable>': TypeInfo(TypeOf.Class, create:() => <Variable>[]),
    'ResourceCompositions': TypeInfo(TypeOf.Enum, enumValues:ResourceCompositions.values),
    'OperationalStates': TypeInfo(TypeOf.Enum, enumValues:OperationalStates.values),
    'Deployment': TypeInfo(TypeOf.Class, create:() => Deployment()),
    'List<Parameter>': TypeInfo(TypeOf.Class, create:() => <Parameter>[]),
    'ResourceGroup': TypeInfo(TypeOf.Class, create:() => ResourceGroup()),
    'ResourceProviderTypes': TypeInfo(TypeOf.Enum, enumValues:ResourceProviderTypes.values),
    'ProviderConfigEntry': TypeInfo(TypeOf.Class, create:() => ProviderConfigEntry()),
    'ResourceProvider': TypeInfo(TypeOf.Class, create:() => ResourceProvider()),
    'List<Environments>': TypeInfo(TypeOf.Class, create:() => <Environments>[]),
    'List<ProviderConfigEntry>': TypeInfo(TypeOf.Class, create:() => <ProviderConfigEntry>[]),
    'Resource': TypeInfo(TypeOf.Class, create:() => Resource()),
    'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
    'Update': TypeInfo(TypeOf.Class, create:() => Update()),
    'ResourceUpdate': TypeInfo(TypeOf.Class, create:() => ResourceUpdate()),
    'Aggregations': TypeInfo(TypeOf.Enum, enumValues:Aggregations.values),
    'QueryResourceUpdates': TypeInfo(TypeOf.Class, create:() => QueryResourceUpdates()),
    'List<ResourceUpdate>': TypeInfo(TypeOf.Class, create:() => <ResourceUpdate>[]),
    'Tenant': TypeInfo(TypeOf.Class, create:() => Tenant()),
    'IntervalUnits': TypeInfo(TypeOf.Enum, enumValues:IntervalUnits.values),
    'TimeSeriesDefinition': TypeInfo(TypeOf.Class, create:() => TimeSeriesDefinition()),
    'List<TimeSeriesDefinition>': TypeInfo(TypeOf.Class, create:() => <TimeSeriesDefinition>[]),
});

Dart QueryResourceUpdates 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/resourceupdates HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"offset":0,"total":0,"results":[{"id":"00000000-0000-0000-0000-000000000000","resourceId":"00000000-0000-0000-0000-000000000000","resource":{"tenantId":"00000000-0000-0000-0000-000000000000","extId":"String","extType":"String","extName":"String","name":"String","objectType":"None","selfLink":"String","parentId":"00000000-0000-0000-0000-000000000000","parent":{"shortId":"String","tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"ResourceGroup","selfLink":"/resourcegroups/00000000-0000-0000-0000-000000000000","environment":"Lab","state":"New","parentId":"00000000-0000-0000-0000-000000000000","parent":{"shortId":"String","tenantId":"00000000-0000-0000-0000-000000000000","name":"String","nameUserDefinedPart":"String","objectType":"Deployment","selfLink":"/deployments/00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Collection","selfLink":"/collections/00000000-0000-0000-0000-000000000000","variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"validFrom":"0001-01-01T00:00:00.0000000Z","validUntil":"0001-01-01T00:00:00.0000000Z","isNeverExpiring":false,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","defaultResourceProviderId":"00000000-0000-0000-0000-000000000000","needsAttention":false,"composition":"Native","monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"templateId":"00000000-0000-0000-0000-000000000000","parameters":null,"variables":null,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","composition":"Native","id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"deploymentId":"00000000-0000-0000-0000-000000000000","deployment":{"shortId":"String","tenantId":"00000000-0000-0000-0000-000000000000","name":"String","nameUserDefinedPart":"String","objectType":"Deployment","selfLink":"/deployments/00000000-0000-0000-0000-000000000000","state":"New","environment":"Lab","templateId":"00000000-0000-0000-0000-000000000000","parameters":null,"variables":null,"variablesSnapshot":null,"parentId":"00000000-0000-0000-0000-000000000000","parent":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Collection","selfLink":"/collections/00000000-0000-0000-0000-000000000000","variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"validFrom":"0001-01-01T00:00:00.0000000Z","validUntil":"0001-01-01T00:00:00.0000000Z","isNeverExpiring":false,"nextPatchDate":"0001-01-01T00:00:00.0000000Z","defaultResourceProviderId":"00000000-0000-0000-0000-000000000000","needsAttention":false,"composition":"Native","monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"operationalState":"None","resourcesRunning":0,"resourcesTotal":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"collectionId":"00000000-0000-0000-0000-000000000000","collection":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Collection","selfLink":"/collections/00000000-0000-0000-0000-000000000000","variables":null,"isLostAndFound":false,"monthlyBudget":0,"sendBudgetNotificationMails":false,"budgetWarningThresholdPercent":0,"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"resourceProviderId":"00000000-0000-0000-0000-000000000000","resourceProvider":{"tenantId":"00000000-0000-0000-0000-000000000000","name":"String","defaultEnvironment":"Lab","allowedEnvironments":null,"objectType":"ResourceProvider","type":"Azure","selfLink":"/resourceproviders/00000000-0000-0000-0000-000000000000","config":null,"isDisabled":false,"isReadyForDeployments":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"state":"None","environment":"Lab","variables":null,"location":"String","lastSeen":"0001-01-01T00:00:00.0000000Z","lastPatchDate":"0001-01-01T00:00:00.0000000Z","nextPatchDate":"0001-01-01T00:00:00.0000000Z","lastBackupDate":"0001-01-01T00:00:00.0000000Z","isForeign":false,"isAlerting":false,"alertingDisabledId":"String","alertingDisabledReason":"String","isVulnerable":false,"vulnerabilityReason":"String","vulnerableSince":"0001-01-01T00:00:00.0000000Z","isMissingOnProvider":false,"supportsStartStop":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","config":{"String":{}},"id":"00000000-0000-0000-0000-000000000000","displayName":"String","description":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"},"updateId":"00000000-0000-0000-0000-000000000000","update":{"id":"00000000-0000-0000-0000-000000000000","name":"String","objectType":"Update","severity":"String","published":"0001-01-01T00:00:00.0000000Z","classifications":["String"],"isRebootRequired":false,"extId":"String","version":"String","selfLink":"/patching/updates/00000000-0000-0000-0000-000000000000"},"isPending":false,"installDate":"0001-01-01T00:00:00.0000000Z","selfLink":"/patching/resourceupdates/00000000-0000-0000-0000-000000000000"}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}