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 @@ -23,8 +23,8 @@ public class ResourceSku {

/**
* Optional tier of this particular SKU. `Basic` is deprecated, use
* `Standard` instead for Basic tier. Possible values include: 'Free',
* 'Basic', 'Standard', 'Premium'.
* `Standard` instead. Possible values include: 'Free', 'Basic',
* 'Standard', 'Premium'.
*/
@JsonProperty(value = "tier")
private SignalRSkuTier tier;
Expand Down Expand Up @@ -72,7 +72,7 @@ public ResourceSku withName(String name) {
}

/**
* Get optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead for Basic tier. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'.
* Get optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'.
*
* @return the tier value
*/
Expand All @@ -81,7 +81,7 @@ public SignalRSkuTier tier() {
}

/**
* Set optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead for Basic tier. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'.
* Set optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'.
*
* @param tier the tier value to set
* @return the ResourceSku object itself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/**
* 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_10_01;

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

/**
* Feature of a SignalR resource, which controls the SignalR runtime behavior.
*/
public class SignalRFeature {
/**
* Name of the feature. Required.
*/
@JsonProperty(value = "flag", required = true)
private String flag;

/**
* Value of the feature flag. See Azure SignalR service document
* https://docs.microsoft.com/en-us/azure/azure-signalr/ for allowed
* values.
*/
@JsonProperty(value = "value", required = true)
private String value;

/**
* Optional properties related to this feature.
*/
@JsonProperty(value = "properties")
private Map<String, String> properties;

/**
* Creates an instance of SignalRFeature class.
* @param value value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/en-us/azure/azure-signalr/ for allowed values.
*/
public SignalRFeature() {
flag = "ServiceMode";
}

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

/**
* Set name of the feature. Required.
*
* @param flag the flag value to set
* @return the SignalRFeature object itself.
*/
public SignalRFeature withFlag(String flag) {
this.flag = flag;
return this;
}

/**
* Get value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/en-us/azure/azure-signalr/ for allowed values.
*
* @return the value value
*/
public String value() {
return this.value;
}

/**
* Set value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/en-us/azure/azure-signalr/ for allowed values.
*
* @param value the value value to set
* @return the SignalRFeature object itself.
*/
public SignalRFeature withValue(String value) {
this.value = value;
return this;
}

/**
* Get optional properties related to this feature.
*
* @return the properties value
*/
public Map<String, String> properties() {
return this.properties;
}

/**
* Set optional properties related to this feature.
*
* @param properties the properties value to set
* @return the SignalRFeature object itself.
*/
public SignalRFeature withProperties(Map<String, String> properties) {
this.properties = properties;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* 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_10_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.SignalRServiceManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.SignalRFeatureListInner;
import java.util.List;

/**
* Type representing SignalRFeatureList.
*/
public interface SignalRFeatureList extends HasInner<SignalRFeatureListInner>, HasManager<SignalRServiceManager> {
/**
* @return the nextLink value.
*/
String nextLink();

/**
* @return the value value.
*/
List<SignalRFeature> value();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* 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_10_01;

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

/**
* Parameters for SignalR service instance features management opreations.
*/
public class SignalRFeaturesParameters {
/**
* List of features.
*
* If certain feature is not present, SignalR service will remain it
* unchanged or use the global default value.
* Note that, default value doesn't mean "false". It varies in terms of
* different FeatureFlags.
*/
@JsonProperty(value = "features", required = true)
private List<SignalRFeature> features;

/**
* Get list of features.
If certain feature is not present, SignalR service will remain it unchanged or use the global default value.
Note that, default value doesn't mean "false". It varies in terms of different FeatureFlags.
*
* @return the features value
*/
public List<SignalRFeature> features() {
return this.features;
}

/**
* Set list of features.
If certain feature is not present, SignalR service will remain it unchanged or use the global default value.
Note that, default value doesn't mean "false". It varies in terms of different FeatureFlags.
*
* @param features the features value to set
* @return the SignalRFeaturesParameters object itself.
*/
public SignalRFeaturesParameters withFeatures(List<SignalRFeature> features) {
this.features = features;
return this;
}

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

import rx.Observable;
import rx.Completable;
import java.util.List;

/**
* Type representing SignalRs.
Expand Down Expand Up @@ -84,6 +85,16 @@ public interface SignalRs {
*/
Observable<SignalRResource> updateAsync(String resourceGroupName, String resourceName);

/**
* Operation to restart a SignalR service.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceName The name of the SignalR resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable restartAsync(String resourceGroupName, String resourceName);

/**
* Handles requests to list all resources in a subscription.
*
Expand All @@ -101,4 +112,27 @@ public interface SignalRs {
*/
Observable<SignalRResource> listByResourceGroupAsync(final String resourceGroupName);

/**
* Switch on/off SignalR resource features.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceName The name of the SignalR resource.
* @param features List of features.
If certain feature is not present, SignalR service will remain it unchanged or use the global default value.
Note that, default value doesn't mean "false". It varies in terms of different FeatureFlags.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SignalRFeatureList> switchFeaturesAsync(String resourceGroupName, String resourceName, List<SignalRFeature> features);

/**
* List SignalR resource features.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceName The name of the SignalR resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SignalRFeatureList> listFeaturesAsync(String resourceGroupName, String resourceName);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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_10_01.implementation;

import com.microsoft.azure.management.signalr.v2018_10_01.SignalRFeatureList;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import java.util.List;
import com.microsoft.azure.management.signalr.v2018_10_01.SignalRFeature;

class SignalRFeatureListImpl extends WrapperImpl<SignalRFeatureListInner> implements SignalRFeatureList {
private final SignalRServiceManager manager;
SignalRFeatureListImpl(SignalRFeatureListInner inner, SignalRServiceManager manager) {
super(inner);
this.manager = manager;
}

@Override
public SignalRServiceManager manager() {
return this.manager;
}

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

@Override
public List<SignalRFeature> value() {
return this.inner().value();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/**
* 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_10_01.implementation;

import java.util.List;
import com.microsoft.azure.management.signalr.v2018_10_01.SignalRFeature;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* A class that represents a list of SignalRFeatures related to SignalR
* resource.
*/
public class SignalRFeatureListInner {
/**
* List of features.
* Note that, if a feature is not included in the list, which only means
* user never set it explicitly rather than 'false'.
* In this case, SignalR service will use a globally default value which
* might be 'true' or 'false'.
*/
@JsonProperty(value = "value")
private List<SignalRFeature> value;

/**
* The URL the client should use to fetch the next page (per server side
* paging).
* It's null for now, added for future use.
*/
@JsonProperty(value = "nextLink")
private String nextLink;

/**
* Get list of features.
Note that, if a feature is not included in the list, which only means user never set it explicitly rather than 'false'.
In this case, SignalR service will use a globally default value which might be 'true' or 'false'.
*
* @return the value value
*/
public List<SignalRFeature> value() {
return this.value;
}

/**
* Set list of features.
Note that, if a feature is not included in the list, which only means user never set it explicitly rather than 'false'.
In this case, SignalR service will use a globally default value which might be 'true' or 'false'.
*
* @param value the value value to set
* @return the SignalRFeatureListInner object itself.
*/
public SignalRFeatureListInner withValue(List<SignalRFeature> value) {
this.value = value;
return this;
}

/**
* Get the URL the client should use to fetch the next page (per server side paging).
It's null for now, added for future use.
*
* @return the nextLink value
*/
public String nextLink() {
return this.nextLink;
}

/**
* Set the URL the client should use to fetch the next page (per server side paging).
It's null for now, added for future use.
*
* @param nextLink the nextLink value to set
* @return the SignalRFeatureListInner object itself.
*/
public SignalRFeatureListInner withNextLink(String nextLink) {
this.nextLink = nextLink;
return this;
}

}
Loading