From 33ba95adbba86435906879de7d8bde90f20ce63a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 22 Jun 2018 13:14:28 -0700 Subject: [PATCH 1/5] Generated from 0c9b4e4b408e4017fca14b4141d0169916d4f703 (#2133) [Storage] Support hdfs feature. --- storage/resource-manager/v2016_01_01/pom.xml | 266 +++++++++--------- .../storage/v2016_01_01/CustomDomain.java | 8 +- .../storage/v2016_01_01/Encryption.java | 8 +- .../v2016_01_01/EncryptionService.java | 6 +- .../v2016_01_01/EncryptionServices.java | 4 +- .../storage/v2016_01_01/Endpoints.java | 8 +- .../management/storage/v2016_01_01/Sku.java | 6 +- .../storage/v2016_01_01/StorageAccount.java | 2 +- ...ccountCheckNameAvailabilityParameters.java | 1 + .../StorageAccountCreateParameters.java | 28 +- .../v2016_01_01/StorageAccountKey.java | 6 +- .../StorageAccountUpdateParameters.java | 20 +- .../storage/v2016_01_01/UsageName.java | 4 +- .../CheckNameAvailabilityResultInner.java | 6 +- .../implementation/StorageAccountInner.java | 28 +- .../StorageAccountListKeysResultInner.java | 2 +- .../implementation/UsageInner.java | 8 +- storage/resource-manager/v2017_10_01/pom.xml | 266 +++++++++--------- .../v2017_10_01/AccountSasParameters.java | 32 +-- .../storage/v2017_10_01/CustomDomain.java | 8 +- .../storage/v2017_10_01/Dimension.java | 8 +- .../storage/v2017_10_01/Encryption.java | 12 +- .../v2017_10_01/EncryptionService.java | 6 +- .../v2017_10_01/EncryptionServices.java | 12 +- .../storage/v2017_10_01/Endpoints.java | 8 +- .../storage/v2017_10_01/IPRule.java | 8 +- .../storage/v2017_10_01/Identity.java | 8 +- .../v2017_10_01/KeyVaultProperties.java | 12 +- .../v2017_10_01/MetricSpecification.java | 36 +-- .../storage/v2017_10_01/NetworkRuleSet.java | 16 +- .../storage/v2017_10_01/OperationDisplay.java | 12 +- .../storage/v2017_10_01/Restriction.java | 8 +- .../storage/v2017_10_01/SKUCapability.java | 4 +- .../v2017_10_01/ServiceSasParameters.java | 72 ++--- .../v2017_10_01/ServiceSpecification.java | 4 +- .../storage/v2017_10_01/StorageAccount.java | 2 +- ...ccountCheckNameAvailabilityParameters.java | 9 +- .../StorageAccountCreateParameters.java | 40 +-- .../v2017_10_01/StorageAccountKey.java | 6 +- ...StorageAccountRegenerateKeyParameters.java | 4 +- .../StorageAccountUpdateParameters.java | 36 +-- .../storage/v2017_10_01/UsageName.java | 4 +- .../v2017_10_01/VirtualNetworkRule.java | 12 +- .../CheckNameAvailabilityResultInner.java | 6 +- .../ListAccountSasResponseInner.java | 2 +- .../ListServiceSasResponseInner.java | 2 +- .../implementation/OperationInner.java | 16 +- .../implementation/OperationsImpl.java | 3 +- .../v2017_10_01/implementation/SkuInner.java | 18 +- .../implementation/StorageAccountInner.java | 38 +-- .../StorageAccountListKeysResultInner.java | 2 +- .../implementation/UsageInner.java | 8 +- storage/resource-manager/v2018_02_01/pom.xml | 266 +++++++++--------- .../v2018_02_01/AccountSasParameters.java | 32 +-- .../v2018_02_01/AzureEntityResource.java | 2 +- .../storage/v2018_02_01/BlobContainers.java | 10 + ...eateOrUpdateImmutabilityPolicyHeaders.java | 4 +- ...ainersDeleteImmutabilityPolicyHeaders.java | 4 +- ...ainersExtendImmutabilityPolicyHeaders.java | 4 +- ...ontainersGetImmutabilityPolicyHeaders.java | 4 +- ...ntainersLockImmutabilityPolicyHeaders.java | 4 +- .../storage/v2018_02_01/CustomDomain.java | 8 +- .../storage/v2018_02_01/Dimension.java | 8 +- .../storage/v2018_02_01/Encryption.java | 12 +- .../v2018_02_01/EncryptionService.java | 6 +- .../v2018_02_01/EncryptionServices.java | 12 +- .../storage/v2018_02_01/Endpoints.java | 42 ++- .../storage/v2018_02_01/IPRule.java | 8 +- .../storage/v2018_02_01/Identity.java | 8 +- .../ImmutabilityPolicyProperties.java | 10 +- .../v2018_02_01/KeyVaultProperties.java | 12 +- .../v2018_02_01/LegalHoldProperties.java | 6 +- .../v2018_02_01/ListContainerItem.java | 24 +- .../v2018_02_01/MetricSpecification.java | 36 +-- .../storage/v2018_02_01/NetworkRuleSet.java | 16 +- .../storage/v2018_02_01/OperationDisplay.java | 12 +- .../storage/v2018_02_01/Restriction.java | 8 +- .../storage/v2018_02_01/SKUCapability.java | 4 +- .../v2018_02_01/ServiceSasParameters.java | 72 ++--- .../v2018_02_01/ServiceSpecification.java | 4 +- .../storage/v2018_02_01/StorageAccount.java | 19 +- ...ccountCheckNameAvailabilityParameters.java | 9 +- .../StorageAccountCreateParameters.java | 66 +++-- .../v2018_02_01/StorageAccountKey.java | 6 +- ...StorageAccountRegenerateKeyParameters.java | 4 +- .../StorageAccountUpdateParameters.java | 36 +-- .../storage/v2018_02_01/TagProperty.java | 8 +- .../v2018_02_01/UpdateHistoryProperty.java | 12 +- .../storage/v2018_02_01/UsageName.java | 4 +- .../v2018_02_01/VirtualNetworkRule.java | 12 +- .../implementation/BlobContainerInner.java | 24 +- .../CheckNameAvailabilityResultInner.java | 6 +- .../ImmutabilityPolicyInner.java | 6 +- .../implementation/LegalHoldInner.java | 6 +- .../ListAccountSasResponseInner.java | 2 +- .../ListContainerItemsInner.java | 4 +- .../ListServiceSasResponseInner.java | 2 +- .../implementation/OperationInner.java | 16 +- .../implementation/OperationsImpl.java | 3 +- .../v2018_02_01/implementation/SkuInner.java | 18 +- .../implementation/StorageAccountImpl.java | 11 + .../implementation/StorageAccountInner.java | 64 +++-- .../StorageAccountListKeysResultInner.java | 2 +- .../implementation/UsageInner.java | 8 +- .../v2018_03_01_preview/pom.xml | 266 +++++++++--------- .../AccountSasParameters.java | 32 +-- .../AzureEntityResource.java | 2 +- .../v2018_03_01_preview/BlobContainers.java | 10 + ...eateOrUpdateImmutabilityPolicyHeaders.java | 4 +- ...ainersDeleteImmutabilityPolicyHeaders.java | 4 +- ...ainersExtendImmutabilityPolicyHeaders.java | 4 +- ...ontainersGetImmutabilityPolicyHeaders.java | 4 +- ...ntainersLockImmutabilityPolicyHeaders.java | 4 +- .../v2018_03_01_preview/CustomDomain.java | 8 +- .../v2018_03_01_preview/Dimension.java | 8 +- .../v2018_03_01_preview/Encryption.java | 12 +- .../EncryptionService.java | 6 +- .../EncryptionServices.java | 12 +- .../v2018_03_01_preview/Endpoints.java | 42 ++- .../storage/v2018_03_01_preview/IPRule.java | 8 +- .../storage/v2018_03_01_preview/Identity.java | 8 +- .../ImmutabilityPolicyProperties.java | 10 +- .../KeyVaultProperties.java | 12 +- .../LegalHoldProperties.java | 6 +- .../ListContainerItem.java | 24 +- .../ManagementPoliciesRulesSetParameter.java | 4 +- .../MetricSpecification.java | 36 +-- .../v2018_03_01_preview/NetworkRuleSet.java | 16 +- .../v2018_03_01_preview/OperationDisplay.java | 12 +- .../v2018_03_01_preview/Restriction.java | 8 +- .../v2018_03_01_preview/SKUCapability.java | 4 +- .../ServiceSasParameters.java | 72 ++--- .../ServiceSpecification.java | 4 +- .../v2018_03_01_preview/StorageAccount.java | 19 +- ...ccountCheckNameAvailabilityParameters.java | 9 +- .../StorageAccountCreateParameters.java | 66 +++-- .../StorageAccountKey.java | 6 +- ...StorageAccountRegenerateKeyParameters.java | 4 +- .../StorageAccountUpdateParameters.java | 36 +-- .../v2018_03_01_preview/StorageAccounts.java | 5 + .../v2018_03_01_preview/TagProperty.java | 8 +- .../UpdateHistoryProperty.java | 12 +- .../v2018_03_01_preview/UsageName.java | 4 +- .../VirtualNetworkRule.java | 12 +- .../implementation/BlobContainerInner.java | 24 +- .../CheckNameAvailabilityResultInner.java | 6 +- .../ImmutabilityPolicyInner.java | 6 +- .../implementation/LegalHoldInner.java | 6 +- .../ListAccountSasResponseInner.java | 2 +- .../ListContainerItemsInner.java | 4 +- .../ListServiceSasResponseInner.java | 2 +- .../implementation/OperationInner.java | 16 +- .../implementation/OperationsImpl.java | 3 +- .../implementation/SkuInner.java | 18 +- .../implementation/StorageAccountImpl.java | 11 + .../implementation/StorageAccountInner.java | 64 +++-- .../StorageAccountListKeysResultInner.java | 2 +- ...StorageAccountManagementPoliciesInner.java | 6 +- .../implementation/UsageInner.java | 8 +- 159 files changed, 1693 insertions(+), 1445 deletions(-) diff --git a/storage/resource-manager/v2016_01_01/pom.xml b/storage/resource-manager/v2016_01_01/pom.xml index 75e99d87fc6df..de38d4d120bd4 100644 --- a/storage/resource-manager/v2016_01_01/pom.xml +++ b/storage/resource-manager/v2016_01_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.storage.v2016_01_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-storage - 1.0.0-beta-1 - jar - Microsoft Azure SDK for Storage Management - This package contains Microsoft Storage 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.storage.v2016_01_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-storage + 1.0.0-beta + jar + Microsoft Azure SDK for Storage Management + This package contains Microsoft Storage 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/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/CustomDomain.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/CustomDomain.java index 891eae49919ee..7597576a81b8b 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/CustomDomain.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/CustomDomain.java @@ -30,7 +30,7 @@ public class CustomDomain { private Boolean useSubDomain; /** - * Get the name value. + * Get gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Set the name value. + * Set gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @param name the name value to set * @return the CustomDomain object itself. @@ -50,7 +50,7 @@ public CustomDomain withName(String name) { } /** - * Get the useSubDomain value. + * Get indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @return the useSubDomain value */ @@ -59,7 +59,7 @@ public Boolean useSubDomain() { } /** - * Set the useSubDomain value. + * Set indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @param useSubDomain the useSubDomain value to set * @return the CustomDomain object itself. diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Encryption.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Encryption.java index 4fd49ac9ff3c1..8c955b28f17cd 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Encryption.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Encryption.java @@ -35,7 +35,7 @@ public Encryption() { } /** - * Get the services value. + * Get list of services which support encryption. * * @return the services value */ @@ -44,7 +44,7 @@ public EncryptionServices services() { } /** - * Set the services value. + * Set list of services which support encryption. * * @param services the services value to set * @return the Encryption object itself. @@ -55,7 +55,7 @@ public Encryption withServices(EncryptionServices services) { } /** - * Get the keySource value. + * Get the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage. * * @return the keySource value */ @@ -64,7 +64,7 @@ public String keySource() { } /** - * Set the keySource value. + * Set the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage. * * @param keySource the keySource value to set * @return the Encryption object itself. diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionService.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionService.java index 0ba17b5c452af..b178ad39b1d48 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionService.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionService.java @@ -32,7 +32,7 @@ public class EncryptionService { private DateTime lastEnabledTime; /** - * Get the enabled value. + * Get a boolean indicating whether or not the service encrypts the data as it is stored. * * @return the enabled value */ @@ -41,7 +41,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set a boolean indicating whether or not the service encrypts the data as it is stored. * * @param enabled the enabled value to set * @return the EncryptionService object itself. @@ -52,7 +52,7 @@ public EncryptionService withEnabled(Boolean enabled) { } /** - * Get the lastEnabledTime value. + * Get gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. * * @return the lastEnabledTime value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionServices.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionServices.java index b95be81d617b5..96ba4404175c3 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionServices.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/EncryptionServices.java @@ -21,7 +21,7 @@ public class EncryptionServices { private EncryptionService blob; /** - * Get the blob value. + * Get the encryption function of the blob storage service. * * @return the blob value */ @@ -30,7 +30,7 @@ public EncryptionService blob() { } /** - * Set the blob value. + * Set the encryption function of the blob storage service. * * @param blob the blob value to set * @return the EncryptionServices object itself. diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Endpoints.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Endpoints.java index 241a9bc306429..f68c75e752fac 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Endpoints.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Endpoints.java @@ -40,7 +40,7 @@ public class Endpoints { private String file; /** - * Get the blob value. + * Get gets the blob endpoint. * * @return the blob value */ @@ -49,7 +49,7 @@ public String blob() { } /** - * Get the queue value. + * Get gets the queue endpoint. * * @return the queue value */ @@ -58,7 +58,7 @@ public String queue() { } /** - * Get the table value. + * Get gets the table endpoint. * * @return the table value */ @@ -67,7 +67,7 @@ public String table() { } /** - * Get the file value. + * Get gets the file endpoint. * * @return the file value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Sku.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Sku.java index c74e2e438381c..f4200ef7e8d17 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Sku.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/Sku.java @@ -31,7 +31,7 @@ public class Sku { private SkuTier tier; /** - * Get the name value. + * Get gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @return the name value */ @@ -40,7 +40,7 @@ public SkuName name() { } /** - * Set the name value. + * Set gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @param name the name value to set * @return the Sku object itself. @@ -51,7 +51,7 @@ public Sku withName(SkuName name) { } /** - * Get the tier value. + * Get gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium'. * * @return the tier value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccount.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccount.java index 69038314b982c..29d682b11e7a3 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccount.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccount.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; 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.storage.v2016_01_01.implementation.StorageManager; import org.joda.time.DateTime; diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCheckNameAvailabilityParameters.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCheckNameAvailabilityParameters.java index 0bddf8fa36f42..f9b1cde56c2fc 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCheckNameAvailabilityParameters.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCheckNameAvailabilityParameters.java @@ -28,6 +28,7 @@ public class StorageAccountCheckNameAvailabilityParameters { /** * Creates an instance of StorageAccountCheckNameAvailabilityParameters class. + * @param name the name value. */ public StorageAccountCheckNameAvailabilityParameters() { type = "Microsoft.Storage/storageAccounts"; diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCreateParameters.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCreateParameters.java index 771e2931fcd90..c24ffdef11acc 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCreateParameters.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountCreateParameters.java @@ -75,7 +75,7 @@ public class StorageAccountCreateParameters { private AccessTier accessTier; /** - * Get the sku value. + * Get required. Gets or sets the sku name. * * @return the sku value */ @@ -84,7 +84,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set required. Gets or sets the sku name. * * @param sku the sku value to set * @return the StorageAccountCreateParameters object itself. @@ -95,7 +95,7 @@ public StorageAccountCreateParameters withSku(Sku sku) { } /** - * Get the kind value. + * Get required. Indicates the type of storage account. Possible values include: 'Storage', 'BlobStorage'. * * @return the kind value */ @@ -104,7 +104,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set required. Indicates the type of storage account. Possible values include: 'Storage', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountCreateParameters object itself. @@ -115,7 +115,7 @@ public StorageAccountCreateParameters withKind(Kind kind) { } /** - * Get the location value. + * Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @return the location value */ @@ -124,7 +124,7 @@ public String location() { } /** - * Set the location value. + * Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @param location the location value to set * @return the StorageAccountCreateParameters object itself. @@ -135,7 +135,7 @@ public StorageAccountCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @return the tags value */ @@ -144,7 +144,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @param tags the tags value to set * @return the StorageAccountCreateParameters object itself. @@ -155,7 +155,7 @@ public StorageAccountCreateParameters withTags(Map tags) { } /** - * Get the customDomain value. + * Get user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -164,7 +164,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountCreateParameters object itself. @@ -175,7 +175,7 @@ public StorageAccountCreateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @return the encryption value */ @@ -184,7 +184,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountCreateParameters object itself. @@ -195,7 +195,7 @@ public StorageAccountCreateParameters withEncryption(Encryption encryption) { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -204,7 +204,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountCreateParameters object itself. diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountKey.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountKey.java index ad54578f0d47f..6c0e82a980a4c 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountKey.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountKey.java @@ -34,7 +34,7 @@ public class StorageAccountKey { private KeyPermission permissions; /** - * Get the keyName value. + * Get name of the key. * * @return the keyName value */ @@ -43,7 +43,7 @@ public String keyName() { } /** - * Get the value value. + * Get base 64-encoded value of the key. * * @return the value value */ @@ -52,7 +52,7 @@ public String value() { } /** - * Get the permissions value. + * Get permissions for the key -- read-only or full permissions. Possible values include: 'READ', 'FULL'. * * @return the permissions value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountUpdateParameters.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountUpdateParameters.java index 10bd2ddb8b653..b1966caf62c02 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountUpdateParameters.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/StorageAccountUpdateParameters.java @@ -60,7 +60,7 @@ public class StorageAccountUpdateParameters { private AccessTier accessTier; /** - * Get the sku value. + * Get gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @return the sku value */ @@ -69,7 +69,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @param sku the sku value to set * @return the StorageAccountUpdateParameters object itself. @@ -80,7 +80,7 @@ public StorageAccountUpdateParameters withSku(Sku sku) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @return the tags value */ @@ -89,7 +89,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @param tags the tags value to set * @return the StorageAccountUpdateParameters object itself. @@ -100,7 +100,7 @@ public StorageAccountUpdateParameters withTags(Map tags) { } /** - * Get the customDomain value. + * Get custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -109,7 +109,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountUpdateParameters object itself. @@ -120,7 +120,7 @@ public StorageAccountUpdateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. The default setting is unencrypted. * * @return the encryption value */ @@ -129,7 +129,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountUpdateParameters object itself. @@ -140,7 +140,7 @@ public StorageAccountUpdateParameters withEncryption(Encryption encryption) { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -149,7 +149,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountUpdateParameters object itself. diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/UsageName.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/UsageName.java index de37f3fec9491..70838a3c82260 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/UsageName.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get gets a string describing the resource name. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Get the localizedValue value. + * Get gets a localized string describing the resource name. * * @return the localizedValue value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/CheckNameAvailabilityResultInner.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/CheckNameAvailabilityResultInner.java index c7ec326b31707..40a0ff5e43537 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/CheckNameAvailabilityResultInner.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/CheckNameAvailabilityResultInner.java @@ -38,7 +38,7 @@ public class CheckNameAvailabilityResultInner { private String message; /** - * Get the nameAvailable value. + * Get gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. * * @return the nameAvailable value */ @@ -47,7 +47,7 @@ public Boolean nameAvailable() { } /** - * Get the reason value. + * Get gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'. * * @return the reason value */ @@ -56,7 +56,7 @@ public Reason reason() { } /** - * Get the message value. + * Get gets an error message explaining the Reason value in more detail. * * @return the message value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountInner.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountInner.java index cc7ba79ca4689..fd004f7f1b467 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountInner.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountInner.java @@ -131,7 +131,7 @@ public class StorageAccountInner extends Resource { private AccessTier accessTier; /** - * Get the sku value. + * Get gets the SKU. * * @return the sku value */ @@ -140,7 +140,7 @@ public Sku sku() { } /** - * Get the kind value. + * Get gets the Kind. Possible values include: 'Storage', 'BlobStorage'. * * @return the kind value */ @@ -149,7 +149,7 @@ public Kind kind() { } /** - * Get the provisioningState value. + * Get gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'. * * @return the provisioningState value */ @@ -158,7 +158,7 @@ public ProvisioningState provisioningState() { } /** - * Get the primaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. * * @return the primaryEndpoints value */ @@ -167,7 +167,7 @@ public Endpoints primaryEndpoints() { } /** - * Get the primaryLocation value. + * Get gets the location of the primary data center for the storage account. * * @return the primaryLocation value */ @@ -176,7 +176,7 @@ public String primaryLocation() { } /** - * Get the statusOfPrimary value. + * Get gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'Available', 'Unavailable'. * * @return the statusOfPrimary value */ @@ -185,7 +185,7 @@ public AccountStatus statusOfPrimary() { } /** - * Get the lastGeoFailoverTime value. + * Get gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the lastGeoFailoverTime value */ @@ -194,7 +194,7 @@ public DateTime lastGeoFailoverTime() { } /** - * Get the secondaryLocation value. + * Get gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the secondaryLocation value */ @@ -203,7 +203,7 @@ public String secondaryLocation() { } /** - * Get the statusOfSecondary value. + * Get gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'Available', 'Unavailable'. * * @return the statusOfSecondary value */ @@ -212,7 +212,7 @@ public AccountStatus statusOfSecondary() { } /** - * Get the creationTime value. + * Get gets the creation date and time of the storage account in UTC. * * @return the creationTime value */ @@ -221,7 +221,7 @@ public DateTime creationTime() { } /** - * Get the customDomain value. + * Get gets the custom domain the user assigned to this storage account. * * @return the customDomain value */ @@ -230,7 +230,7 @@ public CustomDomain customDomain() { } /** - * Get the secondaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. * * @return the secondaryEndpoints value */ @@ -239,7 +239,7 @@ public Endpoints secondaryEndpoints() { } /** - * Get the encryption value. + * Get gets the encryption settings on the account. If unspecified, the account is unencrypted. * * @return the encryption value */ @@ -248,7 +248,7 @@ public Encryption encryption() { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountListKeysResultInner.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountListKeysResultInner.java index ca80b9306fb54..286ba9c7cab97 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountListKeysResultInner.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/StorageAccountListKeysResultInner.java @@ -24,7 +24,7 @@ public class StorageAccountListKeysResultInner { private List keys; /** - * Get the keys value. + * Get gets the list of storage account keys and their properties for the specified storage account. * * @return the keys value */ diff --git a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/UsageInner.java b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/UsageInner.java index 833b0afda101a..1e87563f68a59 100644 --- a/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/UsageInner.java +++ b/storage/resource-manager/v2016_01_01/src/main/java/com/microsoft/azure/management/storage/v2016_01_01/implementation/UsageInner.java @@ -43,7 +43,7 @@ public class UsageInner { private UsageName name; /** - * Get the unit value. + * Get gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'. * * @return the unit value */ @@ -52,7 +52,7 @@ public UsageUnit unit() { } /** - * Get the currentValue value. + * Get gets the current count of the allocated resources in the subscription. * * @return the currentValue value */ @@ -61,7 +61,7 @@ public Integer currentValue() { } /** - * Get the limit value. + * Get gets the maximum count of the resources that can be allocated in the subscription. * * @return the limit value */ @@ -70,7 +70,7 @@ public Integer limit() { } /** - * Get the name value. + * Get gets the name of the type of usage. * * @return the name value */ diff --git a/storage/resource-manager/v2017_10_01/pom.xml b/storage/resource-manager/v2017_10_01/pom.xml index 1b5aa73f1f4a9..3625f22ea1e37 100644 --- a/storage/resource-manager/v2017_10_01/pom.xml +++ b/storage/resource-manager/v2017_10_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.storage.v2017_10_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-storage - 1.0.0-beta - jar - Microsoft Azure SDK for Storage Management - This package contains Microsoft Storage 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.storage.v2017_10_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-storage + 1.0.0-beta + jar + Microsoft Azure SDK for Storage Management + This package contains Microsoft Storage 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/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/AccountSasParameters.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/AccountSasParameters.java index caa5dc4beb273..6b0f6220e85d9 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/AccountSasParameters.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/AccountSasParameters.java @@ -74,7 +74,7 @@ public class AccountSasParameters { private String keyToSign; /** - * Get the services value. + * Get the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. * * @return the services value */ @@ -83,7 +83,7 @@ public Services services() { } /** - * Set the services value. + * Set the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. * * @param services the services value to set * @return the AccountSasParameters object itself. @@ -94,7 +94,7 @@ public AccountSasParameters withServices(Services services) { } /** - * Get the resourceTypes value. + * Get the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. * * @return the resourceTypes value */ @@ -103,7 +103,7 @@ public SignedResourceTypes resourceTypes() { } /** - * Set the resourceTypes value. + * Set the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. * * @param resourceTypes the resourceTypes value to set * @return the AccountSasParameters object itself. @@ -114,7 +114,7 @@ public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes) } /** - * Get the permissions value. + * Get the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @return the permissions value */ @@ -123,7 +123,7 @@ public Permissions permissions() { } /** - * Set the permissions value. + * Set the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @param permissions the permissions value to set * @return the AccountSasParameters object itself. @@ -134,7 +134,7 @@ public AccountSasParameters withPermissions(Permissions permissions) { } /** - * Get the iPAddressOrRange value. + * Get an IP address or a range of IP addresses from which to accept requests. * * @return the iPAddressOrRange value */ @@ -143,7 +143,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set an IP address or a range of IP addresses from which to accept requests. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the AccountSasParameters object itself. @@ -154,7 +154,7 @@ public AccountSasParameters withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the protocols value. + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @return the protocols value */ @@ -163,7 +163,7 @@ public HttpProtocol protocols() { } /** - * Set the protocols value. + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @param protocols the protocols value to set * @return the AccountSasParameters object itself. @@ -174,7 +174,7 @@ public AccountSasParameters withProtocols(HttpProtocol protocols) { } /** - * Get the sharedAccessStartTime value. + * Get the time at which the SAS becomes valid. * * @return the sharedAccessStartTime value */ @@ -183,7 +183,7 @@ public DateTime sharedAccessStartTime() { } /** - * Set the sharedAccessStartTime value. + * Set the time at which the SAS becomes valid. * * @param sharedAccessStartTime the sharedAccessStartTime value to set * @return the AccountSasParameters object itself. @@ -194,7 +194,7 @@ public AccountSasParameters withSharedAccessStartTime(DateTime sharedAccessStart } /** - * Get the sharedAccessExpiryTime value. + * Get the time at which the shared access signature becomes invalid. * * @return the sharedAccessExpiryTime value */ @@ -203,7 +203,7 @@ public DateTime sharedAccessExpiryTime() { } /** - * Set the sharedAccessExpiryTime value. + * Set the time at which the shared access signature becomes invalid. * * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set * @return the AccountSasParameters object itself. @@ -214,7 +214,7 @@ public AccountSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpi } /** - * Get the keyToSign value. + * Get the key to sign the account SAS token with. * * @return the keyToSign value */ @@ -223,7 +223,7 @@ public String keyToSign() { } /** - * Set the keyToSign value. + * Set the key to sign the account SAS token with. * * @param keyToSign the keyToSign value to set * @return the AccountSasParameters object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/CustomDomain.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/CustomDomain.java index 7aa49dab321a3..cbc14318cf296 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/CustomDomain.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/CustomDomain.java @@ -30,7 +30,7 @@ public class CustomDomain { private Boolean useSubDomain; /** - * Get the name value. + * Get gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Set the name value. + * Set gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @param name the name value to set * @return the CustomDomain object itself. @@ -50,7 +50,7 @@ public CustomDomain withName(String name) { } /** - * Get the useSubDomain value. + * Get indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @return the useSubDomain value */ @@ -59,7 +59,7 @@ public Boolean useSubDomain() { } /** - * Set the useSubDomain value. + * Set indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @param useSubDomain the useSubDomain value to set * @return the CustomDomain object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Dimension.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Dimension.java index 21b261317b5b4..9cb5f123501e9 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Dimension.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Dimension.java @@ -27,7 +27,7 @@ public class Dimension { private String displayName; /** - * Get the name value. + * Get display name of dimension. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set display name of dimension. * * @param name the name value to set * @return the Dimension object itself. @@ -47,7 +47,7 @@ public Dimension withName(String name) { } /** - * Get the displayName value. + * Get display name of dimension. * * @return the displayName value */ @@ -56,7 +56,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set display name of dimension. * * @param displayName the displayName value to set * @return the Dimension object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Encryption.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Encryption.java index a35e416db3ce0..c6d34415e1b87 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Encryption.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Encryption.java @@ -35,7 +35,7 @@ public class Encryption { private KeyVaultProperties keyVaultProperties; /** - * Get the services value. + * Get list of services which support encryption. * * @return the services value */ @@ -44,7 +44,7 @@ public EncryptionServices services() { } /** - * Set the services value. + * Set list of services which support encryption. * * @param services the services value to set * @return the Encryption object itself. @@ -55,7 +55,7 @@ public Encryption withServices(EncryptionServices services) { } /** - * Get the keySource value. + * Get the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. * * @return the keySource value */ @@ -64,7 +64,7 @@ public KeySource keySource() { } /** - * Set the keySource value. + * Set the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. * * @param keySource the keySource value to set * @return the Encryption object itself. @@ -75,7 +75,7 @@ public Encryption withKeySource(KeySource keySource) { } /** - * Get the keyVaultProperties value. + * Get properties provided by key vault. * * @return the keyVaultProperties value */ @@ -84,7 +84,7 @@ public KeyVaultProperties keyVaultProperties() { } /** - * Set the keyVaultProperties value. + * Set properties provided by key vault. * * @param keyVaultProperties the keyVaultProperties value to set * @return the Encryption object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionService.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionService.java index aa32bdcbbb182..5257fca9e59ff 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionService.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionService.java @@ -32,7 +32,7 @@ public class EncryptionService { private DateTime lastEnabledTime; /** - * Get the enabled value. + * Get a boolean indicating whether or not the service encrypts the data as it is stored. * * @return the enabled value */ @@ -41,7 +41,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set a boolean indicating whether or not the service encrypts the data as it is stored. * * @param enabled the enabled value to set * @return the EncryptionService object itself. @@ -52,7 +52,7 @@ public EncryptionService withEnabled(Boolean enabled) { } /** - * Get the lastEnabledTime value. + * Get gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. * * @return the lastEnabledTime value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionServices.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionServices.java index 1e54c2518d3d3..dff260cf076ab 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionServices.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/EncryptionServices.java @@ -39,7 +39,7 @@ public class EncryptionServices { private EncryptionService queue; /** - * Get the blob value. + * Get the encryption function of the blob storage service. * * @return the blob value */ @@ -48,7 +48,7 @@ public EncryptionService blob() { } /** - * Set the blob value. + * Set the encryption function of the blob storage service. * * @param blob the blob value to set * @return the EncryptionServices object itself. @@ -59,7 +59,7 @@ public EncryptionServices withBlob(EncryptionService blob) { } /** - * Get the file value. + * Get the encryption function of the file storage service. * * @return the file value */ @@ -68,7 +68,7 @@ public EncryptionService file() { } /** - * Set the file value. + * Set the encryption function of the file storage service. * * @param file the file value to set * @return the EncryptionServices object itself. @@ -79,7 +79,7 @@ public EncryptionServices withFile(EncryptionService file) { } /** - * Get the table value. + * Get the encryption function of the table storage service. * * @return the table value */ @@ -88,7 +88,7 @@ public EncryptionService table() { } /** - * Get the queue value. + * Get the encryption function of the queue storage service. * * @return the queue value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Endpoints.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Endpoints.java index 5d66cb8932bd8..b7db755ab359b 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Endpoints.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Endpoints.java @@ -40,7 +40,7 @@ public class Endpoints { private String file; /** - * Get the blob value. + * Get gets the blob endpoint. * * @return the blob value */ @@ -49,7 +49,7 @@ public String blob() { } /** - * Get the queue value. + * Get gets the queue endpoint. * * @return the queue value */ @@ -58,7 +58,7 @@ public String queue() { } /** - * Get the table value. + * Get gets the table endpoint. * * @return the table value */ @@ -67,7 +67,7 @@ public String table() { } /** - * Get the file value. + * Get gets the file endpoint. * * @return the file value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/IPRule.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/IPRule.java index df1ea1385bfc8..1022770779941 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/IPRule.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/IPRule.java @@ -28,7 +28,7 @@ public class IPRule { private Action action; /** - * Get the iPAddressOrRange value. + * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @return the iPAddressOrRange value */ @@ -37,7 +37,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the IPRule object itself. @@ -48,7 +48,7 @@ public IPRule withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the action value. + * Get the action of IP ACL rule. Possible values include: 'Allow'. * * @return the action value */ @@ -57,7 +57,7 @@ public Action action() { } /** - * Set the action value. + * Set the action of IP ACL rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the IPRule object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Identity.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Identity.java index 78535a23e4c44..4b2a391cdfd16 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Identity.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Identity.java @@ -40,7 +40,7 @@ public Identity() { } /** - * Get the principalId value. + * Get the principal ID of resource identity. * * @return the principalId value */ @@ -49,7 +49,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant ID of resource. * * @return the tenantId value */ @@ -58,7 +58,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the identity type. * * @return the type value */ @@ -67,7 +67,7 @@ public String type() { } /** - * Set the type value. + * Set the identity type. * * @param type the type value to set * @return the Identity object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/KeyVaultProperties.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/KeyVaultProperties.java index 5f0462e628d1b..ac36cb6c31fcd 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/KeyVaultProperties.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/KeyVaultProperties.java @@ -33,7 +33,7 @@ public class KeyVaultProperties { private String keyVaultUri; /** - * Get the keyName value. + * Get the name of KeyVault key. * * @return the keyName value */ @@ -42,7 +42,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of KeyVault key. * * @param keyName the keyName value to set * @return the KeyVaultProperties object itself. @@ -53,7 +53,7 @@ public KeyVaultProperties withKeyName(String keyName) { } /** - * Get the keyVersion value. + * Get the version of KeyVault key. * * @return the keyVersion value */ @@ -62,7 +62,7 @@ public String keyVersion() { } /** - * Set the keyVersion value. + * Set the version of KeyVault key. * * @param keyVersion the keyVersion value to set * @return the KeyVaultProperties object itself. @@ -73,7 +73,7 @@ public KeyVaultProperties withKeyVersion(String keyVersion) { } /** - * Get the keyVaultUri value. + * Get the Uri of KeyVault. * * @return the keyVaultUri value */ @@ -82,7 +82,7 @@ public String keyVaultUri() { } /** - * Set the keyVaultUri value. + * Set the Uri of KeyVault. * * @param keyVaultUri the keyVaultUri value to set * @return the KeyVaultProperties object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/MetricSpecification.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/MetricSpecification.java index 3c2d7331da058..3c6082815d8da 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/MetricSpecification.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/MetricSpecification.java @@ -70,7 +70,7 @@ public class MetricSpecification { private String resourceIdDimensionNameOverride; /** - * Get the name value. + * Get name of metric specification. * * @return the name value */ @@ -79,7 +79,7 @@ public String name() { } /** - * Set the name value. + * Set name of metric specification. * * @param name the name value to set * @return the MetricSpecification object itself. @@ -90,7 +90,7 @@ public MetricSpecification withName(String name) { } /** - * Get the displayName value. + * Get display name of metric specification. * * @return the displayName value */ @@ -99,7 +99,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set display name of metric specification. * * @param displayName the displayName value to set * @return the MetricSpecification object itself. @@ -110,7 +110,7 @@ public MetricSpecification withDisplayName(String displayName) { } /** - * Get the displayDescription value. + * Get display description of metric specification. * * @return the displayDescription value */ @@ -119,7 +119,7 @@ public String displayDescription() { } /** - * Set the displayDescription value. + * Set display description of metric specification. * * @param displayDescription the displayDescription value to set * @return the MetricSpecification object itself. @@ -130,7 +130,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { } /** - * Get the unit value. + * Get unit could be Bytes or Count. * * @return the unit value */ @@ -139,7 +139,7 @@ public String unit() { } /** - * Set the unit value. + * Set unit could be Bytes or Count. * * @param unit the unit value to set * @return the MetricSpecification object itself. @@ -150,7 +150,7 @@ public MetricSpecification withUnit(String unit) { } /** - * Get the dimensions value. + * Get dimensions of blobs, including blob type and access tier. * * @return the dimensions value */ @@ -159,7 +159,7 @@ public List dimensions() { } /** - * Set the dimensions value. + * Set dimensions of blobs, including blob type and access tier. * * @param dimensions the dimensions value to set * @return the MetricSpecification object itself. @@ -170,7 +170,7 @@ public MetricSpecification withDimensions(List dimensions) { } /** - * Get the aggregationType value. + * Get aggregation type could be Average. * * @return the aggregationType value */ @@ -179,7 +179,7 @@ public String aggregationType() { } /** - * Set the aggregationType value. + * Set aggregation type could be Average. * * @param aggregationType the aggregationType value to set * @return the MetricSpecification object itself. @@ -190,7 +190,7 @@ public MetricSpecification withAggregationType(String aggregationType) { } /** - * Get the fillGapWithZero value. + * Get the property to decide fill gap with zero or not. * * @return the fillGapWithZero value */ @@ -199,7 +199,7 @@ public Boolean fillGapWithZero() { } /** - * Set the fillGapWithZero value. + * Set the property to decide fill gap with zero or not. * * @param fillGapWithZero the fillGapWithZero value to set * @return the MetricSpecification object itself. @@ -210,7 +210,7 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { } /** - * Get the category value. + * Get the category this metric specification belong to, could be Capacity. * * @return the category value */ @@ -219,7 +219,7 @@ public String category() { } /** - * Set the category value. + * Set the category this metric specification belong to, could be Capacity. * * @param category the category value to set * @return the MetricSpecification object itself. @@ -230,7 +230,7 @@ public MetricSpecification withCategory(String category) { } /** - * Get the resourceIdDimensionNameOverride value. + * Get account Resource Id. * * @return the resourceIdDimensionNameOverride value */ @@ -239,7 +239,7 @@ public String resourceIdDimensionNameOverride() { } /** - * Set the resourceIdDimensionNameOverride value. + * Set account Resource Id. * * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set * @return the MetricSpecification object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/NetworkRuleSet.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/NetworkRuleSet.java index 2cc2d8d354793..10e2ee66824da 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/NetworkRuleSet.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/NetworkRuleSet.java @@ -45,7 +45,7 @@ public class NetworkRuleSet { private DefaultAction defaultAction; /** - * Get the bypass value. + * Get specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @return the bypass value */ @@ -54,7 +54,7 @@ public Bypass bypass() { } /** - * Set the bypass value. + * Set specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @param bypass the bypass value to set * @return the NetworkRuleSet object itself. @@ -65,7 +65,7 @@ public NetworkRuleSet withBypass(Bypass bypass) { } /** - * Get the virtualNetworkRules value. + * Get sets the virtual network rules. * * @return the virtualNetworkRules value */ @@ -74,7 +74,7 @@ public List virtualNetworkRules() { } /** - * Set the virtualNetworkRules value. + * Set sets the virtual network rules. * * @param virtualNetworkRules the virtualNetworkRules value to set * @return the NetworkRuleSet object itself. @@ -85,7 +85,7 @@ public NetworkRuleSet withVirtualNetworkRules(List virtualNe } /** - * Get the ipRules value. + * Get sets the IP ACL rules. * * @return the ipRules value */ @@ -94,7 +94,7 @@ public List ipRules() { } /** - * Set the ipRules value. + * Set sets the IP ACL rules. * * @param ipRules the ipRules value to set * @return the NetworkRuleSet object itself. @@ -105,7 +105,7 @@ public NetworkRuleSet withIpRules(List ipRules) { } /** - * Get the defaultAction value. + * Get specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @return the defaultAction value */ @@ -114,7 +114,7 @@ public DefaultAction defaultAction() { } /** - * Set the defaultAction value. + * Set specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @param defaultAction the defaultAction value to set * @return the NetworkRuleSet object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/OperationDisplay.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/OperationDisplay.java index 6e8eb87b26841..d60bb5532f2d0 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/OperationDisplay.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/OperationDisplay.java @@ -33,7 +33,7 @@ public class OperationDisplay { private String operation; /** - * Get the provider value. + * Get service provider: Microsoft Storage. * * @return the provider value */ @@ -42,7 +42,7 @@ public String provider() { } /** - * Set the provider value. + * Set service provider: Microsoft Storage. * * @param provider the provider value to set * @return the OperationDisplay object itself. @@ -53,7 +53,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the resource value. + * Get resource on which the operation is performed etc. * * @return the resource value */ @@ -62,7 +62,7 @@ public String resource() { } /** - * Set the resource value. + * Set resource on which the operation is performed etc. * * @param resource the resource value to set * @return the OperationDisplay object itself. @@ -73,7 +73,7 @@ public OperationDisplay withResource(String resource) { } /** - * Get the operation value. + * Get type of operation: get, read, delete, etc. * * @return the operation value */ @@ -82,7 +82,7 @@ public String operation() { } /** - * Set the operation value. + * Set type of operation: get, read, delete, etc. * * @param operation the operation value to set * @return the OperationDisplay object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java index 07786ab74e8a0..8caab41cc9957 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java @@ -40,7 +40,7 @@ public class Restriction { private ReasonCode reasonCode; /** - * Get the type value. + * Get the type of restrictions. As of now only possible value for this is location. * * @return the type value */ @@ -49,7 +49,7 @@ public String type() { } /** - * Get the values value. + * Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * * @return the values value */ @@ -58,7 +58,7 @@ public List values() { } /** - * Get the reasonCode value. + * Get the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ @@ -67,7 +67,7 @@ public ReasonCode reasonCode() { } /** - * Set the reasonCode value. + * Set the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @param reasonCode the reasonCode value to set * @return the Restriction object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/SKUCapability.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/SKUCapability.java index ab9c05b2fb1db..9038cca00c50c 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/SKUCapability.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/SKUCapability.java @@ -30,7 +30,7 @@ public class SKUCapability { private String value; /** - * Get the name value. + * Get the name of capability, The capability information in the specified sku, including file encryption, network acls, change notification, etc. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Get the value value. + * Get a string value to indicate states of given capability. Possibly 'true' or 'false'. * * @return the value value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSasParameters.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSasParameters.java index 95c9b9b6f1298..033862f56610c 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSasParameters.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSasParameters.java @@ -131,7 +131,7 @@ public class ServiceSasParameters { private String contentType; /** - * Get the canonicalizedResource value. + * Get the canonical path to the signed resource. * * @return the canonicalizedResource value */ @@ -140,7 +140,7 @@ public String canonicalizedResource() { } /** - * Set the canonicalizedResource value. + * Set the canonical path to the signed resource. * * @param canonicalizedResource the canonicalizedResource value to set * @return the ServiceSasParameters object itself. @@ -151,7 +151,7 @@ public ServiceSasParameters withCanonicalizedResource(String canonicalizedResour } /** - * Get the resource value. + * Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. * * @return the resource value */ @@ -160,7 +160,7 @@ public SignedResource resource() { } /** - * Set the resource value. + * Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. * * @param resource the resource value to set * @return the ServiceSasParameters object itself. @@ -171,7 +171,7 @@ public ServiceSasParameters withResource(SignedResource resource) { } /** - * Get the permissions value. + * Get the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @return the permissions value */ @@ -180,7 +180,7 @@ public Permissions permissions() { } /** - * Set the permissions value. + * Set the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @param permissions the permissions value to set * @return the ServiceSasParameters object itself. @@ -191,7 +191,7 @@ public ServiceSasParameters withPermissions(Permissions permissions) { } /** - * Get the iPAddressOrRange value. + * Get an IP address or a range of IP addresses from which to accept requests. * * @return the iPAddressOrRange value */ @@ -200,7 +200,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set an IP address or a range of IP addresses from which to accept requests. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the ServiceSasParameters object itself. @@ -211,7 +211,7 @@ public ServiceSasParameters withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the protocols value. + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @return the protocols value */ @@ -220,7 +220,7 @@ public HttpProtocol protocols() { } /** - * Set the protocols value. + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @param protocols the protocols value to set * @return the ServiceSasParameters object itself. @@ -231,7 +231,7 @@ public ServiceSasParameters withProtocols(HttpProtocol protocols) { } /** - * Get the sharedAccessStartTime value. + * Get the time at which the SAS becomes valid. * * @return the sharedAccessStartTime value */ @@ -240,7 +240,7 @@ public DateTime sharedAccessStartTime() { } /** - * Set the sharedAccessStartTime value. + * Set the time at which the SAS becomes valid. * * @param sharedAccessStartTime the sharedAccessStartTime value to set * @return the ServiceSasParameters object itself. @@ -251,7 +251,7 @@ public ServiceSasParameters withSharedAccessStartTime(DateTime sharedAccessStart } /** - * Get the sharedAccessExpiryTime value. + * Get the time at which the shared access signature becomes invalid. * * @return the sharedAccessExpiryTime value */ @@ -260,7 +260,7 @@ public DateTime sharedAccessExpiryTime() { } /** - * Set the sharedAccessExpiryTime value. + * Set the time at which the shared access signature becomes invalid. * * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set * @return the ServiceSasParameters object itself. @@ -271,7 +271,7 @@ public ServiceSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpi } /** - * Get the identifier value. + * Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. * * @return the identifier value */ @@ -280,7 +280,7 @@ public String identifier() { } /** - * Set the identifier value. + * Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. * * @param identifier the identifier value to set * @return the ServiceSasParameters object itself. @@ -291,7 +291,7 @@ public ServiceSasParameters withIdentifier(String identifier) { } /** - * Get the partitionKeyStart value. + * Get the start of partition key. * * @return the partitionKeyStart value */ @@ -300,7 +300,7 @@ public String partitionKeyStart() { } /** - * Set the partitionKeyStart value. + * Set the start of partition key. * * @param partitionKeyStart the partitionKeyStart value to set * @return the ServiceSasParameters object itself. @@ -311,7 +311,7 @@ public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart) { } /** - * Get the partitionKeyEnd value. + * Get the end of partition key. * * @return the partitionKeyEnd value */ @@ -320,7 +320,7 @@ public String partitionKeyEnd() { } /** - * Set the partitionKeyEnd value. + * Set the end of partition key. * * @param partitionKeyEnd the partitionKeyEnd value to set * @return the ServiceSasParameters object itself. @@ -331,7 +331,7 @@ public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd) { } /** - * Get the rowKeyStart value. + * Get the start of row key. * * @return the rowKeyStart value */ @@ -340,7 +340,7 @@ public String rowKeyStart() { } /** - * Set the rowKeyStart value. + * Set the start of row key. * * @param rowKeyStart the rowKeyStart value to set * @return the ServiceSasParameters object itself. @@ -351,7 +351,7 @@ public ServiceSasParameters withRowKeyStart(String rowKeyStart) { } /** - * Get the rowKeyEnd value. + * Get the end of row key. * * @return the rowKeyEnd value */ @@ -360,7 +360,7 @@ public String rowKeyEnd() { } /** - * Set the rowKeyEnd value. + * Set the end of row key. * * @param rowKeyEnd the rowKeyEnd value to set * @return the ServiceSasParameters object itself. @@ -371,7 +371,7 @@ public ServiceSasParameters withRowKeyEnd(String rowKeyEnd) { } /** - * Get the keyToSign value. + * Get the key to sign the account SAS token with. * * @return the keyToSign value */ @@ -380,7 +380,7 @@ public String keyToSign() { } /** - * Set the keyToSign value. + * Set the key to sign the account SAS token with. * * @param keyToSign the keyToSign value to set * @return the ServiceSasParameters object itself. @@ -391,7 +391,7 @@ public ServiceSasParameters withKeyToSign(String keyToSign) { } /** - * Get the cacheControl value. + * Get the response header override for cache control. * * @return the cacheControl value */ @@ -400,7 +400,7 @@ public String cacheControl() { } /** - * Set the cacheControl value. + * Set the response header override for cache control. * * @param cacheControl the cacheControl value to set * @return the ServiceSasParameters object itself. @@ -411,7 +411,7 @@ public ServiceSasParameters withCacheControl(String cacheControl) { } /** - * Get the contentDisposition value. + * Get the response header override for content disposition. * * @return the contentDisposition value */ @@ -420,7 +420,7 @@ public String contentDisposition() { } /** - * Set the contentDisposition value. + * Set the response header override for content disposition. * * @param contentDisposition the contentDisposition value to set * @return the ServiceSasParameters object itself. @@ -431,7 +431,7 @@ public ServiceSasParameters withContentDisposition(String contentDisposition) { } /** - * Get the contentEncoding value. + * Get the response header override for content encoding. * * @return the contentEncoding value */ @@ -440,7 +440,7 @@ public String contentEncoding() { } /** - * Set the contentEncoding value. + * Set the response header override for content encoding. * * @param contentEncoding the contentEncoding value to set * @return the ServiceSasParameters object itself. @@ -451,7 +451,7 @@ public ServiceSasParameters withContentEncoding(String contentEncoding) { } /** - * Get the contentLanguage value. + * Get the response header override for content language. * * @return the contentLanguage value */ @@ -460,7 +460,7 @@ public String contentLanguage() { } /** - * Set the contentLanguage value. + * Set the response header override for content language. * * @param contentLanguage the contentLanguage value to set * @return the ServiceSasParameters object itself. @@ -471,7 +471,7 @@ public ServiceSasParameters withContentLanguage(String contentLanguage) { } /** - * Get the contentType value. + * Get the response header override for content type. * * @return the contentType value */ @@ -480,7 +480,7 @@ public String contentType() { } /** - * Set the contentType value. + * Set the response header override for content type. * * @param contentType the contentType value to set * @return the ServiceSasParameters object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSpecification.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSpecification.java index 253d82ce029ce..e9afb761ed8d2 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSpecification.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/ServiceSpecification.java @@ -22,7 +22,7 @@ public class ServiceSpecification { private List metricSpecifications; /** - * Get the metricSpecifications value. + * Get metric specifications of operation. * * @return the metricSpecifications value */ @@ -31,7 +31,7 @@ public List metricSpecifications() { } /** - * Set the metricSpecifications value. + * Set metric specifications of operation. * * @param metricSpecifications the metricSpecifications value to set * @return the ServiceSpecification object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccount.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccount.java index 0ac3b08c2921a..0a7a5fe13744d 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccount.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccount.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; 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.storage.v2017_10_01.implementation.StorageManager; import com.microsoft.azure.management.storage.v2017_10_01.implementation.SkuInner; diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCheckNameAvailabilityParameters.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCheckNameAvailabilityParameters.java index 0493671817e3d..4a7a034043b1b 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCheckNameAvailabilityParameters.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCheckNameAvailabilityParameters.java @@ -28,13 +28,14 @@ public class StorageAccountCheckNameAvailabilityParameters { /** * Creates an instance of StorageAccountCheckNameAvailabilityParameters class. + * @param name the storage account name. */ public StorageAccountCheckNameAvailabilityParameters() { type = "Microsoft.Storage/storageAccounts"; } /** - * Get the name value. + * Get the storage account name. * * @return the name value */ @@ -43,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the storage account name. * * @param name the name value to set * @return the StorageAccountCheckNameAvailabilityParameters object itself. @@ -54,7 +55,7 @@ public StorageAccountCheckNameAvailabilityParameters withName(String name) { } /** - * Get the type value. + * Get the type of resource, Microsoft.Storage/storageAccounts. * * @return the type value */ @@ -63,7 +64,7 @@ public String type() { } /** - * Set the type value. + * Set the type of resource, Microsoft.Storage/storageAccounts. * * @param type the type value to set * @return the StorageAccountCheckNameAvailabilityParameters object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCreateParameters.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCreateParameters.java index e218d0277e5c9..1847792d6b1f7 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCreateParameters.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountCreateParameters.java @@ -94,7 +94,7 @@ public class StorageAccountCreateParameters { private Boolean enableHttpsTrafficOnly; /** - * Get the sku value. + * Get required. Gets or sets the sku name. * * @return the sku value */ @@ -103,7 +103,7 @@ public SkuInner sku() { } /** - * Set the sku value. + * Set required. Gets or sets the sku name. * * @param sku the sku value to set * @return the StorageAccountCreateParameters object itself. @@ -114,7 +114,7 @@ public StorageAccountCreateParameters withSku(SkuInner sku) { } /** - * Get the kind value. + * Get required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -123,7 +123,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountCreateParameters object itself. @@ -134,7 +134,7 @@ public StorageAccountCreateParameters withKind(Kind kind) { } /** - * Get the location value. + * Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @return the location value */ @@ -143,7 +143,7 @@ public String location() { } /** - * Set the location value. + * Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @param location the location value to set * @return the StorageAccountCreateParameters object itself. @@ -154,7 +154,7 @@ public StorageAccountCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @return the tags value */ @@ -163,7 +163,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @param tags the tags value to set * @return the StorageAccountCreateParameters object itself. @@ -174,7 +174,7 @@ public StorageAccountCreateParameters withTags(Map tags) { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -183,7 +183,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountCreateParameters object itself. @@ -194,7 +194,7 @@ public StorageAccountCreateParameters withIdentity(Identity identity) { } /** - * Get the customDomain value. + * Get user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -203,7 +203,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountCreateParameters object itself. @@ -214,7 +214,7 @@ public StorageAccountCreateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @return the encryption value */ @@ -223,7 +223,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountCreateParameters object itself. @@ -234,7 +234,7 @@ public StorageAccountCreateParameters withEncryption(Encryption encryption) { } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -243,7 +243,7 @@ public NetworkRuleSet networkRuleSet() { } /** - * Set the networkRuleSet value. + * Set network rule set. * * @param networkRuleSet the networkRuleSet value to set * @return the StorageAccountCreateParameters object itself. @@ -254,7 +254,7 @@ public StorageAccountCreateParameters withNetworkRuleSet(NetworkRuleSet networkR } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -263,7 +263,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountCreateParameters object itself. @@ -274,7 +274,7 @@ public StorageAccountCreateParameters withAccessTier(AccessTier accessTier) { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -283,7 +283,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountCreateParameters object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountKey.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountKey.java index ba77f3dda8703..99cf7cfe91ab1 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountKey.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountKey.java @@ -34,7 +34,7 @@ public class StorageAccountKey { private KeyPermission permissions; /** - * Get the keyName value. + * Get name of the key. * * @return the keyName value */ @@ -43,7 +43,7 @@ public String keyName() { } /** - * Get the value value. + * Get base 64-encoded value of the key. * * @return the value value */ @@ -52,7 +52,7 @@ public String value() { } /** - * Get the permissions value. + * Get permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full'. * * @return the permissions value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountRegenerateKeyParameters.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountRegenerateKeyParameters.java index 1a21defa6e7d3..edb640efa9c55 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountRegenerateKeyParameters.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountRegenerateKeyParameters.java @@ -22,7 +22,7 @@ public class StorageAccountRegenerateKeyParameters { private String keyName; /** - * Get the keyName value. + * Get the name of storage keys that want to be regenerated, possible vaules are key1, key2. * * @return the keyName value */ @@ -31,7 +31,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of storage keys that want to be regenerated, possible vaules are key1, key2. * * @param keyName the keyName value to set * @return the StorageAccountRegenerateKeyParameters object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountUpdateParameters.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountUpdateParameters.java index 2966e5397c0e4..5a0b2922f168b 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountUpdateParameters.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/StorageAccountUpdateParameters.java @@ -87,7 +87,7 @@ public class StorageAccountUpdateParameters { private Kind kind; /** - * Get the sku value. + * Get gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @return the sku value */ @@ -96,7 +96,7 @@ public SkuInner sku() { } /** - * Set the sku value. + * Set gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @param sku the sku value to set * @return the StorageAccountUpdateParameters object itself. @@ -107,7 +107,7 @@ public StorageAccountUpdateParameters withSku(SkuInner sku) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @return the tags value */ @@ -116,7 +116,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @param tags the tags value to set * @return the StorageAccountUpdateParameters object itself. @@ -127,7 +127,7 @@ public StorageAccountUpdateParameters withTags(Map tags) { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -136,7 +136,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountUpdateParameters object itself. @@ -147,7 +147,7 @@ public StorageAccountUpdateParameters withIdentity(Identity identity) { } /** - * Get the customDomain value. + * Get custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -156,7 +156,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountUpdateParameters object itself. @@ -167,7 +167,7 @@ public StorageAccountUpdateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. The default setting is unencrypted. * * @return the encryption value */ @@ -176,7 +176,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountUpdateParameters object itself. @@ -187,7 +187,7 @@ public StorageAccountUpdateParameters withEncryption(Encryption encryption) { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -196,7 +196,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountUpdateParameters object itself. @@ -207,7 +207,7 @@ public StorageAccountUpdateParameters withAccessTier(AccessTier accessTier) { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -216,7 +216,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountUpdateParameters object itself. @@ -227,7 +227,7 @@ public StorageAccountUpdateParameters withEnableHttpsTrafficOnly(Boolean enableH } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -236,7 +236,7 @@ public NetworkRuleSet networkRuleSet() { } /** - * Set the networkRuleSet value. + * Set network rule set. * * @param networkRuleSet the networkRuleSet value to set * @return the StorageAccountUpdateParameters object itself. @@ -247,7 +247,7 @@ public StorageAccountUpdateParameters withNetworkRuleSet(NetworkRuleSet networkR } /** - * Get the kind value. + * Get optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -256,7 +256,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountUpdateParameters object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/UsageName.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/UsageName.java index a943bd1955001..745d4c6520d75 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/UsageName.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get gets a string describing the resource name. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Get the localizedValue value. + * Get gets a localized string describing the resource name. * * @return the localizedValue value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/VirtualNetworkRule.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/VirtualNetworkRule.java index a61118195afe7..dec8e35a7cb75 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/VirtualNetworkRule.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/VirtualNetworkRule.java @@ -36,7 +36,7 @@ public class VirtualNetworkRule { private State state; /** - * Get the virtualNetworkResourceId value. + * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. * * @return the virtualNetworkResourceId value */ @@ -45,7 +45,7 @@ public String virtualNetworkResourceId() { } /** - * Set the virtualNetworkResourceId value. + * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. * * @param virtualNetworkResourceId the virtualNetworkResourceId value to set * @return the VirtualNetworkRule object itself. @@ -56,7 +56,7 @@ public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkReso } /** - * Get the action value. + * Get the action of virtual network rule. Possible values include: 'Allow'. * * @return the action value */ @@ -65,7 +65,7 @@ public Action action() { } /** - * Set the action value. + * Set the action of virtual network rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the VirtualNetworkRule object itself. @@ -76,7 +76,7 @@ public VirtualNetworkRule withAction(Action action) { } /** - * Get the state value. + * Get gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. * * @return the state value */ @@ -85,7 +85,7 @@ public State state() { } /** - * Set the state value. + * Set gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. * * @param state the state value to set * @return the VirtualNetworkRule object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/CheckNameAvailabilityResultInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/CheckNameAvailabilityResultInner.java index 62238c0976fc3..586e9b1541e8f 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/CheckNameAvailabilityResultInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/CheckNameAvailabilityResultInner.java @@ -38,7 +38,7 @@ public class CheckNameAvailabilityResultInner { private String message; /** - * Get the nameAvailable value. + * Get gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. * * @return the nameAvailable value */ @@ -47,7 +47,7 @@ public Boolean nameAvailable() { } /** - * Get the reason value. + * Get gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'. * * @return the reason value */ @@ -56,7 +56,7 @@ public Reason reason() { } /** - * Get the message value. + * Get gets an error message explaining the Reason value in more detail. * * @return the message value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListAccountSasResponseInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListAccountSasResponseInner.java index 48031b4619efb..3742a311a4788 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListAccountSasResponseInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListAccountSasResponseInner.java @@ -21,7 +21,7 @@ public class ListAccountSasResponseInner { private String accountSasToken; /** - * Get the accountSasToken value. + * Get list SAS credentials of storage account. * * @return the accountSasToken value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListServiceSasResponseInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListServiceSasResponseInner.java index 4b6ba7f73c792..a93381e449fb4 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListServiceSasResponseInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/ListServiceSasResponseInner.java @@ -21,7 +21,7 @@ public class ListServiceSasResponseInner { private String serviceSasToken; /** - * Get the serviceSasToken value. + * Get list service SAS credentials of speicific resource. * * @return the serviceSasToken value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationInner.java index 02b8f6bc6bdec..798a315526eec 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationInner.java @@ -43,7 +43,7 @@ public class OperationInner { private ServiceSpecification serviceSpecification; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{operation}. * * @return the name value */ @@ -52,7 +52,7 @@ public String name() { } /** - * Set the name value. + * Set operation name: {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -63,7 +63,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get display metadata associated with the operation. * * @return the display value */ @@ -72,7 +72,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set display metadata associated with the operation. * * @param display the display value to set * @return the OperationInner object itself. @@ -83,7 +83,7 @@ public OperationInner withDisplay(OperationDisplay display) { } /** - * Get the origin value. + * Get the origin of operations. * * @return the origin value */ @@ -92,7 +92,7 @@ public String origin() { } /** - * Set the origin value. + * Set the origin of operations. * * @param origin the origin value to set * @return the OperationInner object itself. @@ -103,7 +103,7 @@ public OperationInner withOrigin(String origin) { } /** - * Get the serviceSpecification value. + * Get one property of operation, include metric specifications. * * @return the serviceSpecification value */ @@ -112,7 +112,7 @@ public ServiceSpecification serviceSpecification() { } /** - * Set the serviceSpecification value. + * Set one property of operation, include metric specifications. * * @param serviceSpecification the serviceSpecification value to set * @return the OperationInner object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationsImpl.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationsImpl.java index 768929da85a82..a259c4e55e529 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationsImpl.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/OperationsImpl.java @@ -37,7 +37,8 @@ public Observable listAsync() { public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/SkuInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/SkuInner.java index 9bfff491c3055..317f6ede0e05d 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/SkuInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/SkuInner.java @@ -72,7 +72,7 @@ public class SkuInner { private List restrictions; /** - * Get the name value. + * Get gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @return the name value */ @@ -81,7 +81,7 @@ public SkuName name() { } /** - * Set the name value. + * Set gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @param name the name value to set * @return the SkuInner object itself. @@ -92,7 +92,7 @@ public SkuInner withName(SkuName name) { } /** - * Get the tier value. + * Get gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium'. * * @return the tier value */ @@ -101,7 +101,7 @@ public SkuTier tier() { } /** - * Get the resourceType value. + * Get the type of the resource, usually it is 'storageAccounts'. * * @return the resourceType value */ @@ -110,7 +110,7 @@ public String resourceType() { } /** - * Get the kind value. + * Get indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -119,7 +119,7 @@ public Kind kind() { } /** - * Get the locations value. + * Get the set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). * * @return the locations value */ @@ -128,7 +128,7 @@ public List locations() { } /** - * Get the capabilities value. + * Get the capability information in the specified sku, including file encryption, network acls, change notification, etc. * * @return the capabilities value */ @@ -137,7 +137,7 @@ public List capabilities() { } /** - * Get the restrictions value. + * Get the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @return the restrictions value */ @@ -146,7 +146,7 @@ public List restrictions() { } /** - * Set the restrictions value. + * Set the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @param restrictions the restrictions value to set * @return the SkuInner object itself. diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountInner.java index 76900ed8e50d5..707c19136c15d 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountInner.java @@ -151,7 +151,7 @@ public class StorageAccountInner extends Resource { private NetworkRuleSet networkRuleSet; /** - * Get the sku value. + * Get gets the SKU. * * @return the sku value */ @@ -160,7 +160,7 @@ public SkuInner sku() { } /** - * Get the kind value. + * Get gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -169,7 +169,7 @@ public Kind kind() { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -178,7 +178,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountInner object itself. @@ -189,7 +189,7 @@ public StorageAccountInner withIdentity(Identity identity) { } /** - * Get the provisioningState value. + * Get gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'. * * @return the provisioningState value */ @@ -198,7 +198,7 @@ public ProvisioningState provisioningState() { } /** - * Get the primaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. * * @return the primaryEndpoints value */ @@ -207,7 +207,7 @@ public Endpoints primaryEndpoints() { } /** - * Get the primaryLocation value. + * Get gets the location of the primary data center for the storage account. * * @return the primaryLocation value */ @@ -216,7 +216,7 @@ public String primaryLocation() { } /** - * Get the statusOfPrimary value. + * Get gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'available', 'unavailable'. * * @return the statusOfPrimary value */ @@ -225,7 +225,7 @@ public AccountStatus statusOfPrimary() { } /** - * Get the lastGeoFailoverTime value. + * Get gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the lastGeoFailoverTime value */ @@ -234,7 +234,7 @@ public DateTime lastGeoFailoverTime() { } /** - * Get the secondaryLocation value. + * Get gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the secondaryLocation value */ @@ -243,7 +243,7 @@ public String secondaryLocation() { } /** - * Get the statusOfSecondary value. + * Get gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'available', 'unavailable'. * * @return the statusOfSecondary value */ @@ -252,7 +252,7 @@ public AccountStatus statusOfSecondary() { } /** - * Get the creationTime value. + * Get gets the creation date and time of the storage account in UTC. * * @return the creationTime value */ @@ -261,7 +261,7 @@ public DateTime creationTime() { } /** - * Get the customDomain value. + * Get gets the custom domain the user assigned to this storage account. * * @return the customDomain value */ @@ -270,7 +270,7 @@ public CustomDomain customDomain() { } /** - * Get the secondaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. * * @return the secondaryEndpoints value */ @@ -279,7 +279,7 @@ public Endpoints secondaryEndpoints() { } /** - * Get the encryption value. + * Get gets the encryption settings on the account. If unspecified, the account is unencrypted. * * @return the encryption value */ @@ -288,7 +288,7 @@ public Encryption encryption() { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -297,7 +297,7 @@ public AccessTier accessTier() { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -306,7 +306,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountInner object itself. @@ -317,7 +317,7 @@ public StorageAccountInner withEnableHttpsTrafficOnly(Boolean enableHttpsTraffic } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountListKeysResultInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountListKeysResultInner.java index 95a9874165914..4d24a7d8d334e 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountListKeysResultInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/StorageAccountListKeysResultInner.java @@ -24,7 +24,7 @@ public class StorageAccountListKeysResultInner { private List keys; /** - * Get the keys value. + * Get gets the list of storage account keys and their properties for the specified storage account. * * @return the keys value */ diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/UsageInner.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/UsageInner.java index c6f26d9a32cdd..a2b2d09afcc3b 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/UsageInner.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/implementation/UsageInner.java @@ -43,7 +43,7 @@ public class UsageInner { private UsageName name; /** - * Get the unit value. + * Get gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'. * * @return the unit value */ @@ -52,7 +52,7 @@ public UsageUnit unit() { } /** - * Get the currentValue value. + * Get gets the current count of the allocated resources in the subscription. * * @return the currentValue value */ @@ -61,7 +61,7 @@ public Integer currentValue() { } /** - * Get the limit value. + * Get gets the maximum count of the resources that can be allocated in the subscription. * * @return the limit value */ @@ -70,7 +70,7 @@ public Integer limit() { } /** - * Get the name value. + * Get gets the name of the type of usage. * * @return the name value */ diff --git a/storage/resource-manager/v2018_02_01/pom.xml b/storage/resource-manager/v2018_02_01/pom.xml index a31a7bd5a0648..1c11c11ca29b1 100644 --- a/storage/resource-manager/v2018_02_01/pom.xml +++ b/storage/resource-manager/v2018_02_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.storage.v2018_02_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-storage - 1.0.0-beta - jar - Microsoft Azure SDK for Storage Management - This package contains Microsoft Storage 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.storage.v2018_02_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-storage + 1.0.0-beta + jar + Microsoft Azure SDK for Storage Management + This package contains Microsoft Storage 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/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AccountSasParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AccountSasParameters.java index 3301309ee1b10..b85429d612e9d 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AccountSasParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AccountSasParameters.java @@ -74,7 +74,7 @@ public class AccountSasParameters { private String keyToSign; /** - * Get the services value. + * Get the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. * * @return the services value */ @@ -83,7 +83,7 @@ public Services services() { } /** - * Set the services value. + * Set the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. * * @param services the services value to set * @return the AccountSasParameters object itself. @@ -94,7 +94,7 @@ public AccountSasParameters withServices(Services services) { } /** - * Get the resourceTypes value. + * Get the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. * * @return the resourceTypes value */ @@ -103,7 +103,7 @@ public SignedResourceTypes resourceTypes() { } /** - * Set the resourceTypes value. + * Set the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. * * @param resourceTypes the resourceTypes value to set * @return the AccountSasParameters object itself. @@ -114,7 +114,7 @@ public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes) } /** - * Get the permissions value. + * Get the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @return the permissions value */ @@ -123,7 +123,7 @@ public Permissions permissions() { } /** - * Set the permissions value. + * Set the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @param permissions the permissions value to set * @return the AccountSasParameters object itself. @@ -134,7 +134,7 @@ public AccountSasParameters withPermissions(Permissions permissions) { } /** - * Get the iPAddressOrRange value. + * Get an IP address or a range of IP addresses from which to accept requests. * * @return the iPAddressOrRange value */ @@ -143,7 +143,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set an IP address or a range of IP addresses from which to accept requests. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the AccountSasParameters object itself. @@ -154,7 +154,7 @@ public AccountSasParameters withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the protocols value. + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @return the protocols value */ @@ -163,7 +163,7 @@ public HttpProtocol protocols() { } /** - * Set the protocols value. + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @param protocols the protocols value to set * @return the AccountSasParameters object itself. @@ -174,7 +174,7 @@ public AccountSasParameters withProtocols(HttpProtocol protocols) { } /** - * Get the sharedAccessStartTime value. + * Get the time at which the SAS becomes valid. * * @return the sharedAccessStartTime value */ @@ -183,7 +183,7 @@ public DateTime sharedAccessStartTime() { } /** - * Set the sharedAccessStartTime value. + * Set the time at which the SAS becomes valid. * * @param sharedAccessStartTime the sharedAccessStartTime value to set * @return the AccountSasParameters object itself. @@ -194,7 +194,7 @@ public AccountSasParameters withSharedAccessStartTime(DateTime sharedAccessStart } /** - * Get the sharedAccessExpiryTime value. + * Get the time at which the shared access signature becomes invalid. * * @return the sharedAccessExpiryTime value */ @@ -203,7 +203,7 @@ public DateTime sharedAccessExpiryTime() { } /** - * Set the sharedAccessExpiryTime value. + * Set the time at which the shared access signature becomes invalid. * * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set * @return the AccountSasParameters object itself. @@ -214,7 +214,7 @@ public AccountSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpi } /** - * Get the keyToSign value. + * Get the key to sign the account SAS token with. * * @return the keyToSign value */ @@ -223,7 +223,7 @@ public String keyToSign() { } /** - * Set the keyToSign value. + * Set the key to sign the account SAS token with. * * @param keyToSign the keyToSign value to set * @return the AccountSasParameters object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AzureEntityResource.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AzureEntityResource.java index ef5c5b70a7822..c8ccc3f800532 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AzureEntityResource.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/AzureEntityResource.java @@ -23,7 +23,7 @@ public class AzureEntityResource extends ProxyResource { private String etag; /** - * Get the etag value. + * Get resource Etag. * * @return the etag value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainers.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainers.java index 0d1c4bcc16bb5..feaf8cb438fd2 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainers.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainers.java @@ -16,8 +16,18 @@ * Type representing BlobContainers. */ public interface BlobContainers { + /** + * Begins definition for a new Container resource. + * @param name resource name. + * @return the first stage of the new Container definition. + */ BlobContainer.DefinitionStages.Blank defineContainer(String name); + /** + * Begins definition for a new ImmutabilityPolicy resource. + * @param name resource name. + * @return the first stage of the new ImmutabilityPolicy definition. + */ ImmutabilityPolicy.DefinitionStages.Blank defineImmutabilityPolicy(String name); /** diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java index d470bca66836d..ec1b16d581b55 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersCreateOrUpdateImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersCreateOrUpdateImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersDeleteImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersDeleteImmutabilityPolicyHeaders.java index 438fbf388575b..afc33afa83c97 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersDeleteImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersDeleteImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersDeleteImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersDeleteImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersExtendImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersExtendImmutabilityPolicyHeaders.java index af220b641bffa..e6aa97bd6b64a 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersExtendImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersExtendImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersExtendImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersExtendImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersGetImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersGetImmutabilityPolicyHeaders.java index 986149d499e45..76615af8f5183 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersGetImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersGetImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersGetImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersGetImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersLockImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersLockImmutabilityPolicyHeaders.java index ea619080a4c4d..d893df7ce0ee6 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersLockImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/BlobContainersLockImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersLockImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersLockImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/CustomDomain.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/CustomDomain.java index 06a46c842084b..eb6a3f64f18f2 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/CustomDomain.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/CustomDomain.java @@ -30,7 +30,7 @@ public class CustomDomain { private Boolean useSubDomain; /** - * Get the name value. + * Get gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Set the name value. + * Set gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @param name the name value to set * @return the CustomDomain object itself. @@ -50,7 +50,7 @@ public CustomDomain withName(String name) { } /** - * Get the useSubDomain value. + * Get indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @return the useSubDomain value */ @@ -59,7 +59,7 @@ public Boolean useSubDomain() { } /** - * Set the useSubDomain value. + * Set indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @param useSubDomain the useSubDomain value to set * @return the CustomDomain object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Dimension.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Dimension.java index cd8a113913378..e328ee85e6422 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Dimension.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Dimension.java @@ -27,7 +27,7 @@ public class Dimension { private String displayName; /** - * Get the name value. + * Get display name of dimension. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set display name of dimension. * * @param name the name value to set * @return the Dimension object itself. @@ -47,7 +47,7 @@ public Dimension withName(String name) { } /** - * Get the displayName value. + * Get display name of dimension. * * @return the displayName value */ @@ -56,7 +56,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set display name of dimension. * * @param displayName the displayName value to set * @return the Dimension object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Encryption.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Encryption.java index 6eeb0c192d8e4..2e0a7a7c99122 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Encryption.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Encryption.java @@ -35,7 +35,7 @@ public class Encryption { private KeyVaultProperties keyVaultProperties; /** - * Get the services value. + * Get list of services which support encryption. * * @return the services value */ @@ -44,7 +44,7 @@ public EncryptionServices services() { } /** - * Set the services value. + * Set list of services which support encryption. * * @param services the services value to set * @return the Encryption object itself. @@ -55,7 +55,7 @@ public Encryption withServices(EncryptionServices services) { } /** - * Get the keySource value. + * Get the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. * * @return the keySource value */ @@ -64,7 +64,7 @@ public KeySource keySource() { } /** - * Set the keySource value. + * Set the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. * * @param keySource the keySource value to set * @return the Encryption object itself. @@ -75,7 +75,7 @@ public Encryption withKeySource(KeySource keySource) { } /** - * Get the keyVaultProperties value. + * Get properties provided by key vault. * * @return the keyVaultProperties value */ @@ -84,7 +84,7 @@ public KeyVaultProperties keyVaultProperties() { } /** - * Set the keyVaultProperties value. + * Set properties provided by key vault. * * @param keyVaultProperties the keyVaultProperties value to set * @return the Encryption object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionService.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionService.java index 9de026a54b4ef..8812b0e9d1c04 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionService.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionService.java @@ -32,7 +32,7 @@ public class EncryptionService { private DateTime lastEnabledTime; /** - * Get the enabled value. + * Get a boolean indicating whether or not the service encrypts the data as it is stored. * * @return the enabled value */ @@ -41,7 +41,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set a boolean indicating whether or not the service encrypts the data as it is stored. * * @param enabled the enabled value to set * @return the EncryptionService object itself. @@ -52,7 +52,7 @@ public EncryptionService withEnabled(Boolean enabled) { } /** - * Get the lastEnabledTime value. + * Get gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. * * @return the lastEnabledTime value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionServices.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionServices.java index c40f568d8e50b..cc5bf11968316 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionServices.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/EncryptionServices.java @@ -39,7 +39,7 @@ public class EncryptionServices { private EncryptionService queue; /** - * Get the blob value. + * Get the encryption function of the blob storage service. * * @return the blob value */ @@ -48,7 +48,7 @@ public EncryptionService blob() { } /** - * Set the blob value. + * Set the encryption function of the blob storage service. * * @param blob the blob value to set * @return the EncryptionServices object itself. @@ -59,7 +59,7 @@ public EncryptionServices withBlob(EncryptionService blob) { } /** - * Get the file value. + * Get the encryption function of the file storage service. * * @return the file value */ @@ -68,7 +68,7 @@ public EncryptionService file() { } /** - * Set the file value. + * Set the encryption function of the file storage service. * * @param file the file value to set * @return the EncryptionServices object itself. @@ -79,7 +79,7 @@ public EncryptionServices withFile(EncryptionService file) { } /** - * Get the table value. + * Get the encryption function of the table storage service. * * @return the table value */ @@ -88,7 +88,7 @@ public EncryptionService table() { } /** - * Get the queue value. + * Get the encryption function of the queue storage service. * * @return the queue value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Endpoints.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Endpoints.java index 5713f0c54496c..1478be8208a84 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Endpoints.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Endpoints.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The URIs that are used to perform a retrieval of a public blob, queue, or - * table object. + * The URIs that are used to perform a retrieval of a public blob, queue, + * table, web or dfs object. */ public class Endpoints { /** @@ -40,7 +40,19 @@ public class Endpoints { private String file; /** - * Get the blob value. + * Gets the web endpoint. + */ + @JsonProperty(value = "web", access = JsonProperty.Access.WRITE_ONLY) + private String web; + + /** + * Gets the dfs endpoint. + */ + @JsonProperty(value = "dfs", access = JsonProperty.Access.WRITE_ONLY) + private String dfs; + + /** + * Get gets the blob endpoint. * * @return the blob value */ @@ -49,7 +61,7 @@ public String blob() { } /** - * Get the queue value. + * Get gets the queue endpoint. * * @return the queue value */ @@ -58,7 +70,7 @@ public String queue() { } /** - * Get the table value. + * Get gets the table endpoint. * * @return the table value */ @@ -67,7 +79,7 @@ public String table() { } /** - * Get the file value. + * Get gets the file endpoint. * * @return the file value */ @@ -75,4 +87,22 @@ public String file() { return this.file; } + /** + * Get gets the web endpoint. + * + * @return the web value + */ + public String web() { + return this.web; + } + + /** + * Get gets the dfs endpoint. + * + * @return the dfs value + */ + public String dfs() { + return this.dfs; + } + } diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/IPRule.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/IPRule.java index 69cd9b84a2ab7..709e6eb964df4 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/IPRule.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/IPRule.java @@ -28,7 +28,7 @@ public class IPRule { private Action action; /** - * Get the iPAddressOrRange value. + * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @return the iPAddressOrRange value */ @@ -37,7 +37,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the IPRule object itself. @@ -48,7 +48,7 @@ public IPRule withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the action value. + * Get the action of IP ACL rule. Possible values include: 'Allow'. * * @return the action value */ @@ -57,7 +57,7 @@ public Action action() { } /** - * Set the action value. + * Set the action of IP ACL rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the IPRule object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Identity.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Identity.java index 605154b62b974..65f67605d0283 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Identity.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Identity.java @@ -40,7 +40,7 @@ public Identity() { } /** - * Get the principalId value. + * Get the principal ID of resource identity. * * @return the principalId value */ @@ -49,7 +49,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant ID of resource. * * @return the tenantId value */ @@ -58,7 +58,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the identity type. * * @return the type value */ @@ -67,7 +67,7 @@ public String type() { } /** - * Set the type value. + * Set the identity type. * * @param type the type value to set * @return the Identity object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ImmutabilityPolicyProperties.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ImmutabilityPolicyProperties.java index 4ff82ec809be8..f69c39e71c2d1 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ImmutabilityPolicyProperties.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ImmutabilityPolicyProperties.java @@ -45,7 +45,7 @@ public class ImmutabilityPolicyProperties { private List updateHistory; /** - * Get the immutabilityPeriodSinceCreationInDays value. + * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */ @@ -54,7 +54,7 @@ public int immutabilityPeriodSinceCreationInDays() { } /** - * Set the immutabilityPeriodSinceCreationInDays value. + * Set the immutability period for the blobs in the container since the policy creation, in days. * * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set * @return the ImmutabilityPolicyProperties object itself. @@ -65,7 +65,7 @@ public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(in } /** - * Get the state value. + * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. * * @return the state value */ @@ -74,7 +74,7 @@ public ImmutabilityPolicyState state() { } /** - * Get the etag value. + * Get immutabilityPolicy Etag. * * @return the etag value */ @@ -83,7 +83,7 @@ public String etag() { } /** - * Get the updateHistory value. + * Get the ImmutabilityPolicy update history of the blob container. * * @return the updateHistory value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/KeyVaultProperties.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/KeyVaultProperties.java index 618166fda7e8f..bd70654c767ac 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/KeyVaultProperties.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/KeyVaultProperties.java @@ -33,7 +33,7 @@ public class KeyVaultProperties { private String keyVaultUri; /** - * Get the keyName value. + * Get the name of KeyVault key. * * @return the keyName value */ @@ -42,7 +42,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of KeyVault key. * * @param keyName the keyName value to set * @return the KeyVaultProperties object itself. @@ -53,7 +53,7 @@ public KeyVaultProperties withKeyName(String keyName) { } /** - * Get the keyVersion value. + * Get the version of KeyVault key. * * @return the keyVersion value */ @@ -62,7 +62,7 @@ public String keyVersion() { } /** - * Set the keyVersion value. + * Set the version of KeyVault key. * * @param keyVersion the keyVersion value to set * @return the KeyVaultProperties object itself. @@ -73,7 +73,7 @@ public KeyVaultProperties withKeyVersion(String keyVersion) { } /** - * Get the keyVaultUri value. + * Get the Uri of KeyVault. * * @return the keyVaultUri value */ @@ -82,7 +82,7 @@ public String keyVaultUri() { } /** - * Set the keyVaultUri value. + * Set the Uri of KeyVault. * * @param keyVaultUri the keyVaultUri value to set * @return the KeyVaultProperties object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/LegalHoldProperties.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/LegalHoldProperties.java index 0f4f06b96d6d3..190b9522519cd 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/LegalHoldProperties.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/LegalHoldProperties.java @@ -32,7 +32,7 @@ public class LegalHoldProperties { private List tags; /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -41,7 +41,7 @@ public Boolean hasLegalHold() { } /** - * Get the tags value. + * Get the list of LegalHold tags of a blob container. * * @return the tags value */ @@ -50,7 +50,7 @@ public List tags() { } /** - * Set the tags value. + * Set the list of LegalHold tags of a blob container. * * @param tags the tags value to set * @return the LegalHoldProperties object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ListContainerItem.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ListContainerItem.java index d9c3ab15b26ad..d45ccabbb6b91 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ListContainerItem.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ListContainerItem.java @@ -91,7 +91,7 @@ public class ListContainerItem extends AzureEntityResource { private Boolean hasImmutabilityPolicy; /** - * Get the publicAccess value. + * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @return the publicAccess value */ @@ -100,7 +100,7 @@ public PublicAccess publicAccess() { } /** - * Set the publicAccess value. + * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @param publicAccess the publicAccess value to set * @return the ListContainerItem object itself. @@ -111,7 +111,7 @@ public ListContainerItem withPublicAccess(PublicAccess publicAccess) { } /** - * Get the lastModifiedTime value. + * Get returns the date and time the container was last modified. * * @return the lastModifiedTime value */ @@ -120,7 +120,7 @@ public DateTime lastModifiedTime() { } /** - * Get the leaseStatus value. + * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. * * @return the leaseStatus value */ @@ -129,7 +129,7 @@ public LeaseStatus leaseStatus() { } /** - * Get the leaseState value. + * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. * * @return the leaseState value */ @@ -138,7 +138,7 @@ public LeaseState leaseState() { } /** - * Get the leaseDuration value. + * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. * * @return the leaseDuration value */ @@ -147,7 +147,7 @@ public LeaseDuration leaseDuration() { } /** - * Get the metadata value. + * Get a name-value pair to associate with the container as metadata. * * @return the metadata value */ @@ -156,7 +156,7 @@ public Map metadata() { } /** - * Set the metadata value. + * Set a name-value pair to associate with the container as metadata. * * @param metadata the metadata value to set * @return the ListContainerItem object itself. @@ -167,7 +167,7 @@ public ListContainerItem withMetadata(Map metadata) { } /** - * Get the immutabilityPolicy value. + * Get the ImmutabilityPolicy property of the container. * * @return the immutabilityPolicy value */ @@ -176,7 +176,7 @@ public ImmutabilityPolicyProperties immutabilityPolicy() { } /** - * Get the legalHold value. + * Get the LegalHold property of the container. * * @return the legalHold value */ @@ -185,7 +185,7 @@ public LegalHoldProperties legalHold() { } /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -194,7 +194,7 @@ public Boolean hasLegalHold() { } /** - * Get the hasImmutabilityPolicy value. + * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. * * @return the hasImmutabilityPolicy value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/MetricSpecification.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/MetricSpecification.java index 514e92b528deb..c6c3e65c8ba66 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/MetricSpecification.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/MetricSpecification.java @@ -70,7 +70,7 @@ public class MetricSpecification { private String resourceIdDimensionNameOverride; /** - * Get the name value. + * Get name of metric specification. * * @return the name value */ @@ -79,7 +79,7 @@ public String name() { } /** - * Set the name value. + * Set name of metric specification. * * @param name the name value to set * @return the MetricSpecification object itself. @@ -90,7 +90,7 @@ public MetricSpecification withName(String name) { } /** - * Get the displayName value. + * Get display name of metric specification. * * @return the displayName value */ @@ -99,7 +99,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set display name of metric specification. * * @param displayName the displayName value to set * @return the MetricSpecification object itself. @@ -110,7 +110,7 @@ public MetricSpecification withDisplayName(String displayName) { } /** - * Get the displayDescription value. + * Get display description of metric specification. * * @return the displayDescription value */ @@ -119,7 +119,7 @@ public String displayDescription() { } /** - * Set the displayDescription value. + * Set display description of metric specification. * * @param displayDescription the displayDescription value to set * @return the MetricSpecification object itself. @@ -130,7 +130,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { } /** - * Get the unit value. + * Get unit could be Bytes or Count. * * @return the unit value */ @@ -139,7 +139,7 @@ public String unit() { } /** - * Set the unit value. + * Set unit could be Bytes or Count. * * @param unit the unit value to set * @return the MetricSpecification object itself. @@ -150,7 +150,7 @@ public MetricSpecification withUnit(String unit) { } /** - * Get the dimensions value. + * Get dimensions of blobs, including blob type and access tier. * * @return the dimensions value */ @@ -159,7 +159,7 @@ public List dimensions() { } /** - * Set the dimensions value. + * Set dimensions of blobs, including blob type and access tier. * * @param dimensions the dimensions value to set * @return the MetricSpecification object itself. @@ -170,7 +170,7 @@ public MetricSpecification withDimensions(List dimensions) { } /** - * Get the aggregationType value. + * Get aggregation type could be Average. * * @return the aggregationType value */ @@ -179,7 +179,7 @@ public String aggregationType() { } /** - * Set the aggregationType value. + * Set aggregation type could be Average. * * @param aggregationType the aggregationType value to set * @return the MetricSpecification object itself. @@ -190,7 +190,7 @@ public MetricSpecification withAggregationType(String aggregationType) { } /** - * Get the fillGapWithZero value. + * Get the property to decide fill gap with zero or not. * * @return the fillGapWithZero value */ @@ -199,7 +199,7 @@ public Boolean fillGapWithZero() { } /** - * Set the fillGapWithZero value. + * Set the property to decide fill gap with zero or not. * * @param fillGapWithZero the fillGapWithZero value to set * @return the MetricSpecification object itself. @@ -210,7 +210,7 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { } /** - * Get the category value. + * Get the category this metric specification belong to, could be Capacity. * * @return the category value */ @@ -219,7 +219,7 @@ public String category() { } /** - * Set the category value. + * Set the category this metric specification belong to, could be Capacity. * * @param category the category value to set * @return the MetricSpecification object itself. @@ -230,7 +230,7 @@ public MetricSpecification withCategory(String category) { } /** - * Get the resourceIdDimensionNameOverride value. + * Get account Resource Id. * * @return the resourceIdDimensionNameOverride value */ @@ -239,7 +239,7 @@ public String resourceIdDimensionNameOverride() { } /** - * Set the resourceIdDimensionNameOverride value. + * Set account Resource Id. * * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set * @return the MetricSpecification object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/NetworkRuleSet.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/NetworkRuleSet.java index 3ec56a59ce852..37313dbe083bf 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/NetworkRuleSet.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/NetworkRuleSet.java @@ -45,7 +45,7 @@ public class NetworkRuleSet { private DefaultAction defaultAction; /** - * Get the bypass value. + * Get specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @return the bypass value */ @@ -54,7 +54,7 @@ public Bypass bypass() { } /** - * Set the bypass value. + * Set specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @param bypass the bypass value to set * @return the NetworkRuleSet object itself. @@ -65,7 +65,7 @@ public NetworkRuleSet withBypass(Bypass bypass) { } /** - * Get the virtualNetworkRules value. + * Get sets the virtual network rules. * * @return the virtualNetworkRules value */ @@ -74,7 +74,7 @@ public List virtualNetworkRules() { } /** - * Set the virtualNetworkRules value. + * Set sets the virtual network rules. * * @param virtualNetworkRules the virtualNetworkRules value to set * @return the NetworkRuleSet object itself. @@ -85,7 +85,7 @@ public NetworkRuleSet withVirtualNetworkRules(List virtualNe } /** - * Get the ipRules value. + * Get sets the IP ACL rules. * * @return the ipRules value */ @@ -94,7 +94,7 @@ public List ipRules() { } /** - * Set the ipRules value. + * Set sets the IP ACL rules. * * @param ipRules the ipRules value to set * @return the NetworkRuleSet object itself. @@ -105,7 +105,7 @@ public NetworkRuleSet withIpRules(List ipRules) { } /** - * Get the defaultAction value. + * Get specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @return the defaultAction value */ @@ -114,7 +114,7 @@ public DefaultAction defaultAction() { } /** - * Set the defaultAction value. + * Set specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @param defaultAction the defaultAction value to set * @return the NetworkRuleSet object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java index 5afa127792804..8ab577a078f89 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java @@ -33,7 +33,7 @@ public class OperationDisplay { private String operation; /** - * Get the provider value. + * Get service provider: Microsoft Storage. * * @return the provider value */ @@ -42,7 +42,7 @@ public String provider() { } /** - * Set the provider value. + * Set service provider: Microsoft Storage. * * @param provider the provider value to set * @return the OperationDisplay object itself. @@ -53,7 +53,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the resource value. + * Get resource on which the operation is performed etc. * * @return the resource value */ @@ -62,7 +62,7 @@ public String resource() { } /** - * Set the resource value. + * Set resource on which the operation is performed etc. * * @param resource the resource value to set * @return the OperationDisplay object itself. @@ -73,7 +73,7 @@ public OperationDisplay withResource(String resource) { } /** - * Get the operation value. + * Get type of operation: get, read, delete, etc. * * @return the operation value */ @@ -82,7 +82,7 @@ public String operation() { } /** - * Set the operation value. + * Set type of operation: get, read, delete, etc. * * @param operation the operation value to set * @return the OperationDisplay object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java index 0563d8a7e84e3..7313a79f455e8 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java @@ -40,7 +40,7 @@ public class Restriction { private ReasonCode reasonCode; /** - * Get the type value. + * Get the type of restrictions. As of now only possible value for this is location. * * @return the type value */ @@ -49,7 +49,7 @@ public String type() { } /** - * Get the values value. + * Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * * @return the values value */ @@ -58,7 +58,7 @@ public List values() { } /** - * Get the reasonCode value. + * Get the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ @@ -67,7 +67,7 @@ public ReasonCode reasonCode() { } /** - * Set the reasonCode value. + * Set the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @param reasonCode the reasonCode value to set * @return the Restriction object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/SKUCapability.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/SKUCapability.java index 1dd73fbf016ad..6913e85a4defd 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/SKUCapability.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/SKUCapability.java @@ -30,7 +30,7 @@ public class SKUCapability { private String value; /** - * Get the name value. + * Get the name of capability, The capability information in the specified sku, including file encryption, network acls, change notification, etc. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Get the value value. + * Get a string value to indicate states of given capability. Possibly 'true' or 'false'. * * @return the value value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java index 3a356eaf62854..a1038c15e1093 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java @@ -131,7 +131,7 @@ public class ServiceSasParameters { private String contentType; /** - * Get the canonicalizedResource value. + * Get the canonical path to the signed resource. * * @return the canonicalizedResource value */ @@ -140,7 +140,7 @@ public String canonicalizedResource() { } /** - * Set the canonicalizedResource value. + * Set the canonical path to the signed resource. * * @param canonicalizedResource the canonicalizedResource value to set * @return the ServiceSasParameters object itself. @@ -151,7 +151,7 @@ public ServiceSasParameters withCanonicalizedResource(String canonicalizedResour } /** - * Get the resource value. + * Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. * * @return the resource value */ @@ -160,7 +160,7 @@ public SignedResource resource() { } /** - * Set the resource value. + * Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. * * @param resource the resource value to set * @return the ServiceSasParameters object itself. @@ -171,7 +171,7 @@ public ServiceSasParameters withResource(SignedResource resource) { } /** - * Get the permissions value. + * Get the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @return the permissions value */ @@ -180,7 +180,7 @@ public Permissions permissions() { } /** - * Set the permissions value. + * Set the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @param permissions the permissions value to set * @return the ServiceSasParameters object itself. @@ -191,7 +191,7 @@ public ServiceSasParameters withPermissions(Permissions permissions) { } /** - * Get the iPAddressOrRange value. + * Get an IP address or a range of IP addresses from which to accept requests. * * @return the iPAddressOrRange value */ @@ -200,7 +200,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set an IP address or a range of IP addresses from which to accept requests. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the ServiceSasParameters object itself. @@ -211,7 +211,7 @@ public ServiceSasParameters withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the protocols value. + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @return the protocols value */ @@ -220,7 +220,7 @@ public HttpProtocol protocols() { } /** - * Set the protocols value. + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @param protocols the protocols value to set * @return the ServiceSasParameters object itself. @@ -231,7 +231,7 @@ public ServiceSasParameters withProtocols(HttpProtocol protocols) { } /** - * Get the sharedAccessStartTime value. + * Get the time at which the SAS becomes valid. * * @return the sharedAccessStartTime value */ @@ -240,7 +240,7 @@ public DateTime sharedAccessStartTime() { } /** - * Set the sharedAccessStartTime value. + * Set the time at which the SAS becomes valid. * * @param sharedAccessStartTime the sharedAccessStartTime value to set * @return the ServiceSasParameters object itself. @@ -251,7 +251,7 @@ public ServiceSasParameters withSharedAccessStartTime(DateTime sharedAccessStart } /** - * Get the sharedAccessExpiryTime value. + * Get the time at which the shared access signature becomes invalid. * * @return the sharedAccessExpiryTime value */ @@ -260,7 +260,7 @@ public DateTime sharedAccessExpiryTime() { } /** - * Set the sharedAccessExpiryTime value. + * Set the time at which the shared access signature becomes invalid. * * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set * @return the ServiceSasParameters object itself. @@ -271,7 +271,7 @@ public ServiceSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpi } /** - * Get the identifier value. + * Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. * * @return the identifier value */ @@ -280,7 +280,7 @@ public String identifier() { } /** - * Set the identifier value. + * Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. * * @param identifier the identifier value to set * @return the ServiceSasParameters object itself. @@ -291,7 +291,7 @@ public ServiceSasParameters withIdentifier(String identifier) { } /** - * Get the partitionKeyStart value. + * Get the start of partition key. * * @return the partitionKeyStart value */ @@ -300,7 +300,7 @@ public String partitionKeyStart() { } /** - * Set the partitionKeyStart value. + * Set the start of partition key. * * @param partitionKeyStart the partitionKeyStart value to set * @return the ServiceSasParameters object itself. @@ -311,7 +311,7 @@ public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart) { } /** - * Get the partitionKeyEnd value. + * Get the end of partition key. * * @return the partitionKeyEnd value */ @@ -320,7 +320,7 @@ public String partitionKeyEnd() { } /** - * Set the partitionKeyEnd value. + * Set the end of partition key. * * @param partitionKeyEnd the partitionKeyEnd value to set * @return the ServiceSasParameters object itself. @@ -331,7 +331,7 @@ public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd) { } /** - * Get the rowKeyStart value. + * Get the start of row key. * * @return the rowKeyStart value */ @@ -340,7 +340,7 @@ public String rowKeyStart() { } /** - * Set the rowKeyStart value. + * Set the start of row key. * * @param rowKeyStart the rowKeyStart value to set * @return the ServiceSasParameters object itself. @@ -351,7 +351,7 @@ public ServiceSasParameters withRowKeyStart(String rowKeyStart) { } /** - * Get the rowKeyEnd value. + * Get the end of row key. * * @return the rowKeyEnd value */ @@ -360,7 +360,7 @@ public String rowKeyEnd() { } /** - * Set the rowKeyEnd value. + * Set the end of row key. * * @param rowKeyEnd the rowKeyEnd value to set * @return the ServiceSasParameters object itself. @@ -371,7 +371,7 @@ public ServiceSasParameters withRowKeyEnd(String rowKeyEnd) { } /** - * Get the keyToSign value. + * Get the key to sign the account SAS token with. * * @return the keyToSign value */ @@ -380,7 +380,7 @@ public String keyToSign() { } /** - * Set the keyToSign value. + * Set the key to sign the account SAS token with. * * @param keyToSign the keyToSign value to set * @return the ServiceSasParameters object itself. @@ -391,7 +391,7 @@ public ServiceSasParameters withKeyToSign(String keyToSign) { } /** - * Get the cacheControl value. + * Get the response header override for cache control. * * @return the cacheControl value */ @@ -400,7 +400,7 @@ public String cacheControl() { } /** - * Set the cacheControl value. + * Set the response header override for cache control. * * @param cacheControl the cacheControl value to set * @return the ServiceSasParameters object itself. @@ -411,7 +411,7 @@ public ServiceSasParameters withCacheControl(String cacheControl) { } /** - * Get the contentDisposition value. + * Get the response header override for content disposition. * * @return the contentDisposition value */ @@ -420,7 +420,7 @@ public String contentDisposition() { } /** - * Set the contentDisposition value. + * Set the response header override for content disposition. * * @param contentDisposition the contentDisposition value to set * @return the ServiceSasParameters object itself. @@ -431,7 +431,7 @@ public ServiceSasParameters withContentDisposition(String contentDisposition) { } /** - * Get the contentEncoding value. + * Get the response header override for content encoding. * * @return the contentEncoding value */ @@ -440,7 +440,7 @@ public String contentEncoding() { } /** - * Set the contentEncoding value. + * Set the response header override for content encoding. * * @param contentEncoding the contentEncoding value to set * @return the ServiceSasParameters object itself. @@ -451,7 +451,7 @@ public ServiceSasParameters withContentEncoding(String contentEncoding) { } /** - * Get the contentLanguage value. + * Get the response header override for content language. * * @return the contentLanguage value */ @@ -460,7 +460,7 @@ public String contentLanguage() { } /** - * Set the contentLanguage value. + * Set the response header override for content language. * * @param contentLanguage the contentLanguage value to set * @return the ServiceSasParameters object itself. @@ -471,7 +471,7 @@ public ServiceSasParameters withContentLanguage(String contentLanguage) { } /** - * Get the contentType value. + * Get the response header override for content type. * * @return the contentType value */ @@ -480,7 +480,7 @@ public String contentType() { } /** - * Set the contentType value. + * Set the response header override for content type. * * @param contentType the contentType value to set * @return the ServiceSasParameters object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSpecification.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSpecification.java index 98adf82752712..35a56b0e2e26d 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSpecification.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSpecification.java @@ -22,7 +22,7 @@ public class ServiceSpecification { private List metricSpecifications; /** - * Get the metricSpecifications value. + * Get metric specifications of operation. * * @return the metricSpecifications value */ @@ -31,7 +31,7 @@ public List metricSpecifications() { } /** - * Set the metricSpecifications value. + * Set metric specifications of operation. * * @param metricSpecifications the metricSpecifications value to set * @return the ServiceSpecification object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccount.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccount.java index a21fbde7fee51..f571f0589619e 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccount.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccount.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; 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.storage.v2018_02_01.implementation.StorageManager; import com.microsoft.azure.management.storage.v2018_02_01.implementation.SkuInner; @@ -56,6 +56,11 @@ public interface StorageAccount extends HasInner, Resource, */ Identity identity(); + /** + * @return the isHnsEnabled value. + */ + Boolean isHnsEnabled(); + /** * @return the kind value. */ @@ -203,6 +208,16 @@ interface WithIdentity { WithCreate withIdentity(Identity identity); } + /** + * The stage of the storageaccount update allowing to specify IsHnsEnabled. + */ + interface WithIsHnsEnabled { + /** + * Specifies isHnsEnabled. + */ + WithCreate withIsHnsEnabled(Boolean isHnsEnabled); + } + /** * The stage of the storageaccount update allowing to specify NetworkRuleSet. */ @@ -218,7 +233,7 @@ interface WithNetworkRuleSet { * 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.WithAccessTier, DefinitionStages.WithCustomDomain, DefinitionStages.WithEnableHttpsTrafficOnly, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithNetworkRuleSet { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAccessTier, DefinitionStages.WithCustomDomain, DefinitionStages.WithEnableHttpsTrafficOnly, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithIsHnsEnabled, DefinitionStages.WithNetworkRuleSet { } } /** diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCheckNameAvailabilityParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCheckNameAvailabilityParameters.java index 783903586ebc3..771c556aa05d3 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCheckNameAvailabilityParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCheckNameAvailabilityParameters.java @@ -28,13 +28,14 @@ public class StorageAccountCheckNameAvailabilityParameters { /** * Creates an instance of StorageAccountCheckNameAvailabilityParameters class. + * @param name the storage account name. */ public StorageAccountCheckNameAvailabilityParameters() { type = "Microsoft.Storage/storageAccounts"; } /** - * Get the name value. + * Get the storage account name. * * @return the name value */ @@ -43,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the storage account name. * * @param name the name value to set * @return the StorageAccountCheckNameAvailabilityParameters object itself. @@ -54,7 +55,7 @@ public StorageAccountCheckNameAvailabilityParameters withName(String name) { } /** - * Get the type value. + * Get the type of resource, Microsoft.Storage/storageAccounts. * * @return the type value */ @@ -63,7 +64,7 @@ public String type() { } /** - * Set the type value. + * Set the type of resource, Microsoft.Storage/storageAccounts. * * @param type the type value to set * @return the StorageAccountCheckNameAvailabilityParameters object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCreateParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCreateParameters.java index 99f7cc714e00c..5c2c380981621 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCreateParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountCreateParameters.java @@ -94,7 +94,13 @@ public class StorageAccountCreateParameters { private Boolean enableHttpsTrafficOnly; /** - * Get the sku value. + * Account HierarchicalNamespace enabled if sets to true. + */ + @JsonProperty(value = "properties.isHnsEnabled") + private Boolean isHnsEnabled; + + /** + * Get required. Gets or sets the sku name. * * @return the sku value */ @@ -103,7 +109,7 @@ public SkuInner sku() { } /** - * Set the sku value. + * Set required. Gets or sets the sku name. * * @param sku the sku value to set * @return the StorageAccountCreateParameters object itself. @@ -114,7 +120,7 @@ public StorageAccountCreateParameters withSku(SkuInner sku) { } /** - * Get the kind value. + * Get required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -123,7 +129,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountCreateParameters object itself. @@ -134,7 +140,7 @@ public StorageAccountCreateParameters withKind(Kind kind) { } /** - * Get the location value. + * Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @return the location value */ @@ -143,7 +149,7 @@ public String location() { } /** - * Set the location value. + * Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @param location the location value to set * @return the StorageAccountCreateParameters object itself. @@ -154,7 +160,7 @@ public StorageAccountCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @return the tags value */ @@ -163,7 +169,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @param tags the tags value to set * @return the StorageAccountCreateParameters object itself. @@ -174,7 +180,7 @@ public StorageAccountCreateParameters withTags(Map tags) { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -183,7 +189,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountCreateParameters object itself. @@ -194,7 +200,7 @@ public StorageAccountCreateParameters withIdentity(Identity identity) { } /** - * Get the customDomain value. + * Get user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -203,7 +209,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountCreateParameters object itself. @@ -214,7 +220,7 @@ public StorageAccountCreateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @return the encryption value */ @@ -223,7 +229,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountCreateParameters object itself. @@ -234,7 +240,7 @@ public StorageAccountCreateParameters withEncryption(Encryption encryption) { } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -243,7 +249,7 @@ public NetworkRuleSet networkRuleSet() { } /** - * Set the networkRuleSet value. + * Set network rule set. * * @param networkRuleSet the networkRuleSet value to set * @return the StorageAccountCreateParameters object itself. @@ -254,7 +260,7 @@ public StorageAccountCreateParameters withNetworkRuleSet(NetworkRuleSet networkR } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -263,7 +269,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountCreateParameters object itself. @@ -274,7 +280,7 @@ public StorageAccountCreateParameters withAccessTier(AccessTier accessTier) { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -283,7 +289,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountCreateParameters object itself. @@ -293,4 +299,24 @@ public StorageAccountCreateParameters withEnableHttpsTrafficOnly(Boolean enableH return this; } + /** + * Get account HierarchicalNamespace enabled if sets to true. + * + * @return the isHnsEnabled value + */ + public Boolean isHnsEnabled() { + return this.isHnsEnabled; + } + + /** + * Set account HierarchicalNamespace enabled if sets to true. + * + * @param isHnsEnabled the isHnsEnabled value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withIsHnsEnabled(Boolean isHnsEnabled) { + this.isHnsEnabled = isHnsEnabled; + return this; + } + } diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountKey.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountKey.java index ba8aaea9f8276..c2928e16aff0f 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountKey.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountKey.java @@ -34,7 +34,7 @@ public class StorageAccountKey { private KeyPermission permissions; /** - * Get the keyName value. + * Get name of the key. * * @return the keyName value */ @@ -43,7 +43,7 @@ public String keyName() { } /** - * Get the value value. + * Get base 64-encoded value of the key. * * @return the value value */ @@ -52,7 +52,7 @@ public String value() { } /** - * Get the permissions value. + * Get permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full'. * * @return the permissions value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountRegenerateKeyParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountRegenerateKeyParameters.java index f56a59fe92485..9a1f13f759713 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountRegenerateKeyParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountRegenerateKeyParameters.java @@ -22,7 +22,7 @@ public class StorageAccountRegenerateKeyParameters { private String keyName; /** - * Get the keyName value. + * Get the name of storage keys that want to be regenerated, possible vaules are key1, key2. * * @return the keyName value */ @@ -31,7 +31,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of storage keys that want to be regenerated, possible vaules are key1, key2. * * @param keyName the keyName value to set * @return the StorageAccountRegenerateKeyParameters object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountUpdateParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountUpdateParameters.java index c02f250211bf2..7d6359dc88486 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountUpdateParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/StorageAccountUpdateParameters.java @@ -87,7 +87,7 @@ public class StorageAccountUpdateParameters { private Kind kind; /** - * Get the sku value. + * Get gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @return the sku value */ @@ -96,7 +96,7 @@ public SkuInner sku() { } /** - * Set the sku value. + * Set gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @param sku the sku value to set * @return the StorageAccountUpdateParameters object itself. @@ -107,7 +107,7 @@ public StorageAccountUpdateParameters withSku(SkuInner sku) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @return the tags value */ @@ -116,7 +116,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @param tags the tags value to set * @return the StorageAccountUpdateParameters object itself. @@ -127,7 +127,7 @@ public StorageAccountUpdateParameters withTags(Map tags) { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -136,7 +136,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountUpdateParameters object itself. @@ -147,7 +147,7 @@ public StorageAccountUpdateParameters withIdentity(Identity identity) { } /** - * Get the customDomain value. + * Get custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -156,7 +156,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountUpdateParameters object itself. @@ -167,7 +167,7 @@ public StorageAccountUpdateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. The default setting is unencrypted. * * @return the encryption value */ @@ -176,7 +176,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountUpdateParameters object itself. @@ -187,7 +187,7 @@ public StorageAccountUpdateParameters withEncryption(Encryption encryption) { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -196,7 +196,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountUpdateParameters object itself. @@ -207,7 +207,7 @@ public StorageAccountUpdateParameters withAccessTier(AccessTier accessTier) { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -216,7 +216,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountUpdateParameters object itself. @@ -227,7 +227,7 @@ public StorageAccountUpdateParameters withEnableHttpsTrafficOnly(Boolean enableH } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -236,7 +236,7 @@ public NetworkRuleSet networkRuleSet() { } /** - * Set the networkRuleSet value. + * Set network rule set. * * @param networkRuleSet the networkRuleSet value to set * @return the StorageAccountUpdateParameters object itself. @@ -247,7 +247,7 @@ public StorageAccountUpdateParameters withNetworkRuleSet(NetworkRuleSet networkR } /** - * Get the kind value. + * Get optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -256,7 +256,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountUpdateParameters object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/TagProperty.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/TagProperty.java index 2c504becf21eb..134ecde8e6112 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/TagProperty.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/TagProperty.java @@ -56,7 +56,7 @@ public String tag() { } /** - * Get the timestamp value. + * Get returns the date and time the tag was added. * * @return the timestamp value */ @@ -65,7 +65,7 @@ public DateTime timestamp() { } /** - * Get the objectIdentifier value. + * Get returns the Object ID of the user who added the tag. * * @return the objectIdentifier value */ @@ -74,7 +74,7 @@ public String objectIdentifier() { } /** - * Get the tenantId value. + * Get returns the Tenant ID that issued the token for the user who added the tag. * * @return the tenantId value */ @@ -83,7 +83,7 @@ public String tenantId() { } /** - * Get the upn value. + * Get returns the User Principal Name of the user who added the tag. * * @return the upn value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UpdateHistoryProperty.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UpdateHistoryProperty.java index 4d6b593801c33..76b73f809fb55 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UpdateHistoryProperty.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UpdateHistoryProperty.java @@ -57,7 +57,7 @@ public class UpdateHistoryProperty { private String upn; /** - * Get the update value. + * Get the ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: 'put', 'lock', 'extend'. * * @return the update value */ @@ -66,7 +66,7 @@ public ImmutabilityPolicyUpdateType update() { } /** - * Get the immutabilityPeriodSinceCreationInDays value. + * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */ @@ -75,7 +75,7 @@ public Integer immutabilityPeriodSinceCreationInDays() { } /** - * Get the timestamp value. + * Get returns the date and time the ImmutabilityPolicy was updated. * * @return the timestamp value */ @@ -84,7 +84,7 @@ public DateTime timestamp() { } /** - * Get the objectIdentifier value. + * Get returns the Object ID of the user who updated the ImmutabilityPolicy. * * @return the objectIdentifier value */ @@ -93,7 +93,7 @@ public String objectIdentifier() { } /** - * Get the tenantId value. + * Get returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. * * @return the tenantId value */ @@ -102,7 +102,7 @@ public String tenantId() { } /** - * Get the upn value. + * Get returns the User Principal Name of the user who updated the ImmutabilityPolicy. * * @return the upn value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UsageName.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UsageName.java index 67efa5a9a0b0e..74937d780cc8e 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UsageName.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get gets a string describing the resource name. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Get the localizedValue value. + * Get gets a localized string describing the resource name. * * @return the localizedValue value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/VirtualNetworkRule.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/VirtualNetworkRule.java index 235e8f3b332a5..cd7e5c870201c 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/VirtualNetworkRule.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/VirtualNetworkRule.java @@ -36,7 +36,7 @@ public class VirtualNetworkRule { private State state; /** - * Get the virtualNetworkResourceId value. + * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. * * @return the virtualNetworkResourceId value */ @@ -45,7 +45,7 @@ public String virtualNetworkResourceId() { } /** - * Set the virtualNetworkResourceId value. + * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. * * @param virtualNetworkResourceId the virtualNetworkResourceId value to set * @return the VirtualNetworkRule object itself. @@ -56,7 +56,7 @@ public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkReso } /** - * Get the action value. + * Get the action of virtual network rule. Possible values include: 'Allow'. * * @return the action value */ @@ -65,7 +65,7 @@ public Action action() { } /** - * Set the action value. + * Set the action of virtual network rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the VirtualNetworkRule object itself. @@ -76,7 +76,7 @@ public VirtualNetworkRule withAction(Action action) { } /** - * Get the state value. + * Get gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. * * @return the state value */ @@ -85,7 +85,7 @@ public State state() { } /** - * Set the state value. + * Set gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. * * @param state the state value to set * @return the VirtualNetworkRule object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/BlobContainerInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/BlobContainerInner.java index 0f4e85c564b96..d314c4028d7a2 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/BlobContainerInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/BlobContainerInner.java @@ -99,7 +99,7 @@ public class BlobContainerInner extends AzureEntityResource { private Boolean hasImmutabilityPolicy; /** - * Get the publicAccess value. + * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @return the publicAccess value */ @@ -108,7 +108,7 @@ public PublicAccess publicAccess() { } /** - * Set the publicAccess value. + * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @param publicAccess the publicAccess value to set * @return the BlobContainerInner object itself. @@ -119,7 +119,7 @@ public BlobContainerInner withPublicAccess(PublicAccess publicAccess) { } /** - * Get the lastModifiedTime value. + * Get returns the date and time the container was last modified. * * @return the lastModifiedTime value */ @@ -128,7 +128,7 @@ public DateTime lastModifiedTime() { } /** - * Get the leaseStatus value. + * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. * * @return the leaseStatus value */ @@ -137,7 +137,7 @@ public LeaseStatus leaseStatus() { } /** - * Get the leaseState value. + * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. * * @return the leaseState value */ @@ -146,7 +146,7 @@ public LeaseState leaseState() { } /** - * Get the leaseDuration value. + * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. * * @return the leaseDuration value */ @@ -155,7 +155,7 @@ public LeaseDuration leaseDuration() { } /** - * Get the metadata value. + * Get a name-value pair to associate with the container as metadata. * * @return the metadata value */ @@ -164,7 +164,7 @@ public Map metadata() { } /** - * Set the metadata value. + * Set a name-value pair to associate with the container as metadata. * * @param metadata the metadata value to set * @return the BlobContainerInner object itself. @@ -175,7 +175,7 @@ public BlobContainerInner withMetadata(Map metadata) { } /** - * Get the immutabilityPolicy value. + * Get the ImmutabilityPolicy property of the container. * * @return the immutabilityPolicy value */ @@ -184,7 +184,7 @@ public ImmutabilityPolicyProperties immutabilityPolicy() { } /** - * Get the legalHold value. + * Get the LegalHold property of the container. * * @return the legalHold value */ @@ -193,7 +193,7 @@ public LegalHoldProperties legalHold() { } /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -202,7 +202,7 @@ public Boolean hasLegalHold() { } /** - * Get the hasImmutabilityPolicy value. + * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. * * @return the hasImmutabilityPolicy value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/CheckNameAvailabilityResultInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/CheckNameAvailabilityResultInner.java index 7040ab5555bc5..dff6ae8234e8a 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/CheckNameAvailabilityResultInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/CheckNameAvailabilityResultInner.java @@ -38,7 +38,7 @@ public class CheckNameAvailabilityResultInner { private String message; /** - * Get the nameAvailable value. + * Get gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. * * @return the nameAvailable value */ @@ -47,7 +47,7 @@ public Boolean nameAvailable() { } /** - * Get the reason value. + * Get gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'. * * @return the reason value */ @@ -56,7 +56,7 @@ public Reason reason() { } /** - * Get the message value. + * Get gets an error message explaining the Reason value in more detail. * * @return the message value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ImmutabilityPolicyInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ImmutabilityPolicyInner.java index 06068c4326db9..5bcacdef62136 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ImmutabilityPolicyInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ImmutabilityPolicyInner.java @@ -35,7 +35,7 @@ public class ImmutabilityPolicyInner extends AzureEntityResource { private ImmutabilityPolicyState state; /** - * Get the immutabilityPeriodSinceCreationInDays value. + * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */ @@ -44,7 +44,7 @@ public int immutabilityPeriodSinceCreationInDays() { } /** - * Set the immutabilityPeriodSinceCreationInDays value. + * Set the immutability period for the blobs in the container since the policy creation, in days. * * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set * @return the ImmutabilityPolicyInner object itself. @@ -55,7 +55,7 @@ public ImmutabilityPolicyInner withImmutabilityPeriodSinceCreationInDays(int imm } /** - * Get the state value. + * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. * * @return the state value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/LegalHoldInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/LegalHoldInner.java index 4d820bfecfb99..1a84ec9c5744f 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/LegalHoldInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/LegalHoldInner.java @@ -33,7 +33,7 @@ public class LegalHoldInner { private List tags; /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -42,7 +42,7 @@ public Boolean hasLegalHold() { } /** - * Get the tags value. + * Get each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. * * @return the tags value */ @@ -51,7 +51,7 @@ public List tags() { } /** - * Set the tags value. + * Set each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. * * @param tags the tags value to set * @return the LegalHoldInner object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListAccountSasResponseInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListAccountSasResponseInner.java index 577ac00b40334..1053d6e696bc0 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListAccountSasResponseInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListAccountSasResponseInner.java @@ -21,7 +21,7 @@ public class ListAccountSasResponseInner { private String accountSasToken; /** - * Get the accountSasToken value. + * Get list SAS credentials of storage account. * * @return the accountSasToken value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListContainerItemsInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListContainerItemsInner.java index d9f2533b609f3..d4991a8badff7 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListContainerItemsInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListContainerItemsInner.java @@ -23,7 +23,7 @@ public class ListContainerItemsInner { private List value; /** - * Get the value value. + * Get the list of blob containers. * * @return the value value */ @@ -32,7 +32,7 @@ public List value() { } /** - * Set the value value. + * Set the list of blob containers. * * @param value the value value to set * @return the ListContainerItemsInner object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListServiceSasResponseInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListServiceSasResponseInner.java index a6b11b067f84c..1be2c12da9a07 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListServiceSasResponseInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/ListServiceSasResponseInner.java @@ -21,7 +21,7 @@ public class ListServiceSasResponseInner { private String serviceSasToken; /** - * Get the serviceSasToken value. + * Get list service SAS credentials of speicific resource. * * @return the serviceSasToken value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationInner.java index 537ce2fdde46f..565596ad06cc0 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationInner.java @@ -43,7 +43,7 @@ public class OperationInner { private ServiceSpecification serviceSpecification; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{operation}. * * @return the name value */ @@ -52,7 +52,7 @@ public String name() { } /** - * Set the name value. + * Set operation name: {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -63,7 +63,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get display metadata associated with the operation. * * @return the display value */ @@ -72,7 +72,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set display metadata associated with the operation. * * @param display the display value to set * @return the OperationInner object itself. @@ -83,7 +83,7 @@ public OperationInner withDisplay(OperationDisplay display) { } /** - * Get the origin value. + * Get the origin of operations. * * @return the origin value */ @@ -92,7 +92,7 @@ public String origin() { } /** - * Set the origin value. + * Set the origin of operations. * * @param origin the origin value to set * @return the OperationInner object itself. @@ -103,7 +103,7 @@ public OperationInner withOrigin(String origin) { } /** - * Get the serviceSpecification value. + * Get one property of operation, include metric specifications. * * @return the serviceSpecification value */ @@ -112,7 +112,7 @@ public ServiceSpecification serviceSpecification() { } /** - * Set the serviceSpecification value. + * Set one property of operation, include metric specifications. * * @param serviceSpecification the serviceSpecification value to set * @return the OperationInner object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationsImpl.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationsImpl.java index 8712ceba9e6a1..b349c4d99fcdb 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationsImpl.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/OperationsImpl.java @@ -37,7 +37,8 @@ public Observable listAsync() { public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/SkuInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/SkuInner.java index d422f78a6e1a8..c57e154cced86 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/SkuInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/SkuInner.java @@ -72,7 +72,7 @@ public class SkuInner { private List restrictions; /** - * Get the name value. + * Get gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @return the name value */ @@ -81,7 +81,7 @@ public SkuName name() { } /** - * Set the name value. + * Set gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @param name the name value to set * @return the SkuInner object itself. @@ -92,7 +92,7 @@ public SkuInner withName(SkuName name) { } /** - * Get the tier value. + * Get gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium'. * * @return the tier value */ @@ -101,7 +101,7 @@ public SkuTier tier() { } /** - * Get the resourceType value. + * Get the type of the resource, usually it is 'storageAccounts'. * * @return the resourceType value */ @@ -110,7 +110,7 @@ public String resourceType() { } /** - * Get the kind value. + * Get indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -119,7 +119,7 @@ public Kind kind() { } /** - * Get the locations value. + * Get the set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). * * @return the locations value */ @@ -128,7 +128,7 @@ public List locations() { } /** - * Get the capabilities value. + * Get the capability information in the specified sku, including file encryption, network acls, change notification, etc. * * @return the capabilities value */ @@ -137,7 +137,7 @@ public List capabilities() { } /** - * Get the restrictions value. + * Get the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @return the restrictions value */ @@ -146,7 +146,7 @@ public List restrictions() { } /** - * Set the restrictions value. + * Set the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @param restrictions the restrictions value to set * @return the SkuInner object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountImpl.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountImpl.java index ab6a5e2b577c7..e0e8a70ce7c54 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountImpl.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountImpl.java @@ -111,6 +111,11 @@ public Identity identity() { return this.inner().identity(); } + @Override + public Boolean isHnsEnabled() { + return this.inner().isHnsEnabled(); + } + @Override public Kind kind() { return this.inner().kind(); @@ -171,6 +176,12 @@ public AccountStatus statusOfSecondary() { return this.inner().statusOfSecondary(); } + @Override + public StorageAccountImpl withIsHnsEnabled(Boolean isHnsEnabled) { + this.createParameter.withIsHnsEnabled(isHnsEnabled); + return this; + } + @Override public StorageAccountImpl withKind(Kind kind) { if (isInCreateMode()) { diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountInner.java index 15c968931551d..9a502b300a309 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountInner.java @@ -149,7 +149,13 @@ public class StorageAccountInner extends Resource { private NetworkRuleSet networkRuleSet; /** - * Get the sku value. + * Account HierarchicalNamespace enabled if sets to true. + */ + @JsonProperty(value = "properties.isHnsEnabled") + private Boolean isHnsEnabled; + + /** + * Get gets the SKU. * * @return the sku value */ @@ -158,7 +164,7 @@ public SkuInner sku() { } /** - * Get the kind value. + * Get gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -167,7 +173,7 @@ public Kind kind() { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -176,7 +182,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountInner object itself. @@ -187,7 +193,7 @@ public StorageAccountInner withIdentity(Identity identity) { } /** - * Get the provisioningState value. + * Get gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'. * * @return the provisioningState value */ @@ -196,7 +202,7 @@ public ProvisioningState provisioningState() { } /** - * Get the primaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. * * @return the primaryEndpoints value */ @@ -205,7 +211,7 @@ public Endpoints primaryEndpoints() { } /** - * Get the primaryLocation value. + * Get gets the location of the primary data center for the storage account. * * @return the primaryLocation value */ @@ -214,7 +220,7 @@ public String primaryLocation() { } /** - * Get the statusOfPrimary value. + * Get gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'available', 'unavailable'. * * @return the statusOfPrimary value */ @@ -223,7 +229,7 @@ public AccountStatus statusOfPrimary() { } /** - * Get the lastGeoFailoverTime value. + * Get gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the lastGeoFailoverTime value */ @@ -232,7 +238,7 @@ public DateTime lastGeoFailoverTime() { } /** - * Get the secondaryLocation value. + * Get gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the secondaryLocation value */ @@ -241,7 +247,7 @@ public String secondaryLocation() { } /** - * Get the statusOfSecondary value. + * Get gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'available', 'unavailable'. * * @return the statusOfSecondary value */ @@ -250,7 +256,7 @@ public AccountStatus statusOfSecondary() { } /** - * Get the creationTime value. + * Get gets the creation date and time of the storage account in UTC. * * @return the creationTime value */ @@ -259,7 +265,7 @@ public DateTime creationTime() { } /** - * Get the customDomain value. + * Get gets the custom domain the user assigned to this storage account. * * @return the customDomain value */ @@ -268,7 +274,7 @@ public CustomDomain customDomain() { } /** - * Get the secondaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. * * @return the secondaryEndpoints value */ @@ -277,7 +283,7 @@ public Endpoints secondaryEndpoints() { } /** - * Get the encryption value. + * Get gets the encryption settings on the account. If unspecified, the account is unencrypted. * * @return the encryption value */ @@ -286,7 +292,7 @@ public Encryption encryption() { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -295,7 +301,7 @@ public AccessTier accessTier() { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -304,7 +310,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountInner object itself. @@ -315,7 +321,7 @@ public StorageAccountInner withEnableHttpsTrafficOnly(Boolean enableHttpsTraffic } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -323,4 +329,24 @@ public NetworkRuleSet networkRuleSet() { return this.networkRuleSet; } + /** + * Get account HierarchicalNamespace enabled if sets to true. + * + * @return the isHnsEnabled value + */ + public Boolean isHnsEnabled() { + return this.isHnsEnabled; + } + + /** + * Set account HierarchicalNamespace enabled if sets to true. + * + * @param isHnsEnabled the isHnsEnabled value to set + * @return the StorageAccountInner object itself. + */ + public StorageAccountInner withIsHnsEnabled(Boolean isHnsEnabled) { + this.isHnsEnabled = isHnsEnabled; + return this; + } + } diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountListKeysResultInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountListKeysResultInner.java index ec199c5008f62..f15b04622cefe 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountListKeysResultInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/StorageAccountListKeysResultInner.java @@ -24,7 +24,7 @@ public class StorageAccountListKeysResultInner { private List keys; /** - * Get the keys value. + * Get gets the list of storage account keys and their properties for the specified storage account. * * @return the keys value */ diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/UsageInner.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/UsageInner.java index 3d022f23e5d52..c931196653994 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/UsageInner.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/UsageInner.java @@ -43,7 +43,7 @@ public class UsageInner { private UsageName name; /** - * Get the unit value. + * Get gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'. * * @return the unit value */ @@ -52,7 +52,7 @@ public UsageUnit unit() { } /** - * Get the currentValue value. + * Get gets the current count of the allocated resources in the subscription. * * @return the currentValue value */ @@ -61,7 +61,7 @@ public Integer currentValue() { } /** - * Get the limit value. + * Get gets the maximum count of the resources that can be allocated in the subscription. * * @return the limit value */ @@ -70,7 +70,7 @@ public Integer limit() { } /** - * Get the name value. + * Get gets the name of the type of usage. * * @return the name value */ diff --git a/storage/resource-manager/v2018_03_01_preview/pom.xml b/storage/resource-manager/v2018_03_01_preview/pom.xml index 5703f1f07ceba..febf4b3044b2a 100644 --- a/storage/resource-manager/v2018_03_01_preview/pom.xml +++ b/storage/resource-manager/v2018_03_01_preview/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.storage.v2018_03_01_preview - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-storage - 1.0.0-beta - jar - Microsoft Azure SDK for Storage Management - This package contains Microsoft Storage 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.storage.v2018_03_01_preview + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-storage + 1.0.0-beta + jar + Microsoft Azure SDK for Storage Management + This package contains Microsoft Storage 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/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AccountSasParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AccountSasParameters.java index 9011110fe301e..ddbcef3b820cd 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AccountSasParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AccountSasParameters.java @@ -74,7 +74,7 @@ public class AccountSasParameters { private String keyToSign; /** - * Get the services value. + * Get the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. * * @return the services value */ @@ -83,7 +83,7 @@ public Services services() { } /** - * Set the services value. + * Set the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. * * @param services the services value to set * @return the AccountSasParameters object itself. @@ -94,7 +94,7 @@ public AccountSasParameters withServices(Services services) { } /** - * Get the resourceTypes value. + * Get the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. * * @return the resourceTypes value */ @@ -103,7 +103,7 @@ public SignedResourceTypes resourceTypes() { } /** - * Set the resourceTypes value. + * Set the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. * * @param resourceTypes the resourceTypes value to set * @return the AccountSasParameters object itself. @@ -114,7 +114,7 @@ public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes) } /** - * Get the permissions value. + * Get the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @return the permissions value */ @@ -123,7 +123,7 @@ public Permissions permissions() { } /** - * Set the permissions value. + * Set the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @param permissions the permissions value to set * @return the AccountSasParameters object itself. @@ -134,7 +134,7 @@ public AccountSasParameters withPermissions(Permissions permissions) { } /** - * Get the iPAddressOrRange value. + * Get an IP address or a range of IP addresses from which to accept requests. * * @return the iPAddressOrRange value */ @@ -143,7 +143,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set an IP address or a range of IP addresses from which to accept requests. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the AccountSasParameters object itself. @@ -154,7 +154,7 @@ public AccountSasParameters withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the protocols value. + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @return the protocols value */ @@ -163,7 +163,7 @@ public HttpProtocol protocols() { } /** - * Set the protocols value. + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @param protocols the protocols value to set * @return the AccountSasParameters object itself. @@ -174,7 +174,7 @@ public AccountSasParameters withProtocols(HttpProtocol protocols) { } /** - * Get the sharedAccessStartTime value. + * Get the time at which the SAS becomes valid. * * @return the sharedAccessStartTime value */ @@ -183,7 +183,7 @@ public DateTime sharedAccessStartTime() { } /** - * Set the sharedAccessStartTime value. + * Set the time at which the SAS becomes valid. * * @param sharedAccessStartTime the sharedAccessStartTime value to set * @return the AccountSasParameters object itself. @@ -194,7 +194,7 @@ public AccountSasParameters withSharedAccessStartTime(DateTime sharedAccessStart } /** - * Get the sharedAccessExpiryTime value. + * Get the time at which the shared access signature becomes invalid. * * @return the sharedAccessExpiryTime value */ @@ -203,7 +203,7 @@ public DateTime sharedAccessExpiryTime() { } /** - * Set the sharedAccessExpiryTime value. + * Set the time at which the shared access signature becomes invalid. * * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set * @return the AccountSasParameters object itself. @@ -214,7 +214,7 @@ public AccountSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpi } /** - * Get the keyToSign value. + * Get the key to sign the account SAS token with. * * @return the keyToSign value */ @@ -223,7 +223,7 @@ public String keyToSign() { } /** - * Set the keyToSign value. + * Set the key to sign the account SAS token with. * * @param keyToSign the keyToSign value to set * @return the AccountSasParameters object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AzureEntityResource.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AzureEntityResource.java index b44d811a34a67..449dd50086521 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AzureEntityResource.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/AzureEntityResource.java @@ -23,7 +23,7 @@ public class AzureEntityResource extends ProxyResource { private String etag; /** - * Get the etag value. + * Get resource Etag. * * @return the etag value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainers.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainers.java index 77d7193259b9a..d25debdf12485 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainers.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainers.java @@ -16,8 +16,18 @@ * Type representing BlobContainers. */ public interface BlobContainers { + /** + * Begins definition for a new Container resource. + * @param name resource name. + * @return the first stage of the new Container definition. + */ BlobContainer.DefinitionStages.Blank defineContainer(String name); + /** + * Begins definition for a new ImmutabilityPolicy resource. + * @param name resource name. + * @return the first stage of the new ImmutabilityPolicy definition. + */ ImmutabilityPolicy.DefinitionStages.Blank defineImmutabilityPolicy(String name); /** diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java index d62609d0ebd11..52864fc35f39c 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersCreateOrUpdateImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersCreateOrUpdateImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersDeleteImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersDeleteImmutabilityPolicyHeaders.java index 2d0f69ffb000b..1fa859d3c627e 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersDeleteImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersDeleteImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersDeleteImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersDeleteImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersExtendImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersExtendImmutabilityPolicyHeaders.java index 734c870e72bf8..15513869ebe28 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersExtendImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersExtendImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersExtendImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersExtendImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersGetImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersGetImmutabilityPolicyHeaders.java index b00c2940f5b69..e2fec7423db6d 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersGetImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersGetImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersGetImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersGetImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersLockImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersLockImmutabilityPolicyHeaders.java index 4d99f54251d66..30c874a456ec1 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersLockImmutabilityPolicyHeaders.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/BlobContainersLockImmutabilityPolicyHeaders.java @@ -24,7 +24,7 @@ public class BlobContainersLockImmutabilityPolicyHeaders { private String eTag; /** - * Get the eTag value. + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @return the eTag value */ @@ -33,7 +33,7 @@ public String eTag() { } /** - * Set the eTag value. + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. * * @param eTag the eTag value to set * @return the BlobContainersLockImmutabilityPolicyHeaders object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/CustomDomain.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/CustomDomain.java index dd208a5c287e5..f89dcb1e5d071 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/CustomDomain.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/CustomDomain.java @@ -30,7 +30,7 @@ public class CustomDomain { private Boolean useSubDomain; /** - * Get the name value. + * Get gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Set the name value. + * Set gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. * * @param name the name value to set * @return the CustomDomain object itself. @@ -50,7 +50,7 @@ public CustomDomain withName(String name) { } /** - * Get the useSubDomain value. + * Get indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @return the useSubDomain value */ @@ -59,7 +59,7 @@ public Boolean useSubDomain() { } /** - * Set the useSubDomain value. + * Set indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. * * @param useSubDomain the useSubDomain value to set * @return the CustomDomain object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Dimension.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Dimension.java index 47df54760355f..360fb387ec97a 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Dimension.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Dimension.java @@ -27,7 +27,7 @@ public class Dimension { private String displayName; /** - * Get the name value. + * Get display name of dimension. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set display name of dimension. * * @param name the name value to set * @return the Dimension object itself. @@ -47,7 +47,7 @@ public Dimension withName(String name) { } /** - * Get the displayName value. + * Get display name of dimension. * * @return the displayName value */ @@ -56,7 +56,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set display name of dimension. * * @param displayName the displayName value to set * @return the Dimension object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Encryption.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Encryption.java index b297cf6487c6f..6d1dd1abc5819 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Encryption.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Encryption.java @@ -35,7 +35,7 @@ public class Encryption { private KeyVaultProperties keyVaultProperties; /** - * Get the services value. + * Get list of services which support encryption. * * @return the services value */ @@ -44,7 +44,7 @@ public EncryptionServices services() { } /** - * Set the services value. + * Set list of services which support encryption. * * @param services the services value to set * @return the Encryption object itself. @@ -55,7 +55,7 @@ public Encryption withServices(EncryptionServices services) { } /** - * Get the keySource value. + * Get the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. * * @return the keySource value */ @@ -64,7 +64,7 @@ public KeySource keySource() { } /** - * Set the keySource value. + * Set the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. * * @param keySource the keySource value to set * @return the Encryption object itself. @@ -75,7 +75,7 @@ public Encryption withKeySource(KeySource keySource) { } /** - * Get the keyVaultProperties value. + * Get properties provided by key vault. * * @return the keyVaultProperties value */ @@ -84,7 +84,7 @@ public KeyVaultProperties keyVaultProperties() { } /** - * Set the keyVaultProperties value. + * Set properties provided by key vault. * * @param keyVaultProperties the keyVaultProperties value to set * @return the Encryption object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionService.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionService.java index 8e10139ef4de3..8ae089e2e4d36 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionService.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionService.java @@ -32,7 +32,7 @@ public class EncryptionService { private DateTime lastEnabledTime; /** - * Get the enabled value. + * Get a boolean indicating whether or not the service encrypts the data as it is stored. * * @return the enabled value */ @@ -41,7 +41,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set a boolean indicating whether or not the service encrypts the data as it is stored. * * @param enabled the enabled value to set * @return the EncryptionService object itself. @@ -52,7 +52,7 @@ public EncryptionService withEnabled(Boolean enabled) { } /** - * Get the lastEnabledTime value. + * Get gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. * * @return the lastEnabledTime value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionServices.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionServices.java index aa655a6594329..9fbf34147c68b 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionServices.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/EncryptionServices.java @@ -39,7 +39,7 @@ public class EncryptionServices { private EncryptionService queue; /** - * Get the blob value. + * Get the encryption function of the blob storage service. * * @return the blob value */ @@ -48,7 +48,7 @@ public EncryptionService blob() { } /** - * Set the blob value. + * Set the encryption function of the blob storage service. * * @param blob the blob value to set * @return the EncryptionServices object itself. @@ -59,7 +59,7 @@ public EncryptionServices withBlob(EncryptionService blob) { } /** - * Get the file value. + * Get the encryption function of the file storage service. * * @return the file value */ @@ -68,7 +68,7 @@ public EncryptionService file() { } /** - * Set the file value. + * Set the encryption function of the file storage service. * * @param file the file value to set * @return the EncryptionServices object itself. @@ -79,7 +79,7 @@ public EncryptionServices withFile(EncryptionService file) { } /** - * Get the table value. + * Get the encryption function of the table storage service. * * @return the table value */ @@ -88,7 +88,7 @@ public EncryptionService table() { } /** - * Get the queue value. + * Get the encryption function of the queue storage service. * * @return the queue value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Endpoints.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Endpoints.java index a2b70275920c9..525e0b0bf422a 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Endpoints.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Endpoints.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The URIs that are used to perform a retrieval of a public blob, queue, or - * table object. + * The URIs that are used to perform a retrieval of a public blob, queue, + * table, web or dfs object. */ public class Endpoints { /** @@ -40,7 +40,19 @@ public class Endpoints { private String file; /** - * Get the blob value. + * Gets the web endpoint. + */ + @JsonProperty(value = "web", access = JsonProperty.Access.WRITE_ONLY) + private String web; + + /** + * Gets the dfs endpoint. + */ + @JsonProperty(value = "dfs", access = JsonProperty.Access.WRITE_ONLY) + private String dfs; + + /** + * Get gets the blob endpoint. * * @return the blob value */ @@ -49,7 +61,7 @@ public String blob() { } /** - * Get the queue value. + * Get gets the queue endpoint. * * @return the queue value */ @@ -58,7 +70,7 @@ public String queue() { } /** - * Get the table value. + * Get gets the table endpoint. * * @return the table value */ @@ -67,7 +79,7 @@ public String table() { } /** - * Get the file value. + * Get gets the file endpoint. * * @return the file value */ @@ -75,4 +87,22 @@ public String file() { return this.file; } + /** + * Get gets the web endpoint. + * + * @return the web value + */ + public String web() { + return this.web; + } + + /** + * Get gets the dfs endpoint. + * + * @return the dfs value + */ + public String dfs() { + return this.dfs; + } + } diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/IPRule.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/IPRule.java index eff3273e6054d..da21eb566808f 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/IPRule.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/IPRule.java @@ -28,7 +28,7 @@ public class IPRule { private Action action; /** - * Get the iPAddressOrRange value. + * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @return the iPAddressOrRange value */ @@ -37,7 +37,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the IPRule object itself. @@ -48,7 +48,7 @@ public IPRule withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the action value. + * Get the action of IP ACL rule. Possible values include: 'Allow'. * * @return the action value */ @@ -57,7 +57,7 @@ public Action action() { } /** - * Set the action value. + * Set the action of IP ACL rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the IPRule object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Identity.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Identity.java index 4ffa7727c7f99..7f851ea838ba6 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Identity.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Identity.java @@ -40,7 +40,7 @@ public Identity() { } /** - * Get the principalId value. + * Get the principal ID of resource identity. * * @return the principalId value */ @@ -49,7 +49,7 @@ public String principalId() { } /** - * Get the tenantId value. + * Get the tenant ID of resource. * * @return the tenantId value */ @@ -58,7 +58,7 @@ public String tenantId() { } /** - * Get the type value. + * Get the identity type. * * @return the type value */ @@ -67,7 +67,7 @@ public String type() { } /** - * Set the type value. + * Set the identity type. * * @param type the type value to set * @return the Identity object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ImmutabilityPolicyProperties.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ImmutabilityPolicyProperties.java index 8caf42f69599a..9b46f134e3dde 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ImmutabilityPolicyProperties.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ImmutabilityPolicyProperties.java @@ -45,7 +45,7 @@ public class ImmutabilityPolicyProperties { private List updateHistory; /** - * Get the immutabilityPeriodSinceCreationInDays value. + * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */ @@ -54,7 +54,7 @@ public int immutabilityPeriodSinceCreationInDays() { } /** - * Set the immutabilityPeriodSinceCreationInDays value. + * Set the immutability period for the blobs in the container since the policy creation, in days. * * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set * @return the ImmutabilityPolicyProperties object itself. @@ -65,7 +65,7 @@ public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(in } /** - * Get the state value. + * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. * * @return the state value */ @@ -74,7 +74,7 @@ public ImmutabilityPolicyState state() { } /** - * Get the etag value. + * Get immutabilityPolicy Etag. * * @return the etag value */ @@ -83,7 +83,7 @@ public String etag() { } /** - * Get the updateHistory value. + * Get the ImmutabilityPolicy update history of the blob container. * * @return the updateHistory value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/KeyVaultProperties.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/KeyVaultProperties.java index 52374d131b8b7..39955998580bb 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/KeyVaultProperties.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/KeyVaultProperties.java @@ -33,7 +33,7 @@ public class KeyVaultProperties { private String keyVaultUri; /** - * Get the keyName value. + * Get the name of KeyVault key. * * @return the keyName value */ @@ -42,7 +42,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of KeyVault key. * * @param keyName the keyName value to set * @return the KeyVaultProperties object itself. @@ -53,7 +53,7 @@ public KeyVaultProperties withKeyName(String keyName) { } /** - * Get the keyVersion value. + * Get the version of KeyVault key. * * @return the keyVersion value */ @@ -62,7 +62,7 @@ public String keyVersion() { } /** - * Set the keyVersion value. + * Set the version of KeyVault key. * * @param keyVersion the keyVersion value to set * @return the KeyVaultProperties object itself. @@ -73,7 +73,7 @@ public KeyVaultProperties withKeyVersion(String keyVersion) { } /** - * Get the keyVaultUri value. + * Get the Uri of KeyVault. * * @return the keyVaultUri value */ @@ -82,7 +82,7 @@ public String keyVaultUri() { } /** - * Set the keyVaultUri value. + * Set the Uri of KeyVault. * * @param keyVaultUri the keyVaultUri value to set * @return the KeyVaultProperties object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/LegalHoldProperties.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/LegalHoldProperties.java index b6474f5f07aab..5bce9199de80f 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/LegalHoldProperties.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/LegalHoldProperties.java @@ -32,7 +32,7 @@ public class LegalHoldProperties { private List tags; /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -41,7 +41,7 @@ public Boolean hasLegalHold() { } /** - * Get the tags value. + * Get the list of LegalHold tags of a blob container. * * @return the tags value */ @@ -50,7 +50,7 @@ public List tags() { } /** - * Set the tags value. + * Set the list of LegalHold tags of a blob container. * * @param tags the tags value to set * @return the LegalHoldProperties object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ListContainerItem.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ListContainerItem.java index a0c0a65425127..05cde6086ea86 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ListContainerItem.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ListContainerItem.java @@ -91,7 +91,7 @@ public class ListContainerItem extends AzureEntityResource { private Boolean hasImmutabilityPolicy; /** - * Get the publicAccess value. + * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @return the publicAccess value */ @@ -100,7 +100,7 @@ public PublicAccess publicAccess() { } /** - * Set the publicAccess value. + * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @param publicAccess the publicAccess value to set * @return the ListContainerItem object itself. @@ -111,7 +111,7 @@ public ListContainerItem withPublicAccess(PublicAccess publicAccess) { } /** - * Get the lastModifiedTime value. + * Get returns the date and time the container was last modified. * * @return the lastModifiedTime value */ @@ -120,7 +120,7 @@ public DateTime lastModifiedTime() { } /** - * Get the leaseStatus value. + * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. * * @return the leaseStatus value */ @@ -129,7 +129,7 @@ public LeaseStatus leaseStatus() { } /** - * Get the leaseState value. + * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. * * @return the leaseState value */ @@ -138,7 +138,7 @@ public LeaseState leaseState() { } /** - * Get the leaseDuration value. + * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. * * @return the leaseDuration value */ @@ -147,7 +147,7 @@ public LeaseDuration leaseDuration() { } /** - * Get the metadata value. + * Get a name-value pair to associate with the container as metadata. * * @return the metadata value */ @@ -156,7 +156,7 @@ public Map metadata() { } /** - * Set the metadata value. + * Set a name-value pair to associate with the container as metadata. * * @param metadata the metadata value to set * @return the ListContainerItem object itself. @@ -167,7 +167,7 @@ public ListContainerItem withMetadata(Map metadata) { } /** - * Get the immutabilityPolicy value. + * Get the ImmutabilityPolicy property of the container. * * @return the immutabilityPolicy value */ @@ -176,7 +176,7 @@ public ImmutabilityPolicyProperties immutabilityPolicy() { } /** - * Get the legalHold value. + * Get the LegalHold property of the container. * * @return the legalHold value */ @@ -185,7 +185,7 @@ public LegalHoldProperties legalHold() { } /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -194,7 +194,7 @@ public Boolean hasLegalHold() { } /** - * Get the hasImmutabilityPolicy value. + * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. * * @return the hasImmutabilityPolicy value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ManagementPoliciesRulesSetParameter.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ManagementPoliciesRulesSetParameter.java index f77f65a73695e..1bce34c250bc1 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ManagementPoliciesRulesSetParameter.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ManagementPoliciesRulesSetParameter.java @@ -27,7 +27,7 @@ public class ManagementPoliciesRulesSetParameter { private Object policy; /** - * Get the policy value. + * Get the Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. * * @return the policy value */ @@ -36,7 +36,7 @@ public Object policy() { } /** - * Set the policy value. + * Set the Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. * * @param policy the policy value to set * @return the ManagementPoliciesRulesSetParameter object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/MetricSpecification.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/MetricSpecification.java index 22d731290431c..d811de192bd30 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/MetricSpecification.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/MetricSpecification.java @@ -70,7 +70,7 @@ public class MetricSpecification { private String resourceIdDimensionNameOverride; /** - * Get the name value. + * Get name of metric specification. * * @return the name value */ @@ -79,7 +79,7 @@ public String name() { } /** - * Set the name value. + * Set name of metric specification. * * @param name the name value to set * @return the MetricSpecification object itself. @@ -90,7 +90,7 @@ public MetricSpecification withName(String name) { } /** - * Get the displayName value. + * Get display name of metric specification. * * @return the displayName value */ @@ -99,7 +99,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set display name of metric specification. * * @param displayName the displayName value to set * @return the MetricSpecification object itself. @@ -110,7 +110,7 @@ public MetricSpecification withDisplayName(String displayName) { } /** - * Get the displayDescription value. + * Get display description of metric specification. * * @return the displayDescription value */ @@ -119,7 +119,7 @@ public String displayDescription() { } /** - * Set the displayDescription value. + * Set display description of metric specification. * * @param displayDescription the displayDescription value to set * @return the MetricSpecification object itself. @@ -130,7 +130,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { } /** - * Get the unit value. + * Get unit could be Bytes or Count. * * @return the unit value */ @@ -139,7 +139,7 @@ public String unit() { } /** - * Set the unit value. + * Set unit could be Bytes or Count. * * @param unit the unit value to set * @return the MetricSpecification object itself. @@ -150,7 +150,7 @@ public MetricSpecification withUnit(String unit) { } /** - * Get the dimensions value. + * Get dimensions of blobs, including blob type and access tier. * * @return the dimensions value */ @@ -159,7 +159,7 @@ public List dimensions() { } /** - * Set the dimensions value. + * Set dimensions of blobs, including blob type and access tier. * * @param dimensions the dimensions value to set * @return the MetricSpecification object itself. @@ -170,7 +170,7 @@ public MetricSpecification withDimensions(List dimensions) { } /** - * Get the aggregationType value. + * Get aggregation type could be Average. * * @return the aggregationType value */ @@ -179,7 +179,7 @@ public String aggregationType() { } /** - * Set the aggregationType value. + * Set aggregation type could be Average. * * @param aggregationType the aggregationType value to set * @return the MetricSpecification object itself. @@ -190,7 +190,7 @@ public MetricSpecification withAggregationType(String aggregationType) { } /** - * Get the fillGapWithZero value. + * Get the property to decide fill gap with zero or not. * * @return the fillGapWithZero value */ @@ -199,7 +199,7 @@ public Boolean fillGapWithZero() { } /** - * Set the fillGapWithZero value. + * Set the property to decide fill gap with zero or not. * * @param fillGapWithZero the fillGapWithZero value to set * @return the MetricSpecification object itself. @@ -210,7 +210,7 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { } /** - * Get the category value. + * Get the category this metric specification belong to, could be Capacity. * * @return the category value */ @@ -219,7 +219,7 @@ public String category() { } /** - * Set the category value. + * Set the category this metric specification belong to, could be Capacity. * * @param category the category value to set * @return the MetricSpecification object itself. @@ -230,7 +230,7 @@ public MetricSpecification withCategory(String category) { } /** - * Get the resourceIdDimensionNameOverride value. + * Get account Resource Id. * * @return the resourceIdDimensionNameOverride value */ @@ -239,7 +239,7 @@ public String resourceIdDimensionNameOverride() { } /** - * Set the resourceIdDimensionNameOverride value. + * Set account Resource Id. * * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set * @return the MetricSpecification object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/NetworkRuleSet.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/NetworkRuleSet.java index 66a229d14d9e1..b2d60b41312b4 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/NetworkRuleSet.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/NetworkRuleSet.java @@ -45,7 +45,7 @@ public class NetworkRuleSet { private DefaultAction defaultAction; /** - * Get the bypass value. + * Get specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @return the bypass value */ @@ -54,7 +54,7 @@ public Bypass bypass() { } /** - * Set the bypass value. + * Set specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @param bypass the bypass value to set * @return the NetworkRuleSet object itself. @@ -65,7 +65,7 @@ public NetworkRuleSet withBypass(Bypass bypass) { } /** - * Get the virtualNetworkRules value. + * Get sets the virtual network rules. * * @return the virtualNetworkRules value */ @@ -74,7 +74,7 @@ public List virtualNetworkRules() { } /** - * Set the virtualNetworkRules value. + * Set sets the virtual network rules. * * @param virtualNetworkRules the virtualNetworkRules value to set * @return the NetworkRuleSet object itself. @@ -85,7 +85,7 @@ public NetworkRuleSet withVirtualNetworkRules(List virtualNe } /** - * Get the ipRules value. + * Get sets the IP ACL rules. * * @return the ipRules value */ @@ -94,7 +94,7 @@ public List ipRules() { } /** - * Set the ipRules value. + * Set sets the IP ACL rules. * * @param ipRules the ipRules value to set * @return the NetworkRuleSet object itself. @@ -105,7 +105,7 @@ public NetworkRuleSet withIpRules(List ipRules) { } /** - * Get the defaultAction value. + * Get specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @return the defaultAction value */ @@ -114,7 +114,7 @@ public DefaultAction defaultAction() { } /** - * Set the defaultAction value. + * Set specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @param defaultAction the defaultAction value to set * @return the NetworkRuleSet object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java index 570cc5d70f937..77ffe51b4cd1e 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java @@ -33,7 +33,7 @@ public class OperationDisplay { private String operation; /** - * Get the provider value. + * Get service provider: Microsoft Storage. * * @return the provider value */ @@ -42,7 +42,7 @@ public String provider() { } /** - * Set the provider value. + * Set service provider: Microsoft Storage. * * @param provider the provider value to set * @return the OperationDisplay object itself. @@ -53,7 +53,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the resource value. + * Get resource on which the operation is performed etc. * * @return the resource value */ @@ -62,7 +62,7 @@ public String resource() { } /** - * Set the resource value. + * Set resource on which the operation is performed etc. * * @param resource the resource value to set * @return the OperationDisplay object itself. @@ -73,7 +73,7 @@ public OperationDisplay withResource(String resource) { } /** - * Get the operation value. + * Get type of operation: get, read, delete, etc. * * @return the operation value */ @@ -82,7 +82,7 @@ public String operation() { } /** - * Set the operation value. + * Set type of operation: get, read, delete, etc. * * @param operation the operation value to set * @return the OperationDisplay object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java index 0828b438e74f8..c00cf984f0fde 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java @@ -40,7 +40,7 @@ public class Restriction { private ReasonCode reasonCode; /** - * Get the type value. + * Get the type of restrictions. As of now only possible value for this is location. * * @return the type value */ @@ -49,7 +49,7 @@ public String type() { } /** - * Get the values value. + * Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * * @return the values value */ @@ -58,7 +58,7 @@ public List values() { } /** - * Get the reasonCode value. + * Get the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ @@ -67,7 +67,7 @@ public ReasonCode reasonCode() { } /** - * Set the reasonCode value. + * Set the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @param reasonCode the reasonCode value to set * @return the Restriction object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/SKUCapability.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/SKUCapability.java index a7edb39412c80..14f170a07b189 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/SKUCapability.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/SKUCapability.java @@ -30,7 +30,7 @@ public class SKUCapability { private String value; /** - * Get the name value. + * Get the name of capability, The capability information in the specified sku, including file encryption, network acls, change notification, etc. * * @return the name value */ @@ -39,7 +39,7 @@ public String name() { } /** - * Get the value value. + * Get a string value to indicate states of given capability. Possibly 'true' or 'false'. * * @return the value value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java index 31af2bbf20e3c..836198c921c87 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java @@ -131,7 +131,7 @@ public class ServiceSasParameters { private String contentType; /** - * Get the canonicalizedResource value. + * Get the canonical path to the signed resource. * * @return the canonicalizedResource value */ @@ -140,7 +140,7 @@ public String canonicalizedResource() { } /** - * Set the canonicalizedResource value. + * Set the canonical path to the signed resource. * * @param canonicalizedResource the canonicalizedResource value to set * @return the ServiceSasParameters object itself. @@ -151,7 +151,7 @@ public ServiceSasParameters withCanonicalizedResource(String canonicalizedResour } /** - * Get the resource value. + * Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. * * @return the resource value */ @@ -160,7 +160,7 @@ public SignedResource resource() { } /** - * Set the resource value. + * Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. * * @param resource the resource value to set * @return the ServiceSasParameters object itself. @@ -171,7 +171,7 @@ public ServiceSasParameters withResource(SignedResource resource) { } /** - * Get the permissions value. + * Get the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @return the permissions value */ @@ -180,7 +180,7 @@ public Permissions permissions() { } /** - * Set the permissions value. + * Set the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. * * @param permissions the permissions value to set * @return the ServiceSasParameters object itself. @@ -191,7 +191,7 @@ public ServiceSasParameters withPermissions(Permissions permissions) { } /** - * Get the iPAddressOrRange value. + * Get an IP address or a range of IP addresses from which to accept requests. * * @return the iPAddressOrRange value */ @@ -200,7 +200,7 @@ public String iPAddressOrRange() { } /** - * Set the iPAddressOrRange value. + * Set an IP address or a range of IP addresses from which to accept requests. * * @param iPAddressOrRange the iPAddressOrRange value to set * @return the ServiceSasParameters object itself. @@ -211,7 +211,7 @@ public ServiceSasParameters withIPAddressOrRange(String iPAddressOrRange) { } /** - * Get the protocols value. + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @return the protocols value */ @@ -220,7 +220,7 @@ public HttpProtocol protocols() { } /** - * Set the protocols value. + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. * * @param protocols the protocols value to set * @return the ServiceSasParameters object itself. @@ -231,7 +231,7 @@ public ServiceSasParameters withProtocols(HttpProtocol protocols) { } /** - * Get the sharedAccessStartTime value. + * Get the time at which the SAS becomes valid. * * @return the sharedAccessStartTime value */ @@ -240,7 +240,7 @@ public DateTime sharedAccessStartTime() { } /** - * Set the sharedAccessStartTime value. + * Set the time at which the SAS becomes valid. * * @param sharedAccessStartTime the sharedAccessStartTime value to set * @return the ServiceSasParameters object itself. @@ -251,7 +251,7 @@ public ServiceSasParameters withSharedAccessStartTime(DateTime sharedAccessStart } /** - * Get the sharedAccessExpiryTime value. + * Get the time at which the shared access signature becomes invalid. * * @return the sharedAccessExpiryTime value */ @@ -260,7 +260,7 @@ public DateTime sharedAccessExpiryTime() { } /** - * Set the sharedAccessExpiryTime value. + * Set the time at which the shared access signature becomes invalid. * * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set * @return the ServiceSasParameters object itself. @@ -271,7 +271,7 @@ public ServiceSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpi } /** - * Get the identifier value. + * Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. * * @return the identifier value */ @@ -280,7 +280,7 @@ public String identifier() { } /** - * Set the identifier value. + * Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. * * @param identifier the identifier value to set * @return the ServiceSasParameters object itself. @@ -291,7 +291,7 @@ public ServiceSasParameters withIdentifier(String identifier) { } /** - * Get the partitionKeyStart value. + * Get the start of partition key. * * @return the partitionKeyStart value */ @@ -300,7 +300,7 @@ public String partitionKeyStart() { } /** - * Set the partitionKeyStart value. + * Set the start of partition key. * * @param partitionKeyStart the partitionKeyStart value to set * @return the ServiceSasParameters object itself. @@ -311,7 +311,7 @@ public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart) { } /** - * Get the partitionKeyEnd value. + * Get the end of partition key. * * @return the partitionKeyEnd value */ @@ -320,7 +320,7 @@ public String partitionKeyEnd() { } /** - * Set the partitionKeyEnd value. + * Set the end of partition key. * * @param partitionKeyEnd the partitionKeyEnd value to set * @return the ServiceSasParameters object itself. @@ -331,7 +331,7 @@ public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd) { } /** - * Get the rowKeyStart value. + * Get the start of row key. * * @return the rowKeyStart value */ @@ -340,7 +340,7 @@ public String rowKeyStart() { } /** - * Set the rowKeyStart value. + * Set the start of row key. * * @param rowKeyStart the rowKeyStart value to set * @return the ServiceSasParameters object itself. @@ -351,7 +351,7 @@ public ServiceSasParameters withRowKeyStart(String rowKeyStart) { } /** - * Get the rowKeyEnd value. + * Get the end of row key. * * @return the rowKeyEnd value */ @@ -360,7 +360,7 @@ public String rowKeyEnd() { } /** - * Set the rowKeyEnd value. + * Set the end of row key. * * @param rowKeyEnd the rowKeyEnd value to set * @return the ServiceSasParameters object itself. @@ -371,7 +371,7 @@ public ServiceSasParameters withRowKeyEnd(String rowKeyEnd) { } /** - * Get the keyToSign value. + * Get the key to sign the account SAS token with. * * @return the keyToSign value */ @@ -380,7 +380,7 @@ public String keyToSign() { } /** - * Set the keyToSign value. + * Set the key to sign the account SAS token with. * * @param keyToSign the keyToSign value to set * @return the ServiceSasParameters object itself. @@ -391,7 +391,7 @@ public ServiceSasParameters withKeyToSign(String keyToSign) { } /** - * Get the cacheControl value. + * Get the response header override for cache control. * * @return the cacheControl value */ @@ -400,7 +400,7 @@ public String cacheControl() { } /** - * Set the cacheControl value. + * Set the response header override for cache control. * * @param cacheControl the cacheControl value to set * @return the ServiceSasParameters object itself. @@ -411,7 +411,7 @@ public ServiceSasParameters withCacheControl(String cacheControl) { } /** - * Get the contentDisposition value. + * Get the response header override for content disposition. * * @return the contentDisposition value */ @@ -420,7 +420,7 @@ public String contentDisposition() { } /** - * Set the contentDisposition value. + * Set the response header override for content disposition. * * @param contentDisposition the contentDisposition value to set * @return the ServiceSasParameters object itself. @@ -431,7 +431,7 @@ public ServiceSasParameters withContentDisposition(String contentDisposition) { } /** - * Get the contentEncoding value. + * Get the response header override for content encoding. * * @return the contentEncoding value */ @@ -440,7 +440,7 @@ public String contentEncoding() { } /** - * Set the contentEncoding value. + * Set the response header override for content encoding. * * @param contentEncoding the contentEncoding value to set * @return the ServiceSasParameters object itself. @@ -451,7 +451,7 @@ public ServiceSasParameters withContentEncoding(String contentEncoding) { } /** - * Get the contentLanguage value. + * Get the response header override for content language. * * @return the contentLanguage value */ @@ -460,7 +460,7 @@ public String contentLanguage() { } /** - * Set the contentLanguage value. + * Set the response header override for content language. * * @param contentLanguage the contentLanguage value to set * @return the ServiceSasParameters object itself. @@ -471,7 +471,7 @@ public ServiceSasParameters withContentLanguage(String contentLanguage) { } /** - * Get the contentType value. + * Get the response header override for content type. * * @return the contentType value */ @@ -480,7 +480,7 @@ public String contentType() { } /** - * Set the contentType value. + * Set the response header override for content type. * * @param contentType the contentType value to set * @return the ServiceSasParameters object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSpecification.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSpecification.java index 5293473b6b5ff..f5dbfaa831c87 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSpecification.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSpecification.java @@ -22,7 +22,7 @@ public class ServiceSpecification { private List metricSpecifications; /** - * Get the metricSpecifications value. + * Get metric specifications of operation. * * @return the metricSpecifications value */ @@ -31,7 +31,7 @@ public List metricSpecifications() { } /** - * Set the metricSpecifications value. + * Set metric specifications of operation. * * @param metricSpecifications the metricSpecifications value to set * @return the ServiceSpecification object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccount.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccount.java index 542a08a5987bd..9338ff33a4128 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccount.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccount.java @@ -10,12 +10,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; 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.storage.v2018_03_01_preview.implementation.StorageManager; import com.microsoft.azure.management.storage.v2018_03_01_preview.implementation.SkuInner; @@ -56,6 +56,11 @@ public interface StorageAccount extends HasInner, Resource, */ Identity identity(); + /** + * @return the isHnsEnabled value. + */ + Boolean isHnsEnabled(); + /** * @return the kind value. */ @@ -203,6 +208,16 @@ interface WithIdentity { WithCreate withIdentity(Identity identity); } + /** + * The stage of the storageaccount update allowing to specify IsHnsEnabled. + */ + interface WithIsHnsEnabled { + /** + * Specifies isHnsEnabled. + */ + WithCreate withIsHnsEnabled(Boolean isHnsEnabled); + } + /** * The stage of the storageaccount update allowing to specify NetworkRuleSet. */ @@ -218,7 +233,7 @@ interface WithNetworkRuleSet { * 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.WithAccessTier, DefinitionStages.WithCustomDomain, DefinitionStages.WithEnableHttpsTrafficOnly, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithNetworkRuleSet { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAccessTier, DefinitionStages.WithCustomDomain, DefinitionStages.WithEnableHttpsTrafficOnly, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithIsHnsEnabled, DefinitionStages.WithNetworkRuleSet { } } /** diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCheckNameAvailabilityParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCheckNameAvailabilityParameters.java index 0329322c11f59..bc2aa2ce79756 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCheckNameAvailabilityParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCheckNameAvailabilityParameters.java @@ -28,13 +28,14 @@ public class StorageAccountCheckNameAvailabilityParameters { /** * Creates an instance of StorageAccountCheckNameAvailabilityParameters class. + * @param name the storage account name. */ public StorageAccountCheckNameAvailabilityParameters() { type = "Microsoft.Storage/storageAccounts"; } /** - * Get the name value. + * Get the storage account name. * * @return the name value */ @@ -43,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the storage account name. * * @param name the name value to set * @return the StorageAccountCheckNameAvailabilityParameters object itself. @@ -54,7 +55,7 @@ public StorageAccountCheckNameAvailabilityParameters withName(String name) { } /** - * Get the type value. + * Get the type of resource, Microsoft.Storage/storageAccounts. * * @return the type value */ @@ -63,7 +64,7 @@ public String type() { } /** - * Set the type value. + * Set the type of resource, Microsoft.Storage/storageAccounts. * * @param type the type value to set * @return the StorageAccountCheckNameAvailabilityParameters object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCreateParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCreateParameters.java index 8a49edfcf452d..f3cfb865f7fa3 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCreateParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountCreateParameters.java @@ -94,7 +94,13 @@ public class StorageAccountCreateParameters { private Boolean enableHttpsTrafficOnly; /** - * Get the sku value. + * Account HierarchicalNamespace enabled if sets to true. + */ + @JsonProperty(value = "properties.isHnsEnabled") + private Boolean isHnsEnabled; + + /** + * Get required. Gets or sets the sku name. * * @return the sku value */ @@ -103,7 +109,7 @@ public SkuInner sku() { } /** - * Set the sku value. + * Set required. Gets or sets the sku name. * * @param sku the sku value to set * @return the StorageAccountCreateParameters object itself. @@ -114,7 +120,7 @@ public StorageAccountCreateParameters withSku(SkuInner sku) { } /** - * Get the kind value. + * Get required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -123,7 +129,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountCreateParameters object itself. @@ -134,7 +140,7 @@ public StorageAccountCreateParameters withKind(Kind kind) { } /** - * Get the location value. + * Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @return the location value */ @@ -143,7 +149,7 @@ public String location() { } /** - * Set the location value. + * Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. * * @param location the location value to set * @return the StorageAccountCreateParameters object itself. @@ -154,7 +160,7 @@ public StorageAccountCreateParameters withLocation(String location) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @return the tags value */ @@ -163,7 +169,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. * * @param tags the tags value to set * @return the StorageAccountCreateParameters object itself. @@ -174,7 +180,7 @@ public StorageAccountCreateParameters withTags(Map tags) { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -183,7 +189,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountCreateParameters object itself. @@ -194,7 +200,7 @@ public StorageAccountCreateParameters withIdentity(Identity identity) { } /** - * Get the customDomain value. + * Get user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -203,7 +209,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountCreateParameters object itself. @@ -214,7 +220,7 @@ public StorageAccountCreateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @return the encryption value */ @@ -223,7 +229,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountCreateParameters object itself. @@ -234,7 +240,7 @@ public StorageAccountCreateParameters withEncryption(Encryption encryption) { } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -243,7 +249,7 @@ public NetworkRuleSet networkRuleSet() { } /** - * Set the networkRuleSet value. + * Set network rule set. * * @param networkRuleSet the networkRuleSet value to set * @return the StorageAccountCreateParameters object itself. @@ -254,7 +260,7 @@ public StorageAccountCreateParameters withNetworkRuleSet(NetworkRuleSet networkR } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -263,7 +269,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountCreateParameters object itself. @@ -274,7 +280,7 @@ public StorageAccountCreateParameters withAccessTier(AccessTier accessTier) { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -283,7 +289,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountCreateParameters object itself. @@ -293,4 +299,24 @@ public StorageAccountCreateParameters withEnableHttpsTrafficOnly(Boolean enableH return this; } + /** + * Get account HierarchicalNamespace enabled if sets to true. + * + * @return the isHnsEnabled value + */ + public Boolean isHnsEnabled() { + return this.isHnsEnabled; + } + + /** + * Set account HierarchicalNamespace enabled if sets to true. + * + * @param isHnsEnabled the isHnsEnabled value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withIsHnsEnabled(Boolean isHnsEnabled) { + this.isHnsEnabled = isHnsEnabled; + return this; + } + } diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountKey.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountKey.java index 70c5e9f86c9d1..7f313a6c6f052 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountKey.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountKey.java @@ -34,7 +34,7 @@ public class StorageAccountKey { private KeyPermission permissions; /** - * Get the keyName value. + * Get name of the key. * * @return the keyName value */ @@ -43,7 +43,7 @@ public String keyName() { } /** - * Get the value value. + * Get base 64-encoded value of the key. * * @return the value value */ @@ -52,7 +52,7 @@ public String value() { } /** - * Get the permissions value. + * Get permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full'. * * @return the permissions value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountRegenerateKeyParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountRegenerateKeyParameters.java index 32bba3bef9d2e..c78fc8a24f889 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountRegenerateKeyParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountRegenerateKeyParameters.java @@ -22,7 +22,7 @@ public class StorageAccountRegenerateKeyParameters { private String keyName; /** - * Get the keyName value. + * Get the name of storage keys that want to be regenerated, possible vaules are key1, key2. * * @return the keyName value */ @@ -31,7 +31,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set the name of storage keys that want to be regenerated, possible vaules are key1, key2. * * @param keyName the keyName value to set * @return the StorageAccountRegenerateKeyParameters object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountUpdateParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountUpdateParameters.java index d4596c3c87cff..439ec53b4aad6 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountUpdateParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccountUpdateParameters.java @@ -87,7 +87,7 @@ public class StorageAccountUpdateParameters { private Kind kind; /** - * Get the sku value. + * Get gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @return the sku value */ @@ -96,7 +96,7 @@ public SkuInner sku() { } /** - * Set the sku value. + * Set gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value. * * @param sku the sku value to set * @return the StorageAccountUpdateParameters object itself. @@ -107,7 +107,7 @@ public StorageAccountUpdateParameters withSku(SkuInner sku) { } /** - * Get the tags value. + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @return the tags value */ @@ -116,7 +116,7 @@ public Map tags() { } /** - * Set the tags value. + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. * * @param tags the tags value to set * @return the StorageAccountUpdateParameters object itself. @@ -127,7 +127,7 @@ public StorageAccountUpdateParameters withTags(Map tags) { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -136,7 +136,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountUpdateParameters object itself. @@ -147,7 +147,7 @@ public StorageAccountUpdateParameters withIdentity(Identity identity) { } /** - * Get the customDomain value. + * Get custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @return the customDomain value */ @@ -156,7 +156,7 @@ public CustomDomain customDomain() { } /** - * Set the customDomain value. + * Set custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. * * @param customDomain the customDomain value to set * @return the StorageAccountUpdateParameters object itself. @@ -167,7 +167,7 @@ public StorageAccountUpdateParameters withCustomDomain(CustomDomain customDomain } /** - * Get the encryption value. + * Get provides the encryption settings on the account. The default setting is unencrypted. * * @return the encryption value */ @@ -176,7 +176,7 @@ public Encryption encryption() { } /** - * Set the encryption value. + * Set provides the encryption settings on the account. The default setting is unencrypted. * * @param encryption the encryption value to set * @return the StorageAccountUpdateParameters object itself. @@ -187,7 +187,7 @@ public StorageAccountUpdateParameters withEncryption(Encryption encryption) { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -196,7 +196,7 @@ public AccessTier accessTier() { } /** - * Set the accessTier value. + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @param accessTier the accessTier value to set * @return the StorageAccountUpdateParameters object itself. @@ -207,7 +207,7 @@ public StorageAccountUpdateParameters withAccessTier(AccessTier accessTier) { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -216,7 +216,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountUpdateParameters object itself. @@ -227,7 +227,7 @@ public StorageAccountUpdateParameters withEnableHttpsTrafficOnly(Boolean enableH } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -236,7 +236,7 @@ public NetworkRuleSet networkRuleSet() { } /** - * Set the networkRuleSet value. + * Set network rule set. * * @param networkRuleSet the networkRuleSet value to set * @return the StorageAccountUpdateParameters object itself. @@ -247,7 +247,7 @@ public StorageAccountUpdateParameters withNetworkRuleSet(NetworkRuleSet networkR } /** - * Get the kind value. + * Get optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -256,7 +256,7 @@ public Kind kind() { } /** - * Set the kind value. + * Set optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @param kind the kind value to set * @return the StorageAccountUpdateParameters object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccounts.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccounts.java index bcf2dfecf5720..9250577e7185c 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccounts.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/StorageAccounts.java @@ -23,6 +23,11 @@ * Type representing StorageAccounts. */ public interface StorageAccounts extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Begins definition for a new ManagementPolicy resource. + * @param name resource name. + * @return the first stage of the new ManagementPolicy definition. + */ StorageAccountManagementPolicies.DefinitionStages.Blank defineManagementPolicy(String name); /** diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/TagProperty.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/TagProperty.java index a4989ede37e76..9e4d56faf3c02 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/TagProperty.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/TagProperty.java @@ -56,7 +56,7 @@ public String tag() { } /** - * Get the timestamp value. + * Get returns the date and time the tag was added. * * @return the timestamp value */ @@ -65,7 +65,7 @@ public DateTime timestamp() { } /** - * Get the objectIdentifier value. + * Get returns the Object ID of the user who added the tag. * * @return the objectIdentifier value */ @@ -74,7 +74,7 @@ public String objectIdentifier() { } /** - * Get the tenantId value. + * Get returns the Tenant ID that issued the token for the user who added the tag. * * @return the tenantId value */ @@ -83,7 +83,7 @@ public String tenantId() { } /** - * Get the upn value. + * Get returns the User Principal Name of the user who added the tag. * * @return the upn value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UpdateHistoryProperty.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UpdateHistoryProperty.java index 8f7c08e312e25..f26c58e0eb2bc 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UpdateHistoryProperty.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UpdateHistoryProperty.java @@ -57,7 +57,7 @@ public class UpdateHistoryProperty { private String upn; /** - * Get the update value. + * Get the ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: 'put', 'lock', 'extend'. * * @return the update value */ @@ -66,7 +66,7 @@ public ImmutabilityPolicyUpdateType update() { } /** - * Get the immutabilityPeriodSinceCreationInDays value. + * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */ @@ -75,7 +75,7 @@ public Integer immutabilityPeriodSinceCreationInDays() { } /** - * Get the timestamp value. + * Get returns the date and time the ImmutabilityPolicy was updated. * * @return the timestamp value */ @@ -84,7 +84,7 @@ public DateTime timestamp() { } /** - * Get the objectIdentifier value. + * Get returns the Object ID of the user who updated the ImmutabilityPolicy. * * @return the objectIdentifier value */ @@ -93,7 +93,7 @@ public String objectIdentifier() { } /** - * Get the tenantId value. + * Get returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. * * @return the tenantId value */ @@ -102,7 +102,7 @@ public String tenantId() { } /** - * Get the upn value. + * Get returns the User Principal Name of the user who updated the ImmutabilityPolicy. * * @return the upn value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UsageName.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UsageName.java index e0e1f9bc1fd80..19b781c907742 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UsageName.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get gets a string describing the resource name. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Get the localizedValue value. + * Get gets a localized string describing the resource name. * * @return the localizedValue value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/VirtualNetworkRule.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/VirtualNetworkRule.java index 9ca645962a51b..8d9a22e62ad5e 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/VirtualNetworkRule.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/VirtualNetworkRule.java @@ -36,7 +36,7 @@ public class VirtualNetworkRule { private State state; /** - * Get the virtualNetworkResourceId value. + * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. * * @return the virtualNetworkResourceId value */ @@ -45,7 +45,7 @@ public String virtualNetworkResourceId() { } /** - * Set the virtualNetworkResourceId value. + * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. * * @param virtualNetworkResourceId the virtualNetworkResourceId value to set * @return the VirtualNetworkRule object itself. @@ -56,7 +56,7 @@ public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkReso } /** - * Get the action value. + * Get the action of virtual network rule. Possible values include: 'Allow'. * * @return the action value */ @@ -65,7 +65,7 @@ public Action action() { } /** - * Set the action value. + * Set the action of virtual network rule. Possible values include: 'Allow'. * * @param action the action value to set * @return the VirtualNetworkRule object itself. @@ -76,7 +76,7 @@ public VirtualNetworkRule withAction(Action action) { } /** - * Get the state value. + * Get gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. * * @return the state value */ @@ -85,7 +85,7 @@ public State state() { } /** - * Set the state value. + * Set gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. * * @param state the state value to set * @return the VirtualNetworkRule object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/BlobContainerInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/BlobContainerInner.java index 12c5463674d40..9a2004c67aa76 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/BlobContainerInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/BlobContainerInner.java @@ -99,7 +99,7 @@ public class BlobContainerInner extends AzureEntityResource { private Boolean hasImmutabilityPolicy; /** - * Get the publicAccess value. + * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @return the publicAccess value */ @@ -108,7 +108,7 @@ public PublicAccess publicAccess() { } /** - * Set the publicAccess value. + * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. * * @param publicAccess the publicAccess value to set * @return the BlobContainerInner object itself. @@ -119,7 +119,7 @@ public BlobContainerInner withPublicAccess(PublicAccess publicAccess) { } /** - * Get the lastModifiedTime value. + * Get returns the date and time the container was last modified. * * @return the lastModifiedTime value */ @@ -128,7 +128,7 @@ public DateTime lastModifiedTime() { } /** - * Get the leaseStatus value. + * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. * * @return the leaseStatus value */ @@ -137,7 +137,7 @@ public LeaseStatus leaseStatus() { } /** - * Get the leaseState value. + * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. * * @return the leaseState value */ @@ -146,7 +146,7 @@ public LeaseState leaseState() { } /** - * Get the leaseDuration value. + * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. * * @return the leaseDuration value */ @@ -155,7 +155,7 @@ public LeaseDuration leaseDuration() { } /** - * Get the metadata value. + * Get a name-value pair to associate with the container as metadata. * * @return the metadata value */ @@ -164,7 +164,7 @@ public Map metadata() { } /** - * Set the metadata value. + * Set a name-value pair to associate with the container as metadata. * * @param metadata the metadata value to set * @return the BlobContainerInner object itself. @@ -175,7 +175,7 @@ public BlobContainerInner withMetadata(Map metadata) { } /** - * Get the immutabilityPolicy value. + * Get the ImmutabilityPolicy property of the container. * * @return the immutabilityPolicy value */ @@ -184,7 +184,7 @@ public ImmutabilityPolicyProperties immutabilityPolicy() { } /** - * Get the legalHold value. + * Get the LegalHold property of the container. * * @return the legalHold value */ @@ -193,7 +193,7 @@ public LegalHoldProperties legalHold() { } /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -202,7 +202,7 @@ public Boolean hasLegalHold() { } /** - * Get the hasImmutabilityPolicy value. + * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. * * @return the hasImmutabilityPolicy value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/CheckNameAvailabilityResultInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/CheckNameAvailabilityResultInner.java index cbb670e103e41..75a89c63eb5b7 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/CheckNameAvailabilityResultInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/CheckNameAvailabilityResultInner.java @@ -38,7 +38,7 @@ public class CheckNameAvailabilityResultInner { private String message; /** - * Get the nameAvailable value. + * Get gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. * * @return the nameAvailable value */ @@ -47,7 +47,7 @@ public Boolean nameAvailable() { } /** - * Get the reason value. + * Get gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'. * * @return the reason value */ @@ -56,7 +56,7 @@ public Reason reason() { } /** - * Get the message value. + * Get gets an error message explaining the Reason value in more detail. * * @return the message value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ImmutabilityPolicyInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ImmutabilityPolicyInner.java index ba2729fc50202..ac8869e9c3b50 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ImmutabilityPolicyInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ImmutabilityPolicyInner.java @@ -35,7 +35,7 @@ public class ImmutabilityPolicyInner extends AzureEntityResource { private ImmutabilityPolicyState state; /** - * Get the immutabilityPeriodSinceCreationInDays value. + * Get the immutability period for the blobs in the container since the policy creation, in days. * * @return the immutabilityPeriodSinceCreationInDays value */ @@ -44,7 +44,7 @@ public int immutabilityPeriodSinceCreationInDays() { } /** - * Set the immutabilityPeriodSinceCreationInDays value. + * Set the immutability period for the blobs in the container since the policy creation, in days. * * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set * @return the ImmutabilityPolicyInner object itself. @@ -55,7 +55,7 @@ public ImmutabilityPolicyInner withImmutabilityPeriodSinceCreationInDays(int imm } /** - * Get the state value. + * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. * * @return the state value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/LegalHoldInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/LegalHoldInner.java index 7b14a552698da..bdb438306ac02 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/LegalHoldInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/LegalHoldInner.java @@ -33,7 +33,7 @@ public class LegalHoldInner { private List tags; /** - * Get the hasLegalHold value. + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. * * @return the hasLegalHold value */ @@ -42,7 +42,7 @@ public Boolean hasLegalHold() { } /** - * Get the tags value. + * Get each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. * * @return the tags value */ @@ -51,7 +51,7 @@ public List tags() { } /** - * Set the tags value. + * Set each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. * * @param tags the tags value to set * @return the LegalHoldInner object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListAccountSasResponseInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListAccountSasResponseInner.java index bfa960538587d..827c8d0ee0699 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListAccountSasResponseInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListAccountSasResponseInner.java @@ -21,7 +21,7 @@ public class ListAccountSasResponseInner { private String accountSasToken; /** - * Get the accountSasToken value. + * Get list SAS credentials of storage account. * * @return the accountSasToken value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListContainerItemsInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListContainerItemsInner.java index b7abf57a866a1..28220fc114147 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListContainerItemsInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListContainerItemsInner.java @@ -23,7 +23,7 @@ public class ListContainerItemsInner { private List value; /** - * Get the value value. + * Get the list of blob containers. * * @return the value value */ @@ -32,7 +32,7 @@ public List value() { } /** - * Set the value value. + * Set the list of blob containers. * * @param value the value value to set * @return the ListContainerItemsInner object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListServiceSasResponseInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListServiceSasResponseInner.java index aa676f5860e65..a7d8f454128e8 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListServiceSasResponseInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/ListServiceSasResponseInner.java @@ -21,7 +21,7 @@ public class ListServiceSasResponseInner { private String serviceSasToken; /** - * Get the serviceSasToken value. + * Get list service SAS credentials of speicific resource. * * @return the serviceSasToken value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationInner.java index f4afd630d8ac9..453bae7ba0f64 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationInner.java @@ -43,7 +43,7 @@ public class OperationInner { private ServiceSpecification serviceSpecification; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{operation}. * * @return the name value */ @@ -52,7 +52,7 @@ public String name() { } /** - * Set the name value. + * Set operation name: {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -63,7 +63,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get display metadata associated with the operation. * * @return the display value */ @@ -72,7 +72,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set display metadata associated with the operation. * * @param display the display value to set * @return the OperationInner object itself. @@ -83,7 +83,7 @@ public OperationInner withDisplay(OperationDisplay display) { } /** - * Get the origin value. + * Get the origin of operations. * * @return the origin value */ @@ -92,7 +92,7 @@ public String origin() { } /** - * Set the origin value. + * Set the origin of operations. * * @param origin the origin value to set * @return the OperationInner object itself. @@ -103,7 +103,7 @@ public OperationInner withOrigin(String origin) { } /** - * Get the serviceSpecification value. + * Get one property of operation, include metric specifications. * * @return the serviceSpecification value */ @@ -112,7 +112,7 @@ public ServiceSpecification serviceSpecification() { } /** - * Set the serviceSpecification value. + * Set one property of operation, include metric specifications. * * @param serviceSpecification the serviceSpecification value to set * @return the OperationInner object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationsImpl.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationsImpl.java index c6a2da09d5f14..5b04b6eff75fd 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationsImpl.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/OperationsImpl.java @@ -37,7 +37,8 @@ public Observable listAsync() { public Observable call(List innerList) { return Observable.from(innerList); } - }) .map(new Func1() { + }) + .map(new Func1() { @Override public Operation call(OperationInner inner) { return new OperationImpl(inner, manager()); diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/SkuInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/SkuInner.java index 815302f7bcb1a..b19dff5e8aee1 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/SkuInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/SkuInner.java @@ -72,7 +72,7 @@ public class SkuInner { private List restrictions; /** - * Get the name value. + * Get gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @return the name value */ @@ -81,7 +81,7 @@ public SkuName name() { } /** - * Set the name value. + * Set gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'. * * @param name the name value to set * @return the SkuInner object itself. @@ -92,7 +92,7 @@ public SkuInner withName(SkuName name) { } /** - * Get the tier value. + * Get gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium'. * * @return the tier value */ @@ -101,7 +101,7 @@ public SkuTier tier() { } /** - * Get the resourceType value. + * Get the type of the resource, usually it is 'storageAccounts'. * * @return the resourceType value */ @@ -110,7 +110,7 @@ public String resourceType() { } /** - * Get the kind value. + * Get indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -119,7 +119,7 @@ public Kind kind() { } /** - * Get the locations value. + * Get the set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). * * @return the locations value */ @@ -128,7 +128,7 @@ public List locations() { } /** - * Get the capabilities value. + * Get the capability information in the specified sku, including file encryption, network acls, change notification, etc. * * @return the capabilities value */ @@ -137,7 +137,7 @@ public List capabilities() { } /** - * Get the restrictions value. + * Get the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @return the restrictions value */ @@ -146,7 +146,7 @@ public List restrictions() { } /** - * Set the restrictions value. + * Set the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. * * @param restrictions the restrictions value to set * @return the SkuInner object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountImpl.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountImpl.java index ff48a2b25922f..83ba7a87e6c68 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountImpl.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountImpl.java @@ -111,6 +111,11 @@ public Identity identity() { return this.inner().identity(); } + @Override + public Boolean isHnsEnabled() { + return this.inner().isHnsEnabled(); + } + @Override public Kind kind() { return this.inner().kind(); @@ -171,6 +176,12 @@ public AccountStatus statusOfSecondary() { return this.inner().statusOfSecondary(); } + @Override + public StorageAccountImpl withIsHnsEnabled(Boolean isHnsEnabled) { + this.createParameter.withIsHnsEnabled(isHnsEnabled); + return this; + } + @Override public StorageAccountImpl withKind(Kind kind) { if (isInCreateMode()) { diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountInner.java index 4ade36dcfad4b..091d2de355992 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountInner.java @@ -149,7 +149,13 @@ public class StorageAccountInner extends Resource { private NetworkRuleSet networkRuleSet; /** - * Get the sku value. + * Account HierarchicalNamespace enabled if sets to true. + */ + @JsonProperty(value = "properties.isHnsEnabled") + private Boolean isHnsEnabled; + + /** + * Get gets the SKU. * * @return the sku value */ @@ -158,7 +164,7 @@ public SkuInner sku() { } /** - * Get the kind value. + * Get gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage'. * * @return the kind value */ @@ -167,7 +173,7 @@ public Kind kind() { } /** - * Get the identity value. + * Get the identity of the resource. * * @return the identity value */ @@ -176,7 +182,7 @@ public Identity identity() { } /** - * Set the identity value. + * Set the identity of the resource. * * @param identity the identity value to set * @return the StorageAccountInner object itself. @@ -187,7 +193,7 @@ public StorageAccountInner withIdentity(Identity identity) { } /** - * Get the provisioningState value. + * Get gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'. * * @return the provisioningState value */ @@ -196,7 +202,7 @@ public ProvisioningState provisioningState() { } /** - * Get the primaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. * * @return the primaryEndpoints value */ @@ -205,7 +211,7 @@ public Endpoints primaryEndpoints() { } /** - * Get the primaryLocation value. + * Get gets the location of the primary data center for the storage account. * * @return the primaryLocation value */ @@ -214,7 +220,7 @@ public String primaryLocation() { } /** - * Get the statusOfPrimary value. + * Get gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'available', 'unavailable'. * * @return the statusOfPrimary value */ @@ -223,7 +229,7 @@ public AccountStatus statusOfPrimary() { } /** - * Get the lastGeoFailoverTime value. + * Get gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the lastGeoFailoverTime value */ @@ -232,7 +238,7 @@ public DateTime lastGeoFailoverTime() { } /** - * Get the secondaryLocation value. + * Get gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. * * @return the secondaryLocation value */ @@ -241,7 +247,7 @@ public String secondaryLocation() { } /** - * Get the statusOfSecondary value. + * Get gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'available', 'unavailable'. * * @return the statusOfSecondary value */ @@ -250,7 +256,7 @@ public AccountStatus statusOfSecondary() { } /** - * Get the creationTime value. + * Get gets the creation date and time of the storage account in UTC. * * @return the creationTime value */ @@ -259,7 +265,7 @@ public DateTime creationTime() { } /** - * Get the customDomain value. + * Get gets the custom domain the user assigned to this storage account. * * @return the customDomain value */ @@ -268,7 +274,7 @@ public CustomDomain customDomain() { } /** - * Get the secondaryEndpoints value. + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. * * @return the secondaryEndpoints value */ @@ -277,7 +283,7 @@ public Endpoints secondaryEndpoints() { } /** - * Get the encryption value. + * Get gets the encryption settings on the account. If unspecified, the account is unencrypted. * * @return the encryption value */ @@ -286,7 +292,7 @@ public Encryption encryption() { } /** - * Get the accessTier value. + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. * * @return the accessTier value */ @@ -295,7 +301,7 @@ public AccessTier accessTier() { } /** - * Get the enableHttpsTrafficOnly value. + * Get allows https traffic only to storage service if sets to true. * * @return the enableHttpsTrafficOnly value */ @@ -304,7 +310,7 @@ public Boolean enableHttpsTrafficOnly() { } /** - * Set the enableHttpsTrafficOnly value. + * Set allows https traffic only to storage service if sets to true. * * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set * @return the StorageAccountInner object itself. @@ -315,7 +321,7 @@ public StorageAccountInner withEnableHttpsTrafficOnly(Boolean enableHttpsTraffic } /** - * Get the networkRuleSet value. + * Get network rule set. * * @return the networkRuleSet value */ @@ -323,4 +329,24 @@ public NetworkRuleSet networkRuleSet() { return this.networkRuleSet; } + /** + * Get account HierarchicalNamespace enabled if sets to true. + * + * @return the isHnsEnabled value + */ + public Boolean isHnsEnabled() { + return this.isHnsEnabled; + } + + /** + * Set account HierarchicalNamespace enabled if sets to true. + * + * @param isHnsEnabled the isHnsEnabled value to set + * @return the StorageAccountInner object itself. + */ + public StorageAccountInner withIsHnsEnabled(Boolean isHnsEnabled) { + this.isHnsEnabled = isHnsEnabled; + return this; + } + } diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountListKeysResultInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountListKeysResultInner.java index c5ade470b9292..427c6bfc16ea6 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountListKeysResultInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountListKeysResultInner.java @@ -24,7 +24,7 @@ public class StorageAccountListKeysResultInner { private List keys; /** - * Get the keys value. + * Get gets the list of storage account keys and their properties for the specified storage account. * * @return the keys value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountManagementPoliciesInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountManagementPoliciesInner.java index f2383a2623f88..74c9ed7f3347f 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountManagementPoliciesInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/StorageAccountManagementPoliciesInner.java @@ -33,7 +33,7 @@ public class StorageAccountManagementPoliciesInner extends ProxyResource { private DateTime lastModifiedTime; /** - * Get the policy value. + * Get the Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. * * @return the policy value */ @@ -42,7 +42,7 @@ public Object policy() { } /** - * Set the policy value. + * Set the Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. * * @param policy the policy value to set * @return the StorageAccountManagementPoliciesInner object itself. @@ -53,7 +53,7 @@ public StorageAccountManagementPoliciesInner withPolicy(Object policy) { } /** - * Get the lastModifiedTime value. + * Get returns the date and time the ManagementPolicies was last modified. * * @return the lastModifiedTime value */ diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/UsageInner.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/UsageInner.java index 2cd94452002d9..dad5326e65953 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/UsageInner.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/implementation/UsageInner.java @@ -43,7 +43,7 @@ public class UsageInner { private UsageName name; /** - * Get the unit value. + * Get gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'. * * @return the unit value */ @@ -52,7 +52,7 @@ public UsageUnit unit() { } /** - * Get the currentValue value. + * Get gets the current count of the allocated resources in the subscription. * * @return the currentValue value */ @@ -61,7 +61,7 @@ public Integer currentValue() { } /** - * Get the limit value. + * Get gets the maximum count of the resources that can be allocated in the subscription. * * @return the limit value */ @@ -70,7 +70,7 @@ public Integer limit() { } /** - * Get the name value. + * Get gets the name of the type of usage. * * @return the name value */ From aaee080d21514c8470bf91b1df36283e8ed321a6 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 31 Jul 2018 09:42:02 -0700 Subject: [PATCH 2/5] [AutoPR storage/resource-manager] [Storage] Set the SignedResource as optional in ListServiceSAS (#2246) * Generated from 7882bc39a752f3adf4c47186c926094ab65cedc9 [Storage] Set the SignedResource as optional in ListServiceSAS * Generated from b36d0991a7cc9a7185fc6b7d7ef6919f63435234 [Storage] Fix a format issue. --- .../storage/v2017_10_01/Restriction.java | 10 +++---- .../storage/v2018_02_01/OperationDisplay.java | 26 +++++++++++++++++++ .../storage/v2018_02_01/Restriction.java | 10 +++---- .../v2018_02_01/ServiceSasParameters.java | 2 +- .../v2018_03_01_preview/OperationDisplay.java | 26 +++++++++++++++++++ .../v2018_03_01_preview/Restriction.java | 10 +++---- .../ServiceSasParameters.java | 2 +- 7 files changed, 69 insertions(+), 17 deletions(-) diff --git a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java index 8caab41cc9957..d4642fab11a82 100644 --- a/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java +++ b/storage/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/storage/v2017_10_01/Restriction.java @@ -30,10 +30,10 @@ public class Restriction { private List values; /** - * The reason for the restriction. As of now this can be “QuotaId” or - * “NotAvailableForSubscription”. Quota Id is set when the SKU has + * The reason for the restriction. As of now this can be "QuotaId" or + * "NotAvailableForSubscription". Quota Id is set when the SKU has * requiredQuotas parameter as the subscription does not belong to that - * quota. The “NotAvailableForSubscription” is related to capacity at DC. + * quota. The "NotAvailableForSubscription" is related to capacity at DC. * Possible values include: 'QuotaId', 'NotAvailableForSubscription'. */ @JsonProperty(value = "reasonCode") @@ -58,7 +58,7 @@ public List values() { } /** - * Get the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ @@ -67,7 +67,7 @@ public ReasonCode reasonCode() { } /** - * Set the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @param reasonCode the reasonCode value to set * @return the Restriction object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java index 8ab577a078f89..3c373a376e850 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/OperationDisplay.java @@ -32,6 +32,12 @@ public class OperationDisplay { @JsonProperty(value = "operation") private String operation; + /** + * Description of the operation. + */ + @JsonProperty(value = "description") + private String description; + /** * Get service provider: Microsoft Storage. * @@ -92,4 +98,24 @@ public OperationDisplay withOperation(String operation) { return this; } + /** + * Get description of the operation. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set description of the operation. + * + * @param description the description value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withDescription(String description) { + this.description = description; + return this; + } + } diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java index 7313a79f455e8..d9c9126486b14 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/Restriction.java @@ -30,10 +30,10 @@ public class Restriction { private List values; /** - * The reason for the restriction. As of now this can be “QuotaId” or - * “NotAvailableForSubscription”. Quota Id is set when the SKU has + * The reason for the restriction. As of now this can be "QuotaId" or + * "NotAvailableForSubscription". Quota Id is set when the SKU has * requiredQuotas parameter as the subscription does not belong to that - * quota. The “NotAvailableForSubscription” is related to capacity at DC. + * quota. The "NotAvailableForSubscription" is related to capacity at DC. * Possible values include: 'QuotaId', 'NotAvailableForSubscription'. */ @JsonProperty(value = "reasonCode") @@ -58,7 +58,7 @@ public List values() { } /** - * Get the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ @@ -67,7 +67,7 @@ public ReasonCode reasonCode() { } /** - * Set the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @param reasonCode the reasonCode value to set * @return the Restriction object itself. diff --git a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java index a1038c15e1093..030dd36f59f50 100644 --- a/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java +++ b/storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/ServiceSasParameters.java @@ -26,7 +26,7 @@ public class ServiceSasParameters { * include: Blob (b), Container (c), File (f), Share (s). Possible values * include: 'b', 'c', 'f', 's'. */ - @JsonProperty(value = "signedResource", required = true) + @JsonProperty(value = "signedResource") private SignedResource resource; /** diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java index 77ffe51b4cd1e..dff50e8f64e1c 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/OperationDisplay.java @@ -32,6 +32,12 @@ public class OperationDisplay { @JsonProperty(value = "operation") private String operation; + /** + * Description of the operation. + */ + @JsonProperty(value = "description") + private String description; + /** * Get service provider: Microsoft Storage. * @@ -92,4 +98,24 @@ public OperationDisplay withOperation(String operation) { return this; } + /** + * Get description of the operation. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set description of the operation. + * + * @param description the description value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withDescription(String description) { + this.description = description; + return this; + } + } diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java index c00cf984f0fde..08b04f288bf22 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/Restriction.java @@ -30,10 +30,10 @@ public class Restriction { private List values; /** - * The reason for the restriction. As of now this can be “QuotaId” or - * “NotAvailableForSubscription”. Quota Id is set when the SKU has + * The reason for the restriction. As of now this can be "QuotaId" or + * "NotAvailableForSubscription". Quota Id is set when the SKU has * requiredQuotas parameter as the subscription does not belong to that - * quota. The “NotAvailableForSubscription” is related to capacity at DC. + * quota. The "NotAvailableForSubscription" is related to capacity at DC. * Possible values include: 'QuotaId', 'NotAvailableForSubscription'. */ @JsonProperty(value = "reasonCode") @@ -58,7 +58,7 @@ public List values() { } /** - * Get the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @return the reasonCode value */ @@ -67,7 +67,7 @@ public ReasonCode reasonCode() { } /** - * Set the reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. * * @param reasonCode the reasonCode value to set * @return the Restriction object itself. diff --git a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java index 836198c921c87..89e4208e2c524 100644 --- a/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java +++ b/storage/resource-manager/v2018_03_01_preview/src/main/java/com/microsoft/azure/management/storage/v2018_03_01_preview/ServiceSasParameters.java @@ -26,7 +26,7 @@ public class ServiceSasParameters { * include: Blob (b), Container (c), File (f), Share (s). Possible values * include: 'b', 'c', 'f', 's'. */ - @JsonProperty(value = "signedResource", required = true) + @JsonProperty(value = "signedResource") private SignedResource resource; /** From bd3f304840cc71af22d8a3a04d822dd991b9dc76 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 27 Sep 2018 11:08:01 -0700 Subject: [PATCH 3/5] Generated from ccc587e3e35b74ffb3b1470c515f988f55ffa134 (#2433) Add Java support for storage 2018-07-01 --- storage/resource-manager/v2018_07_01/pom.xml | 133 ++ .../storage/v2018_07_01/AccessTier.java | 53 + .../v2018_07_01/AccountSasParameters.java | 236 +++ .../storage/v2018_07_01/AccountStatus.java | 53 + .../storage/v2018_07_01/Action.java | 50 + .../v2018_07_01/AzureEntityResource.java | 34 + .../storage/v2018_07_01/BlobContainer.java | 141 ++ .../storage/v2018_07_01/BlobContainers.java | 137 ++ ...eateOrUpdateImmutabilityPolicyHeaders.java | 46 + ...ainersDeleteImmutabilityPolicyHeaders.java | 46 + ...ainersExtendImmutabilityPolicyHeaders.java | 46 + ...ontainersGetImmutabilityPolicyHeaders.java | 46 + ...ntainersLockImmutabilityPolicyHeaders.java | 46 + .../storage/v2018_07_01/Bypass.java | 47 + .../CheckNameAvailabilityResult.java | 35 + .../storage/v2018_07_01/CustomDomain.java | 72 + .../storage/v2018_07_01/DefaultAction.java | 53 + .../storage/v2018_07_01/Dimension.java | 69 + .../storage/v2018_07_01/Encryption.java | 97 + .../v2018_07_01/EncryptionService.java | 63 + .../v2018_07_01/EncryptionServices.java | 99 + .../storage/v2018_07_01/Endpoints.java | 108 ++ .../storage/v2018_07_01/HttpProtocol.java | 53 + .../storage/v2018_07_01/IPRule.java | 70 + .../storage/v2018_07_01/Identity.java | 80 + .../v2018_07_01/ImmutabilityPolicy.java | 120 ++ .../ImmutabilityPolicyProperties.java | 94 + .../v2018_07_01/ImmutabilityPolicyState.java | 41 + .../ImmutabilityPolicyUpdateType.java | 44 + .../storage/v2018_07_01/KeyPermission.java | 53 + .../storage/v2018_07_01/KeySource.java | 41 + .../v2018_07_01/KeyVaultProperties.java | 95 + .../management/storage/v2018_07_01/Kind.java | 62 + .../storage/v2018_07_01/LeaseDuration.java | 41 + .../storage/v2018_07_01/LeaseState.java | 50 + .../storage/v2018_07_01/LeaseStatus.java | 41 + .../storage/v2018_07_01/LegalHold.java | 31 + .../v2018_07_01/LegalHoldProperties.java | 63 + .../v2018_07_01/ListAccountSasResponse.java | 25 + .../v2018_07_01/ListContainerItem.java | 205 ++ .../v2018_07_01/ListContainerItems.java | 26 + .../v2018_07_01/ListServiceSasResponse.java | 25 + .../v2018_07_01/MetricSpecification.java | 252 +++ .../storage/v2018_07_01/NetworkRuleSet.java | 127 ++ .../storage/v2018_07_01/Operation.java | 40 + .../storage/v2018_07_01/OperationDisplay.java | 121 ++ .../storage/v2018_07_01/Operations.java | 27 + .../storage/v2018_07_01/Permissions.java | 59 + .../v2018_07_01/ProvisioningState.java | 56 + .../storage/v2018_07_01/PublicAccess.java | 56 + .../storage/v2018_07_01/Reason.java | 53 + .../storage/v2018_07_01/ReasonCode.java | 41 + .../storage/v2018_07_01/Restriction.java | 80 + .../storage/v2018_07_01/SKUCapability.java | 50 + .../v2018_07_01/ServiceSasParameters.java | 493 +++++ .../v2018_07_01/ServiceSpecification.java | 44 + .../storage/v2018_07_01/Services.java | 47 + .../storage/v2018_07_01/SignedResource.java | 47 + .../v2018_07_01/SignedResourceTypes.java | 44 + .../management/storage/v2018_07_01/Sku.java | 56 + .../storage/v2018_07_01/SkuName.java | 65 + .../storage/v2018_07_01/SkuTier.java | 53 + .../management/storage/v2018_07_01/Skus.java | 19 + .../management/storage/v2018_07_01/State.java | 62 + .../storage/v2018_07_01/StorageAccount.java | 355 ++++ ...ccountCheckNameAvailabilityParameters.java | 77 + .../StorageAccountCreateParameters.java | 349 ++++ .../v2018_07_01/StorageAccountKey.java | 63 + .../StorageAccountListKeysResult.java | 26 + ...StorageAccountRegenerateKeyParameters.java | 44 + .../StorageAccountUpdateParameters.java | 295 +++ .../storage/v2018_07_01/StorageAccounts.java | 77 + .../storage/v2018_07_01/TagProperty.java | 94 + .../v2018_07_01/UpdateHistoryProperty.java | 113 ++ .../management/storage/v2018_07_01/Usage.java | 40 + .../storage/v2018_07_01/UsageName.java | 47 + .../storage/v2018_07_01/UsageUnit.java | 65 + .../storage/v2018_07_01/Usages.java | 28 + .../v2018_07_01/VirtualNetworkRule.java | 98 + .../implementation/BlobContainerImpl.java | 157 ++ .../implementation/BlobContainerInner.java | 213 +++ .../implementation/BlobContainersImpl.java | 165 ++ .../implementation/BlobContainersInner.java | 1680 +++++++++++++++++ .../CheckNameAvailabilityResultImpl.java | 42 + .../CheckNameAvailabilityResultInner.java | 67 + .../implementation/IdParsingUtils.java | 57 + .../ImmutabilityPolicyImpl.java | 123 ++ .../ImmutabilityPolicyInner.java | 66 + .../implementation/LegalHoldImpl.java | 37 + .../implementation/LegalHoldInner.java | 64 + .../ListAccountSasResponseImpl.java | 31 + .../ListAccountSasResponseInner.java | 32 + .../ListContainerItemsImpl.java | 33 + .../ListContainerItemsInner.java | 45 + .../ListServiceSasResponseImpl.java | 31 + .../ListServiceSasResponseInner.java | 32 + .../implementation/OperationImpl.java | 48 + .../implementation/OperationInner.java | 125 ++ .../implementation/OperationsImpl.java | 49 + .../implementation/OperationsInner.java | 134 ++ .../v2018_07_01/implementation/PageImpl.java | 75 + .../v2018_07_01/implementation/SkuImpl.java | 72 + .../v2018_07_01/implementation/SkuInner.java | 160 ++ .../v2018_07_01/implementation/SkusImpl.java | 68 + .../v2018_07_01/implementation/SkusInner.java | 144 ++ .../implementation/StorageAccountImpl.java | 280 +++ .../implementation/StorageAccountInner.java | 378 ++++ .../StorageAccountListKeysResultImpl.java | 33 + .../StorageAccountListKeysResultInner.java | 35 + .../implementation/StorageAccountsImpl.java | 204 ++ .../implementation/StorageAccountsInner.java | 1179 ++++++++++++ .../StorageManagementClientImpl.java | 252 +++ .../implementation/StorageManager.java | 147 ++ .../v2018_07_01/implementation/UsageImpl.java | 52 + .../implementation/UsageInner.java | 81 + .../implementation/UsagesImpl.java | 53 + .../implementation/UsagesInner.java | 145 ++ .../implementation/package-info.java | 11 + .../storage/v2018_07_01/package-info.java | 11 + 119 files changed, 13244 insertions(+) create mode 100644 storage/resource-manager/v2018_07_01/pom.xml create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccessTier.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountSasParameters.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountStatus.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Action.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AzureEntityResource.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainer.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainers.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersDeleteImmutabilityPolicyHeaders.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersExtendImmutabilityPolicyHeaders.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersGetImmutabilityPolicyHeaders.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersLockImmutabilityPolicyHeaders.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Bypass.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CheckNameAvailabilityResult.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CustomDomain.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/DefaultAction.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Dimension.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Encryption.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionService.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionServices.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Endpoints.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/HttpProtocol.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/IPRule.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Identity.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicy.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyProperties.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyState.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyUpdateType.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyPermission.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeySource.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyVaultProperties.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Kind.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseDuration.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseState.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseStatus.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHold.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHoldProperties.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListAccountSasResponse.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItem.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItems.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListServiceSasResponse.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/MetricSpecification.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/NetworkRuleSet.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operation.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/OperationDisplay.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operations.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Permissions.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ProvisioningState.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/PublicAccess.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Reason.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ReasonCode.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Restriction.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SKUCapability.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSasParameters.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSpecification.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Services.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResource.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResourceTypes.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Sku.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuName.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuTier.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Skus.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/State.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccount.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCheckNameAvailabilityParameters.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCreateParameters.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountKey.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountListKeysResult.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountRegenerateKeyParameters.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountUpdateParameters.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccounts.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/TagProperty.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UpdateHistoryProperty.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usage.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageName.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageUnit.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usages.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/VirtualNetworkRule.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/IdParsingUtils.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/PageImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManagementClientImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManager.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesImpl.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesInner.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/package-info.java create mode 100644 storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/package-info.java diff --git a/storage/resource-manager/v2018_07_01/pom.xml b/storage/resource-manager/v2018_07_01/pom.xml new file mode 100644 index 0000000000000..28ed9952bd3e3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/pom.xml @@ -0,0 +1,133 @@ + + + 4.0.0 + com.microsoft.azure.storage.v2018_07_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-storage + 1.0.0-beta + jar + Microsoft Azure SDK for Storage Management + This package contains Microsoft Storage 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/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccessTier.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccessTier.java new file mode 100644 index 0000000000000..f9bd978583b05 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccessTier.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AccessTier. + */ +public enum AccessTier { + /** Enum value Hot. */ + HOT("Hot"), + + /** Enum value Cool. */ + COOL("Cool"); + + /** The actual serialized value for a AccessTier instance. */ + private String value; + + AccessTier(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AccessTier instance. + * + * @param value the serialized value to parse. + * @return the parsed AccessTier object, or null if unable to parse. + */ + @JsonCreator + public static AccessTier fromString(String value) { + AccessTier[] items = AccessTier.values(); + for (AccessTier item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountSasParameters.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountSasParameters.java new file mode 100644 index 0000000000000..c8733cc583010 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountSasParameters.java @@ -0,0 +1,236 @@ +/** + * 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.storage.v2018_07_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters to list SAS credentials of a storage account. + */ +public class AccountSasParameters { + /** + * The signed services accessible with the account SAS. Possible values + * include: Blob (b), Queue (q), Table (t), File (f). Possible values + * include: 'b', 'q', 't', 'f'. + */ + @JsonProperty(value = "signedServices", required = true) + private Services services; + + /** + * The signed resource types that are accessible with the account SAS. + * Service (s): Access to service-level APIs; Container (c): Access to + * container-level APIs; Object (o): Access to object-level APIs for blobs, + * queue messages, table entities, and files. Possible values include: 's', + * 'c', 'o'. + */ + @JsonProperty(value = "signedResourceTypes", required = true) + private SignedResourceTypes resourceTypes; + + /** + * The signed permissions for the account SAS. Possible values include: + * Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update + * (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', + * 'c', 'u', 'p'. + */ + @JsonProperty(value = "signedPermission", required = true) + private Permissions permissions; + + /** + * An IP address or a range of IP addresses from which to accept requests. + */ + @JsonProperty(value = "signedIp") + private String iPAddressOrRange; + + /** + * The protocol permitted for a request made with the account SAS. Possible + * values include: 'https,http', 'https'. + */ + @JsonProperty(value = "signedProtocol") + private HttpProtocol protocols; + + /** + * The time at which the SAS becomes valid. + */ + @JsonProperty(value = "signedStart") + private DateTime sharedAccessStartTime; + + /** + * The time at which the shared access signature becomes invalid. + */ + @JsonProperty(value = "signedExpiry", required = true) + private DateTime sharedAccessExpiryTime; + + /** + * The key to sign the account SAS token with. + */ + @JsonProperty(value = "keyToSign") + private String keyToSign; + + /** + * Get the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. + * + * @return the services value + */ + public Services services() { + return this.services; + } + + /** + * Set the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'. + * + * @param services the services value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withServices(Services services) { + this.services = services; + return this; + } + + /** + * Get the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. + * + * @return the resourceTypes value + */ + public SignedResourceTypes resourceTypes() { + return this.resourceTypes; + } + + /** + * Set the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'. + * + * @param resourceTypes the resourceTypes value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes) { + this.resourceTypes = resourceTypes; + return this; + } + + /** + * Get the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. + * + * @return the permissions value + */ + public Permissions permissions() { + return this.permissions; + } + + /** + * Set the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. + * + * @param permissions the permissions value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withPermissions(Permissions permissions) { + this.permissions = permissions; + return this; + } + + /** + * Get an IP address or a range of IP addresses from which to accept requests. + * + * @return the iPAddressOrRange value + */ + public String iPAddressOrRange() { + return this.iPAddressOrRange; + } + + /** + * Set an IP address or a range of IP addresses from which to accept requests. + * + * @param iPAddressOrRange the iPAddressOrRange value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withIPAddressOrRange(String iPAddressOrRange) { + this.iPAddressOrRange = iPAddressOrRange; + return this; + } + + /** + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. + * + * @return the protocols value + */ + public HttpProtocol protocols() { + return this.protocols; + } + + /** + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. + * + * @param protocols the protocols value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withProtocols(HttpProtocol protocols) { + this.protocols = protocols; + return this; + } + + /** + * Get the time at which the SAS becomes valid. + * + * @return the sharedAccessStartTime value + */ + public DateTime sharedAccessStartTime() { + return this.sharedAccessStartTime; + } + + /** + * Set the time at which the SAS becomes valid. + * + * @param sharedAccessStartTime the sharedAccessStartTime value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withSharedAccessStartTime(DateTime sharedAccessStartTime) { + this.sharedAccessStartTime = sharedAccessStartTime; + return this; + } + + /** + * Get the time at which the shared access signature becomes invalid. + * + * @return the sharedAccessExpiryTime value + */ + public DateTime sharedAccessExpiryTime() { + return this.sharedAccessExpiryTime; + } + + /** + * Set the time at which the shared access signature becomes invalid. + * + * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpiryTime) { + this.sharedAccessExpiryTime = sharedAccessExpiryTime; + return this; + } + + /** + * Get the key to sign the account SAS token with. + * + * @return the keyToSign value + */ + public String keyToSign() { + return this.keyToSign; + } + + /** + * Set the key to sign the account SAS token with. + * + * @param keyToSign the keyToSign value to set + * @return the AccountSasParameters object itself. + */ + public AccountSasParameters withKeyToSign(String keyToSign) { + this.keyToSign = keyToSign; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountStatus.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountStatus.java new file mode 100644 index 0000000000000..8bb3ecb8330b7 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AccountStatus.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AccountStatus. + */ +public enum AccountStatus { + /** Enum value available. */ + AVAILABLE("available"), + + /** Enum value unavailable. */ + UNAVAILABLE("unavailable"); + + /** The actual serialized value for a AccountStatus instance. */ + private String value; + + AccountStatus(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AccountStatus instance. + * + * @param value the serialized value to parse. + * @return the parsed AccountStatus object, or null if unable to parse. + */ + @JsonCreator + public static AccountStatus fromString(String value) { + AccountStatus[] items = AccountStatus.values(); + for (AccountStatus item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Action.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Action.java new file mode 100644 index 0000000000000..1b3daa0e428bd --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Action.java @@ -0,0 +1,50 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for Action. + */ +public enum Action { + /** Enum value Allow. */ + ALLOW("Allow"); + + /** The actual serialized value for a Action instance. */ + private String value; + + Action(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a Action instance. + * + * @param value the serialized value to parse. + * @return the parsed Action object, or null if unable to parse. + */ + @JsonCreator + public static Action fromString(String value) { + Action[] items = Action.values(); + for (Action item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AzureEntityResource.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AzureEntityResource.java new file mode 100644 index 0000000000000..27c1323935460 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/AzureEntityResource.java @@ -0,0 +1,34 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.ProxyResource; + +/** + * The resource model definition for a Azure Resource Manager resource with an + * etag. + */ +public class AzureEntityResource extends ProxyResource { + /** + * Resource Etag. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Get resource Etag. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainer.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainer.java new file mode 100644 index 0000000000000..3094bc2edbce2 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainer.java @@ -0,0 +1,141 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.BlobContainerInner; +import com.microsoft.azure.arm.model.Indexable; +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.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import org.joda.time.DateTime; +import java.util.Map; + +/** + * Type representing BlobContainer. + */ +public interface BlobContainer extends HasInner, Indexable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the hasImmutabilityPolicy value. + */ + Boolean hasImmutabilityPolicy(); + + /** + * @return the hasLegalHold value. + */ + Boolean hasLegalHold(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the immutabilityPolicy value. + */ + ImmutabilityPolicyProperties immutabilityPolicy(); + + /** + * @return the lastModifiedTime value. + */ + DateTime lastModifiedTime(); + + /** + * @return the leaseDuration value. + */ + LeaseDuration leaseDuration(); + + /** + * @return the leaseState value. + */ + LeaseState leaseState(); + + /** + * @return the leaseStatus value. + */ + LeaseStatus leaseStatus(); + + /** + * @return the legalHold value. + */ + LegalHoldProperties legalHold(); + + /** + * @return the metadata value. + */ + Map metadata(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the publicAccess value. + */ + PublicAccess publicAccess(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the BlobContainer definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithBlobService, DefinitionStages.WithCreate { + } + + /** + * Grouping of BlobContainer definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a BlobContainer definition. + */ + interface Blank extends WithBlobService { + } + + /** + * The stage of the blobcontainer definition allowing to specify BlobService. + */ + interface WithBlobService { + /** + * Specifies resourceGroupName, accountName. + */ + WithCreate withExistingBlobService(String resourceGroupName, String accountName); + } + + /** + * 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 { + } + } + /** + * The template for a BlobContainer update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable { + } + + /** + * Grouping of BlobContainer update stages. + */ + interface UpdateStages { + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainers.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainers.java new file mode 100644 index 0000000000000..19a94b05e165b --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainers.java @@ -0,0 +1,137 @@ +/** + * 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.storage.v2018_07_01; + +import rx.Completable; +import rx.Observable; +import java.util.List; + +/** + * Type representing BlobContainers. + */ +public interface BlobContainers { + /** + * Begins definition for a new Container resource. + * @param name resource name. + * @return the first stage of the new Container definition. + */ + BlobContainer.DefinitionStages.Blank defineContainer(String name); + + /** + * Begins definition for a new ImmutabilityPolicy resource. + * @param name resource name. + * @return the first stage of the new ImmutabilityPolicy definition. + */ + ImmutabilityPolicy.DefinitionStages.Blank defineImmutabilityPolicy(String name); + + /** + * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(String resourceGroupName, String accountName); + + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String accountName, String containerName); + + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String accountName, String containerName); + + /** + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags); + + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags); + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName); + + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch); + + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch); + + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java new file mode 100644 index 0000000000000..db2d123e31ed9 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java @@ -0,0 +1,46 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for CreateOrUpdateImmutabilityPolicy operation. + */ +public class BlobContainersCreateOrUpdateImmutabilityPolicyHeaders { + /** + * The ETag HTTP response header. This is an opaque string. You can use it + * to detect whether the resource has changed between requests. In + * particular, you can pass the ETag to one of the If-Match or + * If-None-Match headers. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /** + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @return the eTag value + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @param eTag the eTag value to set + * @return the BlobContainersCreateOrUpdateImmutabilityPolicyHeaders object itself. + */ + public BlobContainersCreateOrUpdateImmutabilityPolicyHeaders withETag(String eTag) { + this.eTag = eTag; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersDeleteImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersDeleteImmutabilityPolicyHeaders.java new file mode 100644 index 0000000000000..f3b043de5328c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersDeleteImmutabilityPolicyHeaders.java @@ -0,0 +1,46 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for DeleteImmutabilityPolicy operation. + */ +public class BlobContainersDeleteImmutabilityPolicyHeaders { + /** + * The ETag HTTP response header. This is an opaque string. You can use it + * to detect whether the resource has changed between requests. In + * particular, you can pass the ETag to one of the If-Match or + * If-None-Match headers. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /** + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @return the eTag value + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @param eTag the eTag value to set + * @return the BlobContainersDeleteImmutabilityPolicyHeaders object itself. + */ + public BlobContainersDeleteImmutabilityPolicyHeaders withETag(String eTag) { + this.eTag = eTag; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersExtendImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersExtendImmutabilityPolicyHeaders.java new file mode 100644 index 0000000000000..c641ff8365cc0 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersExtendImmutabilityPolicyHeaders.java @@ -0,0 +1,46 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for ExtendImmutabilityPolicy operation. + */ +public class BlobContainersExtendImmutabilityPolicyHeaders { + /** + * The ETag HTTP response header. This is an opaque string. You can use it + * to detect whether the resource has changed between requests. In + * particular, you can pass the ETag to one of the If-Match or + * If-None-Match headers. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /** + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @return the eTag value + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @param eTag the eTag value to set + * @return the BlobContainersExtendImmutabilityPolicyHeaders object itself. + */ + public BlobContainersExtendImmutabilityPolicyHeaders withETag(String eTag) { + this.eTag = eTag; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersGetImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersGetImmutabilityPolicyHeaders.java new file mode 100644 index 0000000000000..cc903df662510 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersGetImmutabilityPolicyHeaders.java @@ -0,0 +1,46 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for GetImmutabilityPolicy operation. + */ +public class BlobContainersGetImmutabilityPolicyHeaders { + /** + * The ETag HTTP response header. This is an opaque string. You can use it + * to detect whether the resource has changed between requests. In + * particular, you can pass the ETag to one of the If-Match or + * If-None-Match headers. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /** + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @return the eTag value + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @param eTag the eTag value to set + * @return the BlobContainersGetImmutabilityPolicyHeaders object itself. + */ + public BlobContainersGetImmutabilityPolicyHeaders withETag(String eTag) { + this.eTag = eTag; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersLockImmutabilityPolicyHeaders.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersLockImmutabilityPolicyHeaders.java new file mode 100644 index 0000000000000..783a40031c1fc --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/BlobContainersLockImmutabilityPolicyHeaders.java @@ -0,0 +1,46 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for LockImmutabilityPolicy operation. + */ +public class BlobContainersLockImmutabilityPolicyHeaders { + /** + * The ETag HTTP response header. This is an opaque string. You can use it + * to detect whether the resource has changed between requests. In + * particular, you can pass the ETag to one of the If-Match or + * If-None-Match headers. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /** + * Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @return the eTag value + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. + * + * @param eTag the eTag value to set + * @return the BlobContainersLockImmutabilityPolicyHeaders object itself. + */ + public BlobContainersLockImmutabilityPolicyHeaders withETag(String eTag) { + this.eTag = eTag; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Bypass.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Bypass.java new file mode 100644 index 0000000000000..a68d9e2fe5a3c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Bypass.java @@ -0,0 +1,47 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for Bypass. + */ +public final class Bypass extends ExpandableStringEnum { + /** Static value None for Bypass. */ + public static final Bypass NONE = fromString("None"); + + /** Static value Logging for Bypass. */ + public static final Bypass LOGGING = fromString("Logging"); + + /** Static value Metrics for Bypass. */ + public static final Bypass METRICS = fromString("Metrics"); + + /** Static value AzureServices for Bypass. */ + public static final Bypass AZURE_SERVICES = fromString("AzureServices"); + + /** + * Creates or finds a Bypass from its string representation. + * @param name a name to look for + * @return the corresponding Bypass + */ + @JsonCreator + public static Bypass fromString(String name) { + return fromString(name, Bypass.class); + } + + /** + * @return known Bypass values + */ + public static Collection values() { + return values(Bypass.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CheckNameAvailabilityResult.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CheckNameAvailabilityResult.java new file mode 100644 index 0000000000000..9b9d52040b505 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CheckNameAvailabilityResult.java @@ -0,0 +1,35 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.CheckNameAvailabilityResultInner; + +/** + * Type representing CheckNameAvailabilityResult. + */ +public interface CheckNameAvailabilityResult extends HasInner, HasManager { + /** + * @return the message value. + */ + String message(); + + /** + * @return the nameAvailable value. + */ + Boolean nameAvailable(); + + /** + * @return the reason value. + */ + Reason reason(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CustomDomain.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CustomDomain.java new file mode 100644 index 0000000000000..d94a30c7346dd --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/CustomDomain.java @@ -0,0 +1,72 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The custom domain assigned to this storage account. This can be set via + * Update. + */ +public class CustomDomain { + /** + * Gets or sets the custom domain name assigned to the storage account. + * Name is the CNAME source. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Indicates whether indirect CName validation is enabled. Default value is + * false. This should only be set on updates. + */ + @JsonProperty(value = "useSubDomain") + private Boolean useSubDomain; + + /** + * Get gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. + * + * @param name the name value to set + * @return the CustomDomain object itself. + */ + public CustomDomain withName(String name) { + this.name = name; + return this; + } + + /** + * Get indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + * + * @return the useSubDomain value + */ + public Boolean useSubDomain() { + return this.useSubDomain; + } + + /** + * Set indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + * + * @param useSubDomain the useSubDomain value to set + * @return the CustomDomain object itself. + */ + public CustomDomain withUseSubDomain(Boolean useSubDomain) { + this.useSubDomain = useSubDomain; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/DefaultAction.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/DefaultAction.java new file mode 100644 index 0000000000000..1288b15213b03 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/DefaultAction.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DefaultAction. + */ +public enum DefaultAction { + /** Enum value Allow. */ + ALLOW("Allow"), + + /** Enum value Deny. */ + DENY("Deny"); + + /** The actual serialized value for a DefaultAction instance. */ + private String value; + + DefaultAction(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DefaultAction instance. + * + * @param value the serialized value to parse. + * @return the parsed DefaultAction object, or null if unable to parse. + */ + @JsonCreator + public static DefaultAction fromString(String value) { + DefaultAction[] items = DefaultAction.values(); + for (DefaultAction item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Dimension.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Dimension.java new file mode 100644 index 0000000000000..865d0b65bb53c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Dimension.java @@ -0,0 +1,69 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Dimension of blobs, possiblly be blob type or access tier. + */ +public class Dimension { + /** + * Display name of dimension. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Display name of dimension. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Get display name of dimension. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set display name of dimension. + * + * @param name the name value to set + * @return the Dimension object itself. + */ + public Dimension withName(String name) { + this.name = name; + return this; + } + + /** + * Get display name of dimension. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set display name of dimension. + * + * @param displayName the displayName value to set + * @return the Dimension object itself. + */ + public Dimension withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Encryption.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Encryption.java new file mode 100644 index 0000000000000..4adf6db17e0c4 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Encryption.java @@ -0,0 +1,97 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The encryption settings on the storage account. + */ +public class Encryption { + /** + * List of services which support encryption. + */ + @JsonProperty(value = "services") + private EncryptionServices services; + + /** + * The encryption keySource (provider). Possible values (case-insensitive): + * Microsoft.Storage, Microsoft.Keyvault. Possible values include: + * 'Microsoft.Storage', 'Microsoft.Keyvault'. + */ + @JsonProperty(value = "keySource", required = true) + private KeySource keySource; + + /** + * Properties provided by key vault. + */ + @JsonProperty(value = "keyvaultproperties") + private KeyVaultProperties keyVaultProperties; + + /** + * Get list of services which support encryption. + * + * @return the services value + */ + public EncryptionServices services() { + return this.services; + } + + /** + * Set list of services which support encryption. + * + * @param services the services value to set + * @return the Encryption object itself. + */ + public Encryption withServices(EncryptionServices services) { + this.services = services; + return this; + } + + /** + * Get the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. + * + * @return the keySource value + */ + public KeySource keySource() { + return this.keySource; + } + + /** + * Set the encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. + * + * @param keySource the keySource value to set + * @return the Encryption object itself. + */ + public Encryption withKeySource(KeySource keySource) { + this.keySource = keySource; + return this; + } + + /** + * Get properties provided by key vault. + * + * @return the keyVaultProperties value + */ + public KeyVaultProperties keyVaultProperties() { + return this.keyVaultProperties; + } + + /** + * Set properties provided by key vault. + * + * @param keyVaultProperties the keyVaultProperties value to set + * @return the Encryption object itself. + */ + public Encryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties) { + this.keyVaultProperties = keyVaultProperties; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionService.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionService.java new file mode 100644 index 0000000000000..2ca0c90fa5fcd --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionService.java @@ -0,0 +1,63 @@ +/** + * 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.storage.v2018_07_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A service that allows server-side encryption to be used. + */ +public class EncryptionService { + /** + * A boolean indicating whether or not the service encrypts the data as it + * is stored. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Gets a rough estimate of the date/time when the encryption was last + * enabled by the user. Only returned when encryption is enabled. There + * might be some unencrypted blobs which were written after this time, as + * it is just a rough estimate. + */ + @JsonProperty(value = "lastEnabledTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastEnabledTime; + + /** + * Get a boolean indicating whether or not the service encrypts the data as it is stored. + * + * @return the enabled value + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set a boolean indicating whether or not the service encrypts the data as it is stored. + * + * @param enabled the enabled value to set + * @return the EncryptionService object itself. + */ + public EncryptionService withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. + * + * @return the lastEnabledTime value + */ + public DateTime lastEnabledTime() { + return this.lastEnabledTime; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionServices.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionServices.java new file mode 100644 index 0000000000000..ea298d31cc509 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/EncryptionServices.java @@ -0,0 +1,99 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list of services that support encryption. + */ +public class EncryptionServices { + /** + * The encryption function of the blob storage service. + */ + @JsonProperty(value = "blob") + private EncryptionService blob; + + /** + * The encryption function of the file storage service. + */ + @JsonProperty(value = "file") + private EncryptionService file; + + /** + * The encryption function of the table storage service. + */ + @JsonProperty(value = "table", access = JsonProperty.Access.WRITE_ONLY) + private EncryptionService table; + + /** + * The encryption function of the queue storage service. + */ + @JsonProperty(value = "queue", access = JsonProperty.Access.WRITE_ONLY) + private EncryptionService queue; + + /** + * Get the encryption function of the blob storage service. + * + * @return the blob value + */ + public EncryptionService blob() { + return this.blob; + } + + /** + * Set the encryption function of the blob storage service. + * + * @param blob the blob value to set + * @return the EncryptionServices object itself. + */ + public EncryptionServices withBlob(EncryptionService blob) { + this.blob = blob; + return this; + } + + /** + * Get the encryption function of the file storage service. + * + * @return the file value + */ + public EncryptionService file() { + return this.file; + } + + /** + * Set the encryption function of the file storage service. + * + * @param file the file value to set + * @return the EncryptionServices object itself. + */ + public EncryptionServices withFile(EncryptionService file) { + this.file = file; + return this; + } + + /** + * Get the encryption function of the table storage service. + * + * @return the table value + */ + public EncryptionService table() { + return this.table; + } + + /** + * Get the encryption function of the queue storage service. + * + * @return the queue value + */ + public EncryptionService queue() { + return this.queue; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Endpoints.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Endpoints.java new file mode 100644 index 0000000000000..024a532869d1d --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Endpoints.java @@ -0,0 +1,108 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The URIs that are used to perform a retrieval of a public blob, queue, + * table, web or dfs object. + */ +public class Endpoints { + /** + * Gets the blob endpoint. + */ + @JsonProperty(value = "blob", access = JsonProperty.Access.WRITE_ONLY) + private String blob; + + /** + * Gets the queue endpoint. + */ + @JsonProperty(value = "queue", access = JsonProperty.Access.WRITE_ONLY) + private String queue; + + /** + * Gets the table endpoint. + */ + @JsonProperty(value = "table", access = JsonProperty.Access.WRITE_ONLY) + private String table; + + /** + * Gets the file endpoint. + */ + @JsonProperty(value = "file", access = JsonProperty.Access.WRITE_ONLY) + private String file; + + /** + * Gets the web endpoint. + */ + @JsonProperty(value = "web", access = JsonProperty.Access.WRITE_ONLY) + private String web; + + /** + * Gets the dfs endpoint. + */ + @JsonProperty(value = "dfs", access = JsonProperty.Access.WRITE_ONLY) + private String dfs; + + /** + * Get gets the blob endpoint. + * + * @return the blob value + */ + public String blob() { + return this.blob; + } + + /** + * Get gets the queue endpoint. + * + * @return the queue value + */ + public String queue() { + return this.queue; + } + + /** + * Get gets the table endpoint. + * + * @return the table value + */ + public String table() { + return this.table; + } + + /** + * Get gets the file endpoint. + * + * @return the file value + */ + public String file() { + return this.file; + } + + /** + * Get gets the web endpoint. + * + * @return the web value + */ + public String web() { + return this.web; + } + + /** + * Get gets the dfs endpoint. + * + * @return the dfs value + */ + public String dfs() { + return this.dfs; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/HttpProtocol.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/HttpProtocol.java new file mode 100644 index 0000000000000..7e8329c04604a --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/HttpProtocol.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for HttpProtocol. + */ +public enum HttpProtocol { + /** Enum value https,http. */ + HTTPSHTTP("https,http"), + + /** Enum value https. */ + HTTPS("https"); + + /** The actual serialized value for a HttpProtocol instance. */ + private String value; + + HttpProtocol(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a HttpProtocol instance. + * + * @param value the serialized value to parse. + * @return the parsed HttpProtocol object, or null if unable to parse. + */ + @JsonCreator + public static HttpProtocol fromString(String value) { + HttpProtocol[] items = HttpProtocol.values(); + for (HttpProtocol item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/IPRule.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/IPRule.java new file mode 100644 index 0000000000000..39969b9a9d564 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/IPRule.java @@ -0,0 +1,70 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * IP rule with specific IP or IP range in CIDR format. + */ +public class IPRule { + /** + * Specifies the IP or IP range in CIDR format. Only IPV4 address is + * allowed. + */ + @JsonProperty(value = "value", required = true) + private String iPAddressOrRange; + + /** + * The action of IP ACL rule. Possible values include: 'Allow'. + */ + @JsonProperty(value = "action") + private Action action; + + /** + * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + * + * @return the iPAddressOrRange value + */ + public String iPAddressOrRange() { + return this.iPAddressOrRange; + } + + /** + * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + * + * @param iPAddressOrRange the iPAddressOrRange value to set + * @return the IPRule object itself. + */ + public IPRule withIPAddressOrRange(String iPAddressOrRange) { + this.iPAddressOrRange = iPAddressOrRange; + return this; + } + + /** + * Get the action of IP ACL rule. Possible values include: 'Allow'. + * + * @return the action value + */ + public Action action() { + return this.action; + } + + /** + * Set the action of IP ACL rule. Possible values include: 'Allow'. + * + * @param action the action value to set + * @return the IPRule object itself. + */ + public IPRule withAction(Action action) { + this.action = action; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Identity.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Identity.java new file mode 100644 index 0000000000000..a39e940448fbd --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Identity.java @@ -0,0 +1,80 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Identity for the resource. + */ +public class Identity { + /** + * The principal ID of resource identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private String principalId; + + /** + * The tenant ID of resource. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private String tenantId; + + /** + * The identity type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Creates an instance of Identity class. + */ + public Identity() { + type = "SystemAssigned"; + } + + /** + * Get the principal ID of resource identity. + * + * @return the principalId value + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the tenant ID of resource. + * + * @return the tenantId value + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get the identity type. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the identity type. + * + * @param type the type value to set + * @return the Identity object itself. + */ + public Identity withType(String type) { + this.type = type; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicy.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicy.java new file mode 100644 index 0000000000000..a70873dc21f39 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicy.java @@ -0,0 +1,120 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.ImmutabilityPolicyInner; +import com.microsoft.azure.arm.model.Indexable; +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.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; + +/** + * Type representing ImmutabilityPolicy. + */ +public interface ImmutabilityPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the etag value. + */ + String etag(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the immutabilityPeriodSinceCreationInDays value. + */ + int immutabilityPeriodSinceCreationInDays(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the state value. + */ + ImmutabilityPolicyState state(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the ImmutabilityPolicy definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithContainer, DefinitionStages.WithImmutabilityPeriodSinceCreationInDays, DefinitionStages.WithCreate { + } + + /** + * Grouping of ImmutabilityPolicy definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a ImmutabilityPolicy definition. + */ + interface Blank extends WithContainer { + } + + /** + * The stage of the immutabilitypolicy definition allowing to specify Container. + */ + interface WithContainer { + /** + * Specifies resourceGroupName, accountName, containerName. + */ + WithImmutabilityPeriodSinceCreationInDays withExistingContainer(String resourceGroupName, String accountName, String containerName); + } + + /** + * The stage of the immutabilitypolicy definition allowing to specify ImmutabilityPeriodSinceCreationInDays. + */ + interface WithImmutabilityPeriodSinceCreationInDays { + /** + * Specifies immutabilityPeriodSinceCreationInDays. + */ + WithCreate withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays); + } + + /** + * 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 { + } + } + /** + * The template for a ImmutabilityPolicy update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithImmutabilityPeriodSinceCreationInDays { + } + + /** + * Grouping of ImmutabilityPolicy update stages. + */ + interface UpdateStages { + /** + * The stage of the immutabilitypolicy update allowing to specify ImmutabilityPeriodSinceCreationInDays. + */ + interface WithImmutabilityPeriodSinceCreationInDays { + /** + * Specifies immutabilityPeriodSinceCreationInDays. + */ + Update withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays); + } + + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyProperties.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyProperties.java new file mode 100644 index 0000000000000..265ba7f39c34b --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyProperties.java @@ -0,0 +1,94 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * The properties of an ImmutabilityPolicy of a blob container. + */ +@JsonFlatten +public class ImmutabilityPolicyProperties { + /** + * The immutability period for the blobs in the container since the policy + * creation, in days. + */ + @JsonProperty(value = "properties.immutabilityPeriodSinceCreationInDays", required = true) + private int immutabilityPeriodSinceCreationInDays; + + /** + * The ImmutabilityPolicy state of a blob container, possible values + * include: Locked and Unlocked. Possible values include: 'Locked', + * 'Unlocked'. + */ + @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) + private ImmutabilityPolicyState state; + + /** + * ImmutabilityPolicy Etag. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * The ImmutabilityPolicy update history of the blob container. + */ + @JsonProperty(value = "updateHistory", access = JsonProperty.Access.WRITE_ONLY) + private List updateHistory; + + /** + * Get the immutability period for the blobs in the container since the policy creation, in days. + * + * @return the immutabilityPeriodSinceCreationInDays value + */ + public int immutabilityPeriodSinceCreationInDays() { + return this.immutabilityPeriodSinceCreationInDays; + } + + /** + * Set the immutability period for the blobs in the container since the policy creation, in days. + * + * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set + * @return the ImmutabilityPolicyProperties object itself. + */ + public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays) { + this.immutabilityPeriodSinceCreationInDays = immutabilityPeriodSinceCreationInDays; + return this; + } + + /** + * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. + * + * @return the state value + */ + public ImmutabilityPolicyState state() { + return this.state; + } + + /** + * Get immutabilityPolicy Etag. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get the ImmutabilityPolicy update history of the blob container. + * + * @return the updateHistory value + */ + public List updateHistory() { + return this.updateHistory; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyState.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyState.java new file mode 100644 index 0000000000000..24db04ba66297 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyState.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ImmutabilityPolicyState. + */ +public final class ImmutabilityPolicyState extends ExpandableStringEnum { + /** Static value Locked for ImmutabilityPolicyState. */ + public static final ImmutabilityPolicyState LOCKED = fromString("Locked"); + + /** Static value Unlocked for ImmutabilityPolicyState. */ + public static final ImmutabilityPolicyState UNLOCKED = fromString("Unlocked"); + + /** + * Creates or finds a ImmutabilityPolicyState from its string representation. + * @param name a name to look for + * @return the corresponding ImmutabilityPolicyState + */ + @JsonCreator + public static ImmutabilityPolicyState fromString(String name) { + return fromString(name, ImmutabilityPolicyState.class); + } + + /** + * @return known ImmutabilityPolicyState values + */ + public static Collection values() { + return values(ImmutabilityPolicyState.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyUpdateType.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyUpdateType.java new file mode 100644 index 0000000000000..f74d6ad53bf7c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ImmutabilityPolicyUpdateType.java @@ -0,0 +1,44 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ImmutabilityPolicyUpdateType. + */ +public final class ImmutabilityPolicyUpdateType extends ExpandableStringEnum { + /** Static value put for ImmutabilityPolicyUpdateType. */ + public static final ImmutabilityPolicyUpdateType PUT = fromString("put"); + + /** Static value lock for ImmutabilityPolicyUpdateType. */ + public static final ImmutabilityPolicyUpdateType LOCK = fromString("lock"); + + /** Static value extend for ImmutabilityPolicyUpdateType. */ + public static final ImmutabilityPolicyUpdateType EXTEND = fromString("extend"); + + /** + * Creates or finds a ImmutabilityPolicyUpdateType from its string representation. + * @param name a name to look for + * @return the corresponding ImmutabilityPolicyUpdateType + */ + @JsonCreator + public static ImmutabilityPolicyUpdateType fromString(String name) { + return fromString(name, ImmutabilityPolicyUpdateType.class); + } + + /** + * @return known ImmutabilityPolicyUpdateType values + */ + public static Collection values() { + return values(ImmutabilityPolicyUpdateType.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyPermission.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyPermission.java new file mode 100644 index 0000000000000..a86ee51c918a6 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyPermission.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for KeyPermission. + */ +public enum KeyPermission { + /** Enum value Read. */ + READ("Read"), + + /** Enum value Full. */ + FULL("Full"); + + /** The actual serialized value for a KeyPermission instance. */ + private String value; + + KeyPermission(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a KeyPermission instance. + * + * @param value the serialized value to parse. + * @return the parsed KeyPermission object, or null if unable to parse. + */ + @JsonCreator + public static KeyPermission fromString(String value) { + KeyPermission[] items = KeyPermission.values(); + for (KeyPermission item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeySource.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeySource.java new file mode 100644 index 0000000000000..066a305ca683b --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeySource.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for KeySource. + */ +public final class KeySource extends ExpandableStringEnum { + /** Static value Microsoft.Storage for KeySource. */ + public static final KeySource MICROSOFT_STORAGE = fromString("Microsoft.Storage"); + + /** Static value Microsoft.Keyvault for KeySource. */ + public static final KeySource MICROSOFT_KEYVAULT = fromString("Microsoft.Keyvault"); + + /** + * Creates or finds a KeySource from its string representation. + * @param name a name to look for + * @return the corresponding KeySource + */ + @JsonCreator + public static KeySource fromString(String name) { + return fromString(name, KeySource.class); + } + + /** + * @return known KeySource values + */ + public static Collection values() { + return values(KeySource.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyVaultProperties.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyVaultProperties.java new file mode 100644 index 0000000000000..95fa4c9830c9c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/KeyVaultProperties.java @@ -0,0 +1,95 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of key vault. + */ +public class KeyVaultProperties { + /** + * The name of KeyVault key. + */ + @JsonProperty(value = "keyname") + private String keyName; + + /** + * The version of KeyVault key. + */ + @JsonProperty(value = "keyversion") + private String keyVersion; + + /** + * The Uri of KeyVault. + */ + @JsonProperty(value = "keyvaulturi") + private String keyVaultUri; + + /** + * Get the name of KeyVault key. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Set the name of KeyVault key. + * + * @param keyName the keyName value to set + * @return the KeyVaultProperties object itself. + */ + public KeyVaultProperties withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Get the version of KeyVault key. + * + * @return the keyVersion value + */ + public String keyVersion() { + return this.keyVersion; + } + + /** + * Set the version of KeyVault key. + * + * @param keyVersion the keyVersion value to set + * @return the KeyVaultProperties object itself. + */ + public KeyVaultProperties withKeyVersion(String keyVersion) { + this.keyVersion = keyVersion; + return this; + } + + /** + * Get the Uri of KeyVault. + * + * @return the keyVaultUri value + */ + public String keyVaultUri() { + return this.keyVaultUri; + } + + /** + * Set the Uri of KeyVault. + * + * @param keyVaultUri the keyVaultUri value to set + * @return the KeyVaultProperties object itself. + */ + public KeyVaultProperties withKeyVaultUri(String keyVaultUri) { + this.keyVaultUri = keyVaultUri; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Kind.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Kind.java new file mode 100644 index 0000000000000..a51356efc98ae --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Kind.java @@ -0,0 +1,62 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for Kind. + */ +public enum Kind { + /** Enum value Storage. */ + STORAGE("Storage"), + + /** Enum value StorageV2. */ + STORAGE_V2("StorageV2"), + + /** Enum value BlobStorage. */ + BLOB_STORAGE("BlobStorage"), + + /** Enum value FileStorage. */ + FILE_STORAGE("FileStorage"), + + /** Enum value BlockBlobStorage. */ + BLOCK_BLOB_STORAGE("BlockBlobStorage"); + + /** The actual serialized value for a Kind instance. */ + private String value; + + Kind(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a Kind instance. + * + * @param value the serialized value to parse. + * @return the parsed Kind object, or null if unable to parse. + */ + @JsonCreator + public static Kind fromString(String value) { + Kind[] items = Kind.values(); + for (Kind item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseDuration.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseDuration.java new file mode 100644 index 0000000000000..d1d6da00b952c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseDuration.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for LeaseDuration. + */ +public final class LeaseDuration extends ExpandableStringEnum { + /** Static value Infinite for LeaseDuration. */ + public static final LeaseDuration INFINITE = fromString("Infinite"); + + /** Static value Fixed for LeaseDuration. */ + public static final LeaseDuration FIXED = fromString("Fixed"); + + /** + * Creates or finds a LeaseDuration from its string representation. + * @param name a name to look for + * @return the corresponding LeaseDuration + */ + @JsonCreator + public static LeaseDuration fromString(String name) { + return fromString(name, LeaseDuration.class); + } + + /** + * @return known LeaseDuration values + */ + public static Collection values() { + return values(LeaseDuration.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseState.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseState.java new file mode 100644 index 0000000000000..1f772b5cb0470 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseState.java @@ -0,0 +1,50 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for LeaseState. + */ +public final class LeaseState extends ExpandableStringEnum { + /** Static value Available for LeaseState. */ + public static final LeaseState AVAILABLE = fromString("Available"); + + /** Static value Leased for LeaseState. */ + public static final LeaseState LEASED = fromString("Leased"); + + /** Static value Expired for LeaseState. */ + public static final LeaseState EXPIRED = fromString("Expired"); + + /** Static value Breaking for LeaseState. */ + public static final LeaseState BREAKING = fromString("Breaking"); + + /** Static value Broken for LeaseState. */ + public static final LeaseState BROKEN = fromString("Broken"); + + /** + * Creates or finds a LeaseState from its string representation. + * @param name a name to look for + * @return the corresponding LeaseState + */ + @JsonCreator + public static LeaseState fromString(String name) { + return fromString(name, LeaseState.class); + } + + /** + * @return known LeaseState values + */ + public static Collection values() { + return values(LeaseState.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseStatus.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseStatus.java new file mode 100644 index 0000000000000..fcf25e9cb1273 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LeaseStatus.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for LeaseStatus. + */ +public final class LeaseStatus extends ExpandableStringEnum { + /** Static value Locked for LeaseStatus. */ + public static final LeaseStatus LOCKED = fromString("Locked"); + + /** Static value Unlocked for LeaseStatus. */ + public static final LeaseStatus UNLOCKED = fromString("Unlocked"); + + /** + * Creates or finds a LeaseStatus from its string representation. + * @param name a name to look for + * @return the corresponding LeaseStatus + */ + @JsonCreator + public static LeaseStatus fromString(String name) { + return fromString(name, LeaseStatus.class); + } + + /** + * @return known LeaseStatus values + */ + public static Collection values() { + return values(LeaseStatus.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHold.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHold.java new file mode 100644 index 0000000000000..cbbf13b3b23c3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHold.java @@ -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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.LegalHoldInner; +import java.util.List; + +/** + * Type representing LegalHold. + */ +public interface LegalHold extends HasInner, HasManager { + /** + * @return the hasLegalHold value. + */ + Boolean hasLegalHold(); + + /** + * @return the tags value. + */ + List tags(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHoldProperties.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHoldProperties.java new file mode 100644 index 0000000000000..1f599f3b760d7 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/LegalHoldProperties.java @@ -0,0 +1,63 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The LegalHold property of a blob container. + */ +public class LegalHoldProperties { + /** + * The hasLegalHold public property is set to true by SRP if there are at + * least one existing tag. The hasLegalHold public property is set to false + * by SRP if all existing legal hold tags are cleared out. There can be a + * maximum of 1000 blob containers with hasLegalHold=true for a given + * account. + */ + @JsonProperty(value = "hasLegalHold", access = JsonProperty.Access.WRITE_ONLY) + private Boolean hasLegalHold; + + /** + * The list of LegalHold tags of a blob container. + */ + @JsonProperty(value = "tags") + private List tags; + + /** + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + * + * @return the hasLegalHold value + */ + public Boolean hasLegalHold() { + return this.hasLegalHold; + } + + /** + * Get the list of LegalHold tags of a blob container. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Set the list of LegalHold tags of a blob container. + * + * @param tags the tags value to set + * @return the LegalHoldProperties object itself. + */ + public LegalHoldProperties withTags(List tags) { + this.tags = tags; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListAccountSasResponse.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListAccountSasResponse.java new file mode 100644 index 0000000000000..e4c73fde7516d --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListAccountSasResponse.java @@ -0,0 +1,25 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.ListAccountSasResponseInner; + +/** + * Type representing ListAccountSasResponse. + */ +public interface ListAccountSasResponse extends HasInner, HasManager { + /** + * @return the accountSasToken value. + */ + String accountSasToken(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItem.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItem.java new file mode 100644 index 0000000000000..c93c2a5921ac8 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItem.java @@ -0,0 +1,205 @@ +/** + * 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.storage.v2018_07_01; + +import org.joda.time.DateTime; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * The blob container properties be listed out. + */ +@JsonFlatten +public class ListContainerItem extends AzureEntityResource { + /** + * Specifies whether data in the container may be accessed publicly and the + * level of access. Possible values include: 'Container', 'Blob', 'None'. + */ + @JsonProperty(value = "properties.publicAccess") + private PublicAccess publicAccess; + + /** + * Returns the date and time the container was last modified. + */ + @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastModifiedTime; + + /** + * The lease status of the container. Possible values include: 'Locked', + * 'Unlocked'. + */ + @JsonProperty(value = "properties.leaseStatus", access = JsonProperty.Access.WRITE_ONLY) + private LeaseStatus leaseStatus; + + /** + * Lease state of the container. Possible values include: 'Available', + * 'Leased', 'Expired', 'Breaking', 'Broken'. + */ + @JsonProperty(value = "properties.leaseState", access = JsonProperty.Access.WRITE_ONLY) + private LeaseState leaseState; + + /** + * Specifies whether the lease on a container is of infinite or fixed + * duration, only when the container is leased. Possible values include: + * 'Infinite', 'Fixed'. + */ + @JsonProperty(value = "properties.leaseDuration", access = JsonProperty.Access.WRITE_ONLY) + private LeaseDuration leaseDuration; + + /** + * A name-value pair to associate with the container as metadata. + */ + @JsonProperty(value = "properties.metadata") + private Map metadata; + + /** + * The ImmutabilityPolicy property of the container. + */ + @JsonProperty(value = "properties.immutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) + private ImmutabilityPolicyProperties immutabilityPolicy; + + /** + * The LegalHold property of the container. + */ + @JsonProperty(value = "properties.legalHold", access = JsonProperty.Access.WRITE_ONLY) + private LegalHoldProperties legalHold; + + /** + * The hasLegalHold public property is set to true by SRP if there are at + * least one existing tag. The hasLegalHold public property is set to false + * by SRP if all existing legal hold tags are cleared out. There can be a + * maximum of 1000 blob containers with hasLegalHold=true for a given + * account. + */ + @JsonProperty(value = "properties.hasLegalHold", access = JsonProperty.Access.WRITE_ONLY) + private Boolean hasLegalHold; + + /** + * The hasImmutabilityPolicy public property is set to true by SRP if + * ImmutabilityPolicy has been created for this container. The + * hasImmutabilityPolicy public property is set to false by SRP if + * ImmutabilityPolicy has not been created for this container. + */ + @JsonProperty(value = "properties.hasImmutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) + private Boolean hasImmutabilityPolicy; + + /** + * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. + * + * @return the publicAccess value + */ + public PublicAccess publicAccess() { + return this.publicAccess; + } + + /** + * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. + * + * @param publicAccess the publicAccess value to set + * @return the ListContainerItem object itself. + */ + public ListContainerItem withPublicAccess(PublicAccess publicAccess) { + this.publicAccess = publicAccess; + return this; + } + + /** + * Get returns the date and time the container was last modified. + * + * @return the lastModifiedTime value + */ + public DateTime lastModifiedTime() { + return this.lastModifiedTime; + } + + /** + * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. + * + * @return the leaseStatus value + */ + public LeaseStatus leaseStatus() { + return this.leaseStatus; + } + + /** + * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. + * + * @return the leaseState value + */ + public LeaseState leaseState() { + return this.leaseState; + } + + /** + * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. + * + * @return the leaseDuration value + */ + public LeaseDuration leaseDuration() { + return this.leaseDuration; + } + + /** + * Get a name-value pair to associate with the container as metadata. + * + * @return the metadata value + */ + public Map metadata() { + return this.metadata; + } + + /** + * Set a name-value pair to associate with the container as metadata. + * + * @param metadata the metadata value to set + * @return the ListContainerItem object itself. + */ + public ListContainerItem withMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the ImmutabilityPolicy property of the container. + * + * @return the immutabilityPolicy value + */ + public ImmutabilityPolicyProperties immutabilityPolicy() { + return this.immutabilityPolicy; + } + + /** + * Get the LegalHold property of the container. + * + * @return the legalHold value + */ + public LegalHoldProperties legalHold() { + return this.legalHold; + } + + /** + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + * + * @return the hasLegalHold value + */ + public Boolean hasLegalHold() { + return this.hasLegalHold; + } + + /** + * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. + * + * @return the hasImmutabilityPolicy value + */ + public Boolean hasImmutabilityPolicy() { + return this.hasImmutabilityPolicy; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItems.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItems.java new file mode 100644 index 0000000000000..ce20298f3f3a3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListContainerItems.java @@ -0,0 +1,26 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.ListContainerItemsInner; +import java.util.List; + +/** + * Type representing ListContainerItems. + */ +public interface ListContainerItems extends HasInner, HasManager { + /** + * @return the value value. + */ + List value(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListServiceSasResponse.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListServiceSasResponse.java new file mode 100644 index 0000000000000..2e650ad268823 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ListServiceSasResponse.java @@ -0,0 +1,25 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.ListServiceSasResponseInner; + +/** + * Type representing ListServiceSasResponse. + */ +public interface ListServiceSasResponse extends HasInner, HasManager { + /** + * @return the serviceSasToken value. + */ + String serviceSasToken(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/MetricSpecification.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/MetricSpecification.java new file mode 100644 index 0000000000000..0bc0bdbf0ca69 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/MetricSpecification.java @@ -0,0 +1,252 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Metric specification of operation. + */ +public class MetricSpecification { + /** + * Name of metric specification. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Display name of metric specification. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Display description of metric specification. + */ + @JsonProperty(value = "displayDescription") + private String displayDescription; + + /** + * Unit could be Bytes or Count. + */ + @JsonProperty(value = "unit") + private String unit; + + /** + * Dimensions of blobs, including blob type and access tier. + */ + @JsonProperty(value = "dimensions") + private List dimensions; + + /** + * Aggregation type could be Average. + */ + @JsonProperty(value = "aggregationType") + private String aggregationType; + + /** + * The property to decide fill gap with zero or not. + */ + @JsonProperty(value = "fillGapWithZero") + private Boolean fillGapWithZero; + + /** + * The category this metric specification belong to, could be Capacity. + */ + @JsonProperty(value = "category") + private String category; + + /** + * Account Resource Id. + */ + @JsonProperty(value = "resourceIdDimensionNameOverride") + private String resourceIdDimensionNameOverride; + + /** + * Get name of metric specification. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set name of metric specification. + * + * @param name the name value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get display name of metric specification. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set display name of metric specification. + * + * @param displayName the displayName value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get display description of metric specification. + * + * @return the displayDescription value + */ + public String displayDescription() { + return this.displayDescription; + } + + /** + * Set display description of metric specification. + * + * @param displayDescription the displayDescription value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withDisplayDescription(String displayDescription) { + this.displayDescription = displayDescription; + return this; + } + + /** + * Get unit could be Bytes or Count. + * + * @return the unit value + */ + public String unit() { + return this.unit; + } + + /** + * Set unit could be Bytes or Count. + * + * @param unit the unit value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get dimensions of blobs, including blob type and access tier. + * + * @return the dimensions value + */ + public List dimensions() { + return this.dimensions; + } + + /** + * Set dimensions of blobs, including blob type and access tier. + * + * @param dimensions the dimensions value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withDimensions(List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Get aggregation type could be Average. + * + * @return the aggregationType value + */ + public String aggregationType() { + return this.aggregationType; + } + + /** + * Set aggregation type could be Average. + * + * @param aggregationType the aggregationType value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withAggregationType(String aggregationType) { + this.aggregationType = aggregationType; + return this; + } + + /** + * Get the property to decide fill gap with zero or not. + * + * @return the fillGapWithZero value + */ + public Boolean fillGapWithZero() { + return this.fillGapWithZero; + } + + /** + * Set the property to decide fill gap with zero or not. + * + * @param fillGapWithZero the fillGapWithZero value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { + this.fillGapWithZero = fillGapWithZero; + return this; + } + + /** + * Get the category this metric specification belong to, could be Capacity. + * + * @return the category value + */ + public String category() { + return this.category; + } + + /** + * Set the category this metric specification belong to, could be Capacity. + * + * @param category the category value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withCategory(String category) { + this.category = category; + return this; + } + + /** + * Get account Resource Id. + * + * @return the resourceIdDimensionNameOverride value + */ + public String resourceIdDimensionNameOverride() { + return this.resourceIdDimensionNameOverride; + } + + /** + * Set account Resource Id. + * + * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set + * @return the MetricSpecification object itself. + */ + public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) { + this.resourceIdDimensionNameOverride = resourceIdDimensionNameOverride; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/NetworkRuleSet.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/NetworkRuleSet.java new file mode 100644 index 0000000000000..9e2f99d27005b --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/NetworkRuleSet.java @@ -0,0 +1,127 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Network rule set. + */ +public class NetworkRuleSet { + /** + * Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. + * Possible values are any combination of Logging|Metrics|AzureServices + * (For example, "Logging, Metrics"), or None to bypass none of those + * traffics. Possible values include: 'None', 'Logging', 'Metrics', + * 'AzureServices'. + */ + @JsonProperty(value = "bypass") + private Bypass bypass; + + /** + * Sets the virtual network rules. + */ + @JsonProperty(value = "virtualNetworkRules") + private List virtualNetworkRules; + + /** + * Sets the IP ACL rules. + */ + @JsonProperty(value = "ipRules") + private List ipRules; + + /** + * Specifies the default action of allow or deny when no other rules match. + * Possible values include: 'Allow', 'Deny'. + */ + @JsonProperty(value = "defaultAction", required = true) + private DefaultAction defaultAction; + + /** + * Get specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. + * + * @return the bypass value + */ + public Bypass bypass() { + return this.bypass; + } + + /** + * Set specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. + * + * @param bypass the bypass value to set + * @return the NetworkRuleSet object itself. + */ + public NetworkRuleSet withBypass(Bypass bypass) { + this.bypass = bypass; + return this; + } + + /** + * Get sets the virtual network rules. + * + * @return the virtualNetworkRules value + */ + public List virtualNetworkRules() { + return this.virtualNetworkRules; + } + + /** + * Set sets the virtual network rules. + * + * @param virtualNetworkRules the virtualNetworkRules value to set + * @return the NetworkRuleSet object itself. + */ + public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules) { + this.virtualNetworkRules = virtualNetworkRules; + return this; + } + + /** + * Get sets the IP ACL rules. + * + * @return the ipRules value + */ + public List ipRules() { + return this.ipRules; + } + + /** + * Set sets the IP ACL rules. + * + * @param ipRules the ipRules value to set + * @return the NetworkRuleSet object itself. + */ + public NetworkRuleSet withIpRules(List ipRules) { + this.ipRules = ipRules; + return this; + } + + /** + * Get specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. + * + * @return the defaultAction value + */ + public DefaultAction defaultAction() { + return this.defaultAction; + } + + /** + * Set specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. + * + * @param defaultAction the defaultAction value to set + * @return the NetworkRuleSet object itself. + */ + public NetworkRuleSet withDefaultAction(DefaultAction defaultAction) { + this.defaultAction = defaultAction; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operation.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operation.java new file mode 100644 index 0000000000000..b59c5459d7c94 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operation.java @@ -0,0 +1,40 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.OperationInner; + +/** + * Type representing Operation. + */ +public interface Operation extends HasInner, HasManager { + /** + * @return the display value. + */ + OperationDisplay display(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the origin value. + */ + String origin(); + + /** + * @return the serviceSpecification value. + */ + ServiceSpecification serviceSpecification(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/OperationDisplay.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/OperationDisplay.java new file mode 100644 index 0000000000000..2a6eef8610ee8 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/OperationDisplay.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Display metadata associated with the operation. + */ +public class OperationDisplay { + /** + * Service provider: Microsoft Storage. + */ + @JsonProperty(value = "provider") + private String provider; + + /** + * Resource on which the operation is performed etc. + */ + @JsonProperty(value = "resource") + private String resource; + + /** + * Type of operation: get, read, delete, etc. + */ + @JsonProperty(value = "operation") + private String operation; + + /** + * Description of the operation. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Get service provider: Microsoft Storage. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Set service provider: Microsoft Storage. + * + * @param provider the provider value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withProvider(String provider) { + this.provider = provider; + return this; + } + + /** + * Get resource on which the operation is performed etc. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set resource on which the operation is performed etc. + * + * @param resource the resource value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withResource(String resource) { + this.resource = resource; + return this; + } + + /** + * Get type of operation: get, read, delete, etc. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Set type of operation: get, read, delete, etc. + * + * @param operation the operation value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withOperation(String operation) { + this.operation = operation; + return this; + } + + /** + * Get description of the operation. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set description of the operation. + * + * @param description the description value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operations.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operations.java new file mode 100644 index 0000000000000..040e58afb869d --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Operations.java @@ -0,0 +1,27 @@ +/** + * 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.storage.v2018_07_01; + +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.OperationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Operations. + */ +public interface Operations extends HasInner { + /** + * Lists all of the available Storage Rest API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Permissions.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Permissions.java new file mode 100644 index 0000000000000..1b11ef153b905 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Permissions.java @@ -0,0 +1,59 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for Permissions. + */ +public final class Permissions extends ExpandableStringEnum { + /** Static value r for Permissions. */ + public static final Permissions R = fromString("r"); + + /** Static value d for Permissions. */ + public static final Permissions D = fromString("d"); + + /** Static value w for Permissions. */ + public static final Permissions W = fromString("w"); + + /** Static value l for Permissions. */ + public static final Permissions L = fromString("l"); + + /** Static value a for Permissions. */ + public static final Permissions A = fromString("a"); + + /** Static value c for Permissions. */ + public static final Permissions C = fromString("c"); + + /** Static value u for Permissions. */ + public static final Permissions U = fromString("u"); + + /** Static value p for Permissions. */ + public static final Permissions P = fromString("p"); + + /** + * Creates or finds a Permissions from its string representation. + * @param name a name to look for + * @return the corresponding Permissions + */ + @JsonCreator + public static Permissions fromString(String name) { + return fromString(name, Permissions.class); + } + + /** + * @return known Permissions values + */ + public static Collection values() { + return values(Permissions.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ProvisioningState.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ProvisioningState.java new file mode 100644 index 0000000000000..15114d47bb9b3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ProvisioningState.java @@ -0,0 +1,56 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for ProvisioningState. + */ +public enum ProvisioningState { + /** Enum value Creating. */ + CREATING("Creating"), + + /** Enum value ResolvingDNS. */ + RESOLVING_DNS("ResolvingDNS"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"); + + /** The actual serialized value for a ProvisioningState instance. */ + private String value; + + ProvisioningState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a ProvisioningState instance. + * + * @param value the serialized value to parse. + * @return the parsed ProvisioningState object, or null if unable to parse. + */ + @JsonCreator + public static ProvisioningState fromString(String value) { + ProvisioningState[] items = ProvisioningState.values(); + for (ProvisioningState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/PublicAccess.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/PublicAccess.java new file mode 100644 index 0000000000000..701146c63c681 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/PublicAccess.java @@ -0,0 +1,56 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for PublicAccess. + */ +public enum PublicAccess { + /** Enum value Container. */ + CONTAINER("Container"), + + /** Enum value Blob. */ + BLOB("Blob"), + + /** Enum value None. */ + NONE("None"); + + /** The actual serialized value for a PublicAccess instance. */ + private String value; + + PublicAccess(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a PublicAccess instance. + * + * @param value the serialized value to parse. + * @return the parsed PublicAccess object, or null if unable to parse. + */ + @JsonCreator + public static PublicAccess fromString(String value) { + PublicAccess[] items = PublicAccess.values(); + for (PublicAccess item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Reason.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Reason.java new file mode 100644 index 0000000000000..27036e5965ae7 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Reason.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for Reason. + */ +public enum Reason { + /** Enum value AccountNameInvalid. */ + ACCOUNT_NAME_INVALID("AccountNameInvalid"), + + /** Enum value AlreadyExists. */ + ALREADY_EXISTS("AlreadyExists"); + + /** The actual serialized value for a Reason instance. */ + private String value; + + Reason(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a Reason instance. + * + * @param value the serialized value to parse. + * @return the parsed Reason object, or null if unable to parse. + */ + @JsonCreator + public static Reason fromString(String value) { + Reason[] items = Reason.values(); + for (Reason item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ReasonCode.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ReasonCode.java new file mode 100644 index 0000000000000..d4f8c563aabea --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ReasonCode.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ReasonCode. + */ +public final class ReasonCode extends ExpandableStringEnum { + /** Static value QuotaId for ReasonCode. */ + public static final ReasonCode QUOTA_ID = fromString("QuotaId"); + + /** Static value NotAvailableForSubscription for ReasonCode. */ + public static final ReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION = fromString("NotAvailableForSubscription"); + + /** + * Creates or finds a ReasonCode from its string representation. + * @param name a name to look for + * @return the corresponding ReasonCode + */ + @JsonCreator + public static ReasonCode fromString(String name) { + return fromString(name, ReasonCode.class); + } + + /** + * @return known ReasonCode values + */ + public static Collection values() { + return values(ReasonCode.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Restriction.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Restriction.java new file mode 100644 index 0000000000000..422fc8ef49ba7 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Restriction.java @@ -0,0 +1,80 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The restriction because of which SKU cannot be used. + */ +public class Restriction { + /** + * The type of restrictions. As of now only possible value for this is + * location. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * The value of restrictions. If the restriction type is set to location. + * This would be different locations where the SKU is restricted. + */ + @JsonProperty(value = "values", access = JsonProperty.Access.WRITE_ONLY) + private List values; + + /** + * The reason for the restriction. As of now this can be "QuotaId" or + * "NotAvailableForSubscription". Quota Id is set when the SKU has + * requiredQuotas parameter as the subscription does not belong to that + * quota. The "NotAvailableForSubscription" is related to capacity at DC. + * Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + */ + @JsonProperty(value = "reasonCode") + private ReasonCode reasonCode; + + /** + * Get the type of restrictions. As of now only possible value for this is location. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * + * @return the reasonCode value + */ + public ReasonCode reasonCode() { + return this.reasonCode; + } + + /** + * Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'. + * + * @param reasonCode the reasonCode value to set + * @return the Restriction object itself. + */ + public Restriction withReasonCode(ReasonCode reasonCode) { + this.reasonCode = reasonCode; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SKUCapability.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SKUCapability.java new file mode 100644 index 0000000000000..d6557a5d4f927 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SKUCapability.java @@ -0,0 +1,50 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The capability information in the specified sku, including file encryption, + * network acls, change notification, etc. + */ +public class SKUCapability { + /** + * The name of capability, The capability information in the specified sku, + * including file encryption, network acls, change notification, etc. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * A string value to indicate states of given capability. Possibly 'true' + * or 'false'. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private String value; + + /** + * Get the name of capability, The capability information in the specified sku, including file encryption, network acls, change notification, etc. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get a string value to indicate states of given capability. Possibly 'true' or 'false'. + * + * @return the value value + */ + public String value() { + return this.value; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSasParameters.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSasParameters.java new file mode 100644 index 0000000000000..fc8c469d9632e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSasParameters.java @@ -0,0 +1,493 @@ +/** + * 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.storage.v2018_07_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters to list service SAS credentials of a speicific resource. + */ +public class ServiceSasParameters { + /** + * The canonical path to the signed resource. + */ + @JsonProperty(value = "canonicalizedResource", required = true) + private String canonicalizedResource; + + /** + * The signed services accessible with the service SAS. Possible values + * include: Blob (b), Container (c), File (f), Share (s). Possible values + * include: 'b', 'c', 'f', 's'. + */ + @JsonProperty(value = "signedResource") + private SignedResource resource; + + /** + * The signed permissions for the service SAS. Possible values include: + * Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update + * (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', + * 'c', 'u', 'p'. + */ + @JsonProperty(value = "signedPermission") + private Permissions permissions; + + /** + * An IP address or a range of IP addresses from which to accept requests. + */ + @JsonProperty(value = "signedIp") + private String iPAddressOrRange; + + /** + * The protocol permitted for a request made with the account SAS. Possible + * values include: 'https,http', 'https'. + */ + @JsonProperty(value = "signedProtocol") + private HttpProtocol protocols; + + /** + * The time at which the SAS becomes valid. + */ + @JsonProperty(value = "signedStart") + private DateTime sharedAccessStartTime; + + /** + * The time at which the shared access signature becomes invalid. + */ + @JsonProperty(value = "signedExpiry") + private DateTime sharedAccessExpiryTime; + + /** + * A unique value up to 64 characters in length that correlates to an + * access policy specified for the container, queue, or table. + */ + @JsonProperty(value = "signedIdentifier") + private String identifier; + + /** + * The start of partition key. + */ + @JsonProperty(value = "startPk") + private String partitionKeyStart; + + /** + * The end of partition key. + */ + @JsonProperty(value = "endPk") + private String partitionKeyEnd; + + /** + * The start of row key. + */ + @JsonProperty(value = "startRk") + private String rowKeyStart; + + /** + * The end of row key. + */ + @JsonProperty(value = "endRk") + private String rowKeyEnd; + + /** + * The key to sign the account SAS token with. + */ + @JsonProperty(value = "keyToSign") + private String keyToSign; + + /** + * The response header override for cache control. + */ + @JsonProperty(value = "rscc") + private String cacheControl; + + /** + * The response header override for content disposition. + */ + @JsonProperty(value = "rscd") + private String contentDisposition; + + /** + * The response header override for content encoding. + */ + @JsonProperty(value = "rsce") + private String contentEncoding; + + /** + * The response header override for content language. + */ + @JsonProperty(value = "rscl") + private String contentLanguage; + + /** + * The response header override for content type. + */ + @JsonProperty(value = "rsct") + private String contentType; + + /** + * Get the canonical path to the signed resource. + * + * @return the canonicalizedResource value + */ + public String canonicalizedResource() { + return this.canonicalizedResource; + } + + /** + * Set the canonical path to the signed resource. + * + * @param canonicalizedResource the canonicalizedResource value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withCanonicalizedResource(String canonicalizedResource) { + this.canonicalizedResource = canonicalizedResource; + return this; + } + + /** + * Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. + * + * @return the resource value + */ + public SignedResource resource() { + return this.resource; + } + + /** + * Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'. + * + * @param resource the resource value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withResource(SignedResource resource) { + this.resource = resource; + return this; + } + + /** + * Get the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. + * + * @return the permissions value + */ + public Permissions permissions() { + return this.permissions; + } + + /** + * Set the signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'. + * + * @param permissions the permissions value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withPermissions(Permissions permissions) { + this.permissions = permissions; + return this; + } + + /** + * Get an IP address or a range of IP addresses from which to accept requests. + * + * @return the iPAddressOrRange value + */ + public String iPAddressOrRange() { + return this.iPAddressOrRange; + } + + /** + * Set an IP address or a range of IP addresses from which to accept requests. + * + * @param iPAddressOrRange the iPAddressOrRange value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withIPAddressOrRange(String iPAddressOrRange) { + this.iPAddressOrRange = iPAddressOrRange; + return this; + } + + /** + * Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. + * + * @return the protocols value + */ + public HttpProtocol protocols() { + return this.protocols; + } + + /** + * Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'. + * + * @param protocols the protocols value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withProtocols(HttpProtocol protocols) { + this.protocols = protocols; + return this; + } + + /** + * Get the time at which the SAS becomes valid. + * + * @return the sharedAccessStartTime value + */ + public DateTime sharedAccessStartTime() { + return this.sharedAccessStartTime; + } + + /** + * Set the time at which the SAS becomes valid. + * + * @param sharedAccessStartTime the sharedAccessStartTime value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withSharedAccessStartTime(DateTime sharedAccessStartTime) { + this.sharedAccessStartTime = sharedAccessStartTime; + return this; + } + + /** + * Get the time at which the shared access signature becomes invalid. + * + * @return the sharedAccessExpiryTime value + */ + public DateTime sharedAccessExpiryTime() { + return this.sharedAccessExpiryTime; + } + + /** + * Set the time at which the shared access signature becomes invalid. + * + * @param sharedAccessExpiryTime the sharedAccessExpiryTime value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withSharedAccessExpiryTime(DateTime sharedAccessExpiryTime) { + this.sharedAccessExpiryTime = sharedAccessExpiryTime; + return this; + } + + /** + * Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. + * + * @return the identifier value + */ + public String identifier() { + return this.identifier; + } + + /** + * Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table. + * + * @param identifier the identifier value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Get the start of partition key. + * + * @return the partitionKeyStart value + */ + public String partitionKeyStart() { + return this.partitionKeyStart; + } + + /** + * Set the start of partition key. + * + * @param partitionKeyStart the partitionKeyStart value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart) { + this.partitionKeyStart = partitionKeyStart; + return this; + } + + /** + * Get the end of partition key. + * + * @return the partitionKeyEnd value + */ + public String partitionKeyEnd() { + return this.partitionKeyEnd; + } + + /** + * Set the end of partition key. + * + * @param partitionKeyEnd the partitionKeyEnd value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd) { + this.partitionKeyEnd = partitionKeyEnd; + return this; + } + + /** + * Get the start of row key. + * + * @return the rowKeyStart value + */ + public String rowKeyStart() { + return this.rowKeyStart; + } + + /** + * Set the start of row key. + * + * @param rowKeyStart the rowKeyStart value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withRowKeyStart(String rowKeyStart) { + this.rowKeyStart = rowKeyStart; + return this; + } + + /** + * Get the end of row key. + * + * @return the rowKeyEnd value + */ + public String rowKeyEnd() { + return this.rowKeyEnd; + } + + /** + * Set the end of row key. + * + * @param rowKeyEnd the rowKeyEnd value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withRowKeyEnd(String rowKeyEnd) { + this.rowKeyEnd = rowKeyEnd; + return this; + } + + /** + * Get the key to sign the account SAS token with. + * + * @return the keyToSign value + */ + public String keyToSign() { + return this.keyToSign; + } + + /** + * Set the key to sign the account SAS token with. + * + * @param keyToSign the keyToSign value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withKeyToSign(String keyToSign) { + this.keyToSign = keyToSign; + return this; + } + + /** + * Get the response header override for cache control. + * + * @return the cacheControl value + */ + public String cacheControl() { + return this.cacheControl; + } + + /** + * Set the response header override for cache control. + * + * @param cacheControl the cacheControl value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withCacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * Get the response header override for content disposition. + * + * @return the contentDisposition value + */ + public String contentDisposition() { + return this.contentDisposition; + } + + /** + * Set the response header override for content disposition. + * + * @param contentDisposition the contentDisposition value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withContentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * Get the response header override for content encoding. + * + * @return the contentEncoding value + */ + public String contentEncoding() { + return this.contentEncoding; + } + + /** + * Set the response header override for content encoding. + * + * @param contentEncoding the contentEncoding value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Get the response header override for content language. + * + * @return the contentLanguage value + */ + public String contentLanguage() { + return this.contentLanguage; + } + + /** + * Set the response header override for content language. + * + * @param contentLanguage the contentLanguage value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withContentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Get the response header override for content type. + * + * @return the contentType value + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the response header override for content type. + * + * @param contentType the contentType value to set + * @return the ServiceSasParameters object itself. + */ + public ServiceSasParameters withContentType(String contentType) { + this.contentType = contentType; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSpecification.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSpecification.java new file mode 100644 index 0000000000000..f3133cd729e24 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/ServiceSpecification.java @@ -0,0 +1,44 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * One property of operation, include metric specifications. + */ +public class ServiceSpecification { + /** + * Metric specifications of operation. + */ + @JsonProperty(value = "metricSpecifications") + private List metricSpecifications; + + /** + * Get metric specifications of operation. + * + * @return the metricSpecifications value + */ + public List metricSpecifications() { + return this.metricSpecifications; + } + + /** + * Set metric specifications of operation. + * + * @param metricSpecifications the metricSpecifications value to set + * @return the ServiceSpecification object itself. + */ + public ServiceSpecification withMetricSpecifications(List metricSpecifications) { + this.metricSpecifications = metricSpecifications; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Services.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Services.java new file mode 100644 index 0000000000000..01e9001cd3cae --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Services.java @@ -0,0 +1,47 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for Services. + */ +public final class Services extends ExpandableStringEnum { + /** Static value b for Services. */ + public static final Services B = fromString("b"); + + /** Static value q for Services. */ + public static final Services Q = fromString("q"); + + /** Static value t for Services. */ + public static final Services T = fromString("t"); + + /** Static value f for Services. */ + public static final Services F = fromString("f"); + + /** + * Creates or finds a Services from its string representation. + * @param name a name to look for + * @return the corresponding Services + */ + @JsonCreator + public static Services fromString(String name) { + return fromString(name, Services.class); + } + + /** + * @return known Services values + */ + public static Collection values() { + return values(Services.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResource.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResource.java new file mode 100644 index 0000000000000..1a72f05837d0e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResource.java @@ -0,0 +1,47 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SignedResource. + */ +public final class SignedResource extends ExpandableStringEnum { + /** Static value b for SignedResource. */ + public static final SignedResource B = fromString("b"); + + /** Static value c for SignedResource. */ + public static final SignedResource C = fromString("c"); + + /** Static value f for SignedResource. */ + public static final SignedResource F = fromString("f"); + + /** Static value s for SignedResource. */ + public static final SignedResource S = fromString("s"); + + /** + * Creates or finds a SignedResource from its string representation. + * @param name a name to look for + * @return the corresponding SignedResource + */ + @JsonCreator + public static SignedResource fromString(String name) { + return fromString(name, SignedResource.class); + } + + /** + * @return known SignedResource values + */ + public static Collection values() { + return values(SignedResource.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResourceTypes.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResourceTypes.java new file mode 100644 index 0000000000000..ecbceee368e41 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SignedResourceTypes.java @@ -0,0 +1,44 @@ +/** + * 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.storage.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SignedResourceTypes. + */ +public final class SignedResourceTypes extends ExpandableStringEnum { + /** Static value s for SignedResourceTypes. */ + public static final SignedResourceTypes S = fromString("s"); + + /** Static value c for SignedResourceTypes. */ + public static final SignedResourceTypes C = fromString("c"); + + /** Static value o for SignedResourceTypes. */ + public static final SignedResourceTypes O = fromString("o"); + + /** + * Creates or finds a SignedResourceTypes from its string representation. + * @param name a name to look for + * @return the corresponding SignedResourceTypes + */ + @JsonCreator + public static SignedResourceTypes fromString(String name) { + return fromString(name, SignedResourceTypes.class); + } + + /** + * @return known SignedResourceTypes values + */ + public static Collection values() { + return values(SignedResourceTypes.class); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Sku.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Sku.java new file mode 100644 index 0000000000000..a4fe3ee09924e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Sku.java @@ -0,0 +1,56 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.SkuInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import java.util.List; + +/** + * Type representing Sku. + */ +public interface Sku extends HasInner, HasManager { + /** + * @return the capabilities value. + */ + List capabilities(); + + /** + * @return the kind value. + */ + Kind kind(); + + /** + * @return the locations value. + */ + List locations(); + + /** + * @return the name value. + */ + SkuName name(); + + /** + * @return the resourceType value. + */ + String resourceType(); + + /** + * @return the restrictions value. + */ + List restrictions(); + + /** + * @return the tier value. + */ + SkuTier tier(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuName.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuName.java new file mode 100644 index 0000000000000..18b44967239fe --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuName.java @@ -0,0 +1,65 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for SkuName. + */ +public enum SkuName { + /** Enum value Standard_LRS. */ + STANDARD_LRS("Standard_LRS"), + + /** Enum value Standard_GRS. */ + STANDARD_GRS("Standard_GRS"), + + /** Enum value Standard_RAGRS. */ + STANDARD_RAGRS("Standard_RAGRS"), + + /** Enum value Standard_ZRS. */ + STANDARD_ZRS("Standard_ZRS"), + + /** Enum value Premium_LRS. */ + PREMIUM_LRS("Premium_LRS"), + + /** Enum value Premium_ZRS. */ + PREMIUM_ZRS("Premium_ZRS"); + + /** The actual serialized value for a SkuName instance. */ + private String value; + + SkuName(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a SkuName instance. + * + * @param value the serialized value to parse. + * @return the parsed SkuName object, or null if unable to parse. + */ + @JsonCreator + public static SkuName fromString(String value) { + SkuName[] items = SkuName.values(); + for (SkuName item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuTier.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuTier.java new file mode 100644 index 0000000000000..8faa0f2de4dd8 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/SkuTier.java @@ -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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for SkuTier. + */ +public enum SkuTier { + /** Enum value Standard. */ + STANDARD("Standard"), + + /** Enum value Premium. */ + PREMIUM("Premium"); + + /** The actual serialized value for a SkuTier instance. */ + private String value; + + SkuTier(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a SkuTier instance. + * + * @param value the serialized value to parse. + * @return the parsed SkuTier object, or null if unable to parse. + */ + @JsonCreator + public static SkuTier fromString(String value) { + SkuTier[] items = SkuTier.values(); + for (SkuTier item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Skus.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Skus.java new file mode 100644 index 0000000000000..273599a86d8ca --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Skus.java @@ -0,0 +1,19 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.collection.SupportsListing; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.SkusInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Skus. + */ +public interface Skus extends SupportsListing, HasInner { +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/State.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/State.java new file mode 100644 index 0000000000000..42db8f272b3e3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/State.java @@ -0,0 +1,62 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for State. + */ +public enum State { + /** Enum value provisioning. */ + PROVISIONING("provisioning"), + + /** Enum value deprovisioning. */ + DEPROVISIONING("deprovisioning"), + + /** Enum value succeeded. */ + SUCCEEDED("succeeded"), + + /** Enum value failed. */ + FAILED("failed"), + + /** Enum value networkSourceDeleted. */ + NETWORK_SOURCE_DELETED("networkSourceDeleted"); + + /** The actual serialized value for a State instance. */ + private String value; + + State(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a State instance. + * + * @param value the serialized value to parse. + * @return the parsed State object, or null if unable to parse. + */ + @JsonCreator + public static State fromString(String value) { + State[] items = State.values(); + for (State item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccount.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccount.java new file mode 100644 index 0000000000000..eca1971d1f5f1 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccount.java @@ -0,0 +1,355 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; +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.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.SkuInner; +import org.joda.time.DateTime; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageAccountInner; + +/** + * Type representing StorageAccount. + */ +public interface StorageAccount extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the accessTier value. + */ + AccessTier accessTier(); + + /** + * @return the creationTime value. + */ + DateTime creationTime(); + + /** + * @return the customDomain value. + */ + CustomDomain customDomain(); + + /** + * @return the enableAzureFilesAadIntegration value. + */ + Boolean enableAzureFilesAadIntegration(); + + /** + * @return the enableHttpsTrafficOnly value. + */ + Boolean enableHttpsTrafficOnly(); + + /** + * @return the encryption value. + */ + Encryption encryption(); + + /** + * @return the identity value. + */ + Identity identity(); + + /** + * @return the isHnsEnabled value. + */ + Boolean isHnsEnabled(); + + /** + * @return the kind value. + */ + Kind kind(); + + /** + * @return the lastGeoFailoverTime value. + */ + DateTime lastGeoFailoverTime(); + + /** + * @return the networkRuleSet value. + */ + NetworkRuleSet networkRuleSet(); + + /** + * @return the primaryEndpoints value. + */ + Endpoints primaryEndpoints(); + + /** + * @return the primaryLocation value. + */ + String primaryLocation(); + + /** + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * @return the secondaryEndpoints value. + */ + Endpoints secondaryEndpoints(); + + /** + * @return the secondaryLocation value. + */ + String secondaryLocation(); + + /** + * @return the sku value. + */ + Sku sku(); + + /** + * @return the statusOfPrimary value. + */ + AccountStatus statusOfPrimary(); + + /** + * @return the statusOfSecondary value. + */ + AccountStatus statusOfSecondary(); + + /** + * The entirety of the StorageAccount definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithKind, DefinitionStages.WithSku, DefinitionStages.WithCreate { + } + + /** + * Grouping of StorageAccount definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a StorageAccount definition. + */ + interface Blank extends GroupableResourceCore.DefinitionWithRegion { + } + + /** + * The stage of the StorageAccount definition allowing to specify the resource group. + */ + interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { + } + + /** + * The stage of the storageaccount definition allowing to specify Kind. + */ + interface WithKind { + /** + * Specifies kind. + */ + WithSku withKind(Kind kind); + } + + /** + * The stage of the storageaccount definition allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + */ + WithCreate withSku(SkuInner sku); + } + + /** + * The stage of the storageaccount update allowing to specify AccessTier. + */ + interface WithAccessTier { + /** + * Specifies accessTier. + */ + WithCreate withAccessTier(AccessTier accessTier); + } + + /** + * The stage of the storageaccount update allowing to specify CustomDomain. + */ + interface WithCustomDomain { + /** + * Specifies customDomain. + */ + WithCreate withCustomDomain(CustomDomain customDomain); + } + + /** + * The stage of the storageaccount update allowing to specify EnableAzureFilesAadIntegration. + */ + interface WithEnableAzureFilesAadIntegration { + /** + * Specifies enableAzureFilesAadIntegration. + */ + WithCreate withEnableAzureFilesAadIntegration(Boolean enableAzureFilesAadIntegration); + } + + /** + * The stage of the storageaccount update allowing to specify EnableHttpsTrafficOnly. + */ + interface WithEnableHttpsTrafficOnly { + /** + * Specifies enableHttpsTrafficOnly. + */ + WithCreate withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly); + } + + /** + * The stage of the storageaccount update allowing to specify Encryption. + */ + interface WithEncryption { + /** + * Specifies encryption. + */ + WithCreate withEncryption(Encryption encryption); + } + + /** + * The stage of the storageaccount update allowing to specify Identity. + */ + interface WithIdentity { + /** + * Specifies identity. + */ + WithCreate withIdentity(Identity identity); + } + + /** + * The stage of the storageaccount update allowing to specify IsHnsEnabled. + */ + interface WithIsHnsEnabled { + /** + * Specifies isHnsEnabled. + */ + WithCreate withIsHnsEnabled(Boolean isHnsEnabled); + } + + /** + * The stage of the storageaccount update allowing to specify NetworkRuleSet. + */ + interface WithNetworkRuleSet { + /** + * Specifies networkRuleSet. + */ + WithCreate withNetworkRuleSet(NetworkRuleSet networkRuleSet); + } + + /** + * 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.WithAccessTier, DefinitionStages.WithCustomDomain, DefinitionStages.WithEnableAzureFilesAadIntegration, DefinitionStages.WithEnableHttpsTrafficOnly, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithIsHnsEnabled, DefinitionStages.WithNetworkRuleSet { + } + } + /** + * The template for a StorageAccount update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAccessTier, UpdateStages.WithCustomDomain, UpdateStages.WithEnableAzureFilesAadIntegration, UpdateStages.WithEnableHttpsTrafficOnly, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithKind, UpdateStages.WithNetworkRuleSet, UpdateStages.WithSku { + } + + /** + * Grouping of StorageAccount update stages. + */ + interface UpdateStages { + /** + * The stage of the storageaccount {0} allowing to specify AccessTier. + */ + interface WithAccessTier { + /** + * Specifies accessTier. + */ + Update withAccessTier(AccessTier accessTier); + } + + /** + * The stage of the storageaccount {0} allowing to specify CustomDomain. + */ + interface WithCustomDomain { + /** + * Specifies customDomain. + */ + Update withCustomDomain(CustomDomain customDomain); + } + + /** + * The stage of the storageaccount {0} allowing to specify EnableAzureFilesAadIntegration. + */ + interface WithEnableAzureFilesAadIntegration { + /** + * Specifies enableAzureFilesAadIntegration. + */ + Update withEnableAzureFilesAadIntegration(Boolean enableAzureFilesAadIntegration); + } + + /** + * The stage of the storageaccount {0} allowing to specify EnableHttpsTrafficOnly. + */ + interface WithEnableHttpsTrafficOnly { + /** + * Specifies enableHttpsTrafficOnly. + */ + Update withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly); + } + + /** + * The stage of the storageaccount {0} allowing to specify Encryption. + */ + interface WithEncryption { + /** + * Specifies encryption. + */ + Update withEncryption(Encryption encryption); + } + + /** + * The stage of the storageaccount {0} allowing to specify Identity. + */ + interface WithIdentity { + /** + * Specifies identity. + */ + Update withIdentity(Identity identity); + } + + /** + * The stage of the storageaccount {0} allowing to specify Kind. + */ + interface WithKind { + /** + * Specifies kind. + */ + Update withKind(Kind kind); + } + + /** + * The stage of the storageaccount {0} allowing to specify NetworkRuleSet. + */ + interface WithNetworkRuleSet { + /** + * Specifies networkRuleSet. + */ + Update withNetworkRuleSet(NetworkRuleSet networkRuleSet); + } + + /** + * The stage of the storageaccount {0} allowing to specify Sku. + */ + interface WithSku { + /** + * Specifies sku. + */ + Update withSku(SkuInner sku); + } + + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCheckNameAvailabilityParameters.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCheckNameAvailabilityParameters.java new file mode 100644 index 0000000000000..764a81eb55dce --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCheckNameAvailabilityParameters.java @@ -0,0 +1,77 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters used to check the availabity of the storage account name. + */ +public class StorageAccountCheckNameAvailabilityParameters { + /** + * The storage account name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The type of resource, Microsoft.Storage/storageAccounts. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Creates an instance of StorageAccountCheckNameAvailabilityParameters class. + * @param name the storage account name. + */ + public StorageAccountCheckNameAvailabilityParameters() { + type = "Microsoft.Storage/storageAccounts"; + } + + /** + * Get the storage account name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the storage account name. + * + * @param name the name value to set + * @return the StorageAccountCheckNameAvailabilityParameters object itself. + */ + public StorageAccountCheckNameAvailabilityParameters withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type of resource, Microsoft.Storage/storageAccounts. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type of resource, Microsoft.Storage/storageAccounts. + * + * @param type the type value to set + * @return the StorageAccountCheckNameAvailabilityParameters object itself. + */ + public StorageAccountCheckNameAvailabilityParameters withType(String type) { + this.type = type; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCreateParameters.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCreateParameters.java new file mode 100644 index 0000000000000..049832d7f1c0f --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountCreateParameters.java @@ -0,0 +1,349 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.management.storage.v2018_07_01.implementation.SkuInner; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * The parameters used when creating a storage account. + */ +@JsonFlatten +public class StorageAccountCreateParameters { + /** + * Required. Gets or sets the sku name. + */ + @JsonProperty(value = "sku", required = true) + private SkuInner sku; + + /** + * Required. Indicates the type of storage account. Possible values + * include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', + * 'BlockBlobStorage'. + */ + @JsonProperty(value = "kind", required = true) + private Kind kind; + + /** + * Required. Gets or sets the location of the resource. This will be one of + * the supported and registered Azure Geo Regions (e.g. West US, East US, + * Southeast Asia, etc.). The geo region of a resource cannot be changed + * once it is created, but if an identical geo region is specified on + * update, the request will succeed. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * Gets or sets a list of key value pairs that describe the resource. These + * tags can be used for viewing and grouping this resource (across resource + * groups). A maximum of 15 tags can be provided for a resource. Each tag + * must have a key with a length no greater than 128 characters and a value + * with a length no greater than 256 characters. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The identity of the resource. + */ + @JsonProperty(value = "identity") + private Identity identity; + + /** + * User domain assigned to the storage account. Name is the CNAME source. + * Only one custom domain is supported per storage account at this time. To + * clear the existing custom domain, use an empty string for the custom + * domain name property. + */ + @JsonProperty(value = "properties.customDomain") + private CustomDomain customDomain; + + /** + * Provides the encryption settings on the account. If left unspecified the + * account encryption settings will remain the same. The default setting is + * unencrypted. + */ + @JsonProperty(value = "properties.encryption") + private Encryption encryption; + + /** + * Network rule set. + */ + @JsonProperty(value = "properties.networkAcls") + private NetworkRuleSet networkRuleSet; + + /** + * Required for storage accounts where kind = BlobStorage. The access tier + * used for billing. Possible values include: 'Hot', 'Cool'. + */ + @JsonProperty(value = "properties.accessTier") + private AccessTier accessTier; + + /** + * Enables Azure Files AAD Integration for SMB if sets to true. + */ + @JsonProperty(value = "properties.azureFilesAadIntegration") + private Boolean enableAzureFilesAadIntegration; + + /** + * Allows https traffic only to storage service if sets to true. + */ + @JsonProperty(value = "properties.supportsHttpsTrafficOnly") + private Boolean enableHttpsTrafficOnly; + + /** + * Account HierarchicalNamespace enabled if sets to true. + */ + @JsonProperty(value = "properties.isHnsEnabled") + private Boolean isHnsEnabled; + + /** + * Get required. Gets or sets the sku name. + * + * @return the sku value + */ + public SkuInner sku() { + return this.sku; + } + + /** + * Set required. Gets or sets the sku name. + * + * @param sku the sku value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withSku(SkuInner sku) { + this.sku = sku; + return this; + } + + /** + * Get required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + * + * @return the kind value + */ + public Kind kind() { + return this.kind; + } + + /** + * Set required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + * + * @param kind the kind value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withKind(Kind kind) { + this.kind = kind; + return this; + } + + /** + * Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. + * + * @param location the location value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. + * + * @param tags the tags value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the identity of the resource. + * + * @return the identity value + */ + public Identity identity() { + return this.identity; + } + + /** + * Set the identity of the resource. + * + * @param identity the identity value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withIdentity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + * + * @return the customDomain value + */ + public CustomDomain customDomain() { + return this.customDomain; + } + + /** + * Set user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + * + * @param customDomain the customDomain value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withCustomDomain(CustomDomain customDomain) { + this.customDomain = customDomain; + return this; + } + + /** + * Get provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. + * + * @return the encryption value + */ + public Encryption encryption() { + return this.encryption; + } + + /** + * Set provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted. + * + * @param encryption the encryption value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withEncryption(Encryption encryption) { + this.encryption = encryption; + return this; + } + + /** + * Get network rule set. + * + * @return the networkRuleSet value + */ + public NetworkRuleSet networkRuleSet() { + return this.networkRuleSet; + } + + /** + * Set network rule set. + * + * @param networkRuleSet the networkRuleSet value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet) { + this.networkRuleSet = networkRuleSet; + return this; + } + + /** + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. + * + * @return the accessTier value + */ + public AccessTier accessTier() { + return this.accessTier; + } + + /** + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. + * + * @param accessTier the accessTier value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withAccessTier(AccessTier accessTier) { + this.accessTier = accessTier; + return this; + } + + /** + * Get enables Azure Files AAD Integration for SMB if sets to true. + * + * @return the enableAzureFilesAadIntegration value + */ + public Boolean enableAzureFilesAadIntegration() { + return this.enableAzureFilesAadIntegration; + } + + /** + * Set enables Azure Files AAD Integration for SMB if sets to true. + * + * @param enableAzureFilesAadIntegration the enableAzureFilesAadIntegration value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withEnableAzureFilesAadIntegration(Boolean enableAzureFilesAadIntegration) { + this.enableAzureFilesAadIntegration = enableAzureFilesAadIntegration; + return this; + } + + /** + * Get allows https traffic only to storage service if sets to true. + * + * @return the enableHttpsTrafficOnly value + */ + public Boolean enableHttpsTrafficOnly() { + return this.enableHttpsTrafficOnly; + } + + /** + * Set allows https traffic only to storage service if sets to true. + * + * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly) { + this.enableHttpsTrafficOnly = enableHttpsTrafficOnly; + return this; + } + + /** + * Get account HierarchicalNamespace enabled if sets to true. + * + * @return the isHnsEnabled value + */ + public Boolean isHnsEnabled() { + return this.isHnsEnabled; + } + + /** + * Set account HierarchicalNamespace enabled if sets to true. + * + * @param isHnsEnabled the isHnsEnabled value to set + * @return the StorageAccountCreateParameters object itself. + */ + public StorageAccountCreateParameters withIsHnsEnabled(Boolean isHnsEnabled) { + this.isHnsEnabled = isHnsEnabled; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountKey.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountKey.java new file mode 100644 index 0000000000000..c7033a70aa98d --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountKey.java @@ -0,0 +1,63 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An access key for the storage account. + */ +public class StorageAccountKey { + /** + * Name of the key. + */ + @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY) + private String keyName; + + /** + * Base 64-encoded value of the key. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private String value; + + /** + * Permissions for the key -- read-only or full permissions. Possible + * values include: 'Read', 'Full'. + */ + @JsonProperty(value = "permissions", access = JsonProperty.Access.WRITE_ONLY) + private KeyPermission permissions; + + /** + * Get name of the key. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Get base 64-encoded value of the key. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Get permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full'. + * + * @return the permissions value + */ + public KeyPermission permissions() { + return this.permissions; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountListKeysResult.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountListKeysResult.java new file mode 100644 index 0000000000000..03a175975ec88 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountListKeysResult.java @@ -0,0 +1,26 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageAccountListKeysResultInner; +import java.util.List; + +/** + * Type representing StorageAccountListKeysResult. + */ +public interface StorageAccountListKeysResult extends HasInner, HasManager { + /** + * @return the keys value. + */ + List keys(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountRegenerateKeyParameters.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountRegenerateKeyParameters.java new file mode 100644 index 0000000000000..a81e8d8647dc1 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountRegenerateKeyParameters.java @@ -0,0 +1,44 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters used to regenerate the storage account key. + */ +public class StorageAccountRegenerateKeyParameters { + /** + * The name of storage keys that want to be regenerated, possible vaules + * are key1, key2. + */ + @JsonProperty(value = "keyName", required = true) + private String keyName; + + /** + * Get the name of storage keys that want to be regenerated, possible vaules are key1, key2. + * + * @return the keyName value + */ + public String keyName() { + return this.keyName; + } + + /** + * Set the name of storage keys that want to be regenerated, possible vaules are key1, key2. + * + * @param keyName the keyName value to set + * @return the StorageAccountRegenerateKeyParameters object itself. + */ + public StorageAccountRegenerateKeyParameters withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountUpdateParameters.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountUpdateParameters.java new file mode 100644 index 0000000000000..2970b73066914 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccountUpdateParameters.java @@ -0,0 +1,295 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.management.storage.v2018_07_01.implementation.SkuInner; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * The parameters that can be provided when updating the storage account + * properties. + */ +@JsonFlatten +public class StorageAccountUpdateParameters { + /** + * Gets or sets the SKU name. Note that the SKU name cannot be updated to + * Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those sku + * names be updated to any other value. + */ + @JsonProperty(value = "sku") + private SkuInner sku; + + /** + * Gets or sets a list of key value pairs that describe the resource. These + * tags can be used in viewing and grouping this resource (across resource + * groups). A maximum of 15 tags can be provided for a resource. Each tag + * must have a key no greater in length than 128 characters and a value no + * greater in length than 256 characters. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The identity of the resource. + */ + @JsonProperty(value = "identity") + private Identity identity; + + /** + * Custom domain assigned to the storage account by the user. Name is the + * CNAME source. Only one custom domain is supported per storage account at + * this time. To clear the existing custom domain, use an empty string for + * the custom domain name property. + */ + @JsonProperty(value = "properties.customDomain") + private CustomDomain customDomain; + + /** + * Provides the encryption settings on the account. The default setting is + * unencrypted. + */ + @JsonProperty(value = "properties.encryption") + private Encryption encryption; + + /** + * Required for storage accounts where kind = BlobStorage. The access tier + * used for billing. Possible values include: 'Hot', 'Cool'. + */ + @JsonProperty(value = "properties.accessTier") + private AccessTier accessTier; + + /** + * Enables Azure Files AAD Integration for SMB if sets to true. + */ + @JsonProperty(value = "properties.azureFilesAadIntegration") + private Boolean enableAzureFilesAadIntegration; + + /** + * Allows https traffic only to storage service if sets to true. + */ + @JsonProperty(value = "properties.supportsHttpsTrafficOnly") + private Boolean enableHttpsTrafficOnly; + + /** + * Network rule set. + */ + @JsonProperty(value = "properties.networkAcls") + private NetworkRuleSet networkRuleSet; + + /** + * Optional. Indicates the type of storage account. Currently only + * StorageV2 value supported by server. Possible values include: 'Storage', + * 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + */ + @JsonProperty(value = "kind") + private Kind kind; + + /** + * Get gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those sku names be updated to any other value. + * + * @return the sku value + */ + public SkuInner sku() { + return this.sku; + } + + /** + * Set gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those sku names be updated to any other value. + * + * @param sku the sku value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withSku(SkuInner sku) { + this.sku = sku; + return this; + } + + /** + * Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. + * + * @param tags the tags value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the identity of the resource. + * + * @return the identity value + */ + public Identity identity() { + return this.identity; + } + + /** + * Set the identity of the resource. + * + * @param identity the identity value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withIdentity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + * + * @return the customDomain value + */ + public CustomDomain customDomain() { + return this.customDomain; + } + + /** + * Set custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + * + * @param customDomain the customDomain value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withCustomDomain(CustomDomain customDomain) { + this.customDomain = customDomain; + return this; + } + + /** + * Get provides the encryption settings on the account. The default setting is unencrypted. + * + * @return the encryption value + */ + public Encryption encryption() { + return this.encryption; + } + + /** + * Set provides the encryption settings on the account. The default setting is unencrypted. + * + * @param encryption the encryption value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withEncryption(Encryption encryption) { + this.encryption = encryption; + return this; + } + + /** + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. + * + * @return the accessTier value + */ + public AccessTier accessTier() { + return this.accessTier; + } + + /** + * Set required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. + * + * @param accessTier the accessTier value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withAccessTier(AccessTier accessTier) { + this.accessTier = accessTier; + return this; + } + + /** + * Get enables Azure Files AAD Integration for SMB if sets to true. + * + * @return the enableAzureFilesAadIntegration value + */ + public Boolean enableAzureFilesAadIntegration() { + return this.enableAzureFilesAadIntegration; + } + + /** + * Set enables Azure Files AAD Integration for SMB if sets to true. + * + * @param enableAzureFilesAadIntegration the enableAzureFilesAadIntegration value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withEnableAzureFilesAadIntegration(Boolean enableAzureFilesAadIntegration) { + this.enableAzureFilesAadIntegration = enableAzureFilesAadIntegration; + return this; + } + + /** + * Get allows https traffic only to storage service if sets to true. + * + * @return the enableHttpsTrafficOnly value + */ + public Boolean enableHttpsTrafficOnly() { + return this.enableHttpsTrafficOnly; + } + + /** + * Set allows https traffic only to storage service if sets to true. + * + * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly) { + this.enableHttpsTrafficOnly = enableHttpsTrafficOnly; + return this; + } + + /** + * Get network rule set. + * + * @return the networkRuleSet value + */ + public NetworkRuleSet networkRuleSet() { + return this.networkRuleSet; + } + + /** + * Set network rule set. + * + * @param networkRuleSet the networkRuleSet value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet) { + this.networkRuleSet = networkRuleSet; + return this; + } + + /** + * Get optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + * + * @return the kind value + */ + public Kind kind() { + return this.kind; + } + + /** + * Set optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + * + * @param kind the kind value to set + * @return the StorageAccountUpdateParameters object itself. + */ + public StorageAccountUpdateParameters withKind(Kind kind) { + this.kind = kind; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccounts.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccounts.java new file mode 100644 index 0000000000000..2556de0e4625c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/StorageAccounts.java @@ -0,0 +1,77 @@ +/** + * 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.storage.v2018_07_01; + +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.storage.v2018_07_01.implementation.StorageAccountsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing StorageAccounts. + */ +public interface StorageAccounts extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner { + /** + * Lists the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listKeysAsync(String resourceGroupName, String accountName); + + /** + * Regenerates one of the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible vaules are key1, key2. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable regenerateKeyAsync(String resourceGroupName, String accountName, String keyName); + + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list SAS credentials for the storage account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAccountSASAsync(String resourceGroupName, String accountName, AccountSasParameters parameters); + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list service SAS credentials. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listServiceSASAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters); + + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable checkNameAvailabilityAsync(String name); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/TagProperty.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/TagProperty.java new file mode 100644 index 0000000000000..bbc5be023dc0c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/TagProperty.java @@ -0,0 +1,94 @@ +/** + * 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.storage.v2018_07_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A tag of the LegalHold of a blob container. + */ +public class TagProperty { + /** + * The tag value. + */ + @JsonProperty(value = "tag", access = JsonProperty.Access.WRITE_ONLY) + private String tag; + + /** + * Returns the date and time the tag was added. + */ + @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY) + private DateTime timestamp; + + /** + * Returns the Object ID of the user who added the tag. + */ + @JsonProperty(value = "objectIdentifier", access = JsonProperty.Access.WRITE_ONLY) + private String objectIdentifier; + + /** + * Returns the Tenant ID that issued the token for the user who added the + * tag. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private String tenantId; + + /** + * Returns the User Principal Name of the user who added the tag. + */ + @JsonProperty(value = "upn", access = JsonProperty.Access.WRITE_ONLY) + private String upn; + + /** + * Get the tag value. + * + * @return the tag value + */ + public String tag() { + return this.tag; + } + + /** + * Get returns the date and time the tag was added. + * + * @return the timestamp value + */ + public DateTime timestamp() { + return this.timestamp; + } + + /** + * Get returns the Object ID of the user who added the tag. + * + * @return the objectIdentifier value + */ + public String objectIdentifier() { + return this.objectIdentifier; + } + + /** + * Get returns the Tenant ID that issued the token for the user who added the tag. + * + * @return the tenantId value + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get returns the User Principal Name of the user who added the tag. + * + * @return the upn value + */ + public String upn() { + return this.upn; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UpdateHistoryProperty.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UpdateHistoryProperty.java new file mode 100644 index 0000000000000..f295b2a0edbc6 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UpdateHistoryProperty.java @@ -0,0 +1,113 @@ +/** + * 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.storage.v2018_07_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An update history of the ImmutabilityPolicy of a blob container. + */ +public class UpdateHistoryProperty { + /** + * The ImmutabilityPolicy update type of a blob container, possible values + * include: put, lock and extend. Possible values include: 'put', 'lock', + * 'extend'. + */ + @JsonProperty(value = "update", access = JsonProperty.Access.WRITE_ONLY) + private ImmutabilityPolicyUpdateType update; + + /** + * The immutability period for the blobs in the container since the policy + * creation, in days. + */ + @JsonProperty(value = "immutabilityPeriodSinceCreationInDays", access = JsonProperty.Access.WRITE_ONLY) + private Integer immutabilityPeriodSinceCreationInDays; + + /** + * Returns the date and time the ImmutabilityPolicy was updated. + */ + @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY) + private DateTime timestamp; + + /** + * Returns the Object ID of the user who updated the ImmutabilityPolicy. + */ + @JsonProperty(value = "objectIdentifier", access = JsonProperty.Access.WRITE_ONLY) + private String objectIdentifier; + + /** + * Returns the Tenant ID that issued the token for the user who updated the + * ImmutabilityPolicy. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private String tenantId; + + /** + * Returns the User Principal Name of the user who updated the + * ImmutabilityPolicy. + */ + @JsonProperty(value = "upn", access = JsonProperty.Access.WRITE_ONLY) + private String upn; + + /** + * Get the ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: 'put', 'lock', 'extend'. + * + * @return the update value + */ + public ImmutabilityPolicyUpdateType update() { + return this.update; + } + + /** + * Get the immutability period for the blobs in the container since the policy creation, in days. + * + * @return the immutabilityPeriodSinceCreationInDays value + */ + public Integer immutabilityPeriodSinceCreationInDays() { + return this.immutabilityPeriodSinceCreationInDays; + } + + /** + * Get returns the date and time the ImmutabilityPolicy was updated. + * + * @return the timestamp value + */ + public DateTime timestamp() { + return this.timestamp; + } + + /** + * Get returns the Object ID of the user who updated the ImmutabilityPolicy. + * + * @return the objectIdentifier value + */ + public String objectIdentifier() { + return this.objectIdentifier; + } + + /** + * Get returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. + * + * @return the tenantId value + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get returns the User Principal Name of the user who updated the ImmutabilityPolicy. + * + * @return the upn value + */ + public String upn() { + return this.upn; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usage.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usage.java new file mode 100644 index 0000000000000..d115cfcf2d723 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usage.java @@ -0,0 +1,40 @@ +/** + * 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.storage.v2018_07_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.UsageInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.StorageManager; + +/** + * Type representing Usage. + */ +public interface Usage extends HasInner, HasManager { + /** + * @return the currentValue value. + */ + Integer currentValue(); + + /** + * @return the limit value. + */ + Integer limit(); + + /** + * @return the name value. + */ + UsageName name(); + + /** + * @return the unit value. + */ + UsageUnit unit(); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageName.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageName.java new file mode 100644 index 0000000000000..6510f89ff503c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageName.java @@ -0,0 +1,47 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The usage names that can be used; currently limited to StorageAccount. + */ +public class UsageName { + /** + * Gets a string describing the resource name. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private String value; + + /** + * Gets a localized string describing the resource name. + */ + @JsonProperty(value = "localizedValue", access = JsonProperty.Access.WRITE_ONLY) + private String localizedValue; + + /** + * Get gets a string describing the resource name. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Get gets a localized string describing the resource name. + * + * @return the localizedValue value + */ + public String localizedValue() { + return this.localizedValue; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageUnit.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageUnit.java new file mode 100644 index 0000000000000..554a161241ec9 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/UsageUnit.java @@ -0,0 +1,65 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for UsageUnit. + */ +public enum UsageUnit { + /** Enum value Count. */ + COUNT("Count"), + + /** Enum value Bytes. */ + BYTES("Bytes"), + + /** Enum value Seconds. */ + SECONDS("Seconds"), + + /** Enum value Percent. */ + PERCENT("Percent"), + + /** Enum value CountsPerSecond. */ + COUNTS_PER_SECOND("CountsPerSecond"), + + /** Enum value BytesPerSecond. */ + BYTES_PER_SECOND("BytesPerSecond"); + + /** The actual serialized value for a UsageUnit instance. */ + private String value; + + UsageUnit(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a UsageUnit instance. + * + * @param value the serialized value to parse. + * @return the parsed UsageUnit object, or null if unable to parse. + */ + @JsonCreator + public static UsageUnit fromString(String value) { + UsageUnit[] items = UsageUnit.values(); + for (UsageUnit item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usages.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usages.java new file mode 100644 index 0000000000000..240eba4a29b13 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/Usages.java @@ -0,0 +1,28 @@ +/** + * 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.storage.v2018_07_01; + +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.implementation.UsagesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing Usages. + */ +public interface Usages extends HasInner { + /** + * Gets the current usage count and the limit for the resources of the location under the subscription. + * + * @param location The location of the Azure Storage resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByLocationAsync(String location); + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/VirtualNetworkRule.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/VirtualNetworkRule.java new file mode 100644 index 0000000000000..6d4b45a3d2ace --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/VirtualNetworkRule.java @@ -0,0 +1,98 @@ +/** + * 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.storage.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Virtual Network rule. + */ +public class VirtualNetworkRule { + /** + * Resource ID of a subnet, for example: + * /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + */ + @JsonProperty(value = "id", required = true) + private String virtualNetworkResourceId; + + /** + * The action of virtual network rule. Possible values include: 'Allow'. + */ + @JsonProperty(value = "action") + private Action action; + + /** + * Gets the state of virtual network rule. Possible values include: + * 'provisioning', 'deprovisioning', 'succeeded', 'failed', + * 'networkSourceDeleted'. + */ + @JsonProperty(value = "state") + private State state; + + /** + * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * + * @return the virtualNetworkResourceId value + */ + public String virtualNetworkResourceId() { + return this.virtualNetworkResourceId; + } + + /** + * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * + * @param virtualNetworkResourceId the virtualNetworkResourceId value to set + * @return the VirtualNetworkRule object itself. + */ + public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkResourceId) { + this.virtualNetworkResourceId = virtualNetworkResourceId; + return this; + } + + /** + * Get the action of virtual network rule. Possible values include: 'Allow'. + * + * @return the action value + */ + public Action action() { + return this.action; + } + + /** + * Set the action of virtual network rule. Possible values include: 'Allow'. + * + * @param action the action value to set + * @return the VirtualNetworkRule object itself. + */ + public VirtualNetworkRule withAction(Action action) { + this.action = action; + return this; + } + + /** + * Get gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. + * + * @return the state value + */ + public State state() { + return this.state; + } + + /** + * Set gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'. + * + * @param state the state value to set + * @return the VirtualNetworkRule object itself. + */ + public VirtualNetworkRule withState(State state) { + this.state = state; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerImpl.java new file mode 100644 index 0000000000000..0d07f22990817 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerImpl.java @@ -0,0 +1,157 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainer; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.ImmutabilityPolicyProperties; +import org.joda.time.DateTime; +import com.microsoft.azure.management.storage.v2018_07_01.LeaseDuration; +import com.microsoft.azure.management.storage.v2018_07_01.LeaseState; +import com.microsoft.azure.management.storage.v2018_07_01.LeaseStatus; +import com.microsoft.azure.management.storage.v2018_07_01.LegalHoldProperties; +import java.util.Map; +import com.microsoft.azure.management.storage.v2018_07_01.PublicAccess; + +class BlobContainerImpl extends CreatableUpdatableImpl implements BlobContainer, BlobContainer.Definition, BlobContainer.Update { + private final StorageManager manager; + private String resourceGroupName; + private String accountName; + private String containerName; + + BlobContainerImpl(String name, StorageManager manager) { + super(name, new BlobContainerInner()); + this.manager = manager; + // Set resource name + this.containerName = name; + // + } + + BlobContainerImpl(BlobContainerInner inner, StorageManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.containerName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "storageAccounts"); + this.containerName = IdParsingUtils.getValueFromIdByName(inner.id(), "containers"); + // + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + BlobContainersInner client = this.manager().inner().blobContainers(); + return client.createAsync(this.resourceGroupName, this.accountName, this.containerName) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + BlobContainersInner client = this.manager().inner().blobContainers(); + return client.updateAsync(this.resourceGroupName, this.accountName, this.containerName) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + BlobContainersInner client = this.manager().inner().blobContainers(); + return null; // NOP getInnerAsync implementation as get is not supported + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public Boolean hasImmutabilityPolicy() { + return this.inner().hasImmutabilityPolicy(); + } + + @Override + public Boolean hasLegalHold() { + return this.inner().hasLegalHold(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public ImmutabilityPolicyProperties immutabilityPolicy() { + return this.inner().immutabilityPolicy(); + } + + @Override + public DateTime lastModifiedTime() { + return this.inner().lastModifiedTime(); + } + + @Override + public LeaseDuration leaseDuration() { + return this.inner().leaseDuration(); + } + + @Override + public LeaseState leaseState() { + return this.inner().leaseState(); + } + + @Override + public LeaseStatus leaseStatus() { + return this.inner().leaseStatus(); + } + + @Override + public LegalHoldProperties legalHold() { + return this.inner().legalHold(); + } + + @Override + public Map metadata() { + return this.inner().metadata(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public PublicAccess publicAccess() { + return this.inner().publicAccess(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public BlobContainerImpl withExistingBlobService(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerInner.java new file mode 100644 index 0000000000000..f08e7778f94a6 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainerInner.java @@ -0,0 +1,213 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.PublicAccess; +import org.joda.time.DateTime; +import com.microsoft.azure.management.storage.v2018_07_01.LeaseStatus; +import com.microsoft.azure.management.storage.v2018_07_01.LeaseState; +import com.microsoft.azure.management.storage.v2018_07_01.LeaseDuration; +import java.util.Map; +import com.microsoft.azure.management.storage.v2018_07_01.ImmutabilityPolicyProperties; +import com.microsoft.azure.management.storage.v2018_07_01.LegalHoldProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.storage.v2018_07_01.AzureEntityResource; + +/** + * Properties of the blob container, including Id, resource name, resource + * type, Etag. + */ +@JsonFlatten +public class BlobContainerInner extends AzureEntityResource { + /** + * Specifies whether data in the container may be accessed publicly and the + * level of access. Possible values include: 'Container', 'Blob', 'None'. + */ + @JsonProperty(value = "properties.publicAccess") + private PublicAccess publicAccess; + + /** + * Returns the date and time the container was last modified. + */ + @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastModifiedTime; + + /** + * The lease status of the container. Possible values include: 'Locked', + * 'Unlocked'. + */ + @JsonProperty(value = "properties.leaseStatus", access = JsonProperty.Access.WRITE_ONLY) + private LeaseStatus leaseStatus; + + /** + * Lease state of the container. Possible values include: 'Available', + * 'Leased', 'Expired', 'Breaking', 'Broken'. + */ + @JsonProperty(value = "properties.leaseState", access = JsonProperty.Access.WRITE_ONLY) + private LeaseState leaseState; + + /** + * Specifies whether the lease on a container is of infinite or fixed + * duration, only when the container is leased. Possible values include: + * 'Infinite', 'Fixed'. + */ + @JsonProperty(value = "properties.leaseDuration", access = JsonProperty.Access.WRITE_ONLY) + private LeaseDuration leaseDuration; + + /** + * A name-value pair to associate with the container as metadata. + */ + @JsonProperty(value = "properties.metadata") + private Map metadata; + + /** + * The ImmutabilityPolicy property of the container. + */ + @JsonProperty(value = "properties.immutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) + private ImmutabilityPolicyProperties immutabilityPolicy; + + /** + * The LegalHold property of the container. + */ + @JsonProperty(value = "properties.legalHold", access = JsonProperty.Access.WRITE_ONLY) + private LegalHoldProperties legalHold; + + /** + * The hasLegalHold public property is set to true by SRP if there are at + * least one existing tag. The hasLegalHold public property is set to false + * by SRP if all existing legal hold tags are cleared out. There can be a + * maximum of 1000 blob containers with hasLegalHold=true for a given + * account. + */ + @JsonProperty(value = "properties.hasLegalHold", access = JsonProperty.Access.WRITE_ONLY) + private Boolean hasLegalHold; + + /** + * The hasImmutabilityPolicy public property is set to true by SRP if + * ImmutabilityPolicy has been created for this container. The + * hasImmutabilityPolicy public property is set to false by SRP if + * ImmutabilityPolicy has not been created for this container. + */ + @JsonProperty(value = "properties.hasImmutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) + private Boolean hasImmutabilityPolicy; + + /** + * Get specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. + * + * @return the publicAccess value + */ + public PublicAccess publicAccess() { + return this.publicAccess; + } + + /** + * Set specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None'. + * + * @param publicAccess the publicAccess value to set + * @return the BlobContainerInner object itself. + */ + public BlobContainerInner withPublicAccess(PublicAccess publicAccess) { + this.publicAccess = publicAccess; + return this; + } + + /** + * Get returns the date and time the container was last modified. + * + * @return the lastModifiedTime value + */ + public DateTime lastModifiedTime() { + return this.lastModifiedTime; + } + + /** + * Get the lease status of the container. Possible values include: 'Locked', 'Unlocked'. + * + * @return the leaseStatus value + */ + public LeaseStatus leaseStatus() { + return this.leaseStatus; + } + + /** + * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. + * + * @return the leaseState value + */ + public LeaseState leaseState() { + return this.leaseState; + } + + /** + * Get specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed'. + * + * @return the leaseDuration value + */ + public LeaseDuration leaseDuration() { + return this.leaseDuration; + } + + /** + * Get a name-value pair to associate with the container as metadata. + * + * @return the metadata value + */ + public Map metadata() { + return this.metadata; + } + + /** + * Set a name-value pair to associate with the container as metadata. + * + * @param metadata the metadata value to set + * @return the BlobContainerInner object itself. + */ + public BlobContainerInner withMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the ImmutabilityPolicy property of the container. + * + * @return the immutabilityPolicy value + */ + public ImmutabilityPolicyProperties immutabilityPolicy() { + return this.immutabilityPolicy; + } + + /** + * Get the LegalHold property of the container. + * + * @return the legalHold value + */ + public LegalHoldProperties legalHold() { + return this.legalHold; + } + + /** + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + * + * @return the hasLegalHold value + */ + public Boolean hasLegalHold() { + return this.hasLegalHold; + } + + /** + * Get the hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. + * + * @return the hasImmutabilityPolicy value + */ + public Boolean hasImmutabilityPolicy() { + return this.hasImmutabilityPolicy; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersImpl.java new file mode 100644 index 0000000000000..f95e86181d0f4 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersImpl.java @@ -0,0 +1,165 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainers; +import rx.Completable; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.ListContainerItems; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainer; +import com.microsoft.azure.management.storage.v2018_07_01.LegalHold; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.ImmutabilityPolicy; + +class BlobContainersImpl extends WrapperImpl implements BlobContainers { + private final StorageManager manager; + + BlobContainersImpl(StorageManager manager) { + super(manager.inner().blobContainers()); + this.manager = manager; + } + + public StorageManager manager() { + return this.manager; + } + + @Override + public BlobContainerImpl defineContainer(String name) { + return wrapContainerModel(name); + } + + @Override + public ImmutabilityPolicyImpl defineImmutabilityPolicy(String name) { + return wrapImmutabilityPolicyModel(name); + } + + private BlobContainerImpl wrapContainerModel(String name) { + return new BlobContainerImpl(name, this.manager()); + } + + private ImmutabilityPolicyImpl wrapImmutabilityPolicyModel(String name) { + return new ImmutabilityPolicyImpl(name, this.manager()); + } + + private BlobContainerImpl wrapBlobContainerModel(BlobContainerInner inner) { + return new BlobContainerImpl(inner, manager()); + } + + private ImmutabilityPolicyImpl wrapImmutabilityPolicyModel(ImmutabilityPolicyInner inner) { + return new ImmutabilityPolicyImpl(inner, manager()); + } + + private Observable getImmutabilityPolicyInnerUsingBlobContainersInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String accountName = IdParsingUtils.getValueFromIdByName(id, "storageAccounts"); + String containerName = IdParsingUtils.getValueFromIdByName(id, "containers"); + BlobContainersInner client = this.inner(); + return client.getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName); + } + + @Override + public Observable listAsync(String resourceGroupName, String accountName) { + BlobContainersInner client = this.inner(); + return client.listAsync(resourceGroupName, accountName) + .map(new Func1() { + @Override + public ListContainerItems call(ListContainerItemsInner inner) { + return new ListContainerItemsImpl(inner, manager()); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String accountName, String containerName) { + BlobContainersInner client = this.inner(); + return client.getAsync(resourceGroupName, accountName, containerName) + .map(new Func1() { + @Override + public BlobContainer call(BlobContainerInner inner) { + return new BlobContainerImpl(inner, manager()); + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String accountName, String containerName) { + BlobContainersInner client = this.inner(); + return client.deleteAsync(resourceGroupName, accountName, containerName).toCompletable(); + } + + @Override + public Observable setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags) { + BlobContainersInner client = this.inner(); + return client.setLegalHoldAsync(resourceGroupName, accountName, containerName, tags) + .map(new Func1() { + @Override + public LegalHold call(LegalHoldInner inner) { + return new LegalHoldImpl(inner, manager()); + } + }); + } + + @Override + public Observable clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags) { + BlobContainersInner client = this.inner(); + return client.clearLegalHoldAsync(resourceGroupName, accountName, containerName, tags) + .map(new Func1() { + @Override + public LegalHold call(LegalHoldInner inner) { + return new LegalHoldImpl(inner, manager()); + } + }); + } + + @Override + public Observable getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName) { + BlobContainersInner client = this.inner(); + return client.getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName) + .map(new Func1() { + @Override + public ImmutabilityPolicy call(ImmutabilityPolicyInner inner) { + return wrapImmutabilityPolicyModel(inner); + } + }); + } + + @Override + public Completable deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + BlobContainersInner client = this.inner(); + return client.deleteImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).toCompletable(); + } + + @Override + public Observable lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + BlobContainersInner client = this.inner(); + return client.lockImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch) + .map(new Func1() { + @Override + public ImmutabilityPolicy call(ImmutabilityPolicyInner inner) { + return new ImmutabilityPolicyImpl(inner, manager()); + } + }); + } + + @Override + public Observable extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays) { + BlobContainersInner client = this.inner(); + return client.extendImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, immutabilityPeriodSinceCreationInDays) + .map(new Func1() { + @Override + public ImmutabilityPolicy call(ImmutabilityPolicyInner inner) { + return new ImmutabilityPolicyImpl(inner, manager()); + } + }); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersInner.java new file mode 100644 index 0000000000000..0e5d79d11e6ca --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/BlobContainersInner.java @@ -0,0 +1,1680 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainersDeleteImmutabilityPolicyHeaders; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainersExtendImmutabilityPolicyHeaders; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainersGetImmutabilityPolicyHeaders; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainersLockImmutabilityPolicyHeaders; +import com.microsoft.azure.management.storage.v2018_07_01.PublicAccess; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.ServiceResponseWithHeaders; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in BlobContainers. + */ +public class BlobContainersInner { + /** The Retrofit service to perform REST calls. */ + private BlobContainersService service; + /** The service client containing this operation class. */ + private StorageManagementClientImpl client; + + /** + * Initializes an instance of BlobContainersInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public BlobContainersInner(Retrofit retrofit, StorageManagementClientImpl client) { + this.service = retrofit.create(BlobContainersService.class); + this.client = client; + } + + /** + * The interface defining all the services for BlobContainers to be + * used by Retrofit to perform actually REST calls. + */ + interface BlobContainersService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers") + Observable> list(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}") + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body BlobContainerInner blobContainer, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}") + Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body BlobContainerInner blobContainer, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}") + Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers setLegalHold" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold") + Observable> setLegalHold(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body LegalHoldInner legalHold, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers clearLegalHold" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold") + Observable> clearLegalHold(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body LegalHoldInner legalHold, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers createOrUpdateImmutabilityPolicy" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}") + Observable> createOrUpdateImmutabilityPolicy(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("immutabilityPolicyName") String immutabilityPolicyName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body ImmutabilityPolicyInner parameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers getImmutabilityPolicy" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}") + Observable> getImmutabilityPolicy(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("immutabilityPolicyName") String immutabilityPolicyName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers deleteImmutabilityPolicy" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}", method = "DELETE", hasBody = true) + Observable> deleteImmutabilityPolicy(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("immutabilityPolicyName") String immutabilityPolicyName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers lockImmutabilityPolicy" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock") + Observable> lockImmutabilityPolicy(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.BlobContainers extendImmutabilityPolicy" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend") + Observable> extendImmutabilityPolicy(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body ImmutabilityPolicyInner parameters, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ListContainerItemsInner object if successful. + */ + public ListContainerItemsInner list(String resourceGroupName, String accountName) { + return listWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); + } + + /** + * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); + } + + /** + * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ListContainerItemsInner object + */ + public Observable listAsync(String resourceGroupName, String accountName) { + return listWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1, ListContainerItemsInner>() { + @Override + public ListContainerItemsInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ListContainerItemsInner object + */ + public Observable> listWithServiceResponseAsync(String resourceGroupName, String accountName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the BlobContainerInner object if successful. + */ + public BlobContainerInner create(String resourceGroupName, String accountName, String containerName) { + return createWithServiceResponseAsync(resourceGroupName, accountName, containerName).toBlocking().single().body(); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String accountName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, accountName, containerName), serviceCallback); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable createAsync(String resourceGroupName, String accountName, String containerName) { + return createWithServiceResponseAsync(resourceGroupName, accountName, containerName).map(new Func1, BlobContainerInner>() { + @Override + public BlobContainerInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final PublicAccess publicAccess = null; + final Map metadata = null; + BlobContainerInner blobContainer = new BlobContainerInner(); + blobContainer.withPublicAccess(null); + blobContainer.withMetadata(null); + return service.create(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), blobContainer, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the BlobContainerInner object if successful. + */ + public BlobContainerInner create(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata) { + return createWithServiceResponseAsync(resourceGroupName, accountName, containerName, publicAccess, metadata).toBlocking().single().body(); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, accountName, containerName, publicAccess, metadata), serviceCallback); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable createAsync(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata) { + return createWithServiceResponseAsync(resourceGroupName, accountName, containerName, publicAccess, metadata).map(new Func1, BlobContainerInner>() { + @Override + public BlobContainerInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(metadata); + BlobContainerInner blobContainer = new BlobContainerInner(); + blobContainer.withPublicAccess(publicAccess); + blobContainer.withMetadata(metadata); + return service.create(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), blobContainer, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the BlobContainerInner object if successful. + */ + public BlobContainerInner update(String resourceGroupName, String accountName, String containerName) { + return updateWithServiceResponseAsync(resourceGroupName, accountName, containerName).toBlocking().single().body(); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String accountName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, accountName, containerName), serviceCallback); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable updateAsync(String resourceGroupName, String accountName, String containerName) { + return updateWithServiceResponseAsync(resourceGroupName, accountName, containerName).map(new Func1, BlobContainerInner>() { + @Override + public BlobContainerInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final PublicAccess publicAccess = null; + final Map metadata = null; + BlobContainerInner blobContainer = new BlobContainerInner(); + blobContainer.withPublicAccess(null); + blobContainer.withMetadata(null); + return service.update(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), blobContainer, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the BlobContainerInner object if successful. + */ + public BlobContainerInner update(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata) { + return updateWithServiceResponseAsync(resourceGroupName, accountName, containerName, publicAccess, metadata).toBlocking().single().body(); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, accountName, containerName, publicAccess, metadata), serviceCallback); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable updateAsync(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata) { + return updateWithServiceResponseAsync(resourceGroupName, accountName, containerName, publicAccess, metadata).map(new Func1, BlobContainerInner>() { + @Override + public BlobContainerInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'Container', 'Blob', 'None' + * @param metadata A name-value pair to associate with the container as metadata. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, PublicAccess publicAccess, Map metadata) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(metadata); + BlobContainerInner blobContainer = new BlobContainerInner(); + blobContainer.withPublicAccess(publicAccess); + blobContainer.withMetadata(metadata); + return service.update(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), blobContainer, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the BlobContainerInner object if successful. + */ + public BlobContainerInner get(String resourceGroupName, String accountName, String containerName) { + return getWithServiceResponseAsync(resourceGroupName, accountName, containerName).toBlocking().single().body(); + } + + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String accountName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, accountName, containerName), serviceCallback); + } + + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable getAsync(String resourceGroupName, String accountName, String containerName) { + return getWithServiceResponseAsync(resourceGroupName, accountName, containerName).map(new Func1, BlobContainerInner>() { + @Override + public BlobContainerInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the BlobContainerInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String accountName, String containerName) { + deleteWithServiceResponseAsync(resourceGroupName, accountName, containerName).toBlocking().single().body(); + } + + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String accountName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, accountName, containerName), serviceCallback); + } + + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String accountName, String containerName) { + return deleteWithServiceResponseAsync(resourceGroupName, accountName, containerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the LegalHoldInner object if successful. + */ + public LegalHoldInner setLegalHold(String resourceGroupName, String accountName, String containerName, List tags) { + return setLegalHoldWithServiceResponseAsync(resourceGroupName, accountName, containerName, tags).toBlocking().single().body(); + } + + /** + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(setLegalHoldWithServiceResponseAsync(resourceGroupName, accountName, containerName, tags), serviceCallback); + } + + /** + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LegalHoldInner object + */ + public Observable setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags) { + return setLegalHoldWithServiceResponseAsync(resourceGroupName, accountName, containerName, tags).map(new Func1, LegalHoldInner>() { + @Override + public LegalHoldInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LegalHoldInner object + */ + public Observable> setLegalHoldWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, List tags) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (tags == null) { + throw new IllegalArgumentException("Parameter tags is required and cannot be null."); + } + Validator.validate(tags); + LegalHoldInner legalHold = new LegalHoldInner(); + legalHold.withTags(tags); + return service.setLegalHold(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), legalHold, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = setLegalHoldDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse setLegalHoldDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the LegalHoldInner object if successful. + */ + public LegalHoldInner clearLegalHold(String resourceGroupName, String accountName, String containerName, List tags) { + return clearLegalHoldWithServiceResponseAsync(resourceGroupName, accountName, containerName, tags).toBlocking().single().body(); + } + + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(clearLegalHoldWithServiceResponseAsync(resourceGroupName, accountName, containerName, tags), serviceCallback); + } + + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LegalHoldInner object + */ + public Observable clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags) { + return clearLegalHoldWithServiceResponseAsync(resourceGroupName, accountName, containerName, tags).map(new Func1, LegalHoldInner>() { + @Override + public LegalHoldInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LegalHoldInner object + */ + public Observable> clearLegalHoldWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, List tags) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (tags == null) { + throw new IllegalArgumentException("Parameter tags is required and cannot be null."); + } + Validator.validate(tags); + LegalHoldInner legalHold = new LegalHoldInner(); + legalHold.withTags(tags); + return service.clearLegalHold(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), legalHold, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = clearLegalHoldDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse clearLegalHoldDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays) { + return createOrUpdateImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, immutabilityPeriodSinceCreationInDays).toBlocking().single().body(); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(createOrUpdateImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, immutabilityPeriodSinceCreationInDays), serviceCallback); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable createOrUpdateImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays) { + return createOrUpdateImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, immutabilityPeriodSinceCreationInDays).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> createOrUpdateImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String immutabilityPolicyName = "default"; + final String ifMatch = null; + ImmutabilityPolicyInner parameters = new ImmutabilityPolicyInner(); + parameters.withImmutabilityPeriodSinceCreationInDays(immutabilityPeriodSinceCreationInDays); + return service.createOrUpdateImmutabilityPolicy(resourceGroupName, accountName, containerName, immutabilityPolicyName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = createOrUpdateImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, String ifMatch) { + return createOrUpdateImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, immutabilityPeriodSinceCreationInDays, ifMatch).toBlocking().single().body(); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(createOrUpdateImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, immutabilityPeriodSinceCreationInDays, ifMatch), serviceCallback); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable createOrUpdateImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, String ifMatch) { + return createOrUpdateImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, immutabilityPeriodSinceCreationInDays, ifMatch).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> createOrUpdateImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, String ifMatch) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String immutabilityPolicyName = "default"; + ImmutabilityPolicyInner parameters = new ImmutabilityPolicyInner(); + parameters.withImmutabilityPeriodSinceCreationInDays(immutabilityPeriodSinceCreationInDays); + return service.createOrUpdateImmutabilityPolicy(resourceGroupName, accountName, containerName, immutabilityPolicyName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = createOrUpdateImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponseWithHeaders createOrUpdateImmutabilityPolicyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .buildWithHeaders(response, BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.class); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner getImmutabilityPolicy(String resourceGroupName, String accountName, String containerName) { + return getImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName).toBlocking().single().body(); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(getImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName), serviceCallback); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName) { + return getImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> getImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String immutabilityPolicyName = "default"; + final String ifMatch = null; + return service.getImmutabilityPolicy(resourceGroupName, accountName, containerName, immutabilityPolicyName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = getImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner getImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String ifMatch) { + return getImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch).toBlocking().single().body(); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(getImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch), serviceCallback); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + return getImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> getImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String immutabilityPolicyName = "default"; + return service.getImmutabilityPolicy(resourceGroupName, accountName, containerName, immutabilityPolicyName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = getImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponseWithHeaders getImmutabilityPolicyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .buildWithHeaders(response, BlobContainersGetImmutabilityPolicyHeaders.class); + } + + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner deleteImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String ifMatch) { + return deleteImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch).toBlocking().single().body(); + } + + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(deleteImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch), serviceCallback); + } + + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + return deleteImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> deleteImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (ifMatch == null) { + throw new IllegalArgumentException("Parameter ifMatch is required and cannot be null."); + } + final String immutabilityPolicyName = "default"; + return service.deleteImmutabilityPolicy(resourceGroupName, accountName, containerName, immutabilityPolicyName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = deleteImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponseWithHeaders deleteImmutabilityPolicyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .buildWithHeaders(response, BlobContainersDeleteImmutabilityPolicyHeaders.class); + } + + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner lockImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String ifMatch) { + return lockImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch).toBlocking().single().body(); + } + + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(lockImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch), serviceCallback); + } + + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + return lockImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> lockImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (ifMatch == null) { + throw new IllegalArgumentException("Parameter ifMatch is required and cannot be null."); + } + return service.lockImmutabilityPolicy(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = lockImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponseWithHeaders lockImmutabilityPolicyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .buildWithHeaders(response, BlobContainersLockImmutabilityPolicyHeaders.class); + } + + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ImmutabilityPolicyInner object if successful. + */ + public ImmutabilityPolicyInner extendImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays) { + return extendImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch, immutabilityPeriodSinceCreationInDays).toBlocking().single().body(); + } + + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(extendImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch, immutabilityPeriodSinceCreationInDays), serviceCallback); + } + + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays) { + return extendImmutabilityPolicyWithServiceResponseAsync(resourceGroupName, accountName, containerName, ifMatch, immutabilityPeriodSinceCreationInDays).map(new Func1, ImmutabilityPolicyInner>() { + @Override + public ImmutabilityPolicyInner call(ServiceResponseWithHeaders response) { + return response.body(); + } + }); + } + + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the policy creation, in days. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ImmutabilityPolicyInner object + */ + public Observable> extendImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (ifMatch == null) { + throw new IllegalArgumentException("Parameter ifMatch is required and cannot be null."); + } + ImmutabilityPolicyInner parameters = new ImmutabilityPolicyInner(); + parameters.withImmutabilityPeriodSinceCreationInDays(immutabilityPeriodSinceCreationInDays); + return service.extendImmutabilityPolicy(resourceGroupName, accountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), parameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponseWithHeaders clientResponse = extendImmutabilityPolicyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponseWithHeaders extendImmutabilityPolicyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .buildWithHeaders(response, BlobContainersExtendImmutabilityPolicyHeaders.class); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultImpl.java new file mode 100644 index 0000000000000..6f2dd2d4acf89 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultImpl.java @@ -0,0 +1,42 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.CheckNameAvailabilityResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.storage.v2018_07_01.Reason; + +class CheckNameAvailabilityResultImpl extends WrapperImpl implements CheckNameAvailabilityResult { + private final StorageManager manager; + CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public String message() { + return this.inner().message(); + } + + @Override + public Boolean nameAvailable() { + return this.inner().nameAvailable(); + } + + @Override + public Reason reason() { + return this.inner().reason(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultInner.java new file mode 100644 index 0000000000000..b90d5e6848d7a --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/CheckNameAvailabilityResultInner.java @@ -0,0 +1,67 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.Reason; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The CheckNameAvailability operation response. + */ +public class CheckNameAvailabilityResultInner { + /** + * Gets a boolean value that indicates whether the name is available for + * you to use. If true, the name is available. If false, the name has + * already been taken or is invalid and cannot be used. + */ + @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY) + private Boolean nameAvailable; + + /** + * Gets the reason that a storage account name could not be used. The + * Reason element is only returned if NameAvailable is false. Possible + * values include: 'AccountNameInvalid', 'AlreadyExists'. + */ + @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY) + private Reason reason; + + /** + * Gets an error message explaining the Reason value in more detail. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /** + * Get gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + * + * @return the nameAvailable value + */ + public Boolean nameAvailable() { + return this.nameAvailable; + } + + /** + * Get gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'. + * + * @return the reason value + */ + public Reason reason() { + return this.reason; + } + + /** + * Get gets an error message explaining the Reason value in more detail. + * + * @return the message value + */ + public String message() { + return this.message; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/IdParsingUtils.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/IdParsingUtils.java new file mode 100644 index 0000000000000..4709261b40486 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/IdParsingUtils.java @@ -0,0 +1,57 @@ +/** + * 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.storage.v2018_07_01.implementation; +import java.util.Arrays; +import java.util.Iterator; + +class IdParsingUtils { + public static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + public static String getValueFromIdByPosition(String id, int pos) { + if (id == null) { + return null; + } + Iterable iterable = Arrays.asList(id.split("/")); + Iterator itr = iterable.iterator(); + int index = 0; + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && part.trim() != "") { + if (index == pos) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + index++; + } + return null; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyImpl.java new file mode 100644 index 0000000000000..6940a6bd79fad --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyImpl.java @@ -0,0 +1,123 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.ImmutabilityPolicy; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.ImmutabilityPolicyState; + +class ImmutabilityPolicyImpl extends CreatableUpdatableImpl implements ImmutabilityPolicy, ImmutabilityPolicy.Definition, ImmutabilityPolicy.Update { + private final StorageManager manager; + private String resourceGroupName; + private String accountName; + private String containerName; + private int cimmutabilityPeriodSinceCreationInDays; + private int uimmutabilityPeriodSinceCreationInDays; + + ImmutabilityPolicyImpl(String name, StorageManager manager) { + super(name, new ImmutabilityPolicyInner()); + this.manager = manager; + // Set resource name + this.containerName = name; + // + } + + ImmutabilityPolicyImpl(ImmutabilityPolicyInner inner, StorageManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.containerName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "storageAccounts"); + this.containerName = IdParsingUtils.getValueFromIdByName(inner.id(), "containers"); + // + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + BlobContainersInner client = this.manager().inner().blobContainers(); + return client.createOrUpdateImmutabilityPolicyAsync(this.resourceGroupName, this.accountName, this.containerName, this.cimmutabilityPeriodSinceCreationInDays) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + BlobContainersInner client = this.manager().inner().blobContainers(); + return client.createOrUpdateImmutabilityPolicyAsync(this.resourceGroupName, this.accountName, this.containerName, this.uimmutabilityPeriodSinceCreationInDays) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + BlobContainersInner client = this.manager().inner().blobContainers(); + return client.getImmutabilityPolicyAsync(this.resourceGroupName, this.accountName, this.containerName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public String etag() { + return this.inner().etag(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public int immutabilityPeriodSinceCreationInDays() { + return this.inner().immutabilityPeriodSinceCreationInDays(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public ImmutabilityPolicyState state() { + return this.inner().state(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public ImmutabilityPolicyImpl withExistingContainer(String resourceGroupName, String accountName, String containerName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.containerName = containerName; + return this; + } + + @Override + public ImmutabilityPolicyImpl withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays) { + if (isInCreateMode()) { + this.cimmutabilityPeriodSinceCreationInDays = immutabilityPeriodSinceCreationInDays; + } else { + this.uimmutabilityPeriodSinceCreationInDays = immutabilityPeriodSinceCreationInDays; + } + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyInner.java new file mode 100644 index 0000000000000..a9a5fbc591bad --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ImmutabilityPolicyInner.java @@ -0,0 +1,66 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.ImmutabilityPolicyState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.storage.v2018_07_01.AzureEntityResource; + +/** + * The ImmutabilityPolicy property of a blob container, including Id, resource + * name, resource type, Etag. + */ +@JsonFlatten +public class ImmutabilityPolicyInner extends AzureEntityResource { + /** + * The immutability period for the blobs in the container since the policy + * creation, in days. + */ + @JsonProperty(value = "properties.immutabilityPeriodSinceCreationInDays", required = true) + private int immutabilityPeriodSinceCreationInDays; + + /** + * The ImmutabilityPolicy state of a blob container, possible values + * include: Locked and Unlocked. Possible values include: 'Locked', + * 'Unlocked'. + */ + @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) + private ImmutabilityPolicyState state; + + /** + * Get the immutability period for the blobs in the container since the policy creation, in days. + * + * @return the immutabilityPeriodSinceCreationInDays value + */ + public int immutabilityPeriodSinceCreationInDays() { + return this.immutabilityPeriodSinceCreationInDays; + } + + /** + * Set the immutability period for the blobs in the container since the policy creation, in days. + * + * @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set + * @return the ImmutabilityPolicyInner object itself. + */ + public ImmutabilityPolicyInner withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays) { + this.immutabilityPeriodSinceCreationInDays = immutabilityPeriodSinceCreationInDays; + return this; + } + + /** + * Get the ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked'. + * + * @return the state value + */ + public ImmutabilityPolicyState state() { + return this.state; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldImpl.java new file mode 100644 index 0000000000000..f968dd8c47a7e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldImpl.java @@ -0,0 +1,37 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.LegalHold; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; + +class LegalHoldImpl extends WrapperImpl implements LegalHold { + private final StorageManager manager; + LegalHoldImpl(LegalHoldInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public Boolean hasLegalHold() { + return this.inner().hasLegalHold(); + } + + @Override + public List tags() { + return this.inner().tags(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldInner.java new file mode 100644 index 0000000000000..4ec77afccfde3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/LegalHoldInner.java @@ -0,0 +1,64 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The LegalHold property of a blob container. + */ +public class LegalHoldInner { + /** + * The hasLegalHold public property is set to true by SRP if there are at + * least one existing tag. The hasLegalHold public property is set to false + * by SRP if all existing legal hold tags are cleared out. There can be a + * maximum of 1000 blob containers with hasLegalHold=true for a given + * account. + */ + @JsonProperty(value = "hasLegalHold", access = JsonProperty.Access.WRITE_ONLY) + private Boolean hasLegalHold; + + /** + * Each tag should be 3 to 23 alphanumeric characters and is normalized to + * lower case at SRP. + */ + @JsonProperty(value = "tags", required = true) + private List tags; + + /** + * Get the hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + * + * @return the hasLegalHold value + */ + public Boolean hasLegalHold() { + return this.hasLegalHold; + } + + /** + * Get each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * + * @return the tags value + */ + public List tags() { + return this.tags; + } + + /** + * Set each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * + * @param tags the tags value to set + * @return the LegalHoldInner object itself. + */ + public LegalHoldInner withTags(List tags) { + this.tags = tags; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseImpl.java new file mode 100644 index 0000000000000..64c895ceae7d3 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseImpl.java @@ -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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.ListAccountSasResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ListAccountSasResponseImpl extends WrapperImpl implements ListAccountSasResponse { + private final StorageManager manager; + ListAccountSasResponseImpl(ListAccountSasResponseInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public String accountSasToken() { + return this.inner().accountSasToken(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseInner.java new file mode 100644 index 0000000000000..3203bde974e7f --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListAccountSasResponseInner.java @@ -0,0 +1,32 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The List SAS credentials operation response. + */ +public class ListAccountSasResponseInner { + /** + * List SAS credentials of storage account. + */ + @JsonProperty(value = "accountSasToken", access = JsonProperty.Access.WRITE_ONLY) + private String accountSasToken; + + /** + * Get list SAS credentials of storage account. + * + * @return the accountSasToken value + */ + public String accountSasToken() { + return this.accountSasToken; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsImpl.java new file mode 100644 index 0000000000000..f489df67089a4 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsImpl.java @@ -0,0 +1,33 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.ListContainerItems; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.ListContainerItem; + +class ListContainerItemsImpl extends WrapperImpl implements ListContainerItems { + private final StorageManager manager; + ListContainerItemsImpl(ListContainerItemsInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public List value() { + return this.inner().value(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsInner.java new file mode 100644 index 0000000000000..b538c0e421811 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListContainerItemsInner.java @@ -0,0 +1,45 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.ListContainerItem; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The list of blob containers. + */ +public class ListContainerItemsInner { + /** + * The list of blob containers. + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get the list of blob containers. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the list of blob containers. + * + * @param value the value value to set + * @return the ListContainerItemsInner object itself. + */ + public ListContainerItemsInner withValue(List value) { + this.value = value; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseImpl.java new file mode 100644 index 0000000000000..05efea06ad58e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseImpl.java @@ -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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.ListServiceSasResponse; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ListServiceSasResponseImpl extends WrapperImpl implements ListServiceSasResponse { + private final StorageManager manager; + ListServiceSasResponseImpl(ListServiceSasResponseInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public String serviceSasToken() { + return this.inner().serviceSasToken(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseInner.java new file mode 100644 index 0000000000000..81bad787aefe2 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/ListServiceSasResponseInner.java @@ -0,0 +1,32 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The List service SAS credentials operation response. + */ +public class ListServiceSasResponseInner { + /** + * List service SAS credentials of speicific resource. + */ + @JsonProperty(value = "serviceSasToken", access = JsonProperty.Access.WRITE_ONLY) + private String serviceSasToken; + + /** + * Get list service SAS credentials of speicific resource. + * + * @return the serviceSasToken value + */ + public String serviceSasToken() { + return this.serviceSasToken; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationImpl.java new file mode 100644 index 0000000000000..26eda0552fbb4 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationImpl.java @@ -0,0 +1,48 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.Operation; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.storage.v2018_07_01.OperationDisplay; +import com.microsoft.azure.management.storage.v2018_07_01.ServiceSpecification; + +class OperationImpl extends WrapperImpl implements Operation { + private final StorageManager manager; + OperationImpl(OperationInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public OperationDisplay display() { + return this.inner().display(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String origin() { + return this.inner().origin(); + } + + @Override + public ServiceSpecification serviceSpecification() { + return this.inner().serviceSpecification(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationInner.java new file mode 100644 index 0000000000000..adbf3bf4ebc8e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationInner.java @@ -0,0 +1,125 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.OperationDisplay; +import com.microsoft.azure.management.storage.v2018_07_01.ServiceSpecification; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Storage REST API operation definition. + */ +@JsonFlatten +public class OperationInner { + /** + * Operation name: {provider}/{resource}/{operation}. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Display metadata associated with the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * The origin of operations. + */ + @JsonProperty(value = "origin") + private String origin; + + /** + * One property of operation, include metric specifications. + */ + @JsonProperty(value = "properties.serviceSpecification") + private ServiceSpecification serviceSpecification; + + /** + * Get operation name: {provider}/{resource}/{operation}. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set operation name: {provider}/{resource}/{operation}. + * + * @param name the name value to set + * @return the OperationInner object itself. + */ + public OperationInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get display metadata associated with the operation. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set display metadata associated with the operation. + * + * @param display the display value to set + * @return the OperationInner object itself. + */ + public OperationInner withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + + /** + * Get the origin of operations. + * + * @return the origin value + */ + public String origin() { + return this.origin; + } + + /** + * Set the origin of operations. + * + * @param origin the origin value to set + * @return the OperationInner object itself. + */ + public OperationInner withOrigin(String origin) { + this.origin = origin; + return this; + } + + /** + * Get one property of operation, include metric specifications. + * + * @return the serviceSpecification value + */ + public ServiceSpecification serviceSpecification() { + return this.serviceSpecification; + } + + /** + * Set one property of operation, include metric specifications. + * + * @param serviceSpecification the serviceSpecification value to set + * @return the OperationInner object itself. + */ + public OperationInner withServiceSpecification(ServiceSpecification serviceSpecification) { + this.serviceSpecification = serviceSpecification; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsImpl.java new file mode 100644 index 0000000000000..601ad734ad2ca --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsImpl.java @@ -0,0 +1,49 @@ +/** + * 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. + * abc + */ + +package com.microsoft.azure.management.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.storage.v2018_07_01.Operations; +import rx.functions.Func1; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.Operation; + +class OperationsImpl extends WrapperImpl implements Operations { + private final StorageManager manager; + + OperationsImpl(StorageManager manager) { + super(manager.inner().operations()); + this.manager = manager; + } + + public StorageManager manager() { + return this.manager; + } + + @Override + public Observable listAsync() { + OperationsInner client = this.inner(); + return client.listAsync() + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public Operation call(OperationInner inner) { + return new OperationImpl(inner, manager()); + } + }); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsInner.java new file mode 100644 index 0000000000000..6af8c590b97fb --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/OperationsInner.java @@ -0,0 +1,134 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Operations. + */ +public class OperationsInner { + /** The Retrofit service to perform REST calls. */ + private OperationsService service; + /** The service client containing this operation class. */ + private StorageManagementClientImpl client; + + /** + * Initializes an instance of OperationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public OperationsInner(Retrofit retrofit, StorageManagementClientImpl client) { + this.service = retrofit.create(OperationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Operations to be + * used by Retrofit to perform actually REST calls. + */ + interface OperationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.Operations list" }) + @GET("providers/Microsoft.Storage/operations") + Observable> list(@Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists all of the available Storage Rest API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<OperationInner> object if successful. + */ + public List list() { + return listWithServiceResponseAsync().toBlocking().single().body(); + } + + /** + * Lists all of the available Storage Rest API operations. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); + } + + /** + * Lists all of the available Storage Rest API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<OperationInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync().map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all of the available Storage Rest API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<OperationInner> object + */ + public Observable>> listWithServiceResponseAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + List items = null; + if (result.body() != null) { + items = result.body().items(); + } + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/PageImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/PageImpl.java new file mode 100644 index 0000000000000..58d8d7ed23900 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuImpl.java new file mode 100644 index 0000000000000..02a802b11e533 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuImpl.java @@ -0,0 +1,72 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.Sku; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.SKUCapability; +import com.microsoft.azure.management.storage.v2018_07_01.Kind; +import com.microsoft.azure.management.storage.v2018_07_01.SkuName; +import com.microsoft.azure.management.storage.v2018_07_01.Restriction; +import com.microsoft.azure.management.storage.v2018_07_01.SkuTier; + +class SkuImpl extends WrapperImpl implements Sku { + private final StorageManager manager; + + SkuImpl(SkuInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + + + @Override + public List capabilities() { + return this.inner().capabilities(); + } + + @Override + public Kind kind() { + return this.inner().kind(); + } + + @Override + public List locations() { + return this.inner().locations(); + } + + @Override + public SkuName name() { + return this.inner().name(); + } + + @Override + public String resourceType() { + return this.inner().resourceType(); + } + + @Override + public List restrictions() { + return this.inner().restrictions(); + } + + @Override + public SkuTier tier() { + return this.inner().tier(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuInner.java new file mode 100644 index 0000000000000..6473ac9f21ead --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkuInner.java @@ -0,0 +1,160 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.SkuName; +import com.microsoft.azure.management.storage.v2018_07_01.SkuTier; +import com.microsoft.azure.management.storage.v2018_07_01.Kind; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.SKUCapability; +import com.microsoft.azure.management.storage.v2018_07_01.Restriction; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The SKU of the storage account. + */ +public class SkuInner { + /** + * Gets or sets the sku name. Required for account creation; optional for + * update. Note that in older versions, sku name was called accountType. + * Possible values include: 'Standard_LRS', 'Standard_GRS', + * 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS', 'Premium_ZRS'. + */ + @JsonProperty(value = "name", required = true) + private SkuName name; + + /** + * Gets the sku tier. This is based on the SKU name. Possible values + * include: 'Standard', 'Premium'. + */ + @JsonProperty(value = "tier", access = JsonProperty.Access.WRITE_ONLY) + private SkuTier tier; + + /** + * The type of the resource, usually it is 'storageAccounts'. + */ + @JsonProperty(value = "resourceType", access = JsonProperty.Access.WRITE_ONLY) + private String resourceType; + + /** + * Indicates the type of storage account. Possible values include: + * 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', + * 'BlockBlobStorage'. + */ + @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) + private Kind kind; + + /** + * The set of locations that the SKU is available. This will be supported + * and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, + * etc.). + */ + @JsonProperty(value = "locations", access = JsonProperty.Access.WRITE_ONLY) + private List locations; + + /** + * The capability information in the specified sku, including file + * encryption, network acls, change notification, etc. + */ + @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) + private List capabilities; + + /** + * The restrictions because of which SKU cannot be used. This is empty if + * there are no restrictions. + */ + @JsonProperty(value = "restrictions") + private List restrictions; + + /** + * Get gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS', 'Premium_ZRS'. + * + * @return the name value + */ + public SkuName name() { + return this.name; + } + + /** + * Set gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS', 'Premium_ZRS'. + * + * @param name the name value to set + * @return the SkuInner object itself. + */ + public SkuInner withName(SkuName name) { + this.name = name; + return this; + } + + /** + * Get gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium'. + * + * @return the tier value + */ + public SkuTier tier() { + return this.tier; + } + + /** + * Get the type of the resource, usually it is 'storageAccounts'. + * + * @return the resourceType value + */ + public String resourceType() { + return this.resourceType; + } + + /** + * Get indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + * + * @return the kind value + */ + public Kind kind() { + return this.kind; + } + + /** + * Get the set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + * + * @return the locations value + */ + public List locations() { + return this.locations; + } + + /** + * Get the capability information in the specified sku, including file encryption, network acls, change notification, etc. + * + * @return the capabilities value + */ + public List capabilities() { + return this.capabilities; + } + + /** + * Get the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + * + * @return the restrictions value + */ + public List restrictions() { + return this.restrictions; + } + + /** + * Set the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + * + * @param restrictions the restrictions value to set + * @return the SkuInner object itself. + */ + public SkuInner withRestrictions(List restrictions) { + this.restrictions = restrictions; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusImpl.java new file mode 100644 index 0000000000000..9cc79eda4c2dd --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusImpl.java @@ -0,0 +1,68 @@ +/** + * 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. + * jkl + */ + +package com.microsoft.azure.management.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.storage.v2018_07_01.Skus; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.PagedList; +import com.microsoft.azure.Page; +import com.microsoft.azure.arm.utils.PagedListConverter; +import com.microsoft.azure.management.storage.v2018_07_01.Sku; + +class SkusImpl extends WrapperImpl implements Skus { + private PagedListConverter converter; + private final StorageManager manager; + + SkusImpl(StorageManager manager) { + super(manager.inner().skus()); + this.manager = manager; + this.converter = new PagedListConverter() { + @Override + public Observable typeConvertAsync(SkuInner inner) { + return Observable.just((Sku) wrapModel(inner)); + } + }; + } + + public StorageManager manager() { + return this.manager; + } + + private SkuImpl wrapModel(SkuInner inner) { + return new SkuImpl(inner, manager()); + } + + @Override + public PagedList list() { + SkusInner client = this.inner(); + return converter.convert(client.list()); + } + + @Override + public Observable listAsync() { + SkusInner client = this.inner(); + return client.listAsync() + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page innerPage) { + return Observable.from(innerPage.items()); + } + }) + .map(new Func1() { + @Override + public Sku call(SkuInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusInner.java new file mode 100644 index 0000000000000..5b5faa8cb2e55 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/SkusInner.java @@ -0,0 +1,144 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Skus. + */ +public class SkusInner { + /** The Retrofit service to perform REST calls. */ + private SkusService service; + /** The service client containing this operation class. */ + private StorageManagementClientImpl client; + + /** + * Initializes an instance of SkusInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public SkusInner(Retrofit retrofit, StorageManagementClientImpl client) { + this.service = retrofit.create(SkusService.class); + this.client = client; + } + + /** + * The interface defining all the services for Skus to be + * used by Retrofit to perform actually REST calls. + */ + interface SkusService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.Skus list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists the available SKUs supported by Microsoft.Storage for given subscription. + * + * @return the PagedList object if successful. + */ + public PagedList list() { + PageImpl page = new PageImpl<>(); + page.setItems(listWithServiceResponseAsync().toBlocking().single().body()); + page.setNextPageLink(null); + return new PagedList(page) { + @Override + public Page nextPage(String nextPageLink) { + return null; + } + }; + } + + /** + * Lists the available SKUs supported by Microsoft.Storage for given subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); + } + + /** + * Lists the available SKUs supported by Microsoft.Storage for given subscription. + * + * @return the observable to the List<SkuInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync().map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + PageImpl page = new PageImpl<>(); + page.setItems(response.body()); + return page; + } + }); + } + + /** + * Lists the available SKUs supported by Microsoft.Storage for given subscription. + * + * @return the observable to the List<SkuInner> object + */ + public Observable>> listWithServiceResponseAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + List items = null; + if (result.body() != null) { + items = result.body().items(); + } + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountImpl.java new file mode 100644 index 0000000000000..7d38ffba6fc2b --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountImpl.java @@ -0,0 +1,280 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccount; +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountUpdateParameters; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountCreateParameters; +import com.microsoft.azure.management.storage.v2018_07_01.AccessTier; +import org.joda.time.DateTime; +import com.microsoft.azure.management.storage.v2018_07_01.CustomDomain; +import com.microsoft.azure.management.storage.v2018_07_01.Encryption; +import com.microsoft.azure.management.storage.v2018_07_01.Identity; +import com.microsoft.azure.management.storage.v2018_07_01.Kind; +import com.microsoft.azure.management.storage.v2018_07_01.NetworkRuleSet; +import com.microsoft.azure.management.storage.v2018_07_01.Endpoints; +import com.microsoft.azure.management.storage.v2018_07_01.ProvisioningState; +import com.microsoft.azure.management.storage.v2018_07_01.Sku; +import com.microsoft.azure.management.storage.v2018_07_01.AccountStatus; +import rx.functions.Func1; + +class StorageAccountImpl extends GroupableResourceCoreImpl implements StorageAccount, StorageAccount.Definition, StorageAccount.Update { + private StorageAccountCreateParameters createParameter; + private StorageAccountUpdateParameters updateParameter; + StorageAccountImpl(String name, StorageAccountInner inner, StorageManager manager) { + super(name, inner, manager); + this.createParameter = new StorageAccountCreateParameters(); + this.updateParameter = new StorageAccountUpdateParameters(); + } + + @Override + public Observable createResourceAsync() { + StorageAccountsInner client = this.manager().inner().storageAccounts(); + this.createParameter.withLocation(inner().location()); + this.createParameter.withTags(inner().getTags()); + return client.createAsync(this.resourceGroupName(), this.name(), this.createParameter) + .map(new Func1() { + @Override + public StorageAccountInner call(StorageAccountInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + StorageAccountsInner client = this.manager().inner().storageAccounts(); + return client.updateAsync(this.resourceGroupName(), this.name(), this.updateParameter) + .map(new Func1() { + @Override + public StorageAccountInner call(StorageAccountInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + StorageAccountsInner client = this.manager().inner().storageAccounts(); + return client.getByResourceGroupAsync(this.resourceGroupName(), this.name()); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createParameter = new StorageAccountCreateParameters(); + this.updateParameter = new StorageAccountUpdateParameters(); + } + + @Override + public AccessTier accessTier() { + return this.inner().accessTier(); + } + + @Override + public DateTime creationTime() { + return this.inner().creationTime(); + } + + @Override + public CustomDomain customDomain() { + return this.inner().customDomain(); + } + + @Override + public Boolean enableAzureFilesAadIntegration() { + return this.inner().enableAzureFilesAadIntegration(); + } + + @Override + public Boolean enableHttpsTrafficOnly() { + return this.inner().enableHttpsTrafficOnly(); + } + + @Override + public Encryption encryption() { + return this.inner().encryption(); + } + + @Override + public Identity identity() { + return this.inner().identity(); + } + + @Override + public Boolean isHnsEnabled() { + return this.inner().isHnsEnabled(); + } + + @Override + public Kind kind() { + return this.inner().kind(); + } + + @Override + public DateTime lastGeoFailoverTime() { + return this.inner().lastGeoFailoverTime(); + } + + @Override + public NetworkRuleSet networkRuleSet() { + return this.inner().networkRuleSet(); + } + + @Override + public Endpoints primaryEndpoints() { + return this.inner().primaryEndpoints(); + } + + @Override + public String primaryLocation() { + return this.inner().primaryLocation(); + } + + @Override + public ProvisioningState provisioningState() { + return this.inner().provisioningState(); + } + + @Override + public Endpoints secondaryEndpoints() { + return this.inner().secondaryEndpoints(); + } + + @Override + public String secondaryLocation() { + return this.inner().secondaryLocation(); + } + + @Override + public Sku sku() { + SkuInner inner = this.inner().sku(); + if (inner != null) { + return new SkuImpl(inner, manager()); + } else { + return null; + } + } + + @Override + public AccountStatus statusOfPrimary() { + return this.inner().statusOfPrimary(); + } + + @Override + public AccountStatus statusOfSecondary() { + return this.inner().statusOfSecondary(); + } + + @Override + public StorageAccountImpl withIsHnsEnabled(Boolean isHnsEnabled) { + this.createParameter.withIsHnsEnabled(isHnsEnabled); + return this; + } + + @Override + public StorageAccountImpl withKind(Kind kind) { + if (isInCreateMode()) { + this.createParameter.withKind(kind); + } else { + this.updateParameter.withKind(kind); + } + return this; + } + + @Override + public StorageAccountImpl withSku(SkuInner sku) { + if (isInCreateMode()) { + this.createParameter.withSku(sku); + } else { + this.updateParameter.withSku(sku); + } + return this; + } + + @Override + public StorageAccountImpl withAccessTier(AccessTier accessTier) { + if (isInCreateMode()) { + this.createParameter.withAccessTier(accessTier); + } else { + this.updateParameter.withAccessTier(accessTier); + } + return this; + } + + @Override + public StorageAccountImpl withCustomDomain(CustomDomain customDomain) { + if (isInCreateMode()) { + this.createParameter.withCustomDomain(customDomain); + } else { + this.updateParameter.withCustomDomain(customDomain); + } + return this; + } + + @Override + public StorageAccountImpl withEnableAzureFilesAadIntegration(Boolean enableAzureFilesAadIntegration) { + if (isInCreateMode()) { + this.createParameter.withEnableAzureFilesAadIntegration(enableAzureFilesAadIntegration); + } else { + this.updateParameter.withEnableAzureFilesAadIntegration(enableAzureFilesAadIntegration); + } + return this; + } + + @Override + public StorageAccountImpl withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly) { + if (isInCreateMode()) { + this.createParameter.withEnableHttpsTrafficOnly(enableHttpsTrafficOnly); + } else { + this.updateParameter.withEnableHttpsTrafficOnly(enableHttpsTrafficOnly); + } + return this; + } + + @Override + public StorageAccountImpl withEncryption(Encryption encryption) { + if (isInCreateMode()) { + this.createParameter.withEncryption(encryption); + } else { + this.updateParameter.withEncryption(encryption); + } + return this; + } + + @Override + public StorageAccountImpl withIdentity(Identity identity) { + if (isInCreateMode()) { + this.createParameter.withIdentity(identity); + } else { + this.updateParameter.withIdentity(identity); + } + return this; + } + + @Override + public StorageAccountImpl withNetworkRuleSet(NetworkRuleSet networkRuleSet) { + if (isInCreateMode()) { + this.createParameter.withNetworkRuleSet(networkRuleSet); + } else { + this.updateParameter.withNetworkRuleSet(networkRuleSet); + } + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountInner.java new file mode 100644 index 0000000000000..a1a80e5cdca42 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountInner.java @@ -0,0 +1,378 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.Kind; +import com.microsoft.azure.management.storage.v2018_07_01.Identity; +import com.microsoft.azure.management.storage.v2018_07_01.ProvisioningState; +import com.microsoft.azure.management.storage.v2018_07_01.Endpoints; +import com.microsoft.azure.management.storage.v2018_07_01.AccountStatus; +import org.joda.time.DateTime; +import com.microsoft.azure.management.storage.v2018_07_01.CustomDomain; +import com.microsoft.azure.management.storage.v2018_07_01.Encryption; +import com.microsoft.azure.management.storage.v2018_07_01.AccessTier; +import com.microsoft.azure.management.storage.v2018_07_01.NetworkRuleSet; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * The storage account. + */ +@JsonFlatten +public class StorageAccountInner extends Resource { + /** + * Gets the SKU. + */ + @JsonProperty(value = "sku", access = JsonProperty.Access.WRITE_ONLY) + private SkuInner sku; + + /** + * Gets the Kind. Possible values include: 'Storage', 'StorageV2', + * 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + */ + @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) + private Kind kind; + + /** + * The identity of the resource. + */ + @JsonProperty(value = "identity") + private Identity identity; + + /** + * Gets the status of the storage account at the time the operation was + * called. Possible values include: 'Creating', 'ResolvingDNS', + * 'Succeeded'. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /** + * Gets the URLs that are used to perform a retrieval of a public blob, + * queue, or table object. Note that Standard_ZRS and Premium_LRS accounts + * only return the blob endpoint. + */ + @JsonProperty(value = "properties.primaryEndpoints", access = JsonProperty.Access.WRITE_ONLY) + private Endpoints primaryEndpoints; + + /** + * Gets the location of the primary data center for the storage account. + */ + @JsonProperty(value = "properties.primaryLocation", access = JsonProperty.Access.WRITE_ONLY) + private String primaryLocation; + + /** + * Gets the status indicating whether the primary location of the storage + * account is available or unavailable. Possible values include: + * 'available', 'unavailable'. + */ + @JsonProperty(value = "properties.statusOfPrimary", access = JsonProperty.Access.WRITE_ONLY) + private AccountStatus statusOfPrimary; + + /** + * Gets the timestamp of the most recent instance of a failover to the + * secondary location. Only the most recent timestamp is retained. This + * element is not returned if there has never been a failover instance. + * Only available if the accountType is Standard_GRS or Standard_RAGRS. + */ + @JsonProperty(value = "properties.lastGeoFailoverTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastGeoFailoverTime; + + /** + * Gets the location of the geo-replicated secondary for the storage + * account. Only available if the accountType is Standard_GRS or + * Standard_RAGRS. + */ + @JsonProperty(value = "properties.secondaryLocation", access = JsonProperty.Access.WRITE_ONLY) + private String secondaryLocation; + + /** + * Gets the status indicating whether the secondary location of the storage + * account is available or unavailable. Only available if the SKU name is + * Standard_GRS or Standard_RAGRS. Possible values include: 'available', + * 'unavailable'. + */ + @JsonProperty(value = "properties.statusOfSecondary", access = JsonProperty.Access.WRITE_ONLY) + private AccountStatus statusOfSecondary; + + /** + * Gets the creation date and time of the storage account in UTC. + */ + @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime creationTime; + + /** + * Gets the custom domain the user assigned to this storage account. + */ + @JsonProperty(value = "properties.customDomain", access = JsonProperty.Access.WRITE_ONLY) + private CustomDomain customDomain; + + /** + * Gets the URLs that are used to perform a retrieval of a public blob, + * queue, or table object from the secondary location of the storage + * account. Only available if the SKU name is Standard_RAGRS. + */ + @JsonProperty(value = "properties.secondaryEndpoints", access = JsonProperty.Access.WRITE_ONLY) + private Endpoints secondaryEndpoints; + + /** + * Gets the encryption settings on the account. If unspecified, the account + * is unencrypted. + */ + @JsonProperty(value = "properties.encryption", access = JsonProperty.Access.WRITE_ONLY) + private Encryption encryption; + + /** + * Required for storage accounts where kind = BlobStorage. The access tier + * used for billing. Possible values include: 'Hot', 'Cool'. + */ + @JsonProperty(value = "properties.accessTier", access = JsonProperty.Access.WRITE_ONLY) + private AccessTier accessTier; + + /** + * Enables Azure Files AAD Integration for SMB if sets to true. + */ + @JsonProperty(value = "properties.azureFilesAadIntegration") + private Boolean enableAzureFilesAadIntegration; + + /** + * Allows https traffic only to storage service if sets to true. + */ + @JsonProperty(value = "properties.supportsHttpsTrafficOnly") + private Boolean enableHttpsTrafficOnly; + + /** + * Network rule set. + */ + @JsonProperty(value = "properties.networkAcls", access = JsonProperty.Access.WRITE_ONLY) + private NetworkRuleSet networkRuleSet; + + /** + * Account HierarchicalNamespace enabled if sets to true. + */ + @JsonProperty(value = "properties.isHnsEnabled") + private Boolean isHnsEnabled; + + /** + * Get gets the SKU. + * + * @return the sku value + */ + public SkuInner sku() { + return this.sku; + } + + /** + * Get gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'. + * + * @return the kind value + */ + public Kind kind() { + return this.kind; + } + + /** + * Get the identity of the resource. + * + * @return the identity value + */ + public Identity identity() { + return this.identity; + } + + /** + * Set the identity of the resource. + * + * @param identity the identity value to set + * @return the StorageAccountInner object itself. + */ + public StorageAccountInner withIdentity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. + * + * @return the primaryEndpoints value + */ + public Endpoints primaryEndpoints() { + return this.primaryEndpoints; + } + + /** + * Get gets the location of the primary data center for the storage account. + * + * @return the primaryLocation value + */ + public String primaryLocation() { + return this.primaryLocation; + } + + /** + * Get gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'available', 'unavailable'. + * + * @return the statusOfPrimary value + */ + public AccountStatus statusOfPrimary() { + return this.statusOfPrimary; + } + + /** + * Get gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. + * + * @return the lastGeoFailoverTime value + */ + public DateTime lastGeoFailoverTime() { + return this.lastGeoFailoverTime; + } + + /** + * Get gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. + * + * @return the secondaryLocation value + */ + public String secondaryLocation() { + return this.secondaryLocation; + } + + /** + * Get gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'available', 'unavailable'. + * + * @return the statusOfSecondary value + */ + public AccountStatus statusOfSecondary() { + return this.statusOfSecondary; + } + + /** + * Get gets the creation date and time of the storage account in UTC. + * + * @return the creationTime value + */ + public DateTime creationTime() { + return this.creationTime; + } + + /** + * Get gets the custom domain the user assigned to this storage account. + * + * @return the customDomain value + */ + public CustomDomain customDomain() { + return this.customDomain; + } + + /** + * Get gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. + * + * @return the secondaryEndpoints value + */ + public Endpoints secondaryEndpoints() { + return this.secondaryEndpoints; + } + + /** + * Get gets the encryption settings on the account. If unspecified, the account is unencrypted. + * + * @return the encryption value + */ + public Encryption encryption() { + return this.encryption; + } + + /** + * Get required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'. + * + * @return the accessTier value + */ + public AccessTier accessTier() { + return this.accessTier; + } + + /** + * Get enables Azure Files AAD Integration for SMB if sets to true. + * + * @return the enableAzureFilesAadIntegration value + */ + public Boolean enableAzureFilesAadIntegration() { + return this.enableAzureFilesAadIntegration; + } + + /** + * Set enables Azure Files AAD Integration for SMB if sets to true. + * + * @param enableAzureFilesAadIntegration the enableAzureFilesAadIntegration value to set + * @return the StorageAccountInner object itself. + */ + public StorageAccountInner withEnableAzureFilesAadIntegration(Boolean enableAzureFilesAadIntegration) { + this.enableAzureFilesAadIntegration = enableAzureFilesAadIntegration; + return this; + } + + /** + * Get allows https traffic only to storage service if sets to true. + * + * @return the enableHttpsTrafficOnly value + */ + public Boolean enableHttpsTrafficOnly() { + return this.enableHttpsTrafficOnly; + } + + /** + * Set allows https traffic only to storage service if sets to true. + * + * @param enableHttpsTrafficOnly the enableHttpsTrafficOnly value to set + * @return the StorageAccountInner object itself. + */ + public StorageAccountInner withEnableHttpsTrafficOnly(Boolean enableHttpsTrafficOnly) { + this.enableHttpsTrafficOnly = enableHttpsTrafficOnly; + return this; + } + + /** + * Get network rule set. + * + * @return the networkRuleSet value + */ + public NetworkRuleSet networkRuleSet() { + return this.networkRuleSet; + } + + /** + * Get account HierarchicalNamespace enabled if sets to true. + * + * @return the isHnsEnabled value + */ + public Boolean isHnsEnabled() { + return this.isHnsEnabled; + } + + /** + * Set account HierarchicalNamespace enabled if sets to true. + * + * @param isHnsEnabled the isHnsEnabled value to set + * @return the StorageAccountInner object itself. + */ + public StorageAccountInner withIsHnsEnabled(Boolean isHnsEnabled) { + this.isHnsEnabled = isHnsEnabled; + return this; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultImpl.java new file mode 100644 index 0000000000000..82b63e11c3f4f --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultImpl.java @@ -0,0 +1,33 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountListKeysResult; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountKey; + +class StorageAccountListKeysResultImpl extends WrapperImpl implements StorageAccountListKeysResult { + private final StorageManager manager; + StorageAccountListKeysResultImpl(StorageAccountListKeysResultInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + @Override + public List keys() { + return this.inner().keys(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultInner.java new file mode 100644 index 0000000000000..c0fba5a85415e --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountListKeysResultInner.java @@ -0,0 +1,35 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountKey; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The response from the ListKeys operation. + */ +public class StorageAccountListKeysResultInner { + /** + * Gets the list of storage account keys and their properties for the + * specified storage account. + */ + @JsonProperty(value = "keys", access = JsonProperty.Access.WRITE_ONLY) + private List keys; + + /** + * Get gets the list of storage account keys and their properties for the specified storage account. + * + * @return the keys value + */ + public List keys() { + return this.keys; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsImpl.java new file mode 100644 index 0000000000000..df33dc4aa49ac --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsImpl.java @@ -0,0 +1,204 @@ +/** + * 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. + * def + */ + +package com.microsoft.azure.management.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccount; +import rx.Observable; +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.storage.v2018_07_01.StorageAccountListKeysResult; +import com.microsoft.azure.management.storage.v2018_07_01.ListAccountSasResponse; +import com.microsoft.azure.management.storage.v2018_07_01.ListServiceSasResponse; +import com.microsoft.azure.management.storage.v2018_07_01.CheckNameAvailabilityResult; +import com.microsoft.azure.management.storage.v2018_07_01.AccountSasParameters; +import com.microsoft.azure.management.storage.v2018_07_01.ServiceSasParameters; + +class StorageAccountsImpl extends GroupableResourcesCoreImpl implements StorageAccounts { + protected StorageAccountsImpl(StorageManager manager) { + super(manager.inner().storageAccounts(), manager); + } + + @Override + protected Observable getInnerAsync(String resourceGroupName, String name) { + StorageAccountsInner client = this.inner(); + return client.getByResourceGroupAsync(resourceGroupName, name); + } + + @Override + protected Completable deleteInnerAsync(String resourceGroupName, String name) { + StorageAccountsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, name).toCompletable(); + } + + @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); + } + + @Override + public Observable deleteByIdsAsync(String...ids) { + return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids))); + } + + @Override + public void deleteByIds(Collection ids) { + if (ids != null && !ids.isEmpty()) { + this.deleteByIdsAsync(ids).toBlocking().last(); + } + } + + @Override + public void deleteByIds(String...ids) { + this.deleteByIds(new ArrayList(Arrays.asList(ids))); + } + + @Override + public PagedList listByResourceGroup(String resourceGroupName) { + StorageAccountsInner client = this.inner(); + return this.wrapList(client.listByResourceGroup(resourceGroupName)); + } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + StorageAccountsInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page innerPage) { + return Observable.from(innerPage.items()); + } + }) + .map(new Func1() { + @Override + public StorageAccount call(StorageAccountInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public PagedList list() { + StorageAccountsInner client = this.inner(); + return this.wrapList(client.list()); + } + + @Override + public Observable listAsync() { + StorageAccountsInner client = this.inner(); + return client.listAsync() + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page innerPage) { + return Observable.from(innerPage.items()); + } + }) + .map(new Func1() { + @Override + public StorageAccount call(StorageAccountInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public StorageAccountImpl define(String name) { + return wrapModel(name); + } + + @Override + public Observable listKeysAsync(String resourceGroupName, String accountName) { + StorageAccountsInner client = this.inner(); + return client.listKeysAsync(resourceGroupName, accountName) + .map(new Func1() { + @Override + public StorageAccountListKeysResult call(StorageAccountListKeysResultInner inner) { + return new StorageAccountListKeysResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable regenerateKeyAsync(String resourceGroupName, String accountName, String keyName) { + StorageAccountsInner client = this.inner(); + return client.regenerateKeyAsync(resourceGroupName, accountName, keyName) + .map(new Func1() { + @Override + public StorageAccountListKeysResult call(StorageAccountListKeysResultInner inner) { + return new StorageAccountListKeysResultImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAccountSASAsync(String resourceGroupName, String accountName, AccountSasParameters parameters) { + StorageAccountsInner client = this.inner(); + return client.listAccountSASAsync(resourceGroupName, accountName, parameters) + .map(new Func1() { + @Override + public ListAccountSasResponse call(ListAccountSasResponseInner inner) { + return new ListAccountSasResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable listServiceSASAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters) { + StorageAccountsInner client = this.inner(); + return client.listServiceSASAsync(resourceGroupName, accountName, parameters) + .map(new Func1() { + @Override + public ListServiceSasResponse call(ListServiceSasResponseInner inner) { + return new ListServiceSasResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable checkNameAvailabilityAsync(String name) { + StorageAccountsInner client = this.inner(); + return client.checkNameAvailabilityAsync(name) + .map(new Func1() { + @Override + public CheckNameAvailabilityResult call(CheckNameAvailabilityResultInner inner) { + return new CheckNameAvailabilityResultImpl(inner, manager()); + } + }); + } + + @Override + protected StorageAccountImpl wrapModel(StorageAccountInner inner) { + return new StorageAccountImpl(inner.name(), inner, manager()); + } + + @Override + protected StorageAccountImpl wrapModel(String name) { + return new StorageAccountImpl(name, new StorageAccountInner(), this.manager()); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsInner.java new file mode 100644 index 0000000000000..20a62667e3bc7 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageAccountsInner.java @@ -0,0 +1,1179 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.storage.v2018_07_01.AccountSasParameters; +import com.microsoft.azure.management.storage.v2018_07_01.ServiceSasParameters; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountCheckNameAvailabilityParameters; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountCreateParameters; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountRegenerateKeyParameters; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccountUpdateParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in StorageAccounts. + */ +public class StorageAccountsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private StorageAccountsService service; + /** The service client containing this operation class. */ + private StorageManagementClientImpl client; + + /** + * Initializes an instance of StorageAccountsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public StorageAccountsInner(Retrofit retrofit, StorageManagementClientImpl client) { + this.service = retrofit.create(StorageAccountsService.class); + this.client = client; + } + + /** + * The interface defining all the services for StorageAccounts to be + * used by Retrofit to perform actually REST calls. + */ + interface StorageAccountsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts checkNameAvailability" }) + @POST("subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability") + Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body StorageAccountCheckNameAvailabilityParameters accountName, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts create" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Body StorageAccountCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") + Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Body StorageAccountCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") + Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Body StorageAccountUpdateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts") + Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts listKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys") + Observable> listKeys(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts regenerateKey" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey") + Observable> regenerateKey(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body StorageAccountRegenerateKeyParameters regenerateKey, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts listAccountSAS" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas") + Observable> listAccountSAS(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Body AccountSasParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts listServiceSAS" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas") + Observable> listServiceSAS(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Body ServiceSasParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckNameAvailabilityResultInner object if successful. + */ + public CheckNameAvailabilityResultInner checkNameAvailability(String name) { + return checkNameAvailabilityWithServiceResponseAsync(name).toBlocking().single().body(); + } + + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkNameAvailabilityAsync(String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(name), serviceCallback); + } + + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckNameAvailabilityResultInner object + */ + public Observable checkNameAvailabilityAsync(String name) { + return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1, CheckNameAvailabilityResultInner>() { + @Override + public CheckNameAvailabilityResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckNameAvailabilityResultInner object + */ + public Observable> checkNameAvailabilityWithServiceResponseAsync(String name) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + StorageAccountCheckNameAvailabilityParameters accountName = new StorageAccountCheckNameAvailabilityParameters(); + accountName.withName(name); + return service.checkNameAvailability(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), accountName, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = checkNameAvailabilityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse checkNameAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the StorageAccountInner object if successful. + */ + public StorageAccountInner create(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + return createWithServiceResponseAsync(resourceGroupName, accountName, parameters).toBlocking().last().body(); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, accountName, parameters), serviceCallback); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + return createWithServiceResponseAsync(resourceGroupName, accountName, parameters).map(new Func1, StorageAccountInner>() { + @Override + public StorageAccountInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + Observable> observable = service.create(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the StorageAccountInner object if successful. + */ + public StorageAccountInner beginCreate(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, accountName, parameters).toBlocking().single().body(); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, accountName, parameters), serviceCallback); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountInner object + */ + public Observable beginCreateAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + return beginCreateWithServiceResponseAsync(resourceGroupName, accountName, parameters).map(new Func1, StorageAccountInner>() { + @Override + public StorageAccountInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the created account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountInner object + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.beginCreate(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes a storage account in Microsoft Azure. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String accountName) { + deleteWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); + } + + /** + * Deletes a storage account in Microsoft Azure. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); + } + + /** + * Deletes a storage account in Microsoft Azure. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String accountName) { + return deleteWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a storage account in Microsoft Azure. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String accountName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the StorageAccountInner object if successful. + */ + public StorageAccountInner getByResourceGroup(String resourceGroupName, String accountName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); + } + + /** + * Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); + } + + /** + * Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String accountName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1, StorageAccountInner>() { + @Override + public StorageAccountInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String accountName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the updated account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the StorageAccountInner object if successful. + */ + public StorageAccountInner update(String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { + return updateWithServiceResponseAsync(resourceGroupName, accountName, parameters).toBlocking().single().body(); + } + + /** + * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the updated account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, accountName, parameters), serviceCallback); + } + + /** + * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the updated account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountInner object + */ + public Observable updateAsync(String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { + return updateWithServiceResponseAsync(resourceGroupName, accountName, parameters).map(new Func1, StorageAccountInner>() { + @Override + public StorageAccountInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide for the updated account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.update(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @return the PagedList object if successful. + */ + public PagedList list() { + PageImpl page = new PageImpl<>(); + page.setItems(listWithServiceResponseAsync().toBlocking().single().body()); + page.setNextPageLink(null); + return new PagedList(page) { + @Override + public Page nextPage(String nextPageLink) { + return null; + } + }; + } + + /** + * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); + } + + /** + * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @return the observable to the List<StorageAccountInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync().map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + PageImpl page = new PageImpl<>(); + page.setItems(response.body()); + return page; + } + }); + } + + /** + * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @return the observable to the List<StorageAccountInner> object + */ + public Observable>> listWithServiceResponseAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + List items = null; + if (result.body() != null) { + items = result.body().items(); + } + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @return the PagedList object if successful. + */ + public PagedList listByResourceGroup(String resourceGroupName) { + PageImpl page = new PageImpl<>(); + page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body()); + page.setNextPageLink(null); + return new PagedList(page) { + @Override + public Page nextPage(String nextPageLink) { + return null; + } + }; + } + + /** + * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listByResourceGroupWithServiceResponseAsync(resourceGroupName), serviceCallback); + } + + /** + * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @return the observable to the List<StorageAccountInner> object + */ + public Observable> listByResourceGroupAsync(String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + PageImpl page = new PageImpl<>(); + page.setItems(response.body()); + return page; + } + }); + } + + /** + * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @return the observable to the List<StorageAccountInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + List items = null; + if (result.body() != null) { + items = result.body().items(); + } + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Lists the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the StorageAccountListKeysResultInner object if successful. + */ + public StorageAccountListKeysResultInner listKeys(String resourceGroupName, String accountName) { + return listKeysWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); + } + + /** + * Lists the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listKeysAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listKeysWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); + } + + /** + * Lists the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountListKeysResultInner object + */ + public Observable listKeysAsync(String resourceGroupName, String accountName) { + return listKeysWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1, StorageAccountListKeysResultInner>() { + @Override + public StorageAccountListKeysResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountListKeysResultInner object + */ + public Observable> listKeysWithServiceResponseAsync(String resourceGroupName, String accountName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listKeys(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listKeysDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Regenerates one of the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible vaules are key1, key2. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the StorageAccountListKeysResultInner object if successful. + */ + public StorageAccountListKeysResultInner regenerateKey(String resourceGroupName, String accountName, String keyName) { + return regenerateKeyWithServiceResponseAsync(resourceGroupName, accountName, keyName).toBlocking().single().body(); + } + + /** + * Regenerates one of the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible vaules are key1, key2. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateKeyAsync(String resourceGroupName, String accountName, String keyName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateKeyWithServiceResponseAsync(resourceGroupName, accountName, keyName), serviceCallback); + } + + /** + * Regenerates one of the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible vaules are key1, key2. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountListKeysResultInner object + */ + public Observable regenerateKeyAsync(String resourceGroupName, String accountName, String keyName) { + return regenerateKeyWithServiceResponseAsync(resourceGroupName, accountName, keyName).map(new Func1, StorageAccountListKeysResultInner>() { + @Override + public StorageAccountListKeysResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates one of the access keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible vaules are key1, key2. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the StorageAccountListKeysResultInner object + */ + public Observable> regenerateKeyWithServiceResponseAsync(String resourceGroupName, String accountName, String keyName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (keyName == null) { + throw new IllegalArgumentException("Parameter keyName is required and cannot be null."); + } + StorageAccountRegenerateKeyParameters regenerateKey = new StorageAccountRegenerateKeyParameters(); + regenerateKey.withKeyName(keyName); + return service.regenerateKey(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), regenerateKey, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateKeyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse regenerateKeyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list SAS credentials for the storage account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ListAccountSasResponseInner object if successful. + */ + public ListAccountSasResponseInner listAccountSAS(String resourceGroupName, String accountName, AccountSasParameters parameters) { + return listAccountSASWithServiceResponseAsync(resourceGroupName, accountName, parameters).toBlocking().single().body(); + } + + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list SAS credentials for the storage account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listAccountSASAsync(String resourceGroupName, String accountName, AccountSasParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listAccountSASWithServiceResponseAsync(resourceGroupName, accountName, parameters), serviceCallback); + } + + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list SAS credentials for the storage account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ListAccountSasResponseInner object + */ + public Observable listAccountSASAsync(String resourceGroupName, String accountName, AccountSasParameters parameters) { + return listAccountSASWithServiceResponseAsync(resourceGroupName, accountName, parameters).map(new Func1, ListAccountSasResponseInner>() { + @Override + public ListAccountSasResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list SAS credentials for the storage account. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ListAccountSasResponseInner object + */ + public Observable> listAccountSASWithServiceResponseAsync(String resourceGroupName, String accountName, AccountSasParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.listAccountSAS(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listAccountSASDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listAccountSASDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list service SAS credentials. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ListServiceSasResponseInner object if successful. + */ + public ListServiceSasResponseInner listServiceSAS(String resourceGroupName, String accountName, ServiceSasParameters parameters) { + return listServiceSASWithServiceResponseAsync(resourceGroupName, accountName, parameters).toBlocking().single().body(); + } + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list service SAS credentials. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listServiceSASAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listServiceSASWithServiceResponseAsync(resourceGroupName, accountName, parameters), serviceCallback); + } + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list service SAS credentials. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ListServiceSasResponseInner object + */ + public Observable listServiceSASAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters) { + return listServiceSASWithServiceResponseAsync(resourceGroupName, accountName, parameters).map(new Func1, ListServiceSasResponseInner>() { + @Override + public ListServiceSasResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to provide to list service SAS credentials. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ListServiceSasResponseInner object + */ + public Observable> listServiceSASWithServiceResponseAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (accountName == null) { + throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.listServiceSAS(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listServiceSASDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listServiceSASDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManagementClientImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManagementClientImpl.java new file mode 100644 index 0000000000000..7b7c819632d77 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManagementClientImpl.java @@ -0,0 +1,252 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the StorageManagementClientImpl class. + */ +public class StorageManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The ID of the target subscription. */ + private String subscriptionId; + + /** + * Gets The ID of the target subscription. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets The ID of the target subscription. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public StorageManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** The API version to use for this operation. */ + private String apiVersion; + + /** + * Gets The API version to use for this operation. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** Gets or sets the preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets Gets or sets the preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets Gets or sets the preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public StorageManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public StorageManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public StorageManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * The SkusInner object to access its operations. + */ + private SkusInner skus; + + /** + * Gets the SkusInner object to access its operations. + * @return the SkusInner object. + */ + public SkusInner skus() { + return this.skus; + } + + /** + * The StorageAccountsInner object to access its operations. + */ + private StorageAccountsInner storageAccounts; + + /** + * Gets the StorageAccountsInner object to access its operations. + * @return the StorageAccountsInner object. + */ + public StorageAccountsInner storageAccounts() { + return this.storageAccounts; + } + + /** + * The UsagesInner object to access its operations. + */ + private UsagesInner usages; + + /** + * Gets the UsagesInner object to access its operations. + * @return the UsagesInner object. + */ + public UsagesInner usages() { + return this.usages; + } + + /** + * The BlobContainersInner object to access its operations. + */ + private BlobContainersInner blobContainers; + + /** + * Gets the BlobContainersInner object to access its operations. + * @return the BlobContainersInner object. + */ + public BlobContainersInner blobContainers() { + return this.blobContainers; + } + + /** + * Initializes an instance of StorageManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public StorageManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of StorageManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public StorageManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of StorageManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public StorageManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2018-07-01"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.operations = new OperationsInner(restClient().retrofit(), this); + this.skus = new SkusInner(restClient().retrofit(), this); + this.storageAccounts = new StorageAccountsInner(restClient().retrofit(), this); + this.usages = new UsagesInner(restClient().retrofit(), this); + this.blobContainers = new BlobContainersInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "StorageManagementClient", "2018-07-01"); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManager.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManager.java new file mode 100644 index 0000000000000..5f20828e6920c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/StorageManager.java @@ -0,0 +1,147 @@ +/** + * 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.storage.v2018_07_01.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.storage.v2018_07_01.Operations; +import com.microsoft.azure.management.storage.v2018_07_01.Skus; +import com.microsoft.azure.management.storage.v2018_07_01.StorageAccounts; +import com.microsoft.azure.management.storage.v2018_07_01.Usages; +import com.microsoft.azure.management.storage.v2018_07_01.BlobContainers; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure Storage resource management. + */ +public final class StorageManager extends ManagerCore { + private Operations operations; + private Skus skus; + private StorageAccounts storageAccounts; + private Usages usages; + private BlobContainers blobContainers; + /** + * Get a Configurable instance that can be used to create StorageManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new StorageManager.ConfigurableImpl(); + } + /** + * Creates an instance of StorageManager that exposes Storage resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the StorageManager + */ + public static StorageManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new StorageManager(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 StorageManager that exposes Storage resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the StorageManager + */ + public static StorageManager authenticate(RestClient restClient, String subscriptionId) { + return new StorageManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of StorageManager that exposes Storage management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing Storage management API entry points that work across subscriptions + */ + StorageManager 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 Skus. + */ + public Skus skus() { + if (this.skus == null) { + this.skus = new SkusImpl(this); + } + return this.skus; + } + + /** + * @return Entry point to manage StorageAccounts. + */ + public StorageAccounts storageAccounts() { + if (this.storageAccounts == null) { + this.storageAccounts = new StorageAccountsImpl(this); + } + return this.storageAccounts; + } + + /** + * @return Entry point to manage Usages. + */ + public Usages usages() { + if (this.usages == null) { + this.usages = new UsagesImpl(this); + } + return this.usages; + } + + /** + * @return Entry point to manage BlobContainers. + */ + public BlobContainers blobContainers() { + if (this.blobContainers == null) { + this.blobContainers = new BlobContainersImpl(this); + } + return this.blobContainers; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public StorageManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return StorageManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private StorageManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new StorageManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageImpl.java new file mode 100644 index 0000000000000..4dc7a166db237 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageImpl.java @@ -0,0 +1,52 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.Usage; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import com.microsoft.azure.management.storage.v2018_07_01.UsageName; +import com.microsoft.azure.management.storage.v2018_07_01.UsageUnit; + +class UsageImpl extends WrapperImpl implements Usage { + private final StorageManager manager; + + UsageImpl(UsageInner inner, StorageManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public StorageManager manager() { + return this.manager; + } + + + + @Override + public Integer currentValue() { + return this.inner().currentValue(); + } + + @Override + public Integer limit() { + return this.inner().limit(); + } + + @Override + public UsageName name() { + return this.inner().name(); + } + + @Override + public UsageUnit unit() { + return this.inner().unit(); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageInner.java new file mode 100644 index 0000000000000..0a9d9da444ea5 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsageInner.java @@ -0,0 +1,81 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.management.storage.v2018_07_01.UsageUnit; +import com.microsoft.azure.management.storage.v2018_07_01.UsageName; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes Storage Resource Usage. + */ +public class UsageInner { + /** + * Gets the unit of measurement. Possible values include: 'Count', 'Bytes', + * 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'. + */ + @JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY) + private UsageUnit unit; + + /** + * Gets the current count of the allocated resources in the subscription. + */ + @JsonProperty(value = "currentValue", access = JsonProperty.Access.WRITE_ONLY) + private Integer currentValue; + + /** + * Gets the maximum count of the resources that can be allocated in the + * subscription. + */ + @JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY) + private Integer limit; + + /** + * Gets the name of the type of usage. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private UsageName name; + + /** + * Get gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'. + * + * @return the unit value + */ + public UsageUnit unit() { + return this.unit; + } + + /** + * Get gets the current count of the allocated resources in the subscription. + * + * @return the currentValue value + */ + public Integer currentValue() { + return this.currentValue; + } + + /** + * Get gets the maximum count of the resources that can be allocated in the subscription. + * + * @return the limit value + */ + public Integer limit() { + return this.limit; + } + + /** + * Get gets the name of the type of usage. + * + * @return the name value + */ + public UsageName name() { + return this.name; + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesImpl.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesImpl.java new file mode 100644 index 0000000000000..8d1e65812702c --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesImpl.java @@ -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.storage.v2018_07_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.storage.v2018_07_01.Usages; +import rx.Observable; +import rx.functions.Func1; +import java.util.List; +import com.microsoft.azure.management.storage.v2018_07_01.Usage; + +class UsagesImpl extends WrapperImpl implements Usages { + private final StorageManager manager; + + UsagesImpl(StorageManager manager) { + super(manager.inner().usages()); + this.manager = manager; + } + + public StorageManager manager() { + return this.manager; + } + + private UsageImpl wrapModel(UsageInner inner) { + return new UsageImpl(inner, manager()); + } + + @Override + public Observable listByLocationAsync(String location) { + UsagesInner client = this.inner(); + return client.listByLocationAsync(location) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public Usage call(UsageInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesInner.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesInner.java new file mode 100644 index 0000000000000..8bd6967bf928b --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/UsagesInner.java @@ -0,0 +1,145 @@ +/** + * 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.storage.v2018_07_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Usages. + */ +public class UsagesInner { + /** The Retrofit service to perform REST calls. */ + private UsagesService service; + /** The service client containing this operation class. */ + private StorageManagementClientImpl client; + + /** + * Initializes an instance of UsagesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public UsagesInner(Retrofit retrofit, StorageManagementClientImpl client) { + this.service = retrofit.create(UsagesService.class); + this.client = client; + } + + /** + * The interface defining all the services for Usages to be + * used by Retrofit to perform actually REST calls. + */ + interface UsagesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.v2018_07_01.Usages listByLocation" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages") + Observable> listByLocation(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Gets the current usage count and the limit for the resources of the location under the subscription. + * + * @param location The location of the Azure Storage resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<UsageInner> object if successful. + */ + public List listByLocation(String location) { + return listByLocationWithServiceResponseAsync(location).toBlocking().single().body(); + } + + /** + * Gets the current usage count and the limit for the resources of the location under the subscription. + * + * @param location The location of the Azure Storage resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByLocationAsync(String location, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listByLocationWithServiceResponseAsync(location), serviceCallback); + } + + /** + * Gets the current usage count and the limit for the resources of the location under the subscription. + * + * @param location The location of the Azure Storage resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<UsageInner> object + */ + public Observable> listByLocationAsync(String location) { + return listByLocationWithServiceResponseAsync(location).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the current usage count and the limit for the resources of the location under the subscription. + * + * @param location The location of the Azure Storage resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<UsageInner> object + */ + public Observable>> listByLocationWithServiceResponseAsync(String location) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (location == null) { + throw new IllegalArgumentException("Parameter location is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByLocation(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByLocationDelegate(response); + List items = null; + if (result.body() != null) { + items = result.body().items(); + } + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByLocationDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/package-info.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/package-info.java new file mode 100644 index 0000000000000..94f71df2cb7e6 --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for StorageManagementClient. + * The Azure Storage Management API. + */ +package com.microsoft.azure.management.storage.v2018_07_01.implementation; diff --git a/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/package-info.java b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/package-info.java new file mode 100644 index 0000000000000..7ace52efa0d2f --- /dev/null +++ b/storage/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/storage/v2018_07_01/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for StorageManagementClient. + * The Azure Storage Management API. + */ +package com.microsoft.azure.management.storage.v2018_07_01; From 8b9e56fb7f781217314bf6b5b1dd04608cebaaa5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 27 Sep 2018 14:03:23 -0700 Subject: [PATCH 4/5] Generated from 61e0377e22894d6330b24ea9cd37c34a0549329b (#2434) Add storage package-2018-07 to Go SDK --- storage/resource-manager/v2016_01_01/pom.xml | 4 ++-- storage/resource-manager/v2017_10_01/pom.xml | 2 +- storage/resource-manager/v2018_02_01/pom.xml | 2 +- storage/resource-manager/v2018_03_01_preview/pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/resource-manager/v2016_01_01/pom.xml b/storage/resource-manager/v2016_01_01/pom.xml index 3d5e0f873bee0..de38d4d120bd4 100644 --- a/storage/resource-manager/v2016_01_01/pom.xml +++ b/storage/resource-manager/v2016_01_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 0.0.3-beta + 0.0.2-beta ../../../pom.xml azure-mgmt-storage - 1.0.0-beta-1 + 1.0.0-beta jar Microsoft Azure SDK for Storage Management This package contains Microsoft Storage Management SDK. diff --git a/storage/resource-manager/v2017_10_01/pom.xml b/storage/resource-manager/v2017_10_01/pom.xml index 1ad59c15226e5..3625f22ea1e37 100644 --- a/storage/resource-manager/v2017_10_01/pom.xml +++ b/storage/resource-manager/v2017_10_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.3-beta + 0.0.2-beta ../../../pom.xml azure-mgmt-storage diff --git a/storage/resource-manager/v2018_02_01/pom.xml b/storage/resource-manager/v2018_02_01/pom.xml index 674e44ea3aeb7..1c11c11ca29b1 100644 --- a/storage/resource-manager/v2018_02_01/pom.xml +++ b/storage/resource-manager/v2018_02_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.3-beta + 0.0.2-beta ../../../pom.xml azure-mgmt-storage diff --git a/storage/resource-manager/v2018_03_01_preview/pom.xml b/storage/resource-manager/v2018_03_01_preview/pom.xml index 1e53c3ff243f3..febf4b3044b2a 100644 --- a/storage/resource-manager/v2018_03_01_preview/pom.xml +++ b/storage/resource-manager/v2018_03_01_preview/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.3-beta + 0.0.2-beta ../../../pom.xml azure-mgmt-storage From faea705ba7f4a39b223f2c3053aa9cdb8b731298 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Thu, 27 Sep 2018 14:48:15 -0700 Subject: [PATCH 5/5] Fix storage parent version --- storage/resource-manager/v2016_01_01/pom.xml | 2 +- storage/resource-manager/v2017_10_01/pom.xml | 2 +- storage/resource-manager/v2018_02_01/pom.xml | 2 +- storage/resource-manager/v2018_03_01_preview/pom.xml | 2 +- storage/resource-manager/v2018_07_01/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/resource-manager/v2016_01_01/pom.xml b/storage/resource-manager/v2016_01_01/pom.xml index de38d4d120bd4..615b1b836b3b1 100644 --- a/storage/resource-manager/v2016_01_01/pom.xml +++ b/storage/resource-manager/v2016_01_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.2-beta + 0.0.3-beta ../../../pom.xml azure-mgmt-storage diff --git a/storage/resource-manager/v2017_10_01/pom.xml b/storage/resource-manager/v2017_10_01/pom.xml index 3625f22ea1e37..1ad59c15226e5 100644 --- a/storage/resource-manager/v2017_10_01/pom.xml +++ b/storage/resource-manager/v2017_10_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.2-beta + 0.0.3-beta ../../../pom.xml azure-mgmt-storage diff --git a/storage/resource-manager/v2018_02_01/pom.xml b/storage/resource-manager/v2018_02_01/pom.xml index 1c11c11ca29b1..674e44ea3aeb7 100644 --- a/storage/resource-manager/v2018_02_01/pom.xml +++ b/storage/resource-manager/v2018_02_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.2-beta + 0.0.3-beta ../../../pom.xml azure-mgmt-storage diff --git a/storage/resource-manager/v2018_03_01_preview/pom.xml b/storage/resource-manager/v2018_03_01_preview/pom.xml index febf4b3044b2a..1e53c3ff243f3 100644 --- a/storage/resource-manager/v2018_03_01_preview/pom.xml +++ b/storage/resource-manager/v2018_03_01_preview/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.2-beta + 0.0.3-beta ../../../pom.xml azure-mgmt-storage diff --git a/storage/resource-manager/v2018_07_01/pom.xml b/storage/resource-manager/v2018_07_01/pom.xml index 28ed9952bd3e3..a69acbb04c02e 100644 --- a/storage/resource-manager/v2018_07_01/pom.xml +++ b/storage/resource-manager/v2018_07_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 0.0.2-beta + 0.0.3-beta ../../../pom.xml azure-mgmt-storage