diff --git a/signalr/resource-manager/v2018_03_01_preview/pom.xml b/signalr/resource-manager/v2018_03_01_preview/pom.xml index 3fead7dac0bf..db5a4f092f11 100644 --- a/signalr/resource-manager/v2018_03_01_preview/pom.xml +++ b/signalr/resource-manager/v2018_03_01_preview/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.azure-mgmt-signalr-2018-03-01-preview - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-signalr - 1.0.0-beta-SNAPSHOT - jar - Microsoft Azure SDK for SignalRService Management - This package contains Microsoft SignalRService Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.signalr.v2018_03_01_preview + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-signalrservice + 1.0.0-beta + jar + Microsoft Azure SDK for SignalRService Management + This package contains Microsoft SignalRService Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/MetricSpecification.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/MetricSpecification.java index d9501a27b7e6..e9dcb698ebce 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/MetricSpecification.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/MetricSpecification.java @@ -64,7 +64,7 @@ public class MetricSpecification { private String category; /** - * Get the name value. + * Get name of the metric. * * @return the name value */ @@ -73,7 +73,7 @@ public String name() { } /** - * Set the name value. + * Set name of the metric. * * @param name the name value to set * @return the MetricSpecification object itself. @@ -84,7 +84,7 @@ public MetricSpecification withName(String name) { } /** - * Get the displayName value. + * Get localized friendly display name of the metric. * * @return the displayName value */ @@ -93,7 +93,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set localized friendly display name of the metric. * * @param displayName the displayName value to set * @return the MetricSpecification object itself. @@ -104,7 +104,7 @@ public MetricSpecification withDisplayName(String displayName) { } /** - * Get the displayDescription value. + * Get localized friendly description of the metric. * * @return the displayDescription value */ @@ -113,7 +113,7 @@ public String displayDescription() { } /** - * Set the displayDescription value. + * Set localized friendly description of the metric. * * @param displayDescription the displayDescription value to set * @return the MetricSpecification object itself. @@ -124,7 +124,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { } /** - * Get the unit value. + * Get the unit that makes sense for the metric. * * @return the unit value */ @@ -133,7 +133,7 @@ public String unit() { } /** - * Set the unit value. + * Set the unit that makes sense for the metric. * * @param unit the unit value to set * @return the MetricSpecification object itself. @@ -144,7 +144,7 @@ public MetricSpecification withUnit(String unit) { } /** - * Get the aggregationType value. + * Get only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. * * @return the aggregationType value */ @@ -153,7 +153,7 @@ public String aggregationType() { } /** - * Set the aggregationType value. + * Set only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. * * @param aggregationType the aggregationType value to set * @return the MetricSpecification object itself. @@ -164,7 +164,9 @@ public MetricSpecification withAggregationType(String aggregationType) { } /** - * Get the fillGapWithZero value. + * Get 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. * * @return the fillGapWithZero value */ @@ -173,7 +175,9 @@ public String fillGapWithZero() { } /** - * Set the fillGapWithZero value. + * Set 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. * * @param fillGapWithZero the fillGapWithZero value to set * @return the MetricSpecification object itself. @@ -184,7 +188,7 @@ public MetricSpecification withFillGapWithZero(String fillGapWithZero) { } /** - * Get the category value. + * Get the name of the metric category that the metric belongs to. A metric can only belong to a single category. * * @return the category value */ @@ -193,7 +197,7 @@ public String category() { } /** - * Set the category value. + * Set the name of the metric category that the metric belongs to. A metric can only belong to a single category. * * @param category the category value to set * @return the MetricSpecification object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailability.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailability.java index 3891e0bc4720..aa1415f25a94 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailability.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailability.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRManager; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRServiceManager; import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.NameAvailabilityInner; /** * Type representing NameAvailability. */ -public interface NameAvailability extends HasInner, HasManager { +public interface NameAvailability extends HasInner, HasManager { /** * @return the message value. */ diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailabilityParameters.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailabilityParameters.java index b785b34ce6d0..a9fb48435f68 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailabilityParameters.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/NameAvailabilityParameters.java @@ -27,7 +27,7 @@ public class NameAvailabilityParameters { private String name; /** - * Get the type value. + * Get the resource type. Should be always "Microsoft.SignalRService/SignalR". * * @return the type value */ @@ -36,7 +36,7 @@ public String type() { } /** - * Set the type value. + * Set the resource type. Should be always "Microsoft.SignalRService/SignalR". * * @param type the type value to set * @return the NameAvailabilityParameters object itself. @@ -47,7 +47,7 @@ public NameAvailabilityParameters withType(String type) { } /** - * Get the name value. + * Get the SignalR service name to validate. e.g."my-signalR-name-here". * * @return the name value */ @@ -56,7 +56,7 @@ public String name() { } /** - * Set the name value. + * Set the SignalR service name to validate. e.g."my-signalR-name-here". * * @param name the name value to set * @return the NameAvailabilityParameters object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/Operation.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/Operation.java index ee5957d39884..68347f022958 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/Operation.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/Operation.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRManager; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRServiceManager; import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.OperationInner; /** * Type representing Operation. */ -public interface Operation extends HasInner, HasManager { +public interface Operation extends HasInner, HasManager { /** * @return the display value. */ diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationDisplay.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationDisplay.java index 7216433b17ee..d8bc471cdd84 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationDisplay.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationDisplay.java @@ -39,7 +39,7 @@ public class OperationDisplay { private String description; /** - * Get the provider value. + * Get friendly name of the resource provider. * * @return the provider value */ @@ -48,7 +48,7 @@ public String provider() { } /** - * Set the provider value. + * Set friendly name of the resource provider. * * @param provider the provider value to set * @return the OperationDisplay object itself. @@ -59,7 +59,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the resource value. + * Get resource type on which the operation is performed. * * @return the resource value */ @@ -68,7 +68,7 @@ public String resource() { } /** - * Set the resource value. + * Set resource type on which the operation is performed. * * @param resource the resource value to set * @return the OperationDisplay object itself. @@ -79,7 +79,7 @@ public OperationDisplay withResource(String resource) { } /** - * Get the operation value. + * Get the localized friendly name for the operation. * * @return the operation value */ @@ -88,7 +88,7 @@ public String operation() { } /** - * Set the operation value. + * Set the localized friendly name for the operation. * * @param operation the operation value to set * @return the OperationDisplay object itself. @@ -99,7 +99,7 @@ public OperationDisplay withOperation(String operation) { } /** - * Get the description value. + * Get the localized friendly description for the operation. * * @return the description value */ @@ -108,7 +108,7 @@ public String description() { } /** - * Set the description value. + * Set the localized friendly description for the operation. * * @param description the description value to set * @return the OperationDisplay object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationProperties.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationProperties.java index d039682e8d11..b2f056716f06 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationProperties.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/OperationProperties.java @@ -21,7 +21,7 @@ public class OperationProperties { private ServiceSpecification serviceSpecification; /** - * Get the serviceSpecification value. + * Get the service specifications. * * @return the serviceSpecification value */ @@ -30,7 +30,7 @@ public ServiceSpecification serviceSpecification() { } /** - * Set the serviceSpecification value. + * Set the service specifications. * * @param serviceSpecification the serviceSpecification value to set * @return the OperationProperties object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/RegenerateKeyParameters.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/RegenerateKeyParameters.java index 660fc6f82183..79b70891c330 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/RegenerateKeyParameters.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/RegenerateKeyParameters.java @@ -23,7 +23,7 @@ public class RegenerateKeyParameters { private KeyType keyType; /** - * Get the keyType value. + * Get the keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary'. * * @return the keyType value */ @@ -32,7 +32,7 @@ public KeyType keyType() { } /** - * Set the keyType value. + * Set the keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary'. * * @param keyType the keyType value to set * @return the RegenerateKeyParameters object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ResourceSku.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ResourceSku.java index 3ca7c7da34a0..d5366601b2f0 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ResourceSku.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ResourceSku.java @@ -22,8 +22,9 @@ public class ResourceSku { private String name; /** - * The tier of this particular SKU. Optional. Possible values include: - * 'Free', 'Basic', 'Premium'. + * Optional tier of this particular SKU. `Basic` is deprecated, use + * `Standard` instead for Basic tier. Possible values include: 'Free', + * 'Basic', 'Standard', 'Premium'. */ @JsonProperty(value = "tier") private SignalRSkuTier tier; @@ -51,7 +52,7 @@ public class ResourceSku { private Integer capacity; /** - * Get the name value. + * Get the name of the SKU. This is typically a letter + number code, such as A0 or P3. Required (if sku is specified). * * @return the name value */ @@ -60,7 +61,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the SKU. This is typically a letter + number code, such as A0 or P3. Required (if sku is specified). * * @param name the name value to set * @return the ResourceSku object itself. @@ -71,7 +72,7 @@ public ResourceSku withName(String name) { } /** - * Get the tier value. + * Get optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead for Basic tier. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'. * * @return the tier value */ @@ -80,7 +81,7 @@ public SignalRSkuTier tier() { } /** - * Set the tier value. + * Set optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead for Basic tier. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'. * * @param tier the tier value to set * @return the ResourceSku object itself. @@ -91,7 +92,7 @@ public ResourceSku withTier(SignalRSkuTier tier) { } /** - * Get the size value. + * Get optional, string. When the name field is the combination of tier and some other value, this would be the standalone code. * * @return the size value */ @@ -100,7 +101,7 @@ public String size() { } /** - * Set the size value. + * Set optional, string. When the name field is the combination of tier and some other value, this would be the standalone code. * * @param size the size value to set * @return the ResourceSku object itself. @@ -111,7 +112,7 @@ public ResourceSku withSize(String size) { } /** - * Get the family value. + * Get optional, string. If the service has different generations of hardware, for the same SKU, then that can be captured here. * * @return the family value */ @@ -120,7 +121,7 @@ public String family() { } /** - * Set the family value. + * Set optional, string. If the service has different generations of hardware, for the same SKU, then that can be captured here. * * @param family the family value to set * @return the ResourceSku object itself. @@ -131,7 +132,8 @@ public ResourceSku withFamily(String family) { } /** - * Get the capacity value. + * Get optional, integer. If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not + possible for the resource this may be omitted. * * @return the capacity value */ @@ -140,7 +142,8 @@ public Integer capacity() { } /** - * Set the capacity value. + * Set optional, integer. If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not + possible for the resource this may be omitted. * * @param capacity the capacity value to set * @return the ResourceSku object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ServiceSpecification.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ServiceSpecification.java index afce688433e4..d451a3bc4e4f 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ServiceSpecification.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/ServiceSpecification.java @@ -22,7 +22,7 @@ public class ServiceSpecification { private List metricSpecifications; /** - * Get the metricSpecifications value. + * Get specifications of the Metrics for Azure Monitoring. * * @return the metricSpecifications value */ @@ -31,7 +31,7 @@ public List metricSpecifications() { } /** - * Set the metricSpecifications value. + * Set specifications of the Metrics for Azure Monitoring. * * @param metricSpecifications the metricSpecifications value to set * @return the ServiceSpecification object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateOrUpdateProperties.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateOrUpdateProperties.java index 91c8b23f9190..1f525bc71c8d 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateOrUpdateProperties.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateOrUpdateProperties.java @@ -23,7 +23,8 @@ public class SignalRCreateOrUpdateProperties { private String hostNamePrefix; /** - * Get the hostNamePrefix value. + * Get prefix for the hostName of the SignalR service. Retained for future use. + The hostname will be of format: &lt;hostNamePrefix&gt;.service.signalr.net. * * @return the hostNamePrefix value */ @@ -32,7 +33,8 @@ public String hostNamePrefix() { } /** - * Set the hostNamePrefix value. + * Set prefix for the hostName of the SignalR service. Retained for future use. + The hostname will be of format: &lt;hostNamePrefix&gt;.service.signalr.net. * * @param hostNamePrefix the hostNamePrefix value to set * @return the SignalRCreateOrUpdateProperties object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateParameters.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateParameters.java index 2113043de0ec..28ceeae121e7 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateParameters.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRCreateParameters.java @@ -26,7 +26,8 @@ public class SignalRCreateParameters extends SignalRUpdateParameters { private String location; /** - * Get the location value. + * Get azure GEO region: e.g. West US | East US | North Central US | South Central US | West Europe | North Europe | East Asia | Southeast Asia | etc. + The geo region of a resource never changes after it is created. * * @return the location value */ @@ -35,7 +36,8 @@ public String location() { } /** - * Set the location value. + * Set azure GEO region: e.g. West US | East US | North Central US | South Central US | West Europe | North Europe | East Asia | Southeast Asia | etc. + The geo region of a resource never changes after it is created. * * @param location the location value to set * @return the SignalRCreateParameters object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRKeys.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRKeys.java index 422ff2ace763..be0292fe76a9 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRKeys.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRKeys.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRManager; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRServiceManager; import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRKeysInner; /** * Type representing SignalRKeys. */ -public interface SignalRKeys extends HasInner, HasManager { +public interface SignalRKeys extends HasInner, HasManager { /** * @return the primaryKey value. */ diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRResource.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRResource.java index 625c393925b3..d489f7b75351 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRResource.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRResource.java @@ -9,21 +9,15 @@ package com.microsoft.azure.management.signalr.v2018_03_01_preview; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.arm.resources.models.Resource; -import com.microsoft.azure.arm.resources.models.HasResourceGroup; -import com.microsoft.azure.arm.model.Refreshable; -import com.microsoft.azure.arm.model.Updatable; -import com.microsoft.azure.arm.model.Appliable; -import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRManager; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRServiceManager; import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRResourceInner; +import java.util.Map; /** * Type representing SignalRResource. */ -public interface SignalRResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface SignalRResource extends HasInner, HasManager { /** * @return the externalIP value. */ @@ -39,6 +33,21 @@ public interface SignalRResource extends HasInner, Resourc */ String hostNamePrefix(); + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + /** * @return the provisioningState value. */ @@ -60,84 +69,13 @@ public interface SignalRResource extends HasInner, Resourc ResourceSku sku(); /** - * The entirety of the SignalRResource definition. + * @return the tags value. */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate { - } + Map tags(); /** - * Grouping of SignalRResource definition stages. + * @return the type value. */ - interface DefinitionStages { - /** - * The first stage of a SignalRResource definition. - */ - interface Blank extends GroupableResourceCore.DefinitionWithRegion { - } - - /** - * The stage of the SignalRResource definition allowing to specify the resource group. - */ - interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { - } - - /** - * The stage of the signalrresource update allowing to specify Properties. - */ - interface WithProperties { - /** - * Specifies properties. - */ - WithCreate withProperties(SignalRCreateOrUpdateProperties properties); - } - - /** - * The stage of the signalrresource update allowing to specify Sku. - */ - interface WithSku { - /** - * Specifies sku. - */ - WithCreate withSku(ResourceSku sku); - } - - /** - * The stage of the definition which contains all the minimum required inputs for - * the resource to be created (via {@link WithCreate#create()}), but also allows - * for any other optional settings to be specified. - */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithProperties, DefinitionStages.WithSku { - } - } - /** - * The template for a SignalRResource update operation, containing all the settings that can be modified. - */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithProperties, UpdateStages.WithSku { - } - - /** - * Grouping of SignalRResource update stages. - */ - interface UpdateStages { - /** - * The stage of the signalrresource {0} allowing to specify Properties. - */ - interface WithProperties { - /** - * Specifies properties. - */ - Update withProperties(SignalRCreateOrUpdateProperties properties); - } - - /** - * The stage of the signalrresource {0} allowing to specify Sku. - */ - interface WithSku { - /** - * Specifies sku. - */ - Update withSku(ResourceSku sku); - } + String type(); - } } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRSkuTier.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRSkuTier.java index 48bf4df812b8..daeee71e38a9 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRSkuTier.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRSkuTier.java @@ -22,6 +22,9 @@ public final class SignalRSkuTier extends ExpandableStringEnum { /** Static value Basic for SignalRSkuTier. */ public static final SignalRSkuTier BASIC = fromString("Basic"); + /** Static value Standard for SignalRSkuTier. */ + public static final SignalRSkuTier STANDARD = fromString("Standard"); + /** Static value Premium for SignalRSkuTier. */ public static final SignalRSkuTier PREMIUM = fromString("Premium"); diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRUpdateParameters.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRUpdateParameters.java index e0b6b95078ea..85feb498a99d 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRUpdateParameters.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRUpdateParameters.java @@ -34,7 +34,7 @@ public class SignalRUpdateParameters { private SignalRCreateOrUpdateProperties properties; /** - * Get the tags value. + * Get a list of key value pairs that describe the resource. * * @return the tags value */ @@ -43,7 +43,7 @@ public Map tags() { } /** - * Set the tags value. + * Set a list of key value pairs that describe the resource. * * @param tags the tags value to set * @return the SignalRUpdateParameters object itself. @@ -54,7 +54,7 @@ public SignalRUpdateParameters withTags(Map tags) { } /** - * Get the sku value. + * Get the billing information of the resource.(e.g. basic vs. standard). * * @return the sku value */ @@ -63,7 +63,7 @@ public ResourceSku sku() { } /** - * Set the sku value. + * Set the billing information of the resource.(e.g. basic vs. standard). * * @param sku the sku value to set * @return the SignalRUpdateParameters object itself. @@ -74,7 +74,7 @@ public SignalRUpdateParameters withSku(ResourceSku sku) { } /** - * Get the properties value. + * Get settings used to provision or configure the resource. * * @return the properties value */ @@ -83,7 +83,7 @@ public SignalRCreateOrUpdateProperties properties() { } /** - * Set the properties value. + * Set settings used to provision or configure the resource. * * @param properties the properties value to set * @return the SignalRUpdateParameters object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRs.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRs.java index 284c920f38f0..aa3e089caa67 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRs.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/SignalRs.java @@ -8,20 +8,22 @@ package com.microsoft.azure.management.signalr.v2018_03_01_preview; -import com.microsoft.azure.arm.collection.SupportsCreating; -import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup; -import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion; -import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup; import rx.Observable; -import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup; -import com.microsoft.azure.arm.collection.SupportsListing; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation.SignalRsInner; -import com.microsoft.azure.arm.model.HasInner; +import rx.Completable; /** * Type representing SignalRs. */ -public interface SignalRs extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { +public interface SignalRs { + /** + * Checks that the SignalR name is valid and is not already in use. + * + * @param location the region + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkNameAvailabilityAsync(String location); + /** * Get the access keys of the SignalR resource. * @@ -43,12 +45,60 @@ public interface SignalRs extends SupportsCreating regenerateKeyAsync(String resourceGroupName, String resourceName); /** - * Checks that the SignalR name is valid and is not already in use. + * Get the SignalR service and its properties. * - * @param location the region + * @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 checkNameAvailabilityAsync(String location); + Observable getByResourceGroupAsync(String resourceGroupName, String resourceName); + + /** + * Create a new SignalR service and update an exiting 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 + */ + Observable createOrUpdateAsync(String resourceGroupName, String resourceName); + + /** + * Operation to delete 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 deleteAsync(String resourceGroupName, String resourceName); + + /** + * Operation to update an exiting 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 + */ + Observable updateAsync(String resourceGroupName, String resourceName); + + /** + * Handles requests to list all resources in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + + /** + * Handles requests to list all resources in a resource group. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByResourceGroupAsync(final String resourceGroupName); } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityImpl.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityImpl.java index f5fe5b08bbb1..c045d29e9693 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityImpl.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class NameAvailabilityImpl extends WrapperImpl implements NameAvailability { - private final SignalRManager manager; - NameAvailabilityImpl(NameAvailabilityInner inner, SignalRManager manager) { + private final SignalRServiceManager manager; + NameAvailabilityImpl(NameAvailabilityInner inner, SignalRServiceManager manager) { super(inner); this.manager = manager; } @Override - public SignalRManager manager() { + public SignalRServiceManager manager() { return this.manager; } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityInner.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityInner.java index f248ec901cf0..568816e1a0e8 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityInner.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/NameAvailabilityInner.java @@ -34,7 +34,7 @@ public class NameAvailabilityInner { private String message; /** - * Get the nameAvailable value. + * Get indicates whether the name is available or not. * * @return the nameAvailable value */ @@ -43,7 +43,7 @@ public Boolean nameAvailable() { } /** - * Set the nameAvailable value. + * Set indicates whether the name is available or not. * * @param nameAvailable the nameAvailable value to set * @return the NameAvailabilityInner object itself. @@ -54,7 +54,7 @@ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) { } /** - * Get the reason value. + * Get the reason of the availability. Required if name is not available. * * @return the reason value */ @@ -63,7 +63,7 @@ public String reason() { } /** - * Set the reason value. + * Set the reason of the availability. Required if name is not available. * * @param reason the reason value to set * @return the NameAvailabilityInner object itself. @@ -74,7 +74,7 @@ public NameAvailabilityInner withReason(String reason) { } /** - * Get the message value. + * Get the message of the operation. * * @return the message value */ @@ -83,7 +83,7 @@ public String message() { } /** - * Set the message value. + * Set the message of the operation. * * @param message the message value to set * @return the NameAvailabilityInner object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationImpl.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationImpl.java index bf9786d35abe..01fcf5eae08c 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationImpl.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.signalr.v2018_03_01_preview.OperationProperties; class OperationImpl extends WrapperImpl implements Operation { - private final SignalRManager manager; - OperationImpl(OperationInner inner, SignalRManager manager) { + private final SignalRServiceManager manager; + OperationImpl(OperationInner inner, SignalRServiceManager manager) { super(inner); this.manager = manager; } @Override - public SignalRManager manager() { + public SignalRServiceManager manager() { return this.manager; } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationInner.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationInner.java index 62802ec67815..47f92a20adb0 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationInner.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationInner.java @@ -42,7 +42,7 @@ public class OperationInner { private OperationProperties properties; /** - * Get the name value. + * Get name of the operation with format: {provider}/{resource}/{operation}. * * @return the name value */ @@ -51,7 +51,7 @@ public String name() { } /** - * Set the name value. + * Set name of the operation with format: {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -62,7 +62,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get the object that describes the operation. * * @return the display value */ @@ -71,7 +71,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that describes the operation. * * @param display the display value to set * @return the OperationInner object itself. @@ -82,7 +82,7 @@ public OperationInner withDisplay(OperationDisplay display) { } /** - * Get the origin value. + * Get optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. * * @return the origin value */ @@ -91,7 +91,7 @@ public String origin() { } /** - * Set the origin value. + * Set optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. * * @param origin the origin value to set * @return the OperationInner object itself. @@ -102,7 +102,7 @@ public OperationInner withOrigin(String origin) { } /** - * Get the properties value. + * Get extra properties for the operation. * * @return the properties value */ @@ -111,7 +111,7 @@ public OperationProperties properties() { } /** - * Set the properties value. + * Set extra properties for the operation. * * @param properties the properties value to set * @return the OperationInner object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationsImpl.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationsImpl.java index 2f6950660935..ea8399a692b2 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationsImpl.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/OperationsImpl.java @@ -17,52 +17,33 @@ import com.microsoft.azure.management.signalr.v2018_03_01_preview.Operation; class OperationsImpl extends WrapperImpl implements Operations { - private final SignalRManager manager; + private final SignalRServiceManager manager; - OperationsImpl(SignalRManager manager) { + OperationsImpl(SignalRServiceManager manager) { super(manager.inner().operations()); this.manager = manager; } - public SignalRManager manager() { + public SignalRServiceManager manager() { return this.manager; } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - OperationsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listAsync() { OperationsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); } - }); + }); } } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysImpl.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysImpl.java index 9ac6081a8ad9..c0fb1872bc20 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysImpl.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SignalRKeysImpl extends WrapperImpl implements SignalRKeys { - private final SignalRManager manager; - SignalRKeysImpl(SignalRKeysInner inner, SignalRManager manager) { + private final SignalRServiceManager manager; + SignalRKeysImpl(SignalRKeysInner inner, SignalRServiceManager manager) { super(inner); this.manager = manager; } @Override - public SignalRManager manager() { + public SignalRServiceManager manager() { return this.manager; } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysInner.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysInner.java index 191027b015ba..a2b742661af0 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysInner.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRKeysInner.java @@ -27,7 +27,7 @@ public class SignalRKeysInner { private String secondaryKey; /** - * Get the primaryKey value. + * Get the primary access key. * * @return the primaryKey value */ @@ -36,7 +36,7 @@ public String primaryKey() { } /** - * Set the primaryKey value. + * Set the primary access key. * * @param primaryKey the primaryKey value to set * @return the SignalRKeysInner object itself. @@ -47,7 +47,7 @@ public SignalRKeysInner withPrimaryKey(String primaryKey) { } /** - * Get the secondaryKey value. + * Get the secondary access key. * * @return the secondaryKey value */ @@ -56,7 +56,7 @@ public String secondaryKey() { } /** - * Set the secondaryKey value. + * Set the secondary access key. * * @param secondaryKey the secondaryKey value to set * @return the SignalRKeysInner object itself. diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceImpl.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceImpl.java index 8fb6105d6933..08475484f189 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceImpl.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceImpl.java @@ -8,84 +8,52 @@ package com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation; -import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRResource; -import rx.Observable; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRUpdateParameters; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRCreateParameters; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; import com.microsoft.azure.management.signalr.v2018_03_01_preview.ProvisioningState; import com.microsoft.azure.management.signalr.v2018_03_01_preview.ResourceSku; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRCreateOrUpdateProperties; -import rx.functions.Func1; - -class SignalRResourceImpl extends GroupableResourceCoreImpl implements SignalRResource, SignalRResource.Definition, SignalRResource.Update { - private SignalRCreateParameters createParameter; - private SignalRUpdateParameters updateParameter; - SignalRResourceImpl(String name, SignalRResourceInner inner, SignalRManager manager) { - super(name, inner, manager); - this.createParameter = new SignalRCreateParameters(); - this.updateParameter = new SignalRUpdateParameters(); - } +import java.util.Map; - @Override - public Observable createResourceAsync() { - SignalRsInner client = this.manager().inner().signalRs(); - this.createParameter.withLocation(inner().location()); - this.createParameter.withTags(inner().getTags()); - return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.createParameter) - .map(new Func1() { - @Override - public SignalRResourceInner call(SignalRResourceInner resource) { - resetCreateUpdateParameters(); - return resource; - } - }) - .map(innerToFluentMap(this)); +class SignalRResourceImpl extends WrapperImpl implements SignalRResource { + private final SignalRServiceManager manager; + SignalRResourceImpl(SignalRResourceInner inner, SignalRServiceManager manager) { + super(inner); + this.manager = manager; } @Override - public Observable updateResourceAsync() { - SignalRsInner client = this.manager().inner().signalRs(); - return client.updateAsync(this.resourceGroupName(), this.name(), this.updateParameter) - .map(new Func1() { - @Override - public SignalRResourceInner call(SignalRResourceInner resource) { - resetCreateUpdateParameters(); - return resource; - } - }) - .map(innerToFluentMap(this)); + public SignalRServiceManager manager() { + return this.manager; } @Override - protected Observable getInnerAsync() { - SignalRsInner client = this.manager().inner().signalRs(); - return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + public String externalIP() { + return this.inner().externalIP(); } @Override - public boolean isInCreateMode() { - return this.inner().id() == null; + public String hostName() { + return this.inner().hostName(); } - private void resetCreateUpdateParameters() { - this.createParameter = new SignalRCreateParameters(); - this.updateParameter = new SignalRUpdateParameters(); + @Override + public String hostNamePrefix() { + return this.inner().hostNamePrefix(); } @Override - public String externalIP() { - return this.inner().externalIP(); + public String id() { + return this.inner().id(); } @Override - public String hostName() { - return this.inner().hostName(); + public String location() { + return this.inner().location(); } @Override - public String hostNamePrefix() { - return this.inner().hostNamePrefix(); + public String name() { + return this.inner().name(); } @Override @@ -109,23 +77,13 @@ public ResourceSku sku() { } @Override - public SignalRResourceImpl withProperties(SignalRCreateOrUpdateProperties properties) { - if (isInCreateMode()) { - this.createParameter.withProperties(properties); - } else { - this.updateParameter.withProperties(properties); - } - return this; + public Map tags() { + return this.inner().getTags(); } @Override - public SignalRResourceImpl withSku(ResourceSku sku) { - if (isInCreateMode()) { - this.createParameter.withSku(sku); - } else { - this.updateParameter.withSku(sku); - } - return this; + public String type() { + return this.inner().type(); } } diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceInner.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceInner.java index 7341491a4acf..8956478d755a 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceInner.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRResourceInner.java @@ -70,7 +70,7 @@ public class SignalRResourceInner extends Resource { private Integer serverPort; /** - * Get the sku value. + * Get sKU of the service. * * @return the sku value */ @@ -79,7 +79,7 @@ public ResourceSku sku() { } /** - * Set the sku value. + * Set sKU of the service. * * @param sku the sku value to set * @return the SignalRResourceInner object itself. @@ -90,7 +90,8 @@ public SignalRResourceInner withSku(ResourceSku sku) { } /** - * Get the hostNamePrefix value. + * Get prefix for the hostName of the SignalR service. Retained for future use. + The hostname will be of format: &lt;hostNamePrefix&gt;.service.signalr.net. * * @return the hostNamePrefix value */ @@ -99,7 +100,8 @@ public String hostNamePrefix() { } /** - * Set the hostNamePrefix value. + * Set prefix for the hostName of the SignalR service. Retained for future use. + The hostname will be of format: &lt;hostNamePrefix&gt;.service.signalr.net. * * @param hostNamePrefix the hostNamePrefix value to set * @return the SignalRResourceInner object itself. @@ -110,7 +112,7 @@ public SignalRResourceInner withHostNamePrefix(String hostNamePrefix) { } /** - * Get the provisioningState value. + * Get provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'. * * @return the provisioningState value */ @@ -119,7 +121,7 @@ public ProvisioningState provisioningState() { } /** - * Get the externalIP value. + * Get the publicly accessible IP of the SignalR service. * * @return the externalIP value */ @@ -128,7 +130,7 @@ public String externalIP() { } /** - * Get the hostName value. + * Get fQDN of the SignalR service instance. Format: xxx.service.signalr.net. * * @return the hostName value */ @@ -137,7 +139,7 @@ public String hostName() { } /** - * Get the publicPort value. + * Get the publicly accessibly port of the SignalR service which is designed for browser/client side usage. * * @return the publicPort value */ @@ -146,7 +148,7 @@ public Integer publicPort() { } /** - * Get the serverPort value. + * Get the publicly accessibly port of the SignalR service which is designed for customer server side usage. * * @return the serverPort value */ diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRServiceManager.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRServiceManager.java new file mode 100644 index 000000000000..3c22875aac3f --- /dev/null +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRServiceManager.java @@ -0,0 +1,111 @@ +/** + * 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.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.Operations; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRs; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure SignalRService resource management. + */ +public final class SignalRServiceManager extends ManagerCore { + private Operations operations; + private SignalRs signalRs; + /** + * Get a Configurable instance that can be used to create SignalRServiceManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new SignalRServiceManager.ConfigurableImpl(); + } + /** + * Creates an instance of SignalRServiceManager that exposes SignalRService resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the SignalRServiceManager + */ + public static SignalRServiceManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new SignalRServiceManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of SignalRServiceManager that exposes SignalRService resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the SignalRServiceManager + */ + public static SignalRServiceManager authenticate(RestClient restClient, String subscriptionId) { + return new SignalRServiceManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of SignalRServiceManager that exposes SignalRService management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing SignalRService management API entry points that work across subscriptions + */ + SignalRServiceManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(this); + } + return this.operations; + } + + /** + * @return Entry point to manage SignalRs. + */ + public SignalRs signalRs() { + if (this.signalRs == null) { + this.signalRs = new SignalRsImpl(this); + } + return this.signalRs; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public SignalRServiceManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return SignalRServiceManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private SignalRServiceManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new SignalRManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRsImpl.java b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRsImpl.java index 632e8ca79cdb..3712cc6ff105 100644 --- a/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRsImpl.java +++ b/signalr/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/signalr/v2018_03_01_preview/implementation/SignalRsImpl.java @@ -4,209 +4,143 @@ * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * def + * abc */ package com.microsoft.azure.management.signalr.v2018_03_01_preview.implementation; -import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRs; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRResource; +import rx.functions.Func1; import rx.Observable; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.NameAvailability; +import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRKeys; import rx.Completable; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import com.microsoft.azure.arm.resources.ResourceUtilsCore; -import com.microsoft.azure.arm.utils.RXMapper; -import rx.functions.Func1; -import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRKeys; -import com.microsoft.azure.management.signalr.v2018_03_01_preview.NameAvailability; - -class SignalRsImpl extends GroupableResourcesCoreImpl implements SignalRs { - protected SignalRsImpl(SignalRManager manager) { - super(manager.inner().signalRs(), manager); - } - - @Override - protected Observable getInnerAsync(String resourceGroupName, String name) { - SignalRsInner client = this.inner(); - return client.getByResourceGroupAsync(resourceGroupName, name); - } +import com.microsoft.azure.management.signalr.v2018_03_01_preview.SignalRResource; - @Override - protected Completable deleteInnerAsync(String resourceGroupName, String name) { - SignalRsInner client = this.inner(); - return client.deleteAsync(resourceGroupName, name).toCompletable(); - } +class SignalRsImpl extends WrapperImpl implements SignalRs { + private final SignalRServiceManager manager; - @Override - public Observable deleteByIdsAsync(Collection ids) { - if (ids == null || ids.isEmpty()) { - return Observable.empty(); - } - Collection> observables = new ArrayList<>(); - for (String id : ids) { - final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id); - final String name = ResourceUtilsCore.nameFromResourceId(id); - Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id); - observables.add(o); - } - return Observable.mergeDelayError(observables); + SignalRsImpl(SignalRServiceManager manager) { + super(manager.inner().signalRs()); + this.manager = manager; } - @Override - public Observable deleteByIdsAsync(String...ids) { - return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + public SignalRServiceManager manager() { + return this.manager; } @Override - public void deleteByIds(Collection ids) { - if (ids != null && !ids.isEmpty()) { - this.deleteByIdsAsync(ids).toBlocking().last(); - } + public Observable checkNameAvailabilityAsync(String location) { + SignalRsInner client = this.inner(); + return client.checkNameAvailabilityAsync(location) + .map(new Func1() { + @Override + public NameAvailability call(NameAvailabilityInner inner) { + return new NameAvailabilityImpl(inner, manager()); + } + }); } @Override - public void deleteByIds(String...ids) { - this.deleteByIds(new ArrayList(Arrays.asList(ids))); + public Observable listKeysAsync(String resourceGroupName, String resourceName) { + SignalRsInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, resourceName) + .map(new Func1() { + @Override + public SignalRKeys call(SignalRKeysInner inner) { + return new SignalRKeysImpl(inner, manager()); + } + }); } @Override - public PagedList listByResourceGroup(String resourceGroupName) { + public Observable regenerateKeyAsync(String resourceGroupName, String resourceName) { SignalRsInner client = this.inner(); - return this.wrapList(client.listByResourceGroup(resourceGroupName)); + return client.regenerateKeyAsync(resourceGroupName, resourceName) + .map(new Func1() { + @Override + public SignalRKeys call(SignalRKeysInner inner) { + return new SignalRKeysImpl(inner, manager()); + } + }); } - private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } + @Override + public Observable getByResourceGroupAsync(String resourceGroupName, String resourceName) { SignalRsInner client = this.inner(); - return client.listByResourceGroupNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { + return client.getByResourceGroupAsync(resourceGroupName, resourceName) + .map(new Func1() { @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink())); + public SignalRResource call(SignalRResourceInner inner) { + return new SignalRResourceImpl(inner, manager()); } }); } + @Override - public Observable listByResourceGroupAsync(String resourceGroupName) { + public Observable createOrUpdateAsync(String resourceGroupName, String resourceName) { SignalRsInner client = this.inner(); - return client.listByResourceGroupAsync(resourceGroupName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByResourceGroupNextInnerPageAsync(page.nextPageLink()); - } - }) - .flatMapIterable(new Func1, Iterable>() { - @Override - public Iterable call(Page page) { - return page.items(); - } - }) + return client.createOrUpdateAsync(resourceGroupName, resourceName) .map(new Func1() { @Override public SignalRResource call(SignalRResourceInner inner) { - return wrapModel(inner); + return new SignalRResourceImpl(inner, manager()); } - }); + }); } @Override - public PagedList list() { + public Completable deleteAsync(String resourceGroupName, String resourceName) { SignalRsInner client = this.inner(); - return this.wrapList(client.list()); + return client.deleteAsync(resourceGroupName, resourceName).toCompletable(); } - private Observable> listNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } + @Override + public Observable updateAsync(String resourceGroupName, String resourceName) { SignalRsInner client = this.inner(); - return client.listNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { + return client.updateAsync(resourceGroupName, resourceName) + .map(new Func1() { @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink())); + public SignalRResource call(SignalRResourceInner inner) { + return new SignalRResourceImpl(inner, manager()); } }); } + @Override public Observable listAsync() { SignalRsInner client = this.inner(); return client.listAsync() - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) { return page.items(); } - }) + }) .map(new Func1() { @Override public SignalRResource call(SignalRResourceInner inner) { - return wrapModel(inner); - } - }); - } - - @Override - public SignalRResourceImpl define(String name) { - return wrapModel(name); - } - - @Override - public Observable listKeysAsync(String resourceGroupName, String resourceName) { - SignalRsInner client = this.inner(); - return client.listKeysAsync(resourceGroupName, resourceName) - .map(new Func1() { - @Override - public SignalRKeys call(SignalRKeysInner inner) { - return new SignalRKeysImpl(inner, manager()); + return new SignalRResourceImpl(inner, manager()); } }); } @Override - public Observable regenerateKeyAsync(String resourceGroupName, String resourceName) { + public Observable listByResourceGroupAsync(final String resourceGroupName) { SignalRsInner client = this.inner(); - return client.regenerateKeyAsync(resourceGroupName, resourceName) - .map(new Func1() { + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { @Override - public SignalRKeys call(SignalRKeysInner inner) { - return new SignalRKeysImpl(inner, manager()); + public Iterable call(Page page) { + return page.items(); } - }); - } - - @Override - protected SignalRResourceImpl wrapModel(SignalRResourceInner inner) { - return new SignalRResourceImpl(inner.name(), inner, manager()); - } - - @Override - protected SignalRResourceImpl wrapModel(String name) { - return new SignalRResourceImpl(name, new SignalRResourceInner(), this.manager()); - } - - @Override - public Observable checkNameAvailabilityAsync(String location) { - SignalRsInner client = this.inner(); - return client.checkNameAvailabilityAsync(location) - .map(new Func1() { + }) + .map(new Func1() { @Override - public NameAvailability call(NameAvailabilityInner inner) { - return new NameAvailabilityImpl(inner, manager()); + public SignalRResource call(SignalRResourceInner inner) { + return new SignalRResourceImpl(inner, manager()); } }); }