From f644f2f46e7da5838bdfa9428a30bd7f3b530419 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 20 Jul 2020 11:54:08 +0000 Subject: [PATCH] Generated from 360699b439708ea38449765f0b4647b3599da42b Require StorageCache StorageTarget discriminator: targetType --- .../v2019_11_01/StorageTarget.java | 33 ++----------------- .../implementation/StorageTargetImpl.java | 12 ------- .../implementation/StorageTargetInner.java | 28 ---------------- 3 files changed, 2 insertions(+), 71 deletions(-) diff --git a/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/StorageTarget.java b/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/StorageTarget.java index 7a9b13f222229..5daa3be220151 100644 --- a/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/StorageTarget.java +++ b/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/StorageTarget.java @@ -53,11 +53,6 @@ public interface StorageTarget extends HasInner, Indexable, */ ProvisioningStateType provisioningState(); - /** - * @return the targetType value. - */ - StorageTargetType targetType(); - /** * @return the type value. */ @@ -145,18 +140,6 @@ interface WithProvisioningState { WithCreate withProvisioningState(ProvisioningStateType provisioningState); } - /** - * The stage of the storagetarget definition allowing to specify TargetType. - */ - interface WithTargetType { - /** - * Specifies targetType. - * @param targetType Type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown' - * @return the next definition stage - */ - WithCreate withTargetType(StorageTargetType targetType); - } - /** * The stage of the storagetarget definition allowing to specify Unknown. */ @@ -174,13 +157,13 @@ interface WithUnknown { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithClfs, DefinitionStages.WithJunctions, DefinitionStages.WithNfs3, DefinitionStages.WithProvisioningState, DefinitionStages.WithTargetType, DefinitionStages.WithUnknown { + interface WithCreate extends Creatable, DefinitionStages.WithClfs, DefinitionStages.WithJunctions, DefinitionStages.WithNfs3, DefinitionStages.WithProvisioningState, DefinitionStages.WithUnknown { } } /** * The template for a StorageTarget update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithClfs, UpdateStages.WithJunctions, UpdateStages.WithNfs3, UpdateStages.WithProvisioningState, UpdateStages.WithTargetType, UpdateStages.WithUnknown { + interface Update extends Appliable, UpdateStages.WithClfs, UpdateStages.WithJunctions, UpdateStages.WithNfs3, UpdateStages.WithProvisioningState, UpdateStages.WithUnknown { } /** @@ -235,18 +218,6 @@ interface WithProvisioningState { Update withProvisioningState(ProvisioningStateType provisioningState); } - /** - * The stage of the storagetarget update allowing to specify TargetType. - */ - interface WithTargetType { - /** - * Specifies targetType. - * @param targetType Type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown' - * @return the next update stage - */ - Update withTargetType(StorageTargetType targetType); - } - /** * The stage of the storagetarget update allowing to specify Unknown. */ diff --git a/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetImpl.java b/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetImpl.java index 48ee6b0b34ad8..32f96dc6a710e 100644 --- a/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetImpl.java +++ b/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetImpl.java @@ -13,7 +13,6 @@ import rx.Observable; import java.util.List; import com.microsoft.azure.management.storagecache.v2019_11_01.NamespaceJunction; -import com.microsoft.azure.management.storagecache.v2019_11_01.StorageTargetType; import com.microsoft.azure.management.storagecache.v2019_11_01.ProvisioningStateType; import com.microsoft.azure.management.storagecache.v2019_11_01.Nfs3Target; import com.microsoft.azure.management.storagecache.v2019_11_01.ClfsTarget; @@ -106,11 +105,6 @@ public ProvisioningStateType provisioningState() { return this.inner().provisioningState(); } - @Override - public StorageTargetType targetType() { - return this.inner().targetType(); - } - @Override public String type() { return this.inner().type(); @@ -152,12 +146,6 @@ public StorageTargetImpl withProvisioningState(ProvisioningStateType provisionin return this; } - @Override - public StorageTargetImpl withTargetType(StorageTargetType targetType) { - this.inner().withTargetType(targetType); - return this; - } - @Override public StorageTargetImpl withUnknown(UnknownTarget unknown) { this.inner().withUnknown(unknown); diff --git a/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetInner.java b/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetInner.java index 46c8964de81c8..8c650c120144a 100644 --- a/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetInner.java +++ b/sdk/storagecache/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/storagecache/v2019_11_01/implementation/StorageTargetInner.java @@ -10,7 +10,6 @@ import java.util.List; import com.microsoft.azure.management.storagecache.v2019_11_01.NamespaceJunction; -import com.microsoft.azure.management.storagecache.v2019_11_01.StorageTargetType; import com.microsoft.azure.management.storagecache.v2019_11_01.ProvisioningStateType; import com.microsoft.azure.management.storagecache.v2019_11_01.Nfs3Target; import com.microsoft.azure.management.storagecache.v2019_11_01.ClfsTarget; @@ -30,13 +29,6 @@ public class StorageTargetInner extends ProxyResource { @JsonProperty(value = "properties.junctions") private List junctions; - /** - * Type of the Storage Target. Possible values include: 'nfs3', 'clfs', - * 'unknown'. - */ - @JsonProperty(value = "properties.targetType") - private StorageTargetType targetType; - /** * ARM provisioning state, see * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property. @@ -84,26 +76,6 @@ public StorageTargetInner withJunctions(List junctions) { return this; } - /** - * Get type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown'. - * - * @return the targetType value - */ - public StorageTargetType targetType() { - return this.targetType; - } - - /** - * Set type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown'. - * - * @param targetType the targetType value to set - * @return the StorageTargetInner object itself. - */ - public StorageTargetInner withTargetType(StorageTargetType targetType) { - this.targetType = targetType; - return this; - } - /** * Get aRM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting', 'Updating'. *