From 4283932b12e319117256fa4a316638b7fba80773 Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Tue, 8 May 2018 10:32:47 -0700 Subject: [PATCH 1/2] Added storage method annotation to Fluent flow --- .../com/microsoft/azure/management/storage/StorageAccount.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java b/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java index 42b616f53eb..9ce49f92e50 100644 --- a/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java +++ b/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java @@ -8,6 +8,7 @@ import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource; import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource; import com.microsoft.azure.management.resources.fluentcore.model.Appliable; @@ -860,6 +861,7 @@ interface WithUpgrade { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_1) + @Method Update upgradeToGeneralPurposeAccountKindV2(); } } From 5d0489bf57136fd1f8449eb59843b87f10267cdb Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Tue, 8 May 2018 11:02:14 -0700 Subject: [PATCH 2/2] Added more Method annotation to Storage --- .../management/storage/StorageAccount.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java b/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java index 9ce49f92e50..8049d9225f4 100644 --- a/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java +++ b/azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/StorageAccount.java @@ -187,6 +187,7 @@ public interface StorageAccount extends * * @return the access keys for this storage account */ + @Method List getKeys(); /** @@ -194,6 +195,7 @@ public interface StorageAccount extends * * @return a representation of the deferred computation of this call, returning the access keys */ + @Method Observable> getKeysAsync(); /** @@ -289,6 +291,7 @@ interface WithBlobStorageAccountKind { * * @return the next stage of storage account definition */ + @Method WithCreateAndAccessTier withBlobStorageAccountKind(); } @@ -302,6 +305,7 @@ interface WithGeneralPurposeAccountKind { * * @return the next stage of storage account definition */ + @Method WithCreate withGeneralPurposeAccountKind(); /** @@ -310,6 +314,7 @@ interface WithGeneralPurposeAccountKind { * * @return the next stage of storage account definition */ + @Method WithCreate withGeneralPurposeAccountKindV2(); } @@ -324,6 +329,7 @@ interface WithEncryption { * @return the next stage of storage account definition */ @Deprecated + @Method WithCreate withEncryption(); /** @@ -332,6 +338,7 @@ interface WithEncryption { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withBlobEncryption(); /** @@ -340,6 +347,7 @@ interface WithEncryption { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withoutBlobEncryption(); /** @@ -348,6 +356,7 @@ interface WithEncryption { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withFileEncryption(); /** @@ -356,6 +365,7 @@ interface WithEncryption { * @return he next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withoutFileEncryption(); /** @@ -410,6 +420,7 @@ interface WithManagedServiceIdentity { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withSystemAssignedManagedServiceIdentity(); } @@ -424,6 +435,7 @@ interface WithAccessTraffic { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withOnlyHttpsTraffic(); } @@ -438,6 +450,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withAccessFromAllNetworks(); /** @@ -450,6 +463,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withAccessFromSelectedNetworks(); /** @@ -485,6 +499,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withReadAccessToLogEntriesFromAnyNetwork(); /** @@ -493,6 +508,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withReadAccessToMetricsFromAnyNetwork(); /** @@ -502,6 +518,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method WithCreate withAccessFromAzureServices(); } @@ -611,6 +628,7 @@ interface WithEncryption { * @return the next stage of storage account update */ @Deprecated + @Method Update withEncryption(); /** @@ -619,6 +637,7 @@ interface WithEncryption { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withBlobEncryption(); /** @@ -627,6 +646,7 @@ interface WithEncryption { * @return he next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withFileEncryption(); /** @@ -636,6 +656,7 @@ interface WithEncryption { * @return the next stage of storage account update */ @Deprecated + @Method Update withoutEncryption(); /** @@ -644,6 +665,7 @@ interface WithEncryption { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withoutBlobEncryption(); /** @@ -652,6 +674,7 @@ interface WithEncryption { * @return he next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withoutFileEncryption(); /** @@ -693,6 +716,7 @@ interface WithManagedServiceIdentity { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withSystemAssignedManagedServiceIdentity(); } @@ -707,6 +731,7 @@ interface WithAccessTraffic { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withOnlyHttpsTraffic(); /** @@ -715,6 +740,7 @@ interface WithAccessTraffic { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withHttpAndHttpsTraffic(); } @@ -731,6 +757,7 @@ interface WithNetworkAccess { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withAccessFromAllNetworks(); /** @@ -743,6 +770,7 @@ interface WithNetworkAccess { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withAccessFromSelectedNetworks(); /** @@ -779,6 +807,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withReadAccessToLogEntriesFromAnyNetwork(); /** @@ -787,6 +816,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withReadAccessToMetricsFromAnyNetwork(); /** @@ -796,6 +826,7 @@ interface WithNetworkAccess { * @return the next stage of storage account definition */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withAccessFromAzureServices(); /** @@ -832,6 +863,7 @@ interface WithNetworkAccess { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withoutReadAccessToLoggingFromAnyNetwork(); /** @@ -841,6 +873,7 @@ interface WithNetworkAccess { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withoutReadAccessToMetricsFromAnyNetwork(); /** @@ -850,6 +883,7 @@ interface WithNetworkAccess { * @return the next stage of storage account update */ @Beta(Beta.SinceVersion.V1_5_0) + @Method Update withoutAccessFromAzureServices(); }