Skip to content
Merged
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
@@ -0,0 +1,41 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.signalr;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for KeyType.
*/
public final class KeyType extends ExpandableStringEnum<KeyType> {
/** Static value Primary for KeyType. */
public static final KeyType PRIMARY = fromString("Primary");

/** Static value Secondary for KeyType. */
public static final KeyType SECONDARY = fromString("Secondary");

/**
* Creates or finds a KeyType from its string representation.
* @param name a name to look for
* @return the corresponding KeyType
*/
@JsonCreator
public static KeyType fromString(String name) {
return fromString(name, KeyType.class);
}

/**
* @return known KeyType values
*/
public static Collection<KeyType> values() {
return values(KeyType.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.signalr;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Specifications of the Metrics for Azure Monitoring.
*/
public class MetricSpecification {
/**
* Name of the metric.
*/
@JsonProperty(value = "name")
private String name;

/**
* Localized friendly display name of the metric.
*/
@JsonProperty(value = "displayName")
private String displayName;

/**
* Localized friendly description of the metric.
*/
@JsonProperty(value = "displayDescription")
private String displayDescription;

/**
* The unit that makes sense for the metric.
*/
@JsonProperty(value = "unit")
private String unit;

/**
* Only provide one value for this field. Valid values: Average, Minimum,
* Maximum, Total, Count.
*/
@JsonProperty(value = "aggregationType")
private String aggregationType;

/**
* Optional. If set to true, then zero will be returned for time duration
* where no metric is emitted/published.
* Ex. a metric that returns the number of times a particular error code
* was emitted. The error code may not appear
* often, instead of the RP publishing 0, Shoebox can auto fill in 0s for
* time periods where nothing was emitted.
*/
@JsonProperty(value = "fillGapWithZero")
private String fillGapWithZero;

/**
* The name of the metric category that the metric belongs to. A metric can
* only belong to a single category.
*/
@JsonProperty(value = "category")
private String category;

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

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

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

/**
* Set the displayName value.
*
* @param displayName the displayName value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}

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

/**
* Set the displayDescription value.
*
* @param displayDescription the displayDescription value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withDisplayDescription(String displayDescription) {
this.displayDescription = displayDescription;
return this;
}

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

/**
* Set the unit value.
*
* @param unit the unit value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withUnit(String unit) {
this.unit = unit;
return this;
}

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

/**
* Set the aggregationType value.
*
* @param aggregationType the aggregationType value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withAggregationType(String aggregationType) {
this.aggregationType = aggregationType;
return this;
}

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

/**
* Set the fillGapWithZero value.
*
* @param fillGapWithZero the fillGapWithZero value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withFillGapWithZero(String fillGapWithZero) {
this.fillGapWithZero = fillGapWithZero;
return this;
}

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

/**
* Set the category value.
*
* @param category the category value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withCategory(String category) {
this.category = category;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.signalr;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The object that describes a operation.
*/
public class OperationDisplay {
/**
* Friendly name of the resource provider.
*/
@JsonProperty(value = "provider")
private String provider;

/**
* Resource type on which the operation is performed.
*/
@JsonProperty(value = "resource")
private String resource;

/**
* The localized friendly name for the operation.
*/
@JsonProperty(value = "operation")
private String operation;

/**
* The localized friendly description for the operation.
*/
@JsonProperty(value = "description")
private String description;

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

/**
* Set the provider value.
*
* @param provider the provider value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withProvider(String provider) {
this.provider = provider;
return this;
}

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

/**
* Set the resource value.
*
* @param resource the resource value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withResource(String resource) {
this.resource = resource;
return this;
}

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

/**
* Set the operation value.
*
* @param operation the operation value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withOperation(String operation) {
this.operation = operation;
return this;
}

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

/**
* Set the description value.
*
* @param description the description value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withDescription(String description) {
this.description = description;
return this;
}

}
Loading