Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR signalr/resource-manager] return more perperties of SignalR resource #2335

Merged
merged 1 commit into from
Aug 21, 2018
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,122 @@
/**
* 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.v2018_03_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Specifications of the Dimension of metrics.
*/
public class Dimension {
/**
* The public facing name of the dimension.
*/
@JsonProperty(value = "name")
private String name;

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

/**
* Name of the dimension as it appears in MDM.
*/
@JsonProperty(value = "internalName")
private String internalName;

/**
* A Boolean flag indicating whether this dimension should be included for
* the shoebox export scenario.
*/
@JsonProperty(value = "toBeExportedForShoebox")
private Boolean toBeExportedForShoebox;

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

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

/**
* Get localized friendly display name of the dimension.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}

/**
* Set localized friendly display name of the dimension.
*
* @param displayName the displayName value to set
* @return the Dimension object itself.
*/
public Dimension withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}

/**
* Get name of the dimension as it appears in MDM.
*
* @return the internalName value
*/
public String internalName() {
return this.internalName;
}

/**
* Set name of the dimension as it appears in MDM.
*
* @param internalName the internalName value to set
* @return the Dimension object itself.
*/
public Dimension withInternalName(String internalName) {
this.internalName = internalName;
return this;
}

/**
* Get a Boolean flag indicating whether this dimension should be included for the shoebox export scenario.
*
* @return the toBeExportedForShoebox value
*/
public Boolean toBeExportedForShoebox() {
return this.toBeExportedForShoebox;
}

/**
* Set a Boolean flag indicating whether this dimension should be included for the shoebox export scenario.
*
* @param toBeExportedForShoebox the toBeExportedForShoebox value to set
* @return the Dimension object itself.
*/
public Dimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox) {
this.toBeExportedForShoebox = toBeExportedForShoebox;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.management.signalr.v2018_03_01_preview;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand Down Expand Up @@ -63,6 +64,12 @@ public class MetricSpecification {
@JsonProperty(value = "category")
private String category;

/**
* The dimensions of the metrics.
*/
@JsonProperty(value = "dimensions")
private List<Dimension> dimensions;

/**
* Get name of the metric.
*
Expand Down Expand Up @@ -207,4 +214,24 @@ public MetricSpecification withCategory(String category) {
return this;
}

/**
* Get the dimensions of the metrics.
*
* @return the dimensions value
*/
public List<Dimension> dimensions() {
return this.dimensions;
}

/**
* Set the dimensions of the metrics.
*
* @param dimensions the dimensions value to set
* @return the MetricSpecification object itself.
*/
public MetricSpecification withDimensions(List<Dimension> dimensions) {
this.dimensions = dimensions;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,21 @@
* Type representing SignalRKeys.
*/
public interface SignalRKeys extends HasInner<SignalRKeysInner>, HasManager<SignalRServiceManager> {
/**
* @return the primaryConnectionString value.
*/
String primaryConnectionString();

/**
* @return the primaryKey value.
*/
String primaryKey();

/**
* @return the secondaryConnectionString value.
*/
String secondaryConnectionString();

/**
* @return the secondaryKey value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,9 @@ public interface SignalRResource extends HasInner<SignalRResourceInner>, HasMana
*/
String type();

/**
* @return the version value.
*/
String version();

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ public SignalRServiceManager manager() {
return this.manager;
}

@Override
public String primaryConnectionString() {
return this.inner().primaryConnectionString();
}

@Override
public String primaryKey() {
return this.inner().primaryKey();
}

@Override
public String secondaryConnectionString() {
return this.inner().secondaryConnectionString();
}

@Override
public String secondaryKey() {
return this.inner().secondaryKey();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ public class SignalRKeysInner {
@JsonProperty(value = "secondaryKey")
private String secondaryKey;

/**
* SignalR connection string constructed via the primaryKey.
*/
@JsonProperty(value = "primaryConnectionString")
private String primaryConnectionString;

/**
* SignalR connection string constructed via the secondaryKey.
*/
@JsonProperty(value = "secondaryConnectionString")
private String secondaryConnectionString;

/**
* Get the primary access key.
*
Expand Down Expand Up @@ -66,4 +78,44 @@ public SignalRKeysInner withSecondaryKey(String secondaryKey) {
return this;
}

/**
* Get signalR connection string constructed via the primaryKey.
*
* @return the primaryConnectionString value
*/
public String primaryConnectionString() {
return this.primaryConnectionString;
}

/**
* Set signalR connection string constructed via the primaryKey.
*
* @param primaryConnectionString the primaryConnectionString value to set
* @return the SignalRKeysInner object itself.
*/
public SignalRKeysInner withPrimaryConnectionString(String primaryConnectionString) {
this.primaryConnectionString = primaryConnectionString;
return this;
}

/**
* Get signalR connection string constructed via the secondaryKey.
*
* @return the secondaryConnectionString value
*/
public String secondaryConnectionString() {
return this.secondaryConnectionString;
}

/**
* Set signalR connection string constructed via the secondaryKey.
*
* @param secondaryConnectionString the secondaryConnectionString value to set
* @return the SignalRKeysInner object itself.
*/
public SignalRKeysInner withSecondaryConnectionString(String secondaryConnectionString) {
this.secondaryConnectionString = secondaryConnectionString;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,9 @@ public String type() {
return this.inner().type();
}

@Override
public String version() {
return this.inner().version();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ public class SignalRResourceInner extends Resource {
@JsonProperty(value = "properties.serverPort", access = JsonProperty.Access.WRITE_ONLY)
private Integer serverPort;

/**
* Version of the SignalR resource. Probably you need the same or higher
* version of client SDKs.
*/
@JsonProperty(value = "properties.version")
private String version;

/**
* Get sKU of the service.
*
Expand Down Expand Up @@ -156,4 +163,24 @@ public Integer serverPort() {
return this.serverPort;
}

/**
* Get version of the SignalR resource. Probably you need the same or higher version of client SDKs.
*
* @return the version value
*/
public String version() {
return this.version;
}

/**
* Set version of the SignalR resource. Probably you need the same or higher version of client SDKs.
*
* @param version the version value to set
* @return the SignalRResourceInner object itself.
*/
public SignalRResourceInner withVersion(String version) {
this.version = version;
return this;
}

}