| Required role: | TenantReader |
| GET | /api/resourcegroups/search | Returns all resourcegroups | |
|---|---|---|---|
| GET | /resourcegroups/search | Returns all resourcegroups |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
/**
* GetResourceGroups
*/
@Api(Description="GetResourceGroups")
@ApiResponse(Description="Success", IsDefaultResponse=true, ResponseType=0, Culture=neutral, PublicKeyToken=null]].class, StatusCode=200)
public static class SearchResourceGroups extends QueryDb<ResourceGroup> implements IGetMultipleRequest, IHasTenantName, IGet, IGroupable
{
/**
* Searches for name or displayname containing the value
*/
@ApiMember(DataType="string", Description="Searches for name or displayname containing the value", ParameterType="query")
@Validate(Validator="MinimumLength(3)")
public String identity = null;
@Validate(Validator="MinimumLength(3)")
public String name = null;
@Validate(Validator="MinimumLength(3)")
public String displayName = null;
@ApiMember(DataType="string", IsRequired=true, ParameterType="header")
@Validate(Validator="NotEmpty")
public String tenantName = null;
/**
* If true, also soft deleted items will be returned
*/
@ApiMember(Description="If true, also soft deleted items will be returned", ParameterType="query")
public Boolean includeDeleted = null;
/**
* Returns all referenced object
*/
@ApiMember(Description="Returns all referenced object", ParameterType="query")
public Boolean includeReferencedObjects = null;
/**
* The property, the data will be grouped on
*/
@ApiMember(Description="The property, the data will be grouped on", ParameterType="query")
public String groupBy = null;
/**
* The property, used for aggregation
*/
@ApiMember(Description="The property, used for aggregation", ParameterType="query")
public String aggregateOn = null;
/**
* The aggregation function to use
*/
@ApiMember(Description="The aggregation function to use", ParameterType="query")
public Aggregations aggregation = null;
public String getIdentity() { return identity; }
public SearchResourceGroups setIdentity(String value) { this.identity = value; return this; }
public String getName() { return name; }
public SearchResourceGroups setName(String value) { this.name = value; return this; }
public String getDisplayName() { return displayName; }
public SearchResourceGroups setDisplayName(String value) { this.displayName = value; return this; }
public String getTenantName() { return tenantName; }
public SearchResourceGroups setTenantName(String value) { this.tenantName = value; return this; }
public Boolean isIncludeDeleted() { return includeDeleted; }
public SearchResourceGroups setIncludeDeleted(Boolean value) { this.includeDeleted = value; return this; }
public Boolean isIncludeReferencedObjects() { return includeReferencedObjects; }
public SearchResourceGroups setIncludeReferencedObjects(Boolean value) { this.includeReferencedObjects = value; return this; }
public String getGroupBy() { return groupBy; }
public SearchResourceGroups setGroupBy(String value) { this.groupBy = value; return this; }
public String getAggregateOn() { return aggregateOn; }
public SearchResourceGroups setAggregateOn(String value) { this.aggregateOn = value; return this; }
public Aggregations getAggregation() { return aggregation; }
public SearchResourceGroups setAggregation(Aggregations value) { this.aggregation = value; return this; }
}
public static class QueryDb<T> extends QueryBase
{
}
@DataContract
public static class QueryBase
{
@DataMember(Order=1)
public Integer skip = null;
@DataMember(Order=2)
public Integer take = null;
@DataMember(Order=3)
public String orderBy = null;
@DataMember(Order=4)
public String orderByDesc = null;
@DataMember(Order=5)
public String include = null;
@DataMember(Order=6)
public String fields = null;
@DataMember(Order=7)
public HashMap<String,String> meta = null;
public Integer getSkip() { return skip; }
public QueryBase setSkip(Integer value) { this.skip = value; return this; }
public Integer getTake() { return take; }
public QueryBase setTake(Integer value) { this.take = value; return this; }
public String getOrderBy() { return orderBy; }
public QueryBase setOrderBy(String value) { this.orderBy = value; return this; }
public String getOrderByDesc() { return orderByDesc; }
public QueryBase setOrderByDesc(String value) { this.orderByDesc = value; return this; }
public String getInclude() { return include; }
public QueryBase setInclude(String value) { this.include = value; return this; }
public String getFields() { return fields; }
public QueryBase setFields(String value) { this.fields = value; return this; }
public HashMap<String,String> getMeta() { return meta; }
public QueryBase setMeta(HashMap<String,String> value) { this.meta = value; return this; }
}
public static class ResourceGroup extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IHasSequence
{
@Required()
public String shortId = null;
@Required()
public UUID tenantId = null;
@Required()
@StringLength(MaximumLength=50)
public String name = null;
@Required()
public ObjectTypes objectType = null;
@Ignore()
public String selfLink = null;
@Required()
public Environments environment = null;
@Required()
public LifecycleStates state = null;
@Required()
@References(Type=Deployment.class)
public UUID parentId = null;
public Deployment parent = null;
public UUID templateId = null;
@Required()
public IList<Parameter> parameters = null;
@Required()
public IList<Variable> variables = null;
public Date nextPatchDate = null;
public ResourceCompositions composition = null;
public String getShortId() { return shortId; }
public ResourceGroup setShortId(String value) { this.shortId = value; return this; }
public UUID getTenantId() { return tenantId; }
public ResourceGroup setTenantId(UUID value) { this.tenantId = value; return this; }
public String getName() { return name; }
public ResourceGroup setName(String value) { this.name = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public ResourceGroup setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public String getSelfLink() { return selfLink; }
public ResourceGroup setSelfLink(String value) { this.selfLink = value; return this; }
public Environments getEnvironment() { return environment; }
public ResourceGroup setEnvironment(Environments value) { this.environment = value; return this; }
public LifecycleStates getState() { return state; }
public ResourceGroup setState(LifecycleStates value) { this.state = value; return this; }
public UUID getParentId() { return parentId; }
public ResourceGroup setParentId(UUID value) { this.parentId = value; return this; }
public Deployment getParent() { return parent; }
public ResourceGroup setParent(Deployment value) { this.parent = value; return this; }
public UUID getTemplateId() { return templateId; }
public ResourceGroup setTemplateId(UUID value) { this.templateId = value; return this; }
public IList<Parameter> getParameters() { return parameters; }
public ResourceGroup setParameters(IList<Parameter> value) { this.parameters = value; return this; }
public IList<Variable> getVariables() { return variables; }
public ResourceGroup setVariables(IList<Variable> value) { this.variables = value; return this; }
public Date getNextPatchDate() { return nextPatchDate; }
public ResourceGroup setNextPatchDate(Date value) { this.nextPatchDate = value; return this; }
public ResourceCompositions getComposition() { return composition; }
public ResourceGroup setComposition(ResourceCompositions value) { this.composition = value; return this; }
}
public static class ConfigItem extends Auditable implements IConfigItem
{
public UUID id = null;
@Required()
public String name = null;
@Required()
@StringLength(MaximumLength=250)
public String displayName = null;
@StringLength(MaximumLength=8000)
public String description = null;
public ObjectTypes objectType = null;
@Ignore()
public String selfLink = null;
@Required()
public IList<Tag> tags = null;
@Required()
public IList<PathItem> path = null;
public UUID getId() { return id; }
public ConfigItem setId(UUID value) { this.id = value; return this; }
public String getName() { return name; }
public ConfigItem setName(String value) { this.name = value; return this; }
public String getDisplayName() { return displayName; }
public ConfigItem setDisplayName(String value) { this.displayName = value; return this; }
public String getDescription() { return description; }
public ConfigItem setDescription(String value) { this.description = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public ConfigItem setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public String getSelfLink() { return selfLink; }
public ConfigItem setSelfLink(String value) { this.selfLink = value; return this; }
public IList<Tag> getTags() { return tags; }
public ConfigItem setTags(IList<Tag> value) { this.tags = value; return this; }
public IList<PathItem> getPath() { return path; }
public ConfigItem setPath(IList<PathItem> value) { this.path = value; return this; }
}
public static class Auditable implements IAuditable
{
@Required()
public Date created = null;
@Required()
public String createUser = null;
@Required()
public String createUserId = null;
@Required()
public Date modified = null;
@Required()
public String modifyUser = null;
@Required()
public String modifyUserId = null;
@Required()
public Boolean isDeleted = null;
public Date deleted = null;
public String deleteUser = null;
public String deleteUserId = null;
public Date getCreated() { return created; }
public Auditable setCreated(Date value) { this.created = value; return this; }
public String getCreateUser() { return createUser; }
public Auditable setCreateUser(String value) { this.createUser = value; return this; }
public String getCreateUserId() { return createUserId; }
public Auditable setCreateUserId(String value) { this.createUserId = value; return this; }
public Date getModified() { return modified; }
public Auditable setModified(Date value) { this.modified = value; return this; }
public String getModifyUser() { return modifyUser; }
public Auditable setModifyUser(String value) { this.modifyUser = value; return this; }
public String getModifyUserId() { return modifyUserId; }
public Auditable setModifyUserId(String value) { this.modifyUserId = value; return this; }
public Boolean getIsDeleted() { return isDeleted; }
public Auditable setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
public Date getDeleted() { return deleted; }
public Auditable setDeleted(Date value) { this.deleted = value; return this; }
public String getDeleteUser() { return deleteUser; }
public Auditable setDeleteUser(String value) { this.deleteUser = value; return this; }
public String getDeleteUserId() { return deleteUserId; }
public Auditable setDeleteUserId(String value) { this.deleteUserId = value; return this; }
}
public static 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;
}
public static class Tag
{
public String name = null;
public String value = null;
public Boolean isProtected = null;
public String getName() { return name; }
public Tag setName(String value) { this.name = value; return this; }
public String getValue() { return value; }
public Tag setValue(String value) { this.value = value; return this; }
public Boolean getIsProtected() { return isProtected; }
public Tag setIsProtected(Boolean value) { this.isProtected = value; return this; }
}
public static class PathItem
{
public String label = null;
public String link = null;
public ObjectTypes objectType = null;
public UUID objectId = null;
public String getLabel() { return label; }
public PathItem setLabel(String value) { this.label = value; return this; }
public String getLink() { return link; }
public PathItem setLink(String value) { this.link = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public PathItem setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public UUID getObjectId() { return objectId; }
public PathItem setObjectId(UUID value) { this.objectId = value; return this; }
}
public static enum Environments
{
Lab,
Poc,
Dev,
Test,
Int,
Uat,
Prod;
}
public static enum LifecycleStates
{
New,
Deploying,
Deployed,
Removing,
Removed,
Failure,
Imported;
}
public static class Deployment extends ConfigItem implements IHasTenantId, IHasVariables, IEnvironmentSpecific, IHasSequence
{
@Required()
public String shortId = null;
@Required()
public UUID tenantId = null;
@Required()
@StringLength(MaximumLength=100)
public String name = null;
@Required()
public String nameUserDefinedPart = null;
@Required()
public ObjectTypes objectType = null;
@Ignore()
public String selfLink = null;
@Required()
public LifecycleStates state = null;
@Required()
public Environments environment = null;
public UUID templateId = null;
@Required()
public IList<Parameter> parameters = null;
@Required()
public IList<Variable> variables = null;
@Required()
public IList<Variable> variablesSnapshot = null;
@Required()
@References(Type=DeploymentCollection.class)
public UUID parentId = null;
public DeploymentCollection parent = null;
@Required()
public Date validFrom = null;
public Date validUntil = null;
@Required()
public Boolean isNeverExpiring = null;
public Date nextPatchDate = null;
@Required()
public UUID defaultResourceProviderId = null;
@Required()
public Boolean needsAttention = null;
public ResourceCompositions composition = null;
public BigDecimal monthlyBudget = null;
public Boolean sendBudgetNotificationMails = null;
public Integer budgetWarningThresholdPercent = null;
public OperationalStates operationalState = null;
public Integer resourcesRunning = null;
public Integer resourcesTotal = null;
public String getShortId() { return shortId; }
public Deployment setShortId(String value) { this.shortId = value; return this; }
public UUID getTenantId() { return tenantId; }
public Deployment setTenantId(UUID value) { this.tenantId = value; return this; }
public String getName() { return name; }
public Deployment setName(String value) { this.name = value; return this; }
public String getNameUserDefinedPart() { return nameUserDefinedPart; }
public Deployment setNameUserDefinedPart(String value) { this.nameUserDefinedPart = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public Deployment setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public String getSelfLink() { return selfLink; }
public Deployment setSelfLink(String value) { this.selfLink = value; return this; }
public LifecycleStates getState() { return state; }
public Deployment setState(LifecycleStates value) { this.state = value; return this; }
public Environments getEnvironment() { return environment; }
public Deployment setEnvironment(Environments value) { this.environment = value; return this; }
public UUID getTemplateId() { return templateId; }
public Deployment setTemplateId(UUID value) { this.templateId = value; return this; }
public IList<Parameter> getParameters() { return parameters; }
public Deployment setParameters(IList<Parameter> value) { this.parameters = value; return this; }
public IList<Variable> getVariables() { return variables; }
public Deployment setVariables(IList<Variable> value) { this.variables = value; return this; }
public IList<Variable> getVariablesSnapshot() { return variablesSnapshot; }
public Deployment setVariablesSnapshot(IList<Variable> value) { this.variablesSnapshot = value; return this; }
public UUID getParentId() { return parentId; }
public Deployment setParentId(UUID value) { this.parentId = value; return this; }
public DeploymentCollection getParent() { return parent; }
public Deployment setParent(DeploymentCollection value) { this.parent = value; return this; }
public Date getValidFrom() { return validFrom; }
public Deployment setValidFrom(Date value) { this.validFrom = value; return this; }
public Date getValidUntil() { return validUntil; }
public Deployment setValidUntil(Date value) { this.validUntil = value; return this; }
public Boolean getIsNeverExpiring() { return isNeverExpiring; }
public Deployment setIsNeverExpiring(Boolean value) { this.isNeverExpiring = value; return this; }
public Date getNextPatchDate() { return nextPatchDate; }
public Deployment setNextPatchDate(Date value) { this.nextPatchDate = value; return this; }
public UUID getDefaultResourceProviderId() { return defaultResourceProviderId; }
public Deployment setDefaultResourceProviderId(UUID value) { this.defaultResourceProviderId = value; return this; }
public Boolean isNeedsAttention() { return needsAttention; }
public Deployment setNeedsAttention(Boolean value) { this.needsAttention = value; return this; }
public ResourceCompositions getComposition() { return composition; }
public Deployment setComposition(ResourceCompositions value) { this.composition = value; return this; }
public BigDecimal getMonthlyBudget() { return monthlyBudget; }
public Deployment setMonthlyBudget(BigDecimal value) { this.monthlyBudget = value; return this; }
public Boolean isSendBudgetNotificationMails() { return sendBudgetNotificationMails; }
public Deployment setSendBudgetNotificationMails(Boolean value) { this.sendBudgetNotificationMails = value; return this; }
public Integer getBudgetWarningThresholdPercent() { return budgetWarningThresholdPercent; }
public Deployment setBudgetWarningThresholdPercent(Integer value) { this.budgetWarningThresholdPercent = value; return this; }
public OperationalStates getOperationalState() { return operationalState; }
public Deployment setOperationalState(OperationalStates value) { this.operationalState = value; return this; }
public Integer getResourcesRunning() { return resourcesRunning; }
public Deployment setResourcesRunning(Integer value) { this.resourcesRunning = value; return this; }
public Integer getResourcesTotal() { return resourcesTotal; }
public Deployment setResourcesTotal(Integer value) { this.resourcesTotal = value; return this; }
}
public static class Parameter
{
public String name = null;
public String description = null;
public String value = null;
@SerializedName("default") public String Default = null;
public Boolean optional = null;
public ParameterValueType type = null;
public String validation = null;
public String getName() { return name; }
public Parameter setName(String value) { this.name = value; return this; }
public String getDescription() { return description; }
public Parameter setDescription(String value) { this.description = value; return this; }
public String getValue() { return value; }
public Parameter setValue(String value) { this.value = value; return this; }
public String getDefault() { return Default; }
public Parameter setDefault(String value) { this.Default = value; return this; }
public Boolean isOptional() { return optional; }
public Parameter setOptional(Boolean value) { this.optional = value; return this; }
public ParameterValueType getType() { return type; }
public Parameter setType(ParameterValueType value) { this.type = value; return this; }
public String getValidation() { return validation; }
public Parameter setValidation(String value) { this.validation = value; return this; }
}
public static enum ParameterValueType
{
String,
Number,
Boolean,
SecureString;
}
public static class Variable
{
public String name = null;
public String value = null;
public ValueDataType type = null;
public String description = null;
public Boolean isInherited = null;
public Environments environment = null;
public String getName() { return name; }
public Variable setName(String value) { this.name = value; return this; }
public String getValue() { return value; }
public Variable setValue(String value) { this.value = value; return this; }
public ValueDataType getType() { return type; }
public Variable setType(ValueDataType value) { this.type = value; return this; }
public String getDescription() { return description; }
public Variable setDescription(String value) { this.description = value; return this; }
public Boolean getIsInherited() { return isInherited; }
public Variable setIsInherited(Boolean value) { this.isInherited = value; return this; }
public Environments getEnvironment() { return environment; }
public Variable setEnvironment(Environments value) { this.environment = value; return this; }
}
public static enum ValueDataType
{
String,
Number,
Boolean,
List;
}
public static class DeploymentCollection extends ConfigItem implements IHasTenantId, IHasVariables
{
@Required()
public UUID tenantId = null;
@Required()
@StringLength(MaximumLength=50)
public String name = null;
@Required()
public ObjectTypes objectType = null;
@Ignore()
public String selfLink = null;
@Required()
public IList<Variable> variables = null;
@Required()
public Boolean isLostAndFound = null;
public BigDecimal monthlyBudget = null;
public Boolean sendBudgetNotificationMails = null;
public Integer budgetWarningThresholdPercent = null;
public UUID getTenantId() { return tenantId; }
public DeploymentCollection setTenantId(UUID value) { this.tenantId = value; return this; }
public String getName() { return name; }
public DeploymentCollection setName(String value) { this.name = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public DeploymentCollection setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public String getSelfLink() { return selfLink; }
public DeploymentCollection setSelfLink(String value) { this.selfLink = value; return this; }
public IList<Variable> getVariables() { return variables; }
public DeploymentCollection setVariables(IList<Variable> value) { this.variables = value; return this; }
public Boolean getIsLostAndFound() { return isLostAndFound; }
public DeploymentCollection setIsLostAndFound(Boolean value) { this.isLostAndFound = value; return this; }
public BigDecimal getMonthlyBudget() { return monthlyBudget; }
public DeploymentCollection setMonthlyBudget(BigDecimal value) { this.monthlyBudget = value; return this; }
public Boolean isSendBudgetNotificationMails() { return sendBudgetNotificationMails; }
public DeploymentCollection setSendBudgetNotificationMails(Boolean value) { this.sendBudgetNotificationMails = value; return this; }
public Integer getBudgetWarningThresholdPercent() { return budgetWarningThresholdPercent; }
public DeploymentCollection setBudgetWarningThresholdPercent(Integer value) { this.budgetWarningThresholdPercent = value; return this; }
}
public static enum ResourceCompositions
{
Native,
Foreign,
Mixed;
}
public static enum OperationalStates
{
None,
Starting,
Running,
Stopping,
Stopped,
Restarting,
Deleting,
Unknown;
}
public static enum Aggregations
{
None,
Count,
DistinctCount,
Sum,
Min,
Max,
Avg,
First;
}
@DataContract
public static class QueryResponse<T>
{
@DataMember(Order=1)
public Integer offset = null;
@DataMember(Order=2)
public Integer total = null;
@DataMember(Order=3)
public ArrayList<TimeSeriesDefinition> results = new ArrayList<TimeSeriesDefinition>();
@DataMember(Order=4)
public HashMap<String,String> meta = null;
@DataMember(Order=5)
public ResponseStatus responseStatus = null;
public Integer getOffset() { return offset; }
public QueryResponse<T> setOffset(Integer value) { this.offset = value; return this; }
public Integer getTotal() { return total; }
public QueryResponse<T> setTotal(Integer value) { this.total = value; return this; }
public ArrayList<TimeSeriesDefinition> getResults() { return results; }
public QueryResponse<T> setResults(ArrayList<TimeSeriesDefinition> value) { this.results = value; return this; }
public HashMap<String,String> getMeta() { return meta; }
public QueryResponse<T> setMeta(HashMap<String,String> value) { this.meta = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public QueryResponse<T> setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class TimeSeriesDefinition extends Auditable implements IHasIdName, IHasTenantId, IHasObjectType
{
public UUID id = null;
@References(Type=Tenant.class)
public UUID tenantId = null;
public Tenant tenant = null;
public String name = null;
public String displayName = null;
@Ignore()
public String selfLink = null;
@Required()
public ObjectTypes objectType = null;
public String description = null;
public ObjectTypes sourceType = null;
public Boolean autoCollection = null;
public String autoCollectionQuery = null;
public Integer autoCollectionInterval = null;
public IntervalUnits autoCollectionIntervalUnit = null;
public TimeSpan autoCollectionTime = null;
public Date lastAutoCollected = null;
public Integer retentionTimeMonths = null;
public UUID getId() { return id; }
public TimeSeriesDefinition setId(UUID value) { this.id = value; return this; }
public UUID getTenantId() { return tenantId; }
public TimeSeriesDefinition setTenantId(UUID value) { this.tenantId = value; return this; }
public Tenant getTenant() { return tenant; }
public TimeSeriesDefinition setTenant(Tenant value) { this.tenant = value; return this; }
public String getName() { return name; }
public TimeSeriesDefinition setName(String value) { this.name = value; return this; }
public String getDisplayName() { return displayName; }
public TimeSeriesDefinition setDisplayName(String value) { this.displayName = value; return this; }
public String getSelfLink() { return selfLink; }
public TimeSeriesDefinition setSelfLink(String value) { this.selfLink = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public TimeSeriesDefinition setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public String getDescription() { return description; }
public TimeSeriesDefinition setDescription(String value) { this.description = value; return this; }
public ObjectTypes getSourceType() { return sourceType; }
public TimeSeriesDefinition setSourceType(ObjectTypes value) { this.sourceType = value; return this; }
public Boolean isAutoCollection() { return autoCollection; }
public TimeSeriesDefinition setAutoCollection(Boolean value) { this.autoCollection = value; return this; }
public String getAutoCollectionQuery() { return autoCollectionQuery; }
public TimeSeriesDefinition setAutoCollectionQuery(String value) { this.autoCollectionQuery = value; return this; }
public Integer getAutoCollectionInterval() { return autoCollectionInterval; }
public TimeSeriesDefinition setAutoCollectionInterval(Integer value) { this.autoCollectionInterval = value; return this; }
public IntervalUnits getAutoCollectionIntervalUnit() { return autoCollectionIntervalUnit; }
public TimeSeriesDefinition setAutoCollectionIntervalUnit(IntervalUnits value) { this.autoCollectionIntervalUnit = value; return this; }
public TimeSpan getAutoCollectionTime() { return autoCollectionTime; }
public TimeSeriesDefinition setAutoCollectionTime(TimeSpan value) { this.autoCollectionTime = value; return this; }
public Date getLastAutoCollected() { return lastAutoCollected; }
public TimeSeriesDefinition setLastAutoCollected(Date value) { this.lastAutoCollected = value; return this; }
public Integer getRetentionTimeMonths() { return retentionTimeMonths; }
public TimeSeriesDefinition setRetentionTimeMonths(Integer value) { this.retentionTimeMonths = value; return this; }
}
public static class Tenant extends ConfigItem implements IHasVariables
{
@Required()
@StringLength(MaximumLength=10)
public String name = null;
@Required()
public ObjectTypes objectType = null;
@Ignore()
public String selfLink = null;
@Required()
public IList<Variable> variables = null;
@Required()
public IList<String> allowedMailDomains = null;
@Required()
public IList<String> licensedModules = null;
@Required()
public Short defaultDeploymentLifetimeDays = null;
@Required()
public Short maxDeploymentLifetimeDays = null;
@Required()
public Short systemUnpatchedWarningDays = null;
@Required()
public Short systemBackupMissingWarningHours = null;
@Required()
public Short stopVulnerableResourceAfterDays = null;
@Required()
public Short deploymentExpirationWarningDays = null;
@Required()
public Short patchNotificationDays = null;
@Required()
public Boolean useCustomHostnames = null;
@Required()
public Short removeInactiveVulnerabilitiesAfterDays = null;
public String getName() { return name; }
public Tenant setName(String value) { this.name = value; return this; }
public ObjectTypes getObjectType() { return objectType; }
public Tenant setObjectType(ObjectTypes value) { this.objectType = value; return this; }
public String getSelfLink() { return selfLink; }
public Tenant setSelfLink(String value) { this.selfLink = value; return this; }
public IList<Variable> getVariables() { return variables; }
public Tenant setVariables(IList<Variable> value) { this.variables = value; return this; }
public IList<String> getAllowedMailDomains() { return allowedMailDomains; }
public Tenant setAllowedMailDomains(IList<String> value) { this.allowedMailDomains = value; return this; }
public IList<String> getLicensedModules() { return licensedModules; }
public Tenant setLicensedModules(IList<String> value) { this.licensedModules = value; return this; }
public Short getDefaultDeploymentLifetimeDays() { return defaultDeploymentLifetimeDays; }
public Tenant setDefaultDeploymentLifetimeDays(Short value) { this.defaultDeploymentLifetimeDays = value; return this; }
public Short getMaxDeploymentLifetimeDays() { return maxDeploymentLifetimeDays; }
public Tenant setMaxDeploymentLifetimeDays(Short value) { this.maxDeploymentLifetimeDays = value; return this; }
public Short getSystemUnpatchedWarningDays() { return systemUnpatchedWarningDays; }
public Tenant setSystemUnpatchedWarningDays(Short value) { this.systemUnpatchedWarningDays = value; return this; }
public Short getSystemBackupMissingWarningHours() { return systemBackupMissingWarningHours; }
public Tenant setSystemBackupMissingWarningHours(Short value) { this.systemBackupMissingWarningHours = value; return this; }
public Short getStopVulnerableResourceAfterDays() { return stopVulnerableResourceAfterDays; }
public Tenant setStopVulnerableResourceAfterDays(Short value) { this.stopVulnerableResourceAfterDays = value; return this; }
public Short getDeploymentExpirationWarningDays() { return deploymentExpirationWarningDays; }
public Tenant setDeploymentExpirationWarningDays(Short value) { this.deploymentExpirationWarningDays = value; return this; }
public Short getPatchNotificationDays() { return patchNotificationDays; }
public Tenant setPatchNotificationDays(Short value) { this.patchNotificationDays = value; return this; }
public Boolean isUseCustomHostnames() { return useCustomHostnames; }
public Tenant setUseCustomHostnames(Boolean value) { this.useCustomHostnames = value; return this; }
public Short getRemoveInactiveVulnerabilitiesAfterDays() { return removeInactiveVulnerabilitiesAfterDays; }
public Tenant setRemoveInactiveVulnerabilitiesAfterDays(Short value) { this.removeInactiveVulnerabilitiesAfterDays = value; return this; }
}
public static enum IntervalUnits
{
Second,
Minute,
Hour,
Day,
Week,
Month,
Year;
}
}
Java SearchResourceGroups 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/resourcegroups/search 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":[{"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"}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}