Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR sdk/netapp/mgmt-v2019_07_01] Fix property type of mountTargets in NetApp #9559

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/netapp/mgmt-v2019_07_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-netapp</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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<MountTargetInner> value;

/**
* Get a list of Mount targets.
*
* @return the value value
*/
public List<MountTargetInner> 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<MountTargetInner> value) {
this.value = value;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public interface Volume extends HasInner<VolumeInner>, Indexable, Refreshable<Vo
/**
* @return the mountTargets value.
*/
Object mountTargets();
List<MountTargetList> mountTargets();

/**
* @return the name value.
Expand Down Expand Up @@ -203,7 +203,7 @@ interface WithMountTargets {
* @param mountTargets List of mount targets
* @return the next definition stage
*/
WithCreate withMountTargets(Object mountTargets);
WithCreate withMountTargets(List<MountTargetList> mountTargets);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -129,7 +130,7 @@ public String location() {
}

@Override
public Object mountTargets() {
public List<MountTargetList> mountTargets() {
return this.inner().mountTargets();
}

Expand Down Expand Up @@ -217,7 +218,7 @@ public VolumeImpl withExportPolicy(VolumePropertiesExportPolicy exportPolicy) {
}

@Override
public VolumeImpl withMountTargets(Object mountTargets) {
public VolumeImpl withMountTargets(List<MountTargetList> mountTargets) {
this.inner().withMountTargets(mountTargets);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -97,7 +98,7 @@ public class VolumeInner extends Resource {
* List of mount targets.
*/
@JsonProperty(value = "properties.mountTargets")
private Object mountTargets;
private List<MountTargetList> mountTargets;

/**
* Get unique FileSystem Identifier.
Expand Down Expand Up @@ -271,7 +272,7 @@ public VolumeInner withSubnetId(String subnetId) {
*
* @return the mountTargets value
*/
public Object mountTargets() {
public List<MountTargetList> mountTargets() {
return this.mountTargets;
}

Expand All @@ -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<MountTargetList> mountTargets) {
this.mountTargets = mountTargets;
return this;
}
Expand Down