From 092e61cd25941afed966d0912a7ed05a00209296 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 24 Jan 2020 15:05:56 +0000 Subject: [PATCH] Generated from dbeec79a1c0750f94a0edf7ee4fe49b2cf75bf0b Merge pull request #48 from leonardbf/ANF-567-add-API-2019-11-01 ANF-567 add new API 2019-11-01 --- sdk/netapp/mgmt-v2019_07_01/pom.xml | 2 +- .../netapp/v2019_07_01/MountTargetList.java | 45 +++++++++++++++++++ .../management/netapp/v2019_07_01/Volume.java | 4 +- .../implementation/VolumeImpl.java | 5 ++- .../implementation/VolumeInner.java | 7 +-- 5 files changed, 55 insertions(+), 8 deletions(-) create mode 100644 sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/MountTargetList.java diff --git a/sdk/netapp/mgmt-v2019_07_01/pom.xml b/sdk/netapp/mgmt-v2019_07_01/pom.xml index 113fd2a8609f..2b7e6e5aea59 100644 --- a/sdk/netapp/mgmt-v2019_07_01/pom.xml +++ b/sdk/netapp/mgmt-v2019_07_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.2.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-netapp diff --git a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/MountTargetList.java b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/MountTargetList.java new file mode 100644 index 000000000000..78d4cda565b6 --- /dev/null +++ b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/MountTargetList.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.netapp.v2019_07_01; + +import java.util.List; +import com.microsoft.azure.management.netapp.v2019_07_01.implementation.MountTargetInner; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * List of Mount Targets. + */ +public class MountTargetList { + /** + * A list of Mount targets. + */ + @JsonProperty(value = "value") + private List value; + + /** + * Get a list of Mount targets. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set a list of Mount targets. + * + * @param value the value value to set + * @return the MountTargetList object itself. + */ + public MountTargetList withValue(List value) { + this.value = value; + return this; + } + +} diff --git a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/Volume.java b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/Volume.java index 44c35070043c..3498b2446a1d 100644 --- a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/Volume.java +++ b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/Volume.java @@ -57,7 +57,7 @@ public interface Volume extends HasInner, Indexable, Refreshable mountTargets(); /** * @return the name value. @@ -203,7 +203,7 @@ interface WithMountTargets { * @param mountTargets List of mount targets * @return the next definition stage */ - WithCreate withMountTargets(Object mountTargets); + WithCreate withMountTargets(List mountTargets); } /** diff --git a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeImpl.java b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeImpl.java index d29643bb94bc..70e147200f56 100644 --- a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeImpl.java +++ b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeImpl.java @@ -15,6 +15,7 @@ import com.microsoft.azure.management.netapp.v2019_07_01.ServiceLevel; import com.microsoft.azure.management.netapp.v2019_07_01.VolumePropertiesExportPolicy; import java.util.List; +import com.microsoft.azure.management.netapp.v2019_07_01.MountTargetList; import java.util.Map; import com.microsoft.azure.management.netapp.v2019_07_01.VolumePatchPropertiesExportPolicy; import rx.functions.Func1; @@ -129,7 +130,7 @@ public String location() { } @Override - public Object mountTargets() { + public List mountTargets() { return this.inner().mountTargets(); } @@ -217,7 +218,7 @@ public VolumeImpl withExportPolicy(VolumePropertiesExportPolicy exportPolicy) { } @Override - public VolumeImpl withMountTargets(Object mountTargets) { + public VolumeImpl withMountTargets(List mountTargets) { this.inner().withMountTargets(mountTargets); return this; } diff --git a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeInner.java b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeInner.java index 3e3d12bc5780..d98868ae3b42 100644 --- a/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeInner.java +++ b/sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/implementation/VolumeInner.java @@ -11,6 +11,7 @@ import com.microsoft.azure.management.netapp.v2019_07_01.ServiceLevel; import com.microsoft.azure.management.netapp.v2019_07_01.VolumePropertiesExportPolicy; import java.util.List; +import com.microsoft.azure.management.netapp.v2019_07_01.MountTargetList; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; @@ -97,7 +98,7 @@ public class VolumeInner extends Resource { * List of mount targets. */ @JsonProperty(value = "properties.mountTargets") - private Object mountTargets; + private List mountTargets; /** * Get unique FileSystem Identifier. @@ -271,7 +272,7 @@ public VolumeInner withSubnetId(String subnetId) { * * @return the mountTargets value */ - public Object mountTargets() { + public List mountTargets() { return this.mountTargets; } @@ -281,7 +282,7 @@ public Object mountTargets() { * @param mountTargets the mountTargets value to set * @return the VolumeInner object itself. */ - public VolumeInner withMountTargets(Object mountTargets) { + public VolumeInner withMountTargets(List mountTargets) { this.mountTargets = mountTargets; return this; }