Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/
public class ManagedServiceIdentity {
/**
* Type of managed service identity.
* Type of managed service identity. Possible values include:
* 'SystemAssigned'.
*/
@JsonProperty(value = "type")
private Object type;
private ManagedServiceIdentityType type;

/**
* Tenant of managed service identity.
Expand All @@ -37,7 +38,7 @@ public class ManagedServiceIdentity {
*
* @return the type value
*/
public Object type() {
public ManagedServiceIdentityType type() {
return this.type;
}

Expand All @@ -47,7 +48,7 @@ public Object type() {
* @param type the type value to set
* @return the ManagedServiceIdentity object itself.
*/
public ManagedServiceIdentity withType(Object type) {
public ManagedServiceIdentity withType(ManagedServiceIdentityType type) {
this.type = type;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,143 +15,146 @@
import com.microsoft.azure.management.web.Channels;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.web.ProxyOnlyResource;

/**
* Represents a recommendation result generated by the recommendation engine.
*/
public class RecommendationInner {
@JsonFlatten
public class RecommendationInner extends ProxyOnlyResource {
/**
* Timestamp when this instance was created.
*/
@JsonProperty(value = "creationTime")
@JsonProperty(value = "properties.creationTime")
private DateTime creationTime;

/**
* A GUID value that each recommendation object is associated with.
*/
@JsonProperty(value = "recommendationId")
@JsonProperty(value = "properties.recommendationId")
private UUID recommendationId;

/**
* Full ARM resource ID string that this recommendation object is
* associated with.
*/
@JsonProperty(value = "resourceId")
@JsonProperty(value = "properties.resourceId")
private String resourceId;

/**
* Name of a resource type this recommendation applies, e.g. Subscription,
* ServerFarm, Site. Possible values include: 'ServerFarm', 'Subscription',
* 'WebSite'.
*/
@JsonProperty(value = "resourceScope")
@JsonProperty(value = "properties.resourceScope")
private ResourceScopeType resourceScope;

/**
* Unique name of the rule.
*/
@JsonProperty(value = "ruleName")
@JsonProperty(value = "properties.ruleName")
private String ruleName;

/**
* UI friendly name of the rule (may not be unique).
*/
@JsonProperty(value = "displayName")
@JsonProperty(value = "properties.displayName")
private String displayName;

/**
* Recommendation text.
*/
@JsonProperty(value = "message")
@JsonProperty(value = "properties.message")
private String message;

/**
* Level indicating how critical this recommendation can impact. Possible
* values include: 'Critical', 'Warning', 'Information',
* 'NonUrgentSuggestion'.
*/
@JsonProperty(value = "level")
@JsonProperty(value = "properties.level")
private NotificationLevel level;

/**
* List of channels that this recommendation can apply. Possible values
* include: 'Notification', 'Api', 'Email', 'Webhook', 'All'.
*/
@JsonProperty(value = "channels")
@JsonProperty(value = "properties.channels")
private Channels channels;

/**
* The list of category tags that this recommendation belongs to.
*/
@JsonProperty(value = "tags")
@JsonProperty(value = "properties.tags")
private List<String> tags;

/**
* Name of action recommended by this object.
*/
@JsonProperty(value = "actionName")
@JsonProperty(value = "properties.actionName")
private String actionName;

/**
* The beginning time in UTC of a range that the recommendation refers to.
*/
@JsonProperty(value = "startTime")
@JsonProperty(value = "properties.startTime")
private DateTime startTime;

/**
* The end time in UTC of a range that the recommendation refers to.
*/
@JsonProperty(value = "endTime")
@JsonProperty(value = "properties.endTime")
private DateTime endTime;

/**
* When to notify this recommendation next in UTC. Null means that this
* will never be notified anymore.
*/
@JsonProperty(value = "nextNotificationTime")
@JsonProperty(value = "properties.nextNotificationTime")
private DateTime nextNotificationTime;

/**
* Date and time in UTC when this notification expires.
*/
@JsonProperty(value = "notificationExpirationTime")
@JsonProperty(value = "properties.notificationExpirationTime")
private DateTime notificationExpirationTime;

/**
* Last timestamp in UTC this instance was actually notified. Null means
* that this recommendation hasn't been notified yet.
*/
@JsonProperty(value = "notifiedTime")
@JsonProperty(value = "properties.notifiedTime")
private DateTime notifiedTime;

/**
* A metric value measured by the rule.
*/
@JsonProperty(value = "score")
@JsonProperty(value = "properties.score")
private Double score;

/**
* True if this is associated with a dynamically added rule.
*/
@JsonProperty(value = "isDynamic")
@JsonProperty(value = "properties.isDynamic")
private Boolean isDynamic;

/**
* Extension name of the portal if exists.
*/
@JsonProperty(value = "extensionName")
@JsonProperty(value = "properties.extensionName")
private String extensionName;

/**
* Deep link to a blade on the portal.
*/
@JsonProperty(value = "bladeName")
@JsonProperty(value = "properties.bladeName")
private String bladeName;

/**
* Forward link to an external document associated with the rule.
*/
@JsonProperty(value = "forwardLink")
@JsonProperty(value = "properties.forwardLink")
private String forwardLink;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,111 +13,114 @@
import com.microsoft.azure.management.web.Channels;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.web.ProxyOnlyResource;

/**
* Represents a recommendation rule that the recommendation engine can perform.
*/
public class RecommendationRuleInner {
@JsonFlatten
public class RecommendationRuleInner extends ProxyOnlyResource {
/**
* Unique name of the rule.
*/
@JsonProperty(value = "name")
private String name;
@JsonProperty(value = "properties.name")
private String recommendationRuleName;

/**
* UI friendly name of the rule.
*/
@JsonProperty(value = "displayName")
@JsonProperty(value = "properties.displayName")
private String displayName;

/**
* Localized name of the rule (Good for UI).
*/
@JsonProperty(value = "message")
@JsonProperty(value = "properties.message")
private String message;

/**
* Recommendation ID of an associated recommendation object tied to the
* rule, if exists.
* If such an object doesn't exist, it is set to null.
*/
@JsonProperty(value = "recommendationId")
@JsonProperty(value = "properties.recommendationId")
private UUID recommendationId;

/**
* Localized detailed description of the rule.
*/
@JsonProperty(value = "description")
@JsonProperty(value = "properties.description")
private String description;

/**
* Name of action that is recommended by this rule in string.
*/
@JsonProperty(value = "actionName")
@JsonProperty(value = "properties.actionName")
private String actionName;

/**
* Level of impact indicating how critical this rule is. Possible values
* include: 'Critical', 'Warning', 'Information', 'NonUrgentSuggestion'.
*/
@JsonProperty(value = "level")
@JsonProperty(value = "properties.level")
private NotificationLevel level;

/**
* List of available channels that this rule applies. Possible values
* include: 'Notification', 'Api', 'Email', 'Webhook', 'All'.
*/
@JsonProperty(value = "channels")
@JsonProperty(value = "properties.channels")
private Channels channels;

/**
* An array of category tags that the rule contains.
*/
@JsonProperty(value = "tags")
@JsonProperty(value = "properties.tags")
private List<String> tags;

/**
* True if this is associated with a dynamically added rule.
*/
@JsonProperty(value = "isDynamic")
@JsonProperty(value = "properties.isDynamic")
private Boolean isDynamic;

/**
* Extension name of the portal if exists. Applicable to dynamic rule only.
*/
@JsonProperty(value = "extensionName")
@JsonProperty(value = "properties.extensionName")
private String extensionName;

/**
* Deep link to a blade on the portal. Applicable to dynamic rule only.
*/
@JsonProperty(value = "bladeName")
@JsonProperty(value = "properties.bladeName")
private String bladeName;

/**
* Forward link to an external document associated with the rule.
* Applicable to dynamic rule only.
*/
@JsonProperty(value = "forwardLink")
@JsonProperty(value = "properties.forwardLink")
private String forwardLink;

/**
* Get the name value.
* Get the recommendationRuleName value.
*
* @return the name value
* @return the recommendationRuleName value
*/
public String name() {
return this.name;
public String recommendationRuleName() {
return this.recommendationRuleName;
}

/**
* Set the name value.
* Set the recommendationRuleName value.
*
* @param name the name value to set
* @param recommendationRuleName the recommendationRuleName value to set
* @return the RecommendationRuleInner object itself.
*/
public RecommendationRuleInner withName(String name) {
this.name = name;
public RecommendationRuleInner withRecommendationRuleName(String recommendationRuleName) {
this.recommendationRuleName = recommendationRuleName;
return this;
}

Expand Down
Loading